ABAP Select data from SAP table TDS_GODATA_SO_ITEM 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 TDS_GODATA_SO_ITEM 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 TDS_GODATA_SO_ITEM. 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 TDS_GODATA_SO_ITEM 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_TDS_GODATA_SO_ITEM TYPE STANDARD TABLE OF TDS_GODATA_SO_ITEM, WA_TDS_GODATA_SO_ITEM TYPE TDS_GODATA_SO_ITEM, 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: <TDS_GODATA_SO_ITEM> TYPE TDS_GODATA_SO_ITEM. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_TDS_GODATA_SO_ITEM. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM TDS_GODATA_SO_ITEM INTO TABLE IT_TDS_GODATA_SO_ITEM. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM TDS_GODATA_SO_ITEM * INTO TABLE @DATA(IT_TDS_GODATA_SO_ITEM2). *--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_TDS_GODATA_SO_ITEM INDEX 1 INTO DATA(WA_TDS_GODATA_SO_ITEM2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_TDS_GODATA_SO_ITEM ASSIGNING <TDS_GODATA_SO_ITEM>.*To update a field value using a field symbol simply change the value via the field symbol pointer
<TDS_GODATA_SO_ITEM>-DRAFT_ID = 1.
<TDS_GODATA_SO_ITEM>-DOCUMENT_ID = 1.
<TDS_GODATA_SO_ITEM>-HANDLE = 1.
<TDS_GODATA_SO_ITEM>-ITEM_ID = 1.
<TDS_GODATA_SO_ITEM>-CATEGORY_CODE = 1.
ENDLOOP. LOOP AT IT_TDS_GODATA_SO_ITEM INTO WA_TDS_GODATA_SO_ITEM. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_TDS_GODATA_SO_ITEM-MATERIAL_ID, sy-vline,
WA_TDS_GODATA_SO_ITEM-ORDER_QTY, sy-vline,
WA_TDS_GODATA_SO_ITEM-CONFIRMED_QTY, sy-vline,
WA_TDS_GODATA_SO_ITEM-SALES_UOM, sy-vline,
WA_TDS_GODATA_SO_ITEM-BASIC_UOM, sy-vline,
WA_TDS_GODATA_SO_ITEM-REQ_DELIVERY_DATE, sy-vline.
ENDLOOP. *Add any further fields from structure WA_TDS_GODATA_SO_ITEM 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_TDS_GODATA_SO_ITEM 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_TDS_GODATA_SO_ITEM INTO WA_TDS_GODATA_SO_ITEM. *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 DOCUMENT_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-DOCUMENT_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-DOCUMENT_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit MATN1, internal->external for field MATERIAL_ID CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-MATERIAL_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-MATERIAL_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field SALES_UOM CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-SALES_UOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-SALES_UOM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field BASIC_UOM CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-BASIC_UOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-BASIC_UOM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ABPSP, internal->external for field WBS_ELEMENT_ID CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-WBS_ELEMENT_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-WBS_ELEMENT_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ABPSN, internal->external for field WBS_ELEMENT_ID_EXT CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-WBS_ELEMENT_ID_EXT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-WBS_ELEMENT_ID_EXT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit EXCRT, internal->external for field EXCHANGE_RATE CALL FUNCTION 'CONVERSION_EXIT_EXCRT_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-EXCHANGE_RATE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-EXCHANGE_RATE.
WRITE:/ 'New Value:', ld_input.
*Conversion exit EXCRT, internal->external for field EXCHANGE_RATE_FI CALL FUNCTION 'CONVERSION_EXIT_EXCRT_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-EXCHANGE_RATE_FI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-EXCHANGE_RATE_FI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field TARGET_UOM CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-TARGET_UOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-TARGET_UOM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field PROFIT_CENTER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-PROFIT_CENTER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-PROFIT_CENTER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field EXTERNAL_ITEM_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-EXTERNAL_ITEM_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-EXTERNAL_ITEM_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit MATN1, internal->external for field PRICING_REFERENCE_MATERIAL CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-PRICING_REFERENCE_MATERIAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-PRICING_REFERENCE_MATERIAL.
WRITE:/ 'New Value:', ld_input.
*Conversion exit EAN11, internal->external for field INTERNATIONAL_ARTICLE_NO CALL FUNCTION 'CONVERSION_EXIT_EAN11_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-INTERNATIONAL_ARTICLE_NO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-INTERNATIONAL_ARTICLE_NO.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field REQUESTED_UOM CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-REQUESTED_UOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-REQUESTED_UOM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field REF_DOCUMENT_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-REF_DOCUMENT_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-REF_DOCUMENT_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field WEIGHT_UOM CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-WEIGHT_UOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-WEIGHT_UOM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field VOLUME_UOM CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-VOLUME_UOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-VOLUME_UOM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field CONTRACT_ACCOUNT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_TDS_GODATA_SO_ITEM-CONTRACT_ACCOUNT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_TDS_GODATA_SO_ITEM-CONTRACT_ACCOUNT.
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_TDS_GODATA_SO_ITEM_STR,
DRAFT_ID TYPE STRING,
DOCUMENT_ID TYPE STRING,
HANDLE TYPE STRING,
ITEM_ID TYPE STRING,
CATEGORY_CODE TYPE STRING,
MATERIAL_ID TYPE STRING,
ORDER_QTY TYPE STRING,
CONFIRMED_QTY TYPE STRING,
SALES_UOM TYPE STRING,
BASIC_UOM TYPE STRING,
REQ_DELIVERY_DATE TYPE STRING,
ITEM_DESCR TYPE STRING,
CUSTOMER_MATERIAL_ID TYPE STRING,
PURCHASE_ORDER_ID TYPE STRING,
PURCHASE_ORDER_DATE TYPE STRING,
SHIP_TO_PURCHASE_ORDER_ID TYPE STRING,
PLANT_ID TYPE STRING,
NET_AMOUNT TYPE STRING,
TAX_AMOUNT TYPE STRING,
TOTAL_AMOUNT TYPE STRING,
DOCUMENT_CURRENCY_CODE TYPE STRING,
REJECTION_REASON_CODE TYPE STRING,
CREATED_BY TYPE STRING,
CREATED_ON TYPE STRING,
CHANGED_BY TYPE STRING,
CHANGED_ON TYPE STRING,
WBS_ELEMENT_ID TYPE STRING,
WBS_ELEMENT_ID_EXT TYPE STRING,
HIGHER_LEVEL_ITEM_ID TYPE STRING,
HIGHER_LEVEL_ITEM_USAGE TYPE STRING,
BILLING_BLOCK_CODE TYPE STRING,
BILLING_DATE TYPE STRING,
PRGBZ TYPE STRING,
ETDAT TYPE STRING,
DELIVERY_PRIORITY_CODE TYPE STRING,
INCOTERMS_CODE TYPE STRING,
INCOTERMS_LOCATION TYPE STRING,
INCOTERMS_LOCATION_1 TYPE STRING,
INCOTERMS_LOCATION_2 TYPE STRING,
INCOTERMS_VERSION TYPE STRING,
PRODUCT_TAX_CLASSIF_1 TYPE STRING,
PRODUCT_TAX_CLASSIF_2 TYPE STRING,
PRODUCT_TAX_CLASSIF_3 TYPE STRING,
PRODUCT_TAX_CLASSIF_4 TYPE STRING,
PRODUCT_TAX_CLASSIF_5 TYPE STRING,
PRODUCT_TAX_CLASSIF_6 TYPE STRING,
PRODUCT_TAX_CLASSIF_7 TYPE STRING,
PRODUCT_TAX_CLASSIF_8 TYPE STRING,
PRODUCT_TAX_CLASSIF_9 TYPE STRING,
MATL_ACCOUNT_ASSIGNMENT_GRP TYPE STRING,
PAYMENT_TERM_CODE TYPE STRING,
PRICING_DATE TYPE STRING,
EXCHANGE_RATE TYPE STRING,
EXCHANGE_RATE_EXT TYPE STRING,
EXCHANGE_RATE_FI TYPE STRING,
DIP_PROFILE_ID TYPE STRING,
TARGET_QTY TYPE STRING,
TARGET_UOM TYPE STRING,
PARTIAL_DELIVERY_CODE TYPE STRING,
RESOURCE_ID TYPE STRING,
NUMBER_ALLOWED_DLVS TYPE STRING,
PBS_STATE TYPE STRING,
UPDATE_INDICATOR TYPE STRING,
IS_NEW TYPE STRING,
PROFIT_CENTER TYPE STRING,
FIXED_VALUE_DATE TYPE STRING,
ADDITIONAL_VALUE_DAYS TYPE STRING,
RELEVANT_FOR_POD TYPE STRING,
CUSTOMER_COND_GRP1_CODE TYPE STRING,
CUSTOMER_COND_GRP2_CODE TYPE STRING,
CUSTOMER_COND_GRP3_CODE TYPE STRING,
CUSTOMER_COND_GRP4_CODE TYPE STRING,
CUSTOMER_COND_GRP5_CODE TYPE STRING,
CUSTOMER_GROUP_CODE TYPE STRING,
MATERIAL_GROUP1_CODE TYPE STRING,
MATERIAL_GROUP2_CODE TYPE STRING,
MATERIAL_GROUP3_CODE TYPE STRING,
MATERIAL_GROUP4_CODE TYPE STRING,
MATERIAL_GROUP5_CODE TYPE STRING,
EXTERNAL_ITEM_ID TYPE STRING,
MATERIAL_GROUP_ID TYPE STRING,
MATERIAL_PRICING_GROUP_ID TYPE STRING,
PRICING_REFERENCE_MATERIAL TYPE STRING,
MATERIAL_SUBSTITUTION_REASON TYPE STRING,
PURCHASE_ORDER_TYPE_CODE TYPE STRING,
INTERNATIONAL_ARTICLE_NO TYPE STRING,
RECEIVING_POINT_ID TYPE STRING,
REASON_CODE TYPE STRING,
DUMMY_SLSDOCITEM_INCL_EEW_PS TYPE STRING,
REQUESTED_QTY TYPE STRING,
REQUESTED_UOM TYPE STRING,
UNLOADING_POINT_ID TYPE STRING,
IFRS15_RELEVANCE TYPE STRING,
IFRS15_TOTAL_SSP TYPE STRING,
STORAGE_LOCATION_ID TYPE STRING,
SHIPPING_POINT_ID TYPE STRING,
SHIPPING_TYPE_CODE TYPE STRING,
CONF_DELIVERY_DATE TYPE STRING,
DELIVERY_DATE_TYPE_RULE TYPE STRING,
ROUTE_ID TYPE STRING,
DELIVERY_GROUP_ID TYPE STRING,
CAPPED_NET_AMOUNT TYPE STRING,
CAPPED_NET_AMOUNT_ALERT_THLD TYPE STRING,
EXT_REF_ITEM_ID TYPE STRING,
REF_DOCUMENT_ID TYPE STRING,
REF_ITEM_ID TYPE STRING,
SUBTOTAL_1_AMOUNT TYPE STRING,
SUBTOTAL_2_AMOUNT TYPE STRING,
SUBTOTAL_3_AMOUNT TYPE STRING,
SUBTOTAL_4_AMOUNT TYPE STRING,
SUBTOTAL_5_AMOUNT TYPE STRING,
SUBTOTAL_6_AMOUNT TYPE STRING,
COST_AMOUNT TYPE STRING,
BATCH_ID TYPE STRING,
BUSINESS_AREA_ID TYPE STRING,
CONFIGURATION TYPE STRING,
GROSS_WEIGHT TYPE STRING,
NET_WEIGHT TYPE STRING,
WEIGHT_UOM TYPE STRING,
VOLUME TYPE STRING,
VOLUME_UOM TYPE STRING,
SOLUTION_ORDER_ITEM_ID TYPE STRING,
CUSTOMER_PRICE_GROUP TYPE STRING,
ORDER_COMBINATION_IND TYPE STRING,
CONTRACT_ACCOUNT TYPE STRING,
SERVICES_RENDERED_DATE TYPE STRING,
REQUIREMENTSEGMENT TYPE STRING,
PRODUCTSEASONYEAR TYPE STRING,
PRODUCTSEASON TYPE STRING,
PRODUCTCOLLECTION TYPE STRING,
PRODUCTTHEME TYPE STRING,
FASHIONCANCELDATE TYPE STRING,
FASHIONREJECTIONQTY TYPE STRING,
FASHIONREJECTIONREASON TYPE STRING,
FASHIONREJECTIONTYPE TYPE STRING,END OF T_EKKO_STR. DATA: WA_TDS_GODATA_SO_ITEM_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_TDS_GODATA_SO_ITEM_STR-DRAFT_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-DOCUMENT_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-HANDLE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-ITEM_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CATEGORY_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-MATERIAL_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-ORDER_QTY sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CONFIRMED_QTY sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SALES_UOM sy-vline
WA_TDS_GODATA_SO_ITEM_STR-BASIC_UOM sy-vline
WA_TDS_GODATA_SO_ITEM_STR-REQ_DELIVERY_DATE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-ITEM_DESCR sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CUSTOMER_MATERIAL_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PURCHASE_ORDER_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PURCHASE_ORDER_DATE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SHIP_TO_PURCHASE_ORDER_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PLANT_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-NET_AMOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-TAX_AMOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-TOTAL_AMOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-DOCUMENT_CURRENCY_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-REJECTION_REASON_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CREATED_BY sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CREATED_ON sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CHANGED_BY sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CHANGED_ON sy-vline
WA_TDS_GODATA_SO_ITEM_STR-WBS_ELEMENT_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-WBS_ELEMENT_ID_EXT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-HIGHER_LEVEL_ITEM_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-HIGHER_LEVEL_ITEM_USAGE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-BILLING_BLOCK_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-BILLING_DATE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRGBZ sy-vline
WA_TDS_GODATA_SO_ITEM_STR-ETDAT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-DELIVERY_PRIORITY_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-INCOTERMS_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-INCOTERMS_LOCATION sy-vline
WA_TDS_GODATA_SO_ITEM_STR-INCOTERMS_LOCATION_1 sy-vline
WA_TDS_GODATA_SO_ITEM_STR-INCOTERMS_LOCATION_2 sy-vline
WA_TDS_GODATA_SO_ITEM_STR-INCOTERMS_VERSION sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCT_TAX_CLASSIF_1 sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCT_TAX_CLASSIF_2 sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCT_TAX_CLASSIF_3 sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCT_TAX_CLASSIF_4 sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCT_TAX_CLASSIF_5 sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCT_TAX_CLASSIF_6 sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCT_TAX_CLASSIF_7 sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCT_TAX_CLASSIF_8 sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCT_TAX_CLASSIF_9 sy-vline
WA_TDS_GODATA_SO_ITEM_STR-MATL_ACCOUNT_ASSIGNMENT_GRP sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PAYMENT_TERM_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRICING_DATE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-EXCHANGE_RATE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-EXCHANGE_RATE_EXT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-EXCHANGE_RATE_FI sy-vline
WA_TDS_GODATA_SO_ITEM_STR-DIP_PROFILE_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-TARGET_QTY sy-vline
WA_TDS_GODATA_SO_ITEM_STR-TARGET_UOM sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PARTIAL_DELIVERY_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-RESOURCE_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-NUMBER_ALLOWED_DLVS sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PBS_STATE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-UPDATE_INDICATOR sy-vline
WA_TDS_GODATA_SO_ITEM_STR-IS_NEW sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PROFIT_CENTER sy-vline
WA_TDS_GODATA_SO_ITEM_STR-FIXED_VALUE_DATE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-ADDITIONAL_VALUE_DAYS sy-vline
WA_TDS_GODATA_SO_ITEM_STR-RELEVANT_FOR_POD sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CUSTOMER_COND_GRP1_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CUSTOMER_COND_GRP2_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CUSTOMER_COND_GRP3_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CUSTOMER_COND_GRP4_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CUSTOMER_COND_GRP5_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CUSTOMER_GROUP_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-MATERIAL_GROUP1_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-MATERIAL_GROUP2_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-MATERIAL_GROUP3_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-MATERIAL_GROUP4_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-MATERIAL_GROUP5_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-EXTERNAL_ITEM_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-MATERIAL_GROUP_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-MATERIAL_PRICING_GROUP_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRICING_REFERENCE_MATERIAL sy-vline
WA_TDS_GODATA_SO_ITEM_STR-MATERIAL_SUBSTITUTION_REASON sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PURCHASE_ORDER_TYPE_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-INTERNATIONAL_ARTICLE_NO sy-vline
WA_TDS_GODATA_SO_ITEM_STR-RECEIVING_POINT_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-REASON_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-DUMMY_SLSDOCITEM_INCL_EEW_PS sy-vline
WA_TDS_GODATA_SO_ITEM_STR-REQUESTED_QTY sy-vline
WA_TDS_GODATA_SO_ITEM_STR-REQUESTED_UOM sy-vline
WA_TDS_GODATA_SO_ITEM_STR-UNLOADING_POINT_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-IFRS15_RELEVANCE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-IFRS15_TOTAL_SSP sy-vline
WA_TDS_GODATA_SO_ITEM_STR-STORAGE_LOCATION_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SHIPPING_POINT_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SHIPPING_TYPE_CODE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CONF_DELIVERY_DATE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-DELIVERY_DATE_TYPE_RULE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-ROUTE_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-DELIVERY_GROUP_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CAPPED_NET_AMOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CAPPED_NET_AMOUNT_ALERT_THLD sy-vline
WA_TDS_GODATA_SO_ITEM_STR-EXT_REF_ITEM_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-REF_DOCUMENT_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-REF_ITEM_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SUBTOTAL_1_AMOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SUBTOTAL_2_AMOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SUBTOTAL_3_AMOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SUBTOTAL_4_AMOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SUBTOTAL_5_AMOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SUBTOTAL_6_AMOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-COST_AMOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-BATCH_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-BUSINESS_AREA_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CONFIGURATION sy-vline
WA_TDS_GODATA_SO_ITEM_STR-GROSS_WEIGHT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-NET_WEIGHT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-WEIGHT_UOM sy-vline
WA_TDS_GODATA_SO_ITEM_STR-VOLUME sy-vline
WA_TDS_GODATA_SO_ITEM_STR-VOLUME_UOM sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SOLUTION_ORDER_ITEM_ID sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CUSTOMER_PRICE_GROUP sy-vline
WA_TDS_GODATA_SO_ITEM_STR-ORDER_COMBINATION_IND sy-vline
WA_TDS_GODATA_SO_ITEM_STR-CONTRACT_ACCOUNT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-SERVICES_RENDERED_DATE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-REQUIREMENTSEGMENT sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCTSEASONYEAR sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCTSEASON sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCTCOLLECTION sy-vline
WA_TDS_GODATA_SO_ITEM_STR-PRODUCTTHEME sy-vline
WA_TDS_GODATA_SO_ITEM_STR-FASHIONCANCELDATE sy-vline
WA_TDS_GODATA_SO_ITEM_STR-FASHIONREJECTIONQTY sy-vline
WA_TDS_GODATA_SO_ITEM_STR-FASHIONREJECTIONREASON sy-vline
WA_TDS_GODATA_SO_ITEM_STR-FASHIONREJECTIONTYPE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.