ABAP Select data from SAP table BBP_IMS_HDR_IV_ADS_PROP 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 BBP_IMS_HDR_IV_ADS_PROP 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 BBP_IMS_HDR_IV_ADS_PROP. 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 BBP_IMS_HDR_IV_ADS_PROP 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_BBP_IMS_HDR_IV_ADS_PROP TYPE STANDARD TABLE OF BBP_IMS_HDR_IV_ADS_PROP, WA_BBP_IMS_HDR_IV_ADS_PROP TYPE BBP_IMS_HDR_IV_ADS_PROP, 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: <BBP_IMS_HDR_IV_ADS_PROP> TYPE BBP_IMS_HDR_IV_ADS_PROP. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_BBP_IMS_HDR_IV_ADS_PROP. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM BBP_IMS_HDR_IV_ADS_PROP INTO TABLE IT_BBP_IMS_HDR_IV_ADS_PROP. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM BBP_IMS_HDR_IV_ADS_PROP * INTO TABLE @DATA(IT_BBP_IMS_HDR_IV_ADS_PROP2). *--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_BBP_IMS_HDR_IV_ADS_PROP INDEX 1 INTO DATA(WA_BBP_IMS_HDR_IV_ADS_PROP2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_BBP_IMS_HDR_IV_ADS_PROP ASSIGNING <BBP_IMS_HDR_IV_ADS_PROP>.*To update a field value using a field symbol simply change the value via the field symbol pointer
<BBP_IMS_HDR_IV_ADS_PROP>-IMS_COMP_DESC_COMP2 = 1.
<BBP_IMS_HDR_IV_ADS_PROP>-CITY_COMP2 = 1.
<BBP_IMS_HDR_IV_ADS_PROP>-POSTL_COD1_COMP2 = 1.
<BBP_IMS_HDR_IV_ADS_PROP>-STREET_COMP2 = 1.
<BBP_IMS_HDR_IV_ADS_PROP>-HOUSE_NO_COMP2 = 1.
ENDLOOP. LOOP AT IT_BBP_IMS_HDR_IV_ADS_PROP INTO WA_BBP_IMS_HDR_IV_ADS_PROP. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_BBP_IMS_HDR_IV_ADS_PROP-REGION_COMP2, sy-vline,
WA_BBP_IMS_HDR_IV_ADS_PROP-COUNTRY_COMP2, sy-vline,
WA_BBP_IMS_HDR_IV_ADS_PROP-IMS_COMP_TEL_COMP2, sy-vline,
WA_BBP_IMS_HDR_IV_ADS_PROP-IMS_COMP_FAX_COMP2, sy-vline,
WA_BBP_IMS_HDR_IV_ADS_PROP-IMS_PAYMENT_ID_PAY2, sy-vline,
WA_BBP_IMS_HDR_IV_ADS_PROP-CITY_PAY2, sy-vline.
ENDLOOP. *Add any further fields from structure WA_BBP_IMS_HDR_IV_ADS_PROP 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_BBP_IMS_HDR_IV_ADS_PROP 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_BBP_IMS_HDR_IV_ADS_PROP INTO WA_BBP_IMS_HDR_IV_ADS_PROP. *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.
ENDFORM. *&---------------------------------------------------------------------* *& Form process_as_string_field_values *&---------------------------------------------------------------------* FORM process_as_string_field_values CHANGING p_EKKO LIKE wa_EKKO. TYPES: BEGIN OF T_BBP_IMS_HDR_IV_ADS_PROP_STR,
IMS_COMP_DESC_COMP2 TYPE STRING,
CITY_COMP2 TYPE STRING,
POSTL_COD1_COMP2 TYPE STRING,
STREET_COMP2 TYPE STRING,
HOUSE_NO_COMP2 TYPE STRING,
REGION_COMP2 TYPE STRING,
COUNTRY_COMP2 TYPE STRING,
IMS_COMP_TEL_COMP2 TYPE STRING,
IMS_COMP_FAX_COMP2 TYPE STRING,
IMS_PAYMENT_ID_PAY2 TYPE STRING,
CITY_PAY2 TYPE STRING,
POSTL_COD1_PAY2 TYPE STRING,
HOUSE_NO_PAY2 TYPE STRING,
STREET_PAY2 TYPE STRING,
REGION_PAY2 TYPE STRING,
TEL1_NUMBR_PAY2 TYPE STRING,
TEL1_EXT_PAY2 TYPE STRING,
FAX_NUMBER_PAY2 TYPE STRING,
COUNTRY_PAY2 TYPE STRING,
FAX_EXTENS_PAY2 TYPE STRING,
IMS_PAYMENT_DESC_PAY2 TYPE STRING,
IMS_ADDRESS_PAY2 TYPE STRING,
IMS_REQUESTER_ID_REQ2 TYPE STRING,
IMS_VENDOR_ID_VEND2 TYPE STRING,
IMS_VENDOR_DESC_VEND2 TYPE STRING,
CITY_VEND2 TYPE STRING,
POSTL_COD1_VEND2 TYPE STRING,
HOUSE_NO_VEND2 TYPE STRING,
STREET_VEND2 TYPE STRING,
REGION_VEND2 TYPE STRING,
TEL1_NUMBR_VEND2 TYPE STRING,
TEL1_EXT_VEND2 TYPE STRING,
FAX_NUMBER_VEND2 TYPE STRING,
COUNTRY_VEND2 TYPE STRING,
FAX_EXTENS_VEND2 TYPE STRING,
IMS_ADDRESS_VEND2 TYPE STRING,
IMS_COMP_DESC_COMP1 TYPE STRING,
CITY_COMP1 TYPE STRING,
POSTL_COD1_COMP1 TYPE STRING,
STREET_COMP1 TYPE STRING,
HOUSE_NO_COMP1 TYPE STRING,
REGION_COMP1 TYPE STRING,
COUNTRY_COMP1 TYPE STRING,
IMS_COMP_TEL_COMP1 TYPE STRING,
IMS_COMP_FAX_COMP1 TYPE STRING,
IMS_PAYMENT_ID_PAY1 TYPE STRING,
CITY_PAY1 TYPE STRING,
POSTL_COD1_PAY1 TYPE STRING,
HOUSE_NO_PAY1 TYPE STRING,
STREET_PAY1 TYPE STRING,
REGION_PAY1 TYPE STRING,
TEL1_NUMBR_PAY1 TYPE STRING,
TEL1_EXT_PAY1 TYPE STRING,
FAX_NUMBER_PAY1 TYPE STRING,
COUNTRY_PAY1 TYPE STRING,
FAX_EXTENS_PAY1 TYPE STRING,
IMS_PAYMENT_DESC_PAY1 TYPE STRING,
IMS_ADDRESS_PAY1 TYPE STRING,
IMS_REQUESTER_ID_REQ1 TYPE STRING,
IMS_VENDOR_ID TYPE STRING,
IMS_VENDOR_DESC_VEND1 TYPE STRING,
CITY_VEND1 TYPE STRING,
POSTL_COD1_VEND1 TYPE STRING,
HOUSE_NO_VEND1 TYPE STRING,
STREET_VEND1 TYPE STRING,
REGION_VEND1 TYPE STRING,
TEL1_NUMBR_VEND1 TYPE STRING,
TEL1_EXT_VEND1 TYPE STRING,
FAX_NUMBER_VEND1 TYPE STRING,
COUNTRY_VEND1 TYPE STRING,
FAX_EXTENS_VEND1 TYPE STRING,
IMS_ADDRESS_VEND1 TYPE STRING,
IMS_STATUS_FEED TYPE STRING,
IMS_COMMENT_FEED TYPE STRING,
IMS_SIGNATURE_FEED TYPE STRING,
IMS_SUBTOTAL_HDR1 TYPE STRING,
IMS_TAX_HDR1 TYPE STRING,
IMS_SHIPPING_HDR1 TYPE STRING,
IMS_BUKRS_HDR1 TYPE STRING,
IMS_BELNR_HDR1 TYPE STRING,
IMS_GJAHR_HDR1 TYPE STRING,
IMS_NAME_HDR1 TYPE STRING,
IMS_SOURCE_DOC_HDR1 TYPE STRING,
IMS_SOURCE_URL_HDR1 TYPE STRING,
GUID_HDR1 TYPE STRING,
DESCRIPTION_HDR1 TYPE STRING,
DESCR_LANGUAGE_HDR1 TYPE STRING,
POSTING_DATE_HDR1 TYPE STRING,
POSTING_DATE_FI_HDR1 TYPE STRING,
REF_DOC_NO_HDR1 TYPE STRING,
GROSS_AMOUNT_HDR1 TYPE STRING,
PMNTTRMS_HDR1 TYPE STRING,
DSCNT1_TO_HDR1 TYPE STRING,
DSCNT2_TO_HDR1 TYPE STRING,
DSCNT3_TO_HDR1 TYPE STRING,
CASH_DISC2_HDR1 TYPE STRING,
REASON_CODE_HDR1 TYPE STRING,
TOL_GROUP_HDR1 TYPE STRING,
PAYMENT_REF_NO_HDR1 TYPE STRING,
SRC_OBJECT_TYPE_HDR1 TYPE STRING,
CURRENCY_HDR1 TYPE STRING,
REF_OBJECT_ID_HDR1 TYPE STRING,
CO_CODE_HDR1 TYPE STRING,
NF_TYPE_HDR1 TYPE STRING,
WFL_CREATOR_TYPE_HDR1 TYPE STRING,
STOCH_CHECK_HDR1 TYPE STRING,
PMNTTRMS_TXT_HDR1 TYPE STRING,
LOGSYS_FI_HDR1 TYPE STRING,
BE_LOG_SYSTEM_HDR1 TYPE STRING,
BE_OBJECT_TYPE_HDR1 TYPE STRING,
BE_OBJECT_ID_HDR1 TYPE STRING,
BE_REFOBJ_TYPE_HDR1 TYPE STRING,
BE_REFOBJ_HDR1 TYPE STRING,
BE_REFOBJ_ITEM_HDR1 TYPE STRING,
BE_PUR_GROUP_HDR1 TYPE STRING,
BE_PUR_ORG_HDR1 TYPE STRING,
TRANSACTION_DATE_HDR1 TYPE STRING,
EXT_APPROVAL_IND_HDR1 TYPE STRING,
PMNT_BASIS_DATE_HDR1 TYPE STRING,
PROCESS_TYPE_HDR1 TYPE STRING,
OBJECT_ID_HDR1 TYPE STRING,
INP_TYPE_HDR1 TYPE STRING,
IMS_SUBTOTAL_HDR2 TYPE STRING,
IMS_TAX_HDR2 TYPE STRING,
IMS_SHIPPING_HDR2 TYPE STRING,
IMS_BUKRS_HDR2 TYPE STRING,
IMS_BELNR_HDR2 TYPE STRING,
IMS_GJAHR_HDR2 TYPE STRING,
IMS_NAME_HDR2 TYPE STRING,
IMS_SOURCE_DOC_HDR2 TYPE STRING,
IMS_SOURCE_URL_HDR2 TYPE STRING,
GUID_HDR2 TYPE STRING,
DESCRIPTION_HDR2 TYPE STRING,
DESCR_LANGUAGE_HDR2 TYPE STRING,
POSTING_DATE_HDR2 TYPE STRING,
POSTING_DATE_FI_HDR2 TYPE STRING,
REF_DOC_NO_HDR2 TYPE STRING,
GROSS_AMOUNT_HDR2 TYPE STRING,
PMNTTRMS_HDR2 TYPE STRING,
DSCNT1_TO_HDR2 TYPE STRING,
DSCNT2_TO_HDR2 TYPE STRING,
DSCNT3_TO_HDR2 TYPE STRING,
CASH_DISC1_HDR2 TYPE STRING,
CASH_DISC2_HDR2 TYPE STRING,
REASON_CODE_HDR2 TYPE STRING,
TOL_GROUP_HDR2 TYPE STRING,
PAYMENT_REF_NO_HDR2 TYPE STRING,
SRC_OBJECT_TYPE_HDR2 TYPE STRING,
CURRENCY_HDR2 TYPE STRING,
REF_OBJECT_ID_HDR2 TYPE STRING,
CO_CODE_HDR2 TYPE STRING,
NF_TYPE_HDR2 TYPE STRING,
WFL_CREATOR_TYPE_HDR2 TYPE STRING,
STOCH_CHECK_HDR2 TYPE STRING,
PMNTTRMS_TXT_HDR2 TYPE STRING,
LOGSYS_FI_HDR2 TYPE STRING,
BE_LOG_SYSTEM_HDR2 TYPE STRING,
BE_OBJECT_TYPE_HDR2 TYPE STRING,
BE_OBJECT_ID_HDR2 TYPE STRING,
BE_REFOBJ_TYPE_HDR2 TYPE STRING,
BE_REFOBJ_HDR2 TYPE STRING,
BE_REFOBJ_ITEM_HDR2 TYPE STRING,
BE_PUR_GROUP_HDR2 TYPE STRING,
BE_PUR_ORG_HDR2 TYPE STRING,
TRANSACTION_DATE_HDR2 TYPE STRING,
EXT_APPROVAL_IND_HDR2 TYPE STRING,
PMNT_BASIS_DATE_HDR2 TYPE STRING,
PROCESS_TYPE_HDR2 TYPE STRING,
OBJECT_ID_HDR2 TYPE STRING,
INP_TYPE_HDR2 TYPE STRING,END OF T_EKKO_STR. DATA: WA_BBP_IMS_HDR_IV_ADS_PROP_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_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_COMP_DESC_COMP2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CITY_COMP2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-POSTL_COD1_COMP2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-STREET_COMP2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-HOUSE_NO_COMP2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REGION_COMP2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-COUNTRY_COMP2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_COMP_TEL_COMP2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_COMP_FAX_COMP2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_PAYMENT_ID_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CITY_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-POSTL_COD1_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-HOUSE_NO_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-STREET_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REGION_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TEL1_NUMBR_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TEL1_EXT_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-FAX_NUMBER_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-COUNTRY_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-FAX_EXTENS_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_PAYMENT_DESC_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_ADDRESS_PAY2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_REQUESTER_ID_REQ2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_VENDOR_ID_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_VENDOR_DESC_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CITY_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-POSTL_COD1_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-HOUSE_NO_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-STREET_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REGION_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TEL1_NUMBR_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TEL1_EXT_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-FAX_NUMBER_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-COUNTRY_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-FAX_EXTENS_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_ADDRESS_VEND2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_COMP_DESC_COMP1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CITY_COMP1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-POSTL_COD1_COMP1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-STREET_COMP1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-HOUSE_NO_COMP1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REGION_COMP1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-COUNTRY_COMP1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_COMP_TEL_COMP1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_COMP_FAX_COMP1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_PAYMENT_ID_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CITY_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-POSTL_COD1_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-HOUSE_NO_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-STREET_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REGION_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TEL1_NUMBR_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TEL1_EXT_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-FAX_NUMBER_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-COUNTRY_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-FAX_EXTENS_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_PAYMENT_DESC_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_ADDRESS_PAY1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_REQUESTER_ID_REQ1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_VENDOR_ID sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_VENDOR_DESC_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CITY_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-POSTL_COD1_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-HOUSE_NO_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-STREET_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REGION_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TEL1_NUMBR_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TEL1_EXT_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-FAX_NUMBER_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-COUNTRY_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-FAX_EXTENS_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_ADDRESS_VEND1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_STATUS_FEED sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_COMMENT_FEED sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_SIGNATURE_FEED sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_SUBTOTAL_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_TAX_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_SHIPPING_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_BUKRS_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_BELNR_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_GJAHR_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_NAME_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_SOURCE_DOC_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_SOURCE_URL_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-GUID_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-DESCRIPTION_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-DESCR_LANGUAGE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-POSTING_DATE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-POSTING_DATE_FI_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REF_DOC_NO_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-GROSS_AMOUNT_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-PMNTTRMS_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-DSCNT1_TO_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-DSCNT2_TO_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-DSCNT3_TO_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CASH_DISC2_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REASON_CODE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TOL_GROUP_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-PAYMENT_REF_NO_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-SRC_OBJECT_TYPE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CURRENCY_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REF_OBJECT_ID_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CO_CODE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-NF_TYPE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-WFL_CREATOR_TYPE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-STOCH_CHECK_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-PMNTTRMS_TXT_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-LOGSYS_FI_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_LOG_SYSTEM_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_OBJECT_TYPE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_OBJECT_ID_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_REFOBJ_TYPE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_REFOBJ_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_REFOBJ_ITEM_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_PUR_GROUP_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_PUR_ORG_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TRANSACTION_DATE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-EXT_APPROVAL_IND_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-PMNT_BASIS_DATE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-PROCESS_TYPE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-OBJECT_ID_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-INP_TYPE_HDR1 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_SUBTOTAL_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_TAX_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_SHIPPING_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_BUKRS_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_BELNR_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_GJAHR_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_NAME_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_SOURCE_DOC_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-IMS_SOURCE_URL_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-GUID_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-DESCRIPTION_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-DESCR_LANGUAGE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-POSTING_DATE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-POSTING_DATE_FI_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REF_DOC_NO_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-GROSS_AMOUNT_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-PMNTTRMS_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-DSCNT1_TO_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-DSCNT2_TO_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-DSCNT3_TO_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CASH_DISC1_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CASH_DISC2_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REASON_CODE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TOL_GROUP_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-PAYMENT_REF_NO_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-SRC_OBJECT_TYPE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CURRENCY_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-REF_OBJECT_ID_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-CO_CODE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-NF_TYPE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-WFL_CREATOR_TYPE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-STOCH_CHECK_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-PMNTTRMS_TXT_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-LOGSYS_FI_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_LOG_SYSTEM_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_OBJECT_TYPE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_OBJECT_ID_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_REFOBJ_TYPE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_REFOBJ_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_REFOBJ_ITEM_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_PUR_GROUP_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-BE_PUR_ORG_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-TRANSACTION_DATE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-EXT_APPROVAL_IND_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-PMNT_BASIS_DATE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-PROCESS_TYPE_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-OBJECT_ID_HDR2 sy-vline
WA_BBP_IMS_HDR_IV_ADS_PROP_STR-INP_TYPE_HDR2 sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.