ABAP Select data from SAP table BBP_PO_BW_GET_TD_STRUC 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_PO_BW_GET_TD_STRUC 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_PO_BW_GET_TD_STRUC. 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_PO_BW_GET_TD_STRUC 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_PO_BW_GET_TD_STRUC TYPE STANDARD TABLE OF BBP_PO_BW_GET_TD_STRUC, WA_BBP_PO_BW_GET_TD_STRUC TYPE BBP_PO_BW_GET_TD_STRUC, 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_PO_BW_GET_TD_STRUC> TYPE BBP_PO_BW_GET_TD_STRUC. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_BBP_PO_BW_GET_TD_STRUC. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM BBP_PO_BW_GET_TD_STRUC INTO TABLE IT_BBP_PO_BW_GET_TD_STRUC. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM BBP_PO_BW_GET_TD_STRUC * INTO TABLE @DATA(IT_BBP_PO_BW_GET_TD_STRUC2). *--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_PO_BW_GET_TD_STRUC INDEX 1 INTO DATA(WA_BBP_PO_BW_GET_TD_STRUC2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_BBP_PO_BW_GET_TD_STRUC ASSIGNING <BBP_PO_BW_GET_TD_STRUC>.*To update a field value using a field symbol simply change the value via the field symbol pointer
<BBP_PO_BW_GET_TD_STRUC>-CLIENT = 1.
<BBP_PO_BW_GET_TD_STRUC>-GUID = 1.
<BBP_PO_BW_GET_TD_STRUC>-PO_NUMBER = 1.
<BBP_PO_BW_GET_TD_STRUC>-PROCESS_TYPE = 1.
<BBP_PO_BW_GET_TD_STRUC>-PO_DATE = 1.
ENDLOOP. LOOP AT IT_BBP_PO_BW_GET_TD_STRUC INTO WA_BBP_PO_BW_GET_TD_STRUC. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_BBP_PO_BW_GET_TD_STRUC-DESCRIPTION, sy-vline,
WA_BBP_PO_BW_GET_TD_STRUC-DESCRIPTION_UC, sy-vline,
WA_BBP_PO_BW_GET_TD_STRUC-CREATED_AT, sy-vline,
WA_BBP_PO_BW_GET_TD_STRUC-CHANGED_AT, sy-vline,
WA_BBP_PO_BW_GET_TD_STRUC-CREATED_BY, sy-vline,
WA_BBP_PO_BW_GET_TD_STRUC-CHANGED_BY, sy-vline.
ENDLOOP. *Add any further fields from structure WA_BBP_PO_BW_GET_TD_STRUC 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_PO_BW_GET_TD_STRUC 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_PO_BW_GET_TD_STRUC INTO WA_BBP_PO_BW_GET_TD_STRUC. *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 PO_NUMBER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-PO_NUMBER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-PO_NUMBER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field BUP_ORDERER_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-BUP_ORDERER_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-BUP_ORDERER_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field BUP_VENDOR_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-BUP_VENDOR_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-BUP_VENDOR_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field BBP_LOG_SYSTEM CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-BBP_LOG_SYSTEM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-BBP_LOG_SYSTEM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field BE_LOG_SYSTEM CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-BE_LOG_SYSTEM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-BE_LOG_SYSTEM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field LOGSYS_FI CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-LOGSYS_FI IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-LOGSYS_FI.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field ITM_UNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ITM_UNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ITM_UNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ITM_REQUEST_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ITM_REQUEST_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ITM_REQUEST_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ITM_RECIPNT_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ITM_RECIPNT_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ITM_RECIPNT_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ITM_LOC_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ITM_LOC_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ITM_LOC_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ITM_WORKER_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ITM_WORKER_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ITM_WORKER_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ITM_WRKR_SRC_SYS CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ITM_WRKR_SRC_SYS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ITM_WRKR_SRC_SYS.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ITM_CUSTOMER_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ITM_CUSTOMER_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ITM_CUSTOMER_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ITM_CUST_SRC_SYS CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ITM_CUST_SRC_SYS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ITM_CUST_SRC_SYS.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ITM_PROD_SRC_SYS CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ITM_PROD_SRC_SYS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ITM_PROD_SRC_SYS.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ITM_SC_H_OBJ_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ITM_SC_H_OBJ_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ITM_SC_H_OBJ_ID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ITM_CTR_NUMBER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ITM_CTR_NUMBER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ITM_CTR_NUMBER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ACC_G_L_ACCT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ACC_G_L_ACCT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ACC_G_L_ACCT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ACC_COST_CTR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ACC_COST_CTR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ACC_COST_CTR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ACC_ASSET_NO CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ACC_ASSET_NO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ACC_ASSET_NO.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ACC_SUB_NUMBER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ACC_SUB_NUMBER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ACC_SUB_NUMBER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ACC_ORDER_NO CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ACC_ORDER_NO IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ACC_ORDER_NO.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ACC_PROFIT_CTR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ACC_PROFIT_CTR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ACC_PROFIT_CTR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ABPSN, internal->external for field ACC_WBS_ELEM_E CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ACC_WBS_ELEM_E IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ACC_WBS_ELEM_E.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ACC_NETWORK CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ACC_NETWORK IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ACC_NETWORK.
WRITE:/ 'New Value:', ld_input.
*Conversion exit NUMCV, internal->external for field ACC_ACTIVITY CALL FUNCTION 'CONVERSION_EXIT_NUMCV_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-ACC_ACTIVITY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-ACC_ACTIVITY.
WRITE:/ 'New Value:', ld_input.
*Conversion exit FMCIS, internal->external for field CMMT_ITEM CALL FUNCTION 'CONVERSION_EXIT_FMCIS_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-CMMT_ITEM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-CMMT_ITEM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field GRANT_NBR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-GRANT_NBR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-GRANT_NBR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field SD_DOC CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-SD_DOC IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-SD_DOC.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field FUNDS_RES CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_BBP_PO_BW_GET_TD_STRUC-FUNDS_RES IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BBP_PO_BW_GET_TD_STRUC-FUNDS_RES.
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_BBP_PO_BW_GET_TD_STRUC_STR,
CLIENT TYPE STRING,
GUID TYPE STRING,
PO_NUMBER TYPE STRING,
PROCESS_TYPE TYPE STRING,
PO_DATE TYPE STRING,
DESCRIPTION TYPE STRING,
DESCRIPTION_UC TYPE STRING,
CREATED_AT TYPE STRING,
CHANGED_AT TYPE STRING,
CREATED_BY TYPE STRING,
CHANGED_BY TYPE STRING,
BUP_ORDERER_ID TYPE STRING,
BUP_ORDERER_GUID TYPE STRING,
BUP_VENDOR_ID TYPE STRING,
BUP_VENDOR_GUID TYPE STRING,
CO_CODE TYPE STRING,
BBP_LOG_SYSTEM TYPE STRING,
BE_LOG_SYSTEM TYPE STRING,
LOGSYS_FI TYPE STRING,
TOTAL_VALUE_APPR TYPE STRING,
CURRENCY TYPE STRING,
VPER_START TYPE STRING,
VPER_END TYPE STRING,
PCINS TYPE STRING,
PCNUM TYPE STRING,
INCOTERM_KEY TYPE STRING,
INCOTERM_LOC TYPE STRING,
CONF_IND TYPE STRING,
IR_IND TYPE STRING,
CONF_NON_VAL TYPE STRING,
CONF_BASEDIV TYPE STRING,
ERS TYPE STRING,
PO_COUNT TYPE STRING,
STAT_PROCESS TYPE STRING,
ITM_GUID TYPE STRING,
ITM_CREATED_AT TYPE STRING,
ITM_CHANGED_AT TYPE STRING,
ITM_CREATED_BY TYPE STRING,
ITM_CHANGED_BY TYPE STRING,
ITM_PARENT TYPE STRING,
ITM_PRODUCT_GUID TYPE STRING,
ITM_PRODUCT_ID TYPE STRING,
ITM_PARTNER_PROD TYPE STRING,
ITM_DESCRIPTION TYPE STRING,
ITM_DESCRIPT_UC TYPE STRING,
ITM_NUMBER TYPE STRING,
ITM_TYPE TYPE STRING,
ITM_CAT_GUID TYPE STRING,
ITM_CATEGORY_ID TYPE STRING,
ITM_SCHEMA_TYPE TYPE STRING,
ITM_EX_CT_UN_ID TYPE STRING,
ITM_CT_CAT_ID TYPE STRING,
ITM_MANU_PROD TYPE STRING,
ITM_MFR_NO_EXT TYPE STRING,
ITM_CATALOGID TYPE STRING,
ITM_PRODUCT_TYPE TYPE STRING,
ITM_DELIV_DATE TYPE STRING,
ITM_QUANTITY TYPE STRING,
ITM_UNIT TYPE STRING,
ITM_PRICE TYPE STRING,
ITM_PRICE_UNIT TYPE STRING,
ITM_VALUE TYPE STRING,
ITM_REQUEST_ID TYPE STRING,
ITM_REQUEST_GUID TYPE STRING,
ITM_RECIPNT_ID TYPE STRING,
ITM_RECIPNT_GUID TYPE STRING,
ITM_LOC_ID TYPE STRING,
ITM_LOC_GUID TYPE STRING,
ITM_WORKER_ID TYPE STRING,
ITM_WORKER_GUID TYPE STRING,
ITM_WRKR_SRC_SYS TYPE STRING,
ITM_WORKER_NAME TYPE STRING,
ITM_WRK_NO_TYPE TYPE STRING,
ITM_CUSTOMER_ID TYPE STRING,
ITM_CUST_GUID TYPE STRING,
ITM_CUST_SRC_SYS TYPE STRING,
ITM_CUST_NAME TYPE STRING,
ITM_CUST_NO_TYPE TYPE STRING,
ITM_LIM_K TYPE STRING,
ITM_LIM_S TYPE STRING,
ITM_LIM_G TYPE STRING,
ITM_UNLIMITED TYPE STRING,
ITM_EXP_VALUE TYPE STRING,
ITM_TAX_CODE TYPE STRING,
ITM_TAX_AMOUNT TYPE STRING,
ITM_PROD_SRC_SYS TYPE STRING,
ITM_SYS_TYPE TYPE STRING,
ITM_SLD_SYS_NAME TYPE STRING,
ITM_SC_H_OBJ_ID TYPE STRING,
ITM_SC_H_GUID TYPE STRING,
ITM_SC_ITM_GUID TYPE STRING,
ITM_SC_ITEM_NO TYPE STRING,
ITM_DEL_IND TYPE STRING,
ITM_FINAL_INV TYPE STRING,
ITM_FINAL_ENTRY TYPE STRING,
ITM_CTR_GUID TYPE STRING,
ITM_CTR_NUMBER TYPE STRING,
ITM_CTR_ITMGUID TYPE STRING,
ITM_CTR_ITM_NO TYPE STRING,
ACCEPT_QUANTITY TYPE STRING,
ITM_SUBTYPE TYPE STRING,
ITM_COUNT TYPE STRING,
ACC_GUID TYPE STRING,
ACC_NO TYPE STRING,
ACC_CAT TYPE STRING,
ACC_DISTR_PERC TYPE STRING,
ACC_G_L_ACCT TYPE STRING,
ACC_BUS_AREA TYPE STRING,
ACC_CO_AREA TYPE STRING,
ACC_COST_CTR TYPE STRING,
ACC_ASSET_NO TYPE STRING,
ACC_SUB_NUMBER TYPE STRING,
ACC_ORDER_NO TYPE STRING,
ACC_PROFIT_CTR TYPE STRING,
ACC_WBS_ELEM_E TYPE STRING,
ACC_NETWORK TYPE STRING,
ACC_ACTIVITY TYPE STRING,
ACC_STR TYPE STRING,
CMMT_ITEM TYPE STRING,
GRANT_NBR TYPE STRING,
FUNDS_CTR TYPE STRING,
FUND TYPE STRING,
FUNC_AREA TYPE STRING,
SD_DOC TYPE STRING,
SDOC_ITEM TYPE STRING,
SCHED_LINE TYPE STRING,
ORG_RESP_ORG TYPE STRING,
ORG_PURCH_ORG TYPE STRING,
ORG_PURCH_GROUP TYPE STRING,
UPDMOD TYPE STRING,
FUNDS_RES TYPE STRING,
RES_ITEM TYPE STRING,
BUDGET_PERIOD TYPE STRING,END OF T_EKKO_STR. DATA: WA_BBP_PO_BW_GET_TD_STRUC_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_PO_BW_GET_TD_STRUC_STR-CLIENT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-PO_NUMBER sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-PROCESS_TYPE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-PO_DATE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-DESCRIPTION sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-DESCRIPTION_UC sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-CREATED_AT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-CHANGED_AT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-CREATED_BY sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-CHANGED_BY sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-BUP_ORDERER_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-BUP_ORDERER_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-BUP_VENDOR_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-BUP_VENDOR_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-CO_CODE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-BBP_LOG_SYSTEM sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-BE_LOG_SYSTEM sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-LOGSYS_FI sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-TOTAL_VALUE_APPR sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-CURRENCY sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-VPER_START sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-VPER_END sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-PCINS sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-PCNUM sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-INCOTERM_KEY sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-INCOTERM_LOC sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-CONF_IND sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-IR_IND sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-CONF_NON_VAL sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-CONF_BASEDIV sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ERS sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-PO_COUNT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-STAT_PROCESS sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CREATED_AT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CHANGED_AT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CREATED_BY sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CHANGED_BY sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_PARENT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_PRODUCT_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_PRODUCT_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_PARTNER_PROD sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_DESCRIPTION sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_DESCRIPT_UC sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_NUMBER sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_TYPE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CAT_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CATEGORY_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_SCHEMA_TYPE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_EX_CT_UN_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CT_CAT_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_MANU_PROD sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_MFR_NO_EXT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CATALOGID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_PRODUCT_TYPE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_DELIV_DATE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_QUANTITY sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_UNIT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_PRICE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_PRICE_UNIT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_VALUE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_REQUEST_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_REQUEST_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_RECIPNT_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_RECIPNT_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_LOC_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_LOC_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_WORKER_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_WORKER_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_WRKR_SRC_SYS sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_WORKER_NAME sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_WRK_NO_TYPE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CUSTOMER_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CUST_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CUST_SRC_SYS sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CUST_NAME sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CUST_NO_TYPE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_LIM_K sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_LIM_S sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_LIM_G sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_UNLIMITED sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_EXP_VALUE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_TAX_CODE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_TAX_AMOUNT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_PROD_SRC_SYS sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_SYS_TYPE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_SLD_SYS_NAME sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_SC_H_OBJ_ID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_SC_H_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_SC_ITM_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_SC_ITEM_NO sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_DEL_IND sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_FINAL_INV sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_FINAL_ENTRY sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CTR_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CTR_NUMBER sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CTR_ITMGUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_CTR_ITM_NO sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACCEPT_QUANTITY sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_SUBTYPE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ITM_COUNT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_GUID sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_NO sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_CAT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_DISTR_PERC sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_G_L_ACCT sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_BUS_AREA sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_CO_AREA sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_COST_CTR sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_ASSET_NO sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_SUB_NUMBER sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_ORDER_NO sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_PROFIT_CTR sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_WBS_ELEM_E sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_NETWORK sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_ACTIVITY sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ACC_STR sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-CMMT_ITEM sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-GRANT_NBR sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-FUNDS_CTR sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-FUND sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-FUNC_AREA sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-SD_DOC sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-SDOC_ITEM sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-SCHED_LINE sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ORG_RESP_ORG sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ORG_PURCH_ORG sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-ORG_PURCH_GROUP sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-UPDMOD sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-FUNDS_RES sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-RES_ITEM sy-vline
WA_BBP_PO_BW_GET_TD_STRUC_STR-BUDGET_PERIOD sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.