ABAP Select data from SAP table FMFG_PP_CLEAR_OPEN_ITEMS 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 FMFG_PP_CLEAR_OPEN_ITEMS 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 FMFG_PP_CLEAR_OPEN_ITEMS. 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 FMFG_PP_CLEAR_OPEN_ITEMS 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_FMFG_PP_CLEAR_OPEN_ITEMS TYPE STANDARD TABLE OF FMFG_PP_CLEAR_OPEN_ITEMS, WA_FMFG_PP_CLEAR_OPEN_ITEMS TYPE FMFG_PP_CLEAR_OPEN_ITEMS, 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: <FMFG_PP_CLEAR_OPEN_ITEMS> TYPE FMFG_PP_CLEAR_OPEN_ITEMS. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_FMFG_PP_CLEAR_OPEN_ITEMS. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM FMFG_PP_CLEAR_OPEN_ITEMS INTO TABLE IT_FMFG_PP_CLEAR_OPEN_ITEMS. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM FMFG_PP_CLEAR_OPEN_ITEMS * INTO TABLE @DATA(IT_FMFG_PP_CLEAR_OPEN_ITEMS2). *--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_FMFG_PP_CLEAR_OPEN_ITEMS INDEX 1 INTO DATA(WA_FMFG_PP_CLEAR_OPEN_ITEMS2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_FMFG_PP_CLEAR_OPEN_ITEMS ASSIGNING <FMFG_PP_CLEAR_OPEN_ITEMS>.*To update a field value using a field symbol simply change the value via the field symbol pointer
<FMFG_PP_CLEAR_OPEN_ITEMS>-ACCOUNT = 1.
<FMFG_PP_CLEAR_OPEN_ITEMS>-UMSKZ = 1.
<FMFG_PP_CLEAR_OPEN_ITEMS>-NET_DUE_DATE = 1.
<FMFG_PP_CLEAR_OPEN_ITEMS>-RCLNT = 1.
<FMFG_PP_CLEAR_OPEN_ITEMS>-GL_SIRID = 1.
ENDLOOP. LOOP AT IT_FMFG_PP_CLEAR_OPEN_ITEMS INTO WA_FMFG_PP_CLEAR_OPEN_ITEMS. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_FMFG_PP_CLEAR_OPEN_ITEMS-RLDNR, sy-vline,
WA_FMFG_PP_CLEAR_OPEN_ITEMS-RRCTY, sy-vline,
WA_FMFG_PP_CLEAR_OPEN_ITEMS-RVERS, sy-vline,
WA_FMFG_PP_CLEAR_OPEN_ITEMS-RYEAR, sy-vline,
WA_FMFG_PP_CLEAR_OPEN_ITEMS-RTCUR, sy-vline,
WA_FMFG_PP_CLEAR_OPEN_ITEMS-DRCRK, sy-vline.
ENDLOOP. *Add any further fields from structure WA_FMFG_PP_CLEAR_OPEN_ITEMS 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_FMFG_PP_CLEAR_OPEN_ITEMS 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_FMFG_PP_CLEAR_OPEN_ITEMS INTO WA_FMFG_PP_CLEAR_OPEN_ITEMS. *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 ACCOUNT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-ACCOUNT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-ACCOUNT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field RLDNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-RLDNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-RLDNR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field RVERS CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-RVERS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-RVERS.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field RYEAR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-RYEAR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-RYEAR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field DOCNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-DOCNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-DOCNR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field RACCT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-RACCT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-RACCT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field RPRCTR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-RPRCTR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-RPRCTR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field RCNTR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-RCNTR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-RCNTR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ABPSP, internal->external for field RPROJK CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-RPROJK IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-RPROJK.
WRITE:/ 'New Value:', ld_input.
*Conversion exit FMCIL, internal->external for field RFIPEX CALL FUNCTION 'CONVERSION_EXIT_FMCIL_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-RFIPEX IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-RFIPEX.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field RORDNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-RORDNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-RORDNR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field RVBUND CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-RVBUND IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-RVBUND.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field LOGSYS CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-LOGSYS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-LOGSYS.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field REFDOCNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-REFDOCNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-REFDOCNR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field REFRYEAR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-REFRYEAR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-REFRYEAR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field BELNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-BELNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-BELNR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field LIFNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-LIFNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-LIFNR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field KUNNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-KUNNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-KUNNR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ASSETMAINO_9 CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-ASSETMAINO_9 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-ASSETMAINO_9.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ASSETSUBNO_9 CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-ASSETSUBNO_9 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-ASSETSUBNO_9.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field NPLNR_9 CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-NPLNR_9 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-NPLNR_9.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field PRZNR_9 CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-PRZNR_9 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-PRZNR_9.
WRITE:/ 'New Value:', ld_input.
*Conversion exit IMKEY, internal->external for field IMKEY_9 CALL FUNCTION 'CONVERSION_EXIT_IMKEY_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-IMKEY_9 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-IMKEY_9.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field TP_BEGPER_9 CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-TP_BEGPER_9 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-TP_BEGPER_9.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field TP_ENDPER_9 CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-TP_ENDPER_9 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-TP_ENDPER_9.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field BEGPER_9 CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-BEGPER_9 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-BEGPER_9.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field ENDPER_9 CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-ENDPER_9 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-ENDPER_9.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field REBZG CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-REBZG IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-REBZG.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field REBZJ CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-REBZJ IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-REBZJ.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field GJAHR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_FMFG_PP_CLEAR_OPEN_ITEMS-GJAHR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FMFG_PP_CLEAR_OPEN_ITEMS-GJAHR.
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_FMFG_PP_CLEAR_OPEN_ITEMS_STR,
ACCOUNT TYPE STRING,
UMSKZ TYPE STRING,
NET_DUE_DATE TYPE STRING,
RCLNT TYPE STRING,
GL_SIRID TYPE STRING,
RLDNR TYPE STRING,
RRCTY TYPE STRING,
RVERS TYPE STRING,
RYEAR TYPE STRING,
RTCUR TYPE STRING,
DRCRK TYPE STRING,
POPER TYPE STRING,
DOCCT TYPE STRING,
DOCNR TYPE STRING,
DOCLN TYPE STRING,
RBUKRS TYPE STRING,
RACCT TYPE STRING,
RBUSA TYPE STRING,
RPRCTR TYPE STRING,
RCNTR TYPE STRING,
RPROJK TYPE STRING,
RFAREA TYPE STRING,
RFUND TYPE STRING,
RFIPEX TYPE STRING,
RFISTL TYPE STRING,
RORDNR TYPE STRING,
RVBUND TYPE STRING,
RAGNCY_LCTN_CODE TYPE STRING,
RFINUSE TYPE STRING,
LOGSYS TYPE STRING,
FMFG_SUBKEY_9 TYPE STRING,
BLSTATUS_9 TYPE STRING,
TSL TYPE STRING,
HSL TYPE STRING,
SGTXT TYPE STRING,
DOCTY TYPE STRING,
ACTIV TYPE STRING,
BUDAT TYPE STRING,
WSDAT TYPE STRING,
BLDAT TYPE STRING,
REFDOCNR TYPE STRING,
REFRYEAR TYPE STRING,
REFDOCLN TYPE STRING,
REFDOCCT TYPE STRING,
REFACTIV TYPE STRING,
CPUDT TYPE STRING,
CPUTM TYPE STRING,
USNAM TYPE STRING,
AWTYP TYPE STRING,
AWORG TYPE STRING,
PMT_OFFICE TYPE STRING,
COHORT TYPE STRING,
PUBLAW TYPE STRING,
LEGIS TYPE STRING,
FLG_COVERED TYPE STRING,
FLG_CUSTODIAL TYPE STRING,
FLG_ENTITY TYPE STRING,
FLG_EXCHANGE TYPE STRING,
FLG_FEDERAL TYPE STRING,
FLG_APPORT TYPE STRING,
FLG_AVAIL TYPE STRING,
FLG_BORROW TYPE STRING,
FLG_DEFINITE TYPE STRING,
FLG_PARTNER TYPE STRING,
FLG_REIMBUR TYPE STRING,
FLG_AUTHOR TYPE STRING,
FLG_BEA TYPE STRING,
BUREAU TYPE STRING,
BUSINESS_LINE TYPE STRING,
FGDPRTMNT TYPE STRING,
FGDPRTMNT_PART TYPE STRING,
FUND_ACC_SYMBL TYPE STRING,
WSL TYPE STRING,
RWCUR TYPE STRING,
AWID TYPE STRING,
BELNR TYPE STRING,
BUZEI TYPE STRING,
LINETYPE TYPE STRING,
XSPLITMOD TYPE STRING,
FUND_TYPE TYPE STRING,
FM_AREA TYPE STRING,
MWSKZ TYPE STRING,
XSKRL TYPE STRING,
CO_AREA TYPE STRING,
SGL_ACCOUNT TYPE STRING,
BDGT_FUNC_CLSS TYPE STRING,
FMCMMTSTR_9 TYPE STRING,
TRANSFER_AGCY_9 TYPE STRING,
TRANSFER_ACCT_9 TYPE STRING,
YEAR_BDGT_AUTH_9 TYPE STRING,
FLG_ADVANCE_9 TYPE STRING,
DEFENSE_INDIC_9 TYPE STRING,
MEASURE TYPE STRING,
XBLNR TYPE STRING,
LIFNR TYPE STRING,
KUNNR TYPE STRING,
PROG_REPT_CAT_9 TYPE STRING,
BUDGET_PD_9 TYPE STRING,
ASSETMAINO_9 TYPE STRING,
ASSETSUBNO_9 TYPE STRING,
MOVEMENTTYPE_9 TYPE STRING,
ASSET_ACQDATE_9 TYPE STRING,
NPLNR_9 TYPE STRING,
APLZL_9 TYPE STRING,
AUFPL_9 TYPE STRING,
PRZNR_9 TYPE STRING,
IMKEY_9 TYPE STRING,
INTRENO_9 TYPE STRING,
APPOR_CATB_DTL_9 TYPE STRING,
BDGT_IMPACT_9 TYPE STRING,
FLG_PYA_9 TYPE STRING,
PROGRAM_IND_9 TYPE STRING,
TP_SUBLEVL_9 TYPE STRING,
TP_AGENCID_9 TYPE STRING,
TP_ALTRAID_9 TYPE STRING,
TP_BEGPER_9 TYPE STRING,
TP_ENDPER_9 TYPE STRING,
TP_AVTYPE_9 TYPE STRING,
TP_MAIN_ACCT_9 TYPE STRING,
TP_SUB_ACCT_9 TYPE STRING,
BETC_9 TYPE STRING,
TP_BETC_9 TYPE STRING,
TREASURY_OFFS_9 TYPE STRING,
GARNISHMENT_9 TYPE STRING,
SUBLEVL_9 TYPE STRING,
AGENCID_9 TYPE STRING,
ALTRAID_9 TYPE STRING,
BEGPER_9 TYPE STRING,
ENDPER_9 TYPE STRING,
AVTYPE_9 TYPE STRING,
SUB_ACCT_9 TYPE STRING,
ZFBDT TYPE STRING,
ZBD1T TYPE STRING,
ZBD2T TYPE STRING,
ZBD3T TYPE STRING,
CHECKED TYPE STRING,
OBJECT TYPE STRING,
REBZG TYPE STRING,
REBZJ TYPE STRING,
REBZZ TYPE STRING,
GJAHR TYPE STRING,
VLDPTL TYPE STRING,END OF T_EKKO_STR. DATA: WA_FMFG_PP_CLEAR_OPEN_ITEMS_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_FMFG_PP_CLEAR_OPEN_ITEMS_STR-ACCOUNT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-UMSKZ sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-NET_DUE_DATE sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RCLNT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-GL_SIRID sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RLDNR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RRCTY sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RVERS sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RYEAR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RTCUR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-DRCRK sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-POPER sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-DOCCT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-DOCNR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-DOCLN sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RBUKRS sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RACCT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RBUSA sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RPRCTR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RCNTR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RPROJK sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RFAREA sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RFUND sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RFIPEX sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RFISTL sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RORDNR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RVBUND sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RAGNCY_LCTN_CODE sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RFINUSE sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-LOGSYS sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FMFG_SUBKEY_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BLSTATUS_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TSL sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-HSL sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-SGTXT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-DOCTY sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-ACTIV sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BUDAT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-WSDAT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BLDAT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-REFDOCNR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-REFRYEAR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-REFDOCLN sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-REFDOCCT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-REFACTIV sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-CPUDT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-CPUTM sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-USNAM sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-AWTYP sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-AWORG sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-PMT_OFFICE sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-COHORT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-PUBLAW sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-LEGIS sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_COVERED sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_CUSTODIAL sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_ENTITY sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_EXCHANGE sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_FEDERAL sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_APPORT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_AVAIL sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_BORROW sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_DEFINITE sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_PARTNER sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_REIMBUR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_AUTHOR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_BEA sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BUREAU sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BUSINESS_LINE sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FGDPRTMNT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FGDPRTMNT_PART sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FUND_ACC_SYMBL sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-WSL sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-RWCUR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-AWID sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BELNR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BUZEI sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-LINETYPE sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-XSPLITMOD sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FUND_TYPE sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FM_AREA sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-MWSKZ sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-XSKRL sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-CO_AREA sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-SGL_ACCOUNT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BDGT_FUNC_CLSS sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FMCMMTSTR_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TRANSFER_AGCY_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TRANSFER_ACCT_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-YEAR_BDGT_AUTH_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_ADVANCE_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-DEFENSE_INDIC_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-MEASURE sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-XBLNR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-LIFNR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-KUNNR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-PROG_REPT_CAT_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BUDGET_PD_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-ASSETMAINO_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-ASSETSUBNO_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-MOVEMENTTYPE_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-ASSET_ACQDATE_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-NPLNR_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-APLZL_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-AUFPL_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-PRZNR_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-IMKEY_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-INTRENO_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-APPOR_CATB_DTL_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BDGT_IMPACT_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-FLG_PYA_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-PROGRAM_IND_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TP_SUBLEVL_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TP_AGENCID_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TP_ALTRAID_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TP_BEGPER_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TP_ENDPER_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TP_AVTYPE_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TP_MAIN_ACCT_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TP_SUB_ACCT_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BETC_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TP_BETC_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-TREASURY_OFFS_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-GARNISHMENT_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-SUBLEVL_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-AGENCID_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-ALTRAID_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-BEGPER_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-ENDPER_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-AVTYPE_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-SUB_ACCT_9 sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-ZFBDT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-ZBD1T sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-ZBD2T sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-ZBD3T sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-CHECKED sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-OBJECT sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-REBZG sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-REBZJ sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-REBZZ sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-GJAHR sy-vline
WA_FMFG_PP_CLEAR_OPEN_ITEMS_STR-VLDPTL sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.