ABAP Select data from SAP table AOUTBDELIVERYH 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 AOUTBDELIVERYH 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 AOUTBDELIVERYH. 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 AOUTBDELIVERYH 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_AOUTBDELIVERYH TYPE STANDARD TABLE OF AOUTBDELIVERYH,
      WA_AOUTBDELIVERYH TYPE AOUTBDELIVERYH,
      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: <AOUTBDELIVERYH> TYPE AOUTBDELIVERYH.

*Process all fields in table header/work area as string values
  PERFORM process_as_string_field_values CHANGING wa_AOUTBDELIVERYH.

SELECT *
*restrict ABAP select to first 10 rows
 UP TO 10 ROWS      
  FROM AOUTBDELIVERYH
  INTO TABLE IT_AOUTBDELIVERYH.

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM AOUTBDELIVERYH
*  INTO TABLE @DATA(IT_AOUTBDELIVERYH2).
*--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_AOUTBDELIVERYH INDEX 1 INTO DATA(WA_AOUTBDELIVERYH2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_AOUTBDELIVERYH ASSIGNING <AOUTBDELIVERYH>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<AOUTBDELIVERYH>-MANDT = 1.
<AOUTBDELIVERYH>-DELIVERYDOCUMENT = 1.
<AOUTBDELIVERYH>-SDDOCUMENTCATEGORY = 1.
<AOUTBDELIVERYH>-DELIVERYDOCUMENTTYPE = 1.
<AOUTBDELIVERYH>-CREATEDBYUSER = 1.
ENDLOOP.

LOOP AT IT_AOUTBDELIVERYH INTO WA_AOUTBDELIVERYH.
*Write horizonal line to screen report.
  WRITE:/ sy-uline.

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_AOUTBDELIVERYH-CREATIONDATE, sy-vline,
WA_AOUTBDELIVERYH-CREATIONTIME, sy-vline,
WA_AOUTBDELIVERYH-LASTCHANGEDBYUSER, sy-vline,
WA_AOUTBDELIVERYH-LASTCHANGEDATE, sy-vline,
WA_AOUTBDELIVERYH-SHIPPINGPOINT, sy-vline,
WA_AOUTBDELIVERYH-SALESORGANIZATION, sy-vline.
ENDLOOP. *Add any further fields from structure WA_AOUTBDELIVERYH 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_AOUTBDELIVERYH 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_AOUTBDELIVERYH INTO WA_AOUTBDELIVERYH. *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 DELIVERYDOCUMENT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_AOUTBDELIVERYH-DELIVERYDOCUMENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_AOUTBDELIVERYH-DELIVERYDOCUMENT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field SUPPLIER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_AOUTBDELIVERYH-SUPPLIER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_AOUTBDELIVERYH-SUPPLIER.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field ORDERID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_AOUTBDELIVERYH-ORDERID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_AOUTBDELIVERYH-ORDERID.
WRITE:/ 'New Value:', ld_input.

*Conversion exit CUNIT, internal->external for field HEADERWEIGHTUNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_AOUTBDELIVERYH-HEADERWEIGHTUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_AOUTBDELIVERYH-HEADERWEIGHTUNIT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit CUNIT, internal->external for field HEADERVOLUMEUNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_AOUTBDELIVERYH-HEADERVOLUMEUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_AOUTBDELIVERYH-HEADERVOLUMEUNIT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field GOODSISSUEORRECEIPTSLIPNUMBER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_AOUTBDELIVERYH-GOODSISSUEORRECEIPTSLIPNUMBER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_AOUTBDELIVERYH-GOODSISSUEORRECEIPTSLIPNUMBER.
WRITE:/ 'New Value:', ld_input.

*Conversion exit MATN1, internal->external for field MEANSOFTRANSPORTREFMATERIAL CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_AOUTBDELIVERYH-MEANSOFTRANSPORTREFMATERIAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_AOUTBDELIVERYH-MEANSOFTRANSPORTREFMATERIAL.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field SHIPTOPARTY CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_AOUTBDELIVERYH-SHIPTOPARTY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_AOUTBDELIVERYH-SHIPTOPARTY.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field INTERNALFINANCIALDOCUMENT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_AOUTBDELIVERYH-INTERNALFINANCIALDOCUMENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_AOUTBDELIVERYH-INTERNALFINANCIALDOCUMENT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field SOLDTOPARTY CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_AOUTBDELIVERYH-SOLDTOPARTY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_AOUTBDELIVERYH-SOLDTOPARTY.
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_AOUTBDELIVERYH_STR,
MANDT TYPE STRING,
DELIVERYDOCUMENT TYPE STRING,
SDDOCUMENTCATEGORY TYPE STRING,
DELIVERYDOCUMENTTYPE TYPE STRING,
CREATEDBYUSER TYPE STRING,
CREATIONDATE TYPE STRING,
CREATIONTIME TYPE STRING,
LASTCHANGEDBYUSER TYPE STRING,
LASTCHANGEDATE TYPE STRING,
SHIPPINGPOINT TYPE STRING,
SALESORGANIZATION TYPE STRING,
SALESOFFICE TYPE STRING,
COMPLETEDELIVERYISDEFINED TYPE STRING,
ORDERCOMBINATIONISALLOWED TYPE STRING,
DELIVERYPRIORITY TYPE STRING,
DELIVERYBLOCKREASON TYPE STRING,
SUPPLIER TYPE STRING,
DELIVERYDOCUMENTBYSUPPLIER TYPE STRING,
DELIVERYISINPLANT TYPE STRING,
RECEIVINGPLANT TYPE STRING,
WAREHOUSE TYPE STRING,
ISEXPORTDELIVERY TYPE STRING,
ORDERID TYPE STRING,
HEADERGROSSWEIGHT TYPE STRING,
HEADERNETWEIGHT TYPE STRING,
HEADERWEIGHTUNIT TYPE STRING,
HEADERVOLUME TYPE STRING,
HEADERVOLUMEUNIT TYPE STRING,
ISDELIVERYFORSINGLEWAREHOUSE TYPE STRING,
GOODSISSUEORRECEIPTSLIPNUMBER TYPE STRING,
WAREHOUSEGATE TYPE STRING,
WAREHOUSESTAGINGAREA TYPE STRING,
MEANSOFTRANSPORTREFMATERIAL TYPE STRING,
SPECIALPROCESSINGCODE TYPE STRING,
EXTERNALIDENTIFICATIONTYPE TYPE STRING,
DELIVERYVERSION TYPE STRING,
PICKEDITEMSLOCATION TYPE STRING,
DOCUMENTDATE TYPE STRING,
PICKINGDATE TYPE STRING,
PICKINGTIME TYPE STRING,
TOTALNUMBEROFPACKAGE TYPE STRING,
LOADINGPOINT TYPE STRING,
LOADINGDATE TYPE STRING,
LOADINGTIME TYPE STRING,
BILLOFLADING TYPE STRING,
HANDLINGUNITINSTOCK TYPE STRING,
SHIPTOPARTY TYPE STRING,
SHIPPINGTYPE TYPE STRING,
DELIVERYDATE TYPE STRING,
DELIVERYTIME TYPE STRING,
SHIPPINGCONDITION TYPE STRING,
SHIPMENTBLOCKREASON TYPE STRING,
TRANSPORTATIONPLANNINGDATE TYPE STRING,
TRANSPORTATIONPLANNINGTIME TYPE STRING,
PROPOSEDDELIVERYROUTE TYPE STRING,
ACTUALDELIVERYROUTE TYPE STRING,
ROUTESCHEDULE TYPE STRING,
PLANNEDGOODSISSUEDATE TYPE STRING,
GOODSISSUETIME TYPE STRING,
ACTUALGOODSMOVEMENTDATE TYPE STRING,
ACTUALGOODSMOVEMENTTIME TYPE STRING,
INCOTERMSCLASSIFICATION TYPE STRING,
INCOTERMSTRANSFERLOCATION TYPE STRING,
EXTERNALTRANSPORTSYSTEM TYPE STRING,
TRANSPORTATIONGROUP TYPE STRING,
MEANSOFTRANSPORT TYPE STRING,
MEANSOFTRANSPORTTYPE TYPE STRING,
UNLOADINGPOINTNAME TYPE STRING,
PROOFOFDELIVERYDATE TYPE STRING,
CONFIRMATIONTIME TYPE STRING,
FACTORYCALENDARBYCUSTOMER TYPE STRING,
INTERCOMPANYBILLINGDATE TYPE STRING,
BILLINGDOCUMENTDATE TYPE STRING,
HEADERBILLINGBLOCKREASON TYPE STRING,
INTERNALFINANCIALDOCUMENT TYPE STRING,
PAYMENTGUARANTEEPROCEDURE TYPE STRING,
DEPRECIATIONPERCENTAGE TYPE STRING,
SOLDTOPARTY TYPE STRING,
CUSTOMERGROUP TYPE STRING,
SALESDISTRICT TYPE STRING,
TRANSACTIONCURRENCY TYPE STRING,
STATISTICSCURRENCY TYPE STRING,
OVERALLINTCOBILLINGSTATUS TYPE STRING,
OVERALLSDPROCESSSTATUS TYPE STRING,
TOTALBLOCKSTATUS TYPE STRING,
OVERALLDELIVCONFSTATUS TYPE STRING,
TRANSPORTATIONPLANNINGSTATUS TYPE STRING,
OVERALLPICKINGCONFSTATUS TYPE STRING,
OVERALLPICKINGSTATUS TYPE STRING,
OVERALLPACKINGSTATUS TYPE STRING,
OVERALLWAREHOUSEACTIVITYSTATUS TYPE STRING,
DISTRSTATUSBYDECENTRALIZEDWRHS TYPE STRING,
OVERALLGOODSMOVEMENTSTATUS TYPE STRING,
OVERALLDELIVRELTDBILLGSTATUS TYPE STRING,
OVERALLPROOFOFDELIVERYSTATUS TYPE STRING,
HDRGENERALINCOMPLETIONSTATUS TYPE STRING,
HEADERDELIVINCOMPLETIONSTATUS TYPE STRING,
HEADERPICKGINCOMPLETIONSTATUS TYPE STRING,
HEADERPACKINGINCOMPLETIONSTS TYPE STRING,
HDRGOODSMVTINCOMPLETIONSTATUS TYPE STRING,
HEADERBILLGINCOMPLETIONSTATUS TYPE STRING,
OVRLITMGENERALINCOMPLETIONSTS TYPE STRING,
OVRLITMPACKINGINCOMPLETIONSTS TYPE STRING,
OVRLITMPICKINGINCOMPLETIONSTS TYPE STRING,
OVRLITMDELIVINCOMPLETIONSTS TYPE STRING,
OVRLITMGDSMVTINCOMPLETIONSTS TYPE STRING,
TOTALCREDITCHECKSTATUS TYPE STRING,
SHIPPINGLOCATIONTIMEZONE TYPE STRING,
RECEIVINGLOCATIONTIMEZONE TYPE STRING,END OF T_EKKO_STR. DATA: WA_AOUTBDELIVERYH_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_AOUTBDELIVERYH_STR-MANDT sy-vline
WA_AOUTBDELIVERYH_STR-DELIVERYDOCUMENT sy-vline
WA_AOUTBDELIVERYH_STR-SDDOCUMENTCATEGORY sy-vline
WA_AOUTBDELIVERYH_STR-DELIVERYDOCUMENTTYPE sy-vline
WA_AOUTBDELIVERYH_STR-CREATEDBYUSER sy-vline
WA_AOUTBDELIVERYH_STR-CREATIONDATE sy-vline
WA_AOUTBDELIVERYH_STR-CREATIONTIME sy-vline
WA_AOUTBDELIVERYH_STR-LASTCHANGEDBYUSER sy-vline
WA_AOUTBDELIVERYH_STR-LASTCHANGEDATE sy-vline
WA_AOUTBDELIVERYH_STR-SHIPPINGPOINT sy-vline
WA_AOUTBDELIVERYH_STR-SALESORGANIZATION sy-vline
WA_AOUTBDELIVERYH_STR-SALESOFFICE sy-vline
WA_AOUTBDELIVERYH_STR-COMPLETEDELIVERYISDEFINED sy-vline
WA_AOUTBDELIVERYH_STR-ORDERCOMBINATIONISALLOWED sy-vline
WA_AOUTBDELIVERYH_STR-DELIVERYPRIORITY sy-vline
WA_AOUTBDELIVERYH_STR-DELIVERYBLOCKREASON sy-vline
WA_AOUTBDELIVERYH_STR-SUPPLIER sy-vline
WA_AOUTBDELIVERYH_STR-DELIVERYDOCUMENTBYSUPPLIER sy-vline
WA_AOUTBDELIVERYH_STR-DELIVERYISINPLANT sy-vline
WA_AOUTBDELIVERYH_STR-RECEIVINGPLANT sy-vline
WA_AOUTBDELIVERYH_STR-WAREHOUSE sy-vline
WA_AOUTBDELIVERYH_STR-ISEXPORTDELIVERY sy-vline
WA_AOUTBDELIVERYH_STR-ORDERID sy-vline
WA_AOUTBDELIVERYH_STR-HEADERGROSSWEIGHT sy-vline
WA_AOUTBDELIVERYH_STR-HEADERNETWEIGHT sy-vline
WA_AOUTBDELIVERYH_STR-HEADERWEIGHTUNIT sy-vline
WA_AOUTBDELIVERYH_STR-HEADERVOLUME sy-vline
WA_AOUTBDELIVERYH_STR-HEADERVOLUMEUNIT sy-vline
WA_AOUTBDELIVERYH_STR-ISDELIVERYFORSINGLEWAREHOUSE sy-vline
WA_AOUTBDELIVERYH_STR-GOODSISSUEORRECEIPTSLIPNUMBER sy-vline
WA_AOUTBDELIVERYH_STR-WAREHOUSEGATE sy-vline
WA_AOUTBDELIVERYH_STR-WAREHOUSESTAGINGAREA sy-vline
WA_AOUTBDELIVERYH_STR-MEANSOFTRANSPORTREFMATERIAL sy-vline
WA_AOUTBDELIVERYH_STR-SPECIALPROCESSINGCODE sy-vline
WA_AOUTBDELIVERYH_STR-EXTERNALIDENTIFICATIONTYPE sy-vline
WA_AOUTBDELIVERYH_STR-DELIVERYVERSION sy-vline
WA_AOUTBDELIVERYH_STR-PICKEDITEMSLOCATION sy-vline
WA_AOUTBDELIVERYH_STR-DOCUMENTDATE sy-vline
WA_AOUTBDELIVERYH_STR-PICKINGDATE sy-vline
WA_AOUTBDELIVERYH_STR-PICKINGTIME sy-vline
WA_AOUTBDELIVERYH_STR-TOTALNUMBEROFPACKAGE sy-vline
WA_AOUTBDELIVERYH_STR-LOADINGPOINT sy-vline
WA_AOUTBDELIVERYH_STR-LOADINGDATE sy-vline
WA_AOUTBDELIVERYH_STR-LOADINGTIME sy-vline
WA_AOUTBDELIVERYH_STR-BILLOFLADING sy-vline
WA_AOUTBDELIVERYH_STR-HANDLINGUNITINSTOCK sy-vline
WA_AOUTBDELIVERYH_STR-SHIPTOPARTY sy-vline
WA_AOUTBDELIVERYH_STR-SHIPPINGTYPE sy-vline
WA_AOUTBDELIVERYH_STR-DELIVERYDATE sy-vline
WA_AOUTBDELIVERYH_STR-DELIVERYTIME sy-vline
WA_AOUTBDELIVERYH_STR-SHIPPINGCONDITION sy-vline
WA_AOUTBDELIVERYH_STR-SHIPMENTBLOCKREASON sy-vline
WA_AOUTBDELIVERYH_STR-TRANSPORTATIONPLANNINGDATE sy-vline
WA_AOUTBDELIVERYH_STR-TRANSPORTATIONPLANNINGTIME sy-vline
WA_AOUTBDELIVERYH_STR-PROPOSEDDELIVERYROUTE sy-vline
WA_AOUTBDELIVERYH_STR-ACTUALDELIVERYROUTE sy-vline
WA_AOUTBDELIVERYH_STR-ROUTESCHEDULE sy-vline
WA_AOUTBDELIVERYH_STR-PLANNEDGOODSISSUEDATE sy-vline
WA_AOUTBDELIVERYH_STR-GOODSISSUETIME sy-vline
WA_AOUTBDELIVERYH_STR-ACTUALGOODSMOVEMENTDATE sy-vline
WA_AOUTBDELIVERYH_STR-ACTUALGOODSMOVEMENTTIME sy-vline
WA_AOUTBDELIVERYH_STR-INCOTERMSCLASSIFICATION sy-vline
WA_AOUTBDELIVERYH_STR-INCOTERMSTRANSFERLOCATION sy-vline
WA_AOUTBDELIVERYH_STR-EXTERNALTRANSPORTSYSTEM sy-vline
WA_AOUTBDELIVERYH_STR-TRANSPORTATIONGROUP sy-vline
WA_AOUTBDELIVERYH_STR-MEANSOFTRANSPORT sy-vline
WA_AOUTBDELIVERYH_STR-MEANSOFTRANSPORTTYPE sy-vline
WA_AOUTBDELIVERYH_STR-UNLOADINGPOINTNAME sy-vline
WA_AOUTBDELIVERYH_STR-PROOFOFDELIVERYDATE sy-vline
WA_AOUTBDELIVERYH_STR-CONFIRMATIONTIME sy-vline
WA_AOUTBDELIVERYH_STR-FACTORYCALENDARBYCUSTOMER sy-vline
WA_AOUTBDELIVERYH_STR-INTERCOMPANYBILLINGDATE sy-vline
WA_AOUTBDELIVERYH_STR-BILLINGDOCUMENTDATE sy-vline
WA_AOUTBDELIVERYH_STR-HEADERBILLINGBLOCKREASON sy-vline
WA_AOUTBDELIVERYH_STR-INTERNALFINANCIALDOCUMENT sy-vline
WA_AOUTBDELIVERYH_STR-PAYMENTGUARANTEEPROCEDURE sy-vline
WA_AOUTBDELIVERYH_STR-DEPRECIATIONPERCENTAGE sy-vline
WA_AOUTBDELIVERYH_STR-SOLDTOPARTY sy-vline
WA_AOUTBDELIVERYH_STR-CUSTOMERGROUP sy-vline
WA_AOUTBDELIVERYH_STR-SALESDISTRICT sy-vline
WA_AOUTBDELIVERYH_STR-TRANSACTIONCURRENCY sy-vline
WA_AOUTBDELIVERYH_STR-STATISTICSCURRENCY sy-vline
WA_AOUTBDELIVERYH_STR-OVERALLINTCOBILLINGSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-OVERALLSDPROCESSSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-TOTALBLOCKSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-OVERALLDELIVCONFSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-TRANSPORTATIONPLANNINGSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-OVERALLPICKINGCONFSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-OVERALLPICKINGSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-OVERALLPACKINGSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-OVERALLWAREHOUSEACTIVITYSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-DISTRSTATUSBYDECENTRALIZEDWRHS sy-vline
WA_AOUTBDELIVERYH_STR-OVERALLGOODSMOVEMENTSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-OVERALLDELIVRELTDBILLGSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-OVERALLPROOFOFDELIVERYSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-HDRGENERALINCOMPLETIONSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-HEADERDELIVINCOMPLETIONSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-HEADERPICKGINCOMPLETIONSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-HEADERPACKINGINCOMPLETIONSTS sy-vline
WA_AOUTBDELIVERYH_STR-HDRGOODSMVTINCOMPLETIONSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-HEADERBILLGINCOMPLETIONSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-OVRLITMGENERALINCOMPLETIONSTS sy-vline
WA_AOUTBDELIVERYH_STR-OVRLITMPACKINGINCOMPLETIONSTS sy-vline
WA_AOUTBDELIVERYH_STR-OVRLITMPICKINGINCOMPLETIONSTS sy-vline
WA_AOUTBDELIVERYH_STR-OVRLITMDELIVINCOMPLETIONSTS sy-vline
WA_AOUTBDELIVERYH_STR-OVRLITMGDSMVTINCOMPLETIONSTS sy-vline
WA_AOUTBDELIVERYH_STR-TOTALCREDITCHECKSTATUS sy-vline
WA_AOUTBDELIVERYH_STR-SHIPPINGLOCATIONTIMEZONE sy-vline
WA_AOUTBDELIVERYH_STR-RECEIVINGLOCATIONTIMEZONE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.