ABAP Select data from SAP table WB2B_S_ASGT_DIST_ALV into internal table
Get Example source ABAP code based on a different SAP table
Below is a number of ABAP code snippets to demonstrate how to select data from SAP WB2B_S_ASGT_DIST_ALV table and store it within an internal table, including using the newer @DATA inline declaration methods. It also shows you various ways to process this data using ABAP work area, inline declaration or field symbols including executing all the relevant CONVERSION_EXIT routines specific to WB2B_S_ASGT_DIST_ALV. See here for more generic Select statement tips.
Sometimes data within SAP is stored within the database table in a different format to what it is displayed to the user. These input/output conversation FM routines are what translates the data between the two formats.
There is also a full declaration of the WB2B_S_ASGT_DIST_ALV table where each field has a char/string type for you to simply copy and paste. This allows you to use processing that is only available to these field types such as the CONCATENATE statement.
DATA: IT_WB2B_S_ASGT_DIST_ALV TYPE STANDARD TABLE OF WB2B_S_ASGT_DIST_ALV, WA_WB2B_S_ASGT_DIST_ALV TYPE WB2B_S_ASGT_DIST_ALV, GD_STR TYPE STRING. DATA: lo_typedescr type REF TO cl_abap_typedescr. DATA: lv_fieldname type fieldname. FIELD-SYMBOLS: <FIELD> TYPE any. FIELD-SYMBOLS: <WB2B_S_ASGT_DIST_ALV> TYPE WB2B_S_ASGT_DIST_ALV. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_WB2B_S_ASGT_DIST_ALV. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM WB2B_S_ASGT_DIST_ALV INTO TABLE IT_WB2B_S_ASGT_DIST_ALV. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM WB2B_S_ASGT_DIST_ALV * INTO TABLE @DATA(IT_WB2B_S_ASGT_DIST_ALV2). *--Further methods of using ABAP code to select data from SAP database tables *You can also declare the header/work area using the in-line DATA declaration method READ TABLE IT_WB2B_S_ASGT_DIST_ALV INDEX 1 INTO DATA(WA_WB2B_S_ASGT_DIST_ALV2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_WB2B_S_ASGT_DIST_ALV ASSIGNING <WB2B_S_ASGT_DIST_ALV>.*To update a field value using a field symbol simply change the value via the field symbol pointer
<WB2B_S_ASGT_DIST_ALV>-O_TC = 1.
<WB2B_S_ASGT_DIST_ALV>-CLIENTCI = 1.
<WB2B_S_ASGT_DIST_ALV>-TKONNCI = 1.
<WB2B_S_ASGT_DIST_ALV>-TPOSNCI = 1.
<WB2B_S_ASGT_DIST_ALV>-SIDECI = 1.
ENDLOOP. LOOP AT IT_WB2B_S_ASGT_DIST_ALV INTO WA_WB2B_S_ASGT_DIST_ALV. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_WB2B_S_ASGT_DIST_ALV-TPOSN_COMCI, sy-vline,
WA_WB2B_S_ASGT_DIST_ALV-QUANTITYCI, sy-vline,
WA_WB2B_S_ASGT_DIST_ALV-UNITCI, sy-vline,
WA_WB2B_S_ASGT_DIST_ALV-DATE_FROMCI, sy-vline,
WA_WB2B_S_ASGT_DIST_ALV-DATE_TOCI, sy-vline,
WA_WB2B_S_ASGT_DIST_ALV-FUTURECI, sy-vline.
ENDLOOP. *Add any further fields from structure WA_WB2B_S_ASGT_DIST_ALV you want to display... WRITE:/ sy-uline. * Aternatively use generic code to Write field values (and NAME) to screen report DO. ASSIGN COMPONENT sy-index OF STRUCTURE wa_WB2B_S_ASGT_DIST_ALV TO <field>. IF sy-subrc <> 0. EXIT. ENDIF. WRITE:/ 'Field Value', <field>, sy-vline. gd_str = <field> . lo_typedescr ?= CL_ABAP_DATADESCR=>DESCRIBE_BY_DATA( <field> ). lv_fieldname = lo_typedescr->GET_RELATIVE_NAME( ). WRITE:/ 'Field Name', lv_fieldname. ENDDO. *Redo loop but convert all fields from internal to out value LOOP AT IT_WB2B_S_ASGT_DIST_ALV INTO WA_WB2B_S_ASGT_DIST_ALV. *Write horizonal line to screen report. WRITE:/ sy-uline. *Convert all fields to display/output versions using conversion routines PERFORM convert_all_field_values CHANGING wa_EKKO. ENDLOOP. *&---------------------------------------------------------------------* *& Form convert_all_field_values *&---------------------------------------------------------------------* FORM convert_all_field_values CHANGING p_EKKO LIKE wa_EKKO. DATA: ld_input(1000) TYPE c, ld_output(1000) TYPE C.
*Conversion exit ALPHA, internal->external for field TKONNCI CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-TKONNCI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-TKONNCI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field UNITCI CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-UNITCI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-UNITCI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit MATN1, internal->external for field MATNRCI CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-MATNRCI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-MATNRCI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field BASIS_MEINSCI CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-BASIS_MEINSCI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-BASIS_MEINSCI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field VENDORCI CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-VENDORCI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-VENDORCI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field CUSTOMERCI CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-CUSTOMERCI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-CUSTOMERCI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field ITEM_UOMSI CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-ITEM_UOMSI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-ITEM_UOMSI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field ASSGD_UOMSI CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-ASSGD_UOMSI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-ASSGD_UOMSI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field VENDORSI CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-VENDORSI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-VENDORSI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field CUSTOMERSI CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-CUSTOMERSI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-CUSTOMERSI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit MATN1, internal->external for field MATNRSI CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-MATNRSI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-MATNRSI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field TKONNAST CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-TKONNAST IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-TKONNAST.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field ASSGD_UOMAST CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-ASSGD_UOMAST IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-ASSGD_UOMAST.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field TKONNPRP CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-TKONNPRP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-TKONNPRP.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field UNITPRP CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-UNITPRP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-UNITPRP.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field KMEINPRP CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-KMEINPRP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-KMEINPRP.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field KMEIN2PRP CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-KMEIN2PRP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-KMEIN2PRP.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field KMEIN3PRP CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-KMEIN3PRP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-KMEIN3PRP.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field KMEIN4PRP CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-KMEIN4PRP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-KMEIN4PRP.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field BASIS_MEINSPRP CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-BASIS_MEINSPRP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-BASIS_MEINSPRP.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field ASSGD_UOMDST CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_WB2B_S_ASGT_DIST_ALV-ASSGD_UOMDST IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_WB2B_S_ASGT_DIST_ALV-ASSGD_UOMDST.
WRITE:/ 'New Value:', ld_input.
ENDFORM. *&---------------------------------------------------------------------* *& Form process_as_string_field_values *&---------------------------------------------------------------------* FORM process_as_string_field_values CHANGING p_EKKO LIKE wa_EKKO. TYPES: BEGIN OF T_WB2B_S_ASGT_DIST_ALV_STR,
O_TC TYPE STRING,
CLIENTCI TYPE STRING,
TKONNCI TYPE STRING,
TPOSNCI TYPE STRING,
SIDECI TYPE STRING,
TPOSN_COMCI TYPE STRING,
QUANTITYCI TYPE STRING,
UNITCI TYPE STRING,
DATE_FROMCI TYPE STRING,
DATE_TOCI TYPE STRING,
FUTURECI TYPE STRING,
COM_GUIDCI TYPE STRING,
CR_NAMECI TYPE STRING,
CR_DATECI TYPE STRING,
CR_TIMECI TYPE STRING,
CH_NAMECI TYPE STRING,
CH_DATECI TYPE STRING,
CH_TIMECI TYPE STRING,
IT_CLOSEDCI TYPE STRING,
COM_CATCI TYPE STRING,
NUMERATORCI TYPE STRING,
DENOMINATORCI TYPE STRING,
ASSGMT_RELCI TYPE STRING,
HKPSTPCI TYPE STRING,
MATNRCI TYPE STRING,
BASIS_MEINSCI TYPE STRING,
VENDORCI TYPE STRING,
CUSTOMERCI TYPE STRING,
BATCHCI TYPE STRING,
EXT_REFCI TYPE STRING,
COM_ITEM_PROPCI TYPE STRING,
_DATAAGINGCI TYPE STRING,
PLACE_HOLDERCI TYPE STRING,
FUT_DESCRCI TYPE STRING,
CUST_DESCRCI TYPE STRING,
VEND_DESCRCI TYPE STRING,
UPDKZCI TYPE STRING,
IS_SINGLETONCI TYPE STRING,
CLIENTSI TYPE STRING,
TYPESI TYPE STRING,
DOCUMENTSI TYPE STRING,
ITEMSI TYPE STRING,
SIDESI TYPE STRING,
SUB_ITEMSI TYPE STRING,
HAS_OPEN_QUANSI TYPE STRING,
ITEM_QUANSI TYPE STRING,
ITEM_UOMSI TYPE STRING,
IT_QUAN_ASSGMTSI TYPE STRING,
ASSGD_QUANSI TYPE STRING,
ASSGD_UOMSI TYPE STRING,
NUMERATORSI TYPE STRING,
DENOMINATORSI TYPE STRING,
VENDORSI TYPE STRING,
CUSTOMERSI TYPE STRING,
MATNRSI TYPE STRING,
BATCHSI TYPE STRING,
FUTURESI TYPE STRING,
CLOSEDSI TYPE STRING,
SH_IT_GUIDSI TYPE STRING,
CR_NAMESI TYPE STRING,
CR_DATESI TYPE STRING,
CR_TIMESI TYPE STRING,
CH_NAMESI TYPE STRING,
CH_DATESI TYPE STRING,
CH_TIMESI TYPE STRING,
DATE_FROMSI TYPE STRING,
DATE_TOSI TYPE STRING,
CANCEL_FLAGSI TYPE STRING,
COM_CATSI TYPE STRING,
ASSGMT_TR_METHSI TYPE STRING,
PRE_TYPESI TYPE STRING,
PRE_DOCUMENTSI TYPE STRING,
PRE_ITEMSI TYPE STRING,
PRE_SIDESI TYPE STRING,
PRE_SUB_ITEMSI TYPE STRING,
ROOT_TYPESI TYPE STRING,
ROOT_DOCUMENTSI TYPE STRING,
ROOT_ITEMSI TYPE STRING,
ROOT_SIDESI TYPE STRING,
ROOT_SUB_ITEMSI TYPE STRING,
TRANSF_QUANSI TYPE STRING,
_DATAAGINGSI TYPE STRING,
PLACE_HOLDERSI TYPE STRING,
UPDKZSI TYPE STRING,
CLIENTAST TYPE STRING,
TYPE_FROMAST TYPE STRING,
DOCUMENT_FROMAST TYPE STRING,
ITEM_FROMAST TYPE STRING,
SIDE_FROMAST TYPE STRING,
SUB_ITEM_FROMAST TYPE STRING,
TKONNAST TYPE STRING,
TPOSNAST TYPE STRING,
SIDE_TOAST TYPE STRING,
TPOSN_COMAST TYPE STRING,
ASSGD_QUANAST TYPE STRING,
ASSGD_QUAN_ORIGAST TYPE STRING,
ASSGD_UOMAST TYPE STRING,
A_GUIDAST TYPE STRING,
PRED_A_GUIDAST TYPE STRING,
PRED_QUANAST TYPE STRING,
FROZENAST TYPE STRING,
CR_NAMEAST TYPE STRING,
CR_DATEAST TYPE STRING,
CR_TIMEAST TYPE STRING,
CH_NAMEAST TYPE STRING,
CH_DATEAST TYPE STRING,
CH_TIMEAST TYPE STRING,
CANCEL_FLAGAST TYPE STRING,
_DATAAGINGAST TYPE STRING,
PLACE_HOLDERAST TYPE STRING,
UPDKZAST TYPE STRING,
CLIENTPRP TYPE STRING,
TKONNPRP TYPE STRING,
TPOSNPRP TYPE STRING,
SIDEPRP TYPE STRING,
TPOSN_COMPRP TYPE STRING,
PR_ASPECTPRP TYPE STRING,
PR_COUNTPRP TYPE STRING,
QUANTITYPRP TYPE STRING,
UNITPRP TYPE STRING,
PR_DATEPRP TYPE STRING,
COND_TYPEPRP TYPE STRING,
KBETRPRP TYPE STRING,
KONWAPRP TYPE STRING,
KPEINPRP TYPE STRING,
KMEINPRP TYPE STRING,
KRECHPRP TYPE STRING,
PRASP_GUIDPRP TYPE STRING,
CR_NAMEPRP TYPE STRING,
CR_DATEPRP TYPE STRING,
CR_TIMEPRP TYPE STRING,
CH_NAMEPRP TYPE STRING,
CH_DATEPRP TYPE STRING,
CH_TIMEPRP TYPE STRING,
COM_GUIDPRP TYPE STRING,
COND_TYPE2PRP TYPE STRING,
KBETR2PRP TYPE STRING,
KONWA2PRP TYPE STRING,
KPEIN2PRP TYPE STRING,
KMEIN2PRP TYPE STRING,
KRECH2PRP TYPE STRING,
COND_TYPE3PRP TYPE STRING,
KBETR3PRP TYPE STRING,
KONWA3PRP TYPE STRING,
KPEIN3PRP TYPE STRING,
KMEIN3PRP TYPE STRING,
KRECH3PRP TYPE STRING,
COND_TYPE4PRP TYPE STRING,
KBETR4PRP TYPE STRING,
KONWA4PRP TYPE STRING,
KPEIN4PRP TYPE STRING,
KMEIN4PRP TYPE STRING,
KRECH4PRP TYPE STRING,
ASSGMT_RELPRP TYPE STRING,
FUTUREPRP TYPE STRING,
EXT_REFPRP TYPE STRING,
_DATAAGINGPRP TYPE STRING,
PLACE_HOLDERPRP TYPE STRING,
UPDKZPRP TYPE STRING,
NUMERATORPRP TYPE STRING,
DENOMINATORPRP TYPE STRING,
BASIS_MEINSPRP TYPE STRING,
FUT_DESCRPRP TYPE STRING,
FOR_COMMODITY_SINGLETONPRP TYPE STRING,
CLIENTDST TYPE STRING,
A_GUIDDST TYPE STRING,
PR_ASPECTDST TYPE STRING,
PR_COUNTDST TYPE STRING,
ASSGD_QUANDST TYPE STRING,
ASSGD_UOMDST TYPE STRING,
AD_GUIDDST TYPE STRING,
CR_NAMEDST TYPE STRING,
CR_DATEDST TYPE STRING,
CR_TIMEDST TYPE STRING,
CH_NAMEDST TYPE STRING,
CH_DATEDST TYPE STRING,
CH_TIMEDST TYPE STRING,
_DATAAGINGDST TYPE STRING,
PLACE_HOLDERDST TYPE STRING,
UPDKZDST TYPE STRING,END OF T_EKKO_STR. DATA: WA_WB2B_S_ASGT_DIST_ALV_STR type T_EKKO_STR. DATA: ld_text TYPE string. LOOP AT IT_EKKO INTO WA_EKKO. MOVE-CORRESPONDING wa_EKKO TO WA_EKKO_STR. CONCATENATE: sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-O_TC sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CLIENTCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TKONNCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TPOSNCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-SIDECI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TPOSN_COMCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-QUANTITYCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-UNITCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-DATE_FROMCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-DATE_TOCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-FUTURECI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-COM_GUIDCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_NAMECI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_DATECI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_TIMECI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_NAMECI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_DATECI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_TIMECI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-IT_CLOSEDCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-COM_CATCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-NUMERATORCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-DENOMINATORCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ASSGMT_RELCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-HKPSTPCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-MATNRCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-BASIS_MEINSCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-VENDORCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CUSTOMERCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-BATCHCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-EXT_REFCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-COM_ITEM_PROPCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-_DATAAGINGCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PLACE_HOLDERCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-FUT_DESCRCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CUST_DESCRCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-VEND_DESCRCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-UPDKZCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-IS_SINGLETONCI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CLIENTSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TYPESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-DOCUMENTSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ITEMSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-SIDESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-SUB_ITEMSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-HAS_OPEN_QUANSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ITEM_QUANSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ITEM_UOMSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-IT_QUAN_ASSGMTSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ASSGD_QUANSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ASSGD_UOMSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-NUMERATORSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-DENOMINATORSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-VENDORSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CUSTOMERSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-MATNRSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-BATCHSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-FUTURESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CLOSEDSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-SH_IT_GUIDSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_NAMESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_DATESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_TIMESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_NAMESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_DATESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_TIMESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-DATE_FROMSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-DATE_TOSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CANCEL_FLAGSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-COM_CATSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ASSGMT_TR_METHSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PRE_TYPESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PRE_DOCUMENTSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PRE_ITEMSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PRE_SIDESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PRE_SUB_ITEMSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ROOT_TYPESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ROOT_DOCUMENTSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ROOT_ITEMSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ROOT_SIDESI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ROOT_SUB_ITEMSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TRANSF_QUANSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-_DATAAGINGSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PLACE_HOLDERSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-UPDKZSI sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CLIENTAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TYPE_FROMAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-DOCUMENT_FROMAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ITEM_FROMAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-SIDE_FROMAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-SUB_ITEM_FROMAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TKONNAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TPOSNAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-SIDE_TOAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TPOSN_COMAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ASSGD_QUANAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ASSGD_QUAN_ORIGAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ASSGD_UOMAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-A_GUIDAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PRED_A_GUIDAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PRED_QUANAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-FROZENAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_NAMEAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_DATEAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_TIMEAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_NAMEAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_DATEAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_TIMEAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CANCEL_FLAGAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-_DATAAGINGAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PLACE_HOLDERAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-UPDKZAST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CLIENTPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TKONNPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TPOSNPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-SIDEPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-TPOSN_COMPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PR_ASPECTPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PR_COUNTPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-QUANTITYPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-UNITPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PR_DATEPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-COND_TYPEPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KBETRPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KONWAPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KPEINPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KMEINPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KRECHPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PRASP_GUIDPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_NAMEPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_DATEPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_TIMEPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_NAMEPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_DATEPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_TIMEPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-COM_GUIDPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-COND_TYPE2PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KBETR2PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KONWA2PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KPEIN2PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KMEIN2PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KRECH2PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-COND_TYPE3PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KBETR3PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KONWA3PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KPEIN3PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KMEIN3PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KRECH3PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-COND_TYPE4PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KBETR4PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KONWA4PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KPEIN4PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KMEIN4PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-KRECH4PRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ASSGMT_RELPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-FUTUREPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-EXT_REFPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-_DATAAGINGPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PLACE_HOLDERPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-UPDKZPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-NUMERATORPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-DENOMINATORPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-BASIS_MEINSPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-FUT_DESCRPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-FOR_COMMODITY_SINGLETONPRP sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CLIENTDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-A_GUIDDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PR_ASPECTDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PR_COUNTDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ASSGD_QUANDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-ASSGD_UOMDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-AD_GUIDDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_NAMEDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_DATEDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CR_TIMEDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_NAMEDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_DATEDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-CH_TIMEDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-_DATAAGINGDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-PLACE_HOLDERDST sy-vline
WA_WB2B_S_ASGT_DIST_ALV_STR-UPDKZDST sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.