ABAP Select data from SAP table VFKK_VBAP_SHORT 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 VFKK_VBAP_SHORT 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 VFKK_VBAP_SHORT. 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 VFKK_VBAP_SHORT 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_VFKK_VBAP_SHORT TYPE STANDARD TABLE OF VFKK_VBAP_SHORT,
      WA_VFKK_VBAP_SHORT TYPE VFKK_VBAP_SHORT,
      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: <VFKK_VBAP_SHORT> TYPE VFKK_VBAP_SHORT.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM VFKK_VBAP_SHORT
*  INTO TABLE @DATA(IT_VFKK_VBAP_SHORT2).
*--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_VFKK_VBAP_SHORT INDEX 1 INTO DATA(WA_VFKK_VBAP_SHORT2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_VFKK_VBAP_SHORT ASSIGNING <VFKK_VBAP_SHORT>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<VFKK_VBAP_SHORT>-VBELN = 1.
<VFKK_VBAP_SHORT>-POSNR = 1.
<VFKK_VBAP_SHORT>-MATNR = 1.
<VFKK_VBAP_SHORT>-MATWA = 1.
<VFKK_VBAP_SHORT>-PMATN = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_VFKK_VBAP_SHORT-CHARG, sy-vline,
WA_VFKK_VBAP_SHORT-MATKL, sy-vline,
WA_VFKK_VBAP_SHORT-ARKTX, sy-vline,
WA_VFKK_VBAP_SHORT-PSTYV, sy-vline,
WA_VFKK_VBAP_SHORT-POSAR, sy-vline,
WA_VFKK_VBAP_SHORT-LFREL, sy-vline.
ENDLOOP. *Add any further fields from structure WA_VFKK_VBAP_SHORT 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_VFKK_VBAP_SHORT 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_VFKK_VBAP_SHORT INTO WA_VFKK_VBAP_SHORT. *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 VBELN CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-VBELN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-VBELN.
WRITE:/ 'New Value:', ld_input.

*Conversion exit MATN5, internal->external for field MATNR CALL FUNCTION 'CONVERSION_EXIT_MATN5_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-MATNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-MATNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit MATN5, internal->external for field MATWA CALL FUNCTION 'CONVERSION_EXIT_MATN5_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-MATWA IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-MATWA.
WRITE:/ 'New Value:', ld_input.

*Conversion exit MATN5, internal->external for field PMATN CALL FUNCTION 'CONVERSION_EXIT_MATN5_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-PMATN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-PMATN.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

*Conversion exit NUMCV, internal->external for field STLNR CALL FUNCTION 'CONVERSION_EXIT_NUMCV_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-STLNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-STLNR.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit EXCRT, internal->external for field STCUR CALL FUNCTION 'CONVERSION_EXIT_EXCRT_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-STCUR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-STCUR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit EAN11, internal->external for field EAN11 CALL FUNCTION 'CONVERSION_EXIT_EAN11_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-EAN11 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-EAN11.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit ABPSP, internal->external for field PS_PSP_PNR CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-PS_PSP_PNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-PS_PSP_PNR.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit MATN5, internal->external for field VPMAT CALL FUNCTION 'CONVERSION_EXIT_MATN5_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-VPMAT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-VPMAT.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit EXCRT, internal->external for field CMKUA CALL FUNCTION 'CONVERSION_EXIT_EXCRT_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-CMKUA IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-CMKUA.
WRITE:/ 'New Value:', ld_input.

*Conversion exit NUMCV, internal->external for field SPOSN CALL FUNCTION 'CONVERSION_EXIT_NUMCV_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-SPOSN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-SPOSN.
WRITE:/ 'New Value:', ld_input.

*Conversion exit MATN5, internal->external for field UPMAT CALL FUNCTION 'CONVERSION_EXIT_MATN5_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-UPMAT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-UPMAT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit CFOBR, internal->external for field J_1BCFOP CALL FUNCTION 'CONVERSION_EXIT_CFOBR_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-J_1BCFOP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-J_1BCFOP.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit MATN1, internal->external for field UPMAT_LONG CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_VFKK_VBAP_SHORT-UPMAT_LONG IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_VFKK_VBAP_SHORT-UPMAT_LONG.
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_VFKK_VBAP_SHORT_STR,
VBELN TYPE STRING,
POSNR TYPE STRING,
MATNR TYPE STRING,
MATWA TYPE STRING,
PMATN TYPE STRING,
CHARG TYPE STRING,
MATKL TYPE STRING,
ARKTX TYPE STRING,
PSTYV TYPE STRING,
POSAR TYPE STRING,
LFREL TYPE STRING,
FKREL TYPE STRING,
UEPOS TYPE STRING,
GRPOS TYPE STRING,
ABGRU TYPE STRING,
PRODH TYPE STRING,
ZWERT TYPE STRING,
ZMENG TYPE STRING,
ZIEME TYPE STRING,
UMZIZ TYPE STRING,
UMZIN TYPE STRING,
MEINS TYPE STRING,
SMENG TYPE STRING,
ABLFZ TYPE STRING,
ABDAT TYPE STRING,
ABSFZ TYPE STRING,
POSEX TYPE STRING,
KDMAT TYPE STRING,
KBVER TYPE STRING,
KEVER TYPE STRING,
VKGRU TYPE STRING,
VKAUS TYPE STRING,
GRKOR TYPE STRING,
FMENG TYPE STRING,
UEBTK TYPE STRING,
UEBTO TYPE STRING,
UNTTO TYPE STRING,
FAKSP TYPE STRING,
ATPKZ TYPE STRING,
RKFKF TYPE STRING,
SPART TYPE STRING,
GSBER TYPE STRING,
NETWR TYPE STRING,
WAERK TYPE STRING,
ANTLF TYPE STRING,
KZTLF TYPE STRING,
CHSPL TYPE STRING,
KWMENG TYPE STRING,
LSMENG TYPE STRING,
KBMENG TYPE STRING,
KLMENG TYPE STRING,
VRKME TYPE STRING,
UMVKZ TYPE STRING,
UMVKN TYPE STRING,
BRGEW TYPE STRING,
NTGEW TYPE STRING,
GEWEI TYPE STRING,
VOLUM TYPE STRING,
VOLEH TYPE STRING,
VBELV TYPE STRING,
POSNV TYPE STRING,
VGBEL TYPE STRING,
VGPOS TYPE STRING,
VOREF TYPE STRING,
UPFLU TYPE STRING,
ERLRE TYPE STRING,
LPRIO TYPE STRING,
WERKS TYPE STRING,
LGORT TYPE STRING,
VSTEL TYPE STRING,
ROUTE TYPE STRING,
STKEY TYPE STRING,
STDAT TYPE STRING,
STLNR TYPE STRING,
STPOS TYPE STRING,
AWAHR TYPE STRING,
ERDAT TYPE STRING,
ERNAM TYPE STRING,
ERZET TYPE STRING,
TAXM1 TYPE STRING,
TAXM2 TYPE STRING,
TAXM3 TYPE STRING,
TAXM4 TYPE STRING,
TAXM5 TYPE STRING,
TAXM6 TYPE STRING,
TAXM7 TYPE STRING,
TAXM8 TYPE STRING,
TAXM9 TYPE STRING,
VBEAF TYPE STRING,
VBEAV TYPE STRING,
VGREF TYPE STRING,
NETPR TYPE STRING,
KPEIN TYPE STRING,
KMEIN TYPE STRING,
SHKZG TYPE STRING,
SKTOF TYPE STRING,
MTVFP TYPE STRING,
SUMBD TYPE STRING,
KONDM TYPE STRING,
KTGRM TYPE STRING,
BONUS TYPE STRING,
PROVG TYPE STRING,
EANNR TYPE STRING,
PRSOK TYPE STRING,
BWTAR TYPE STRING,
BWTEX TYPE STRING,
XCHPF TYPE STRING,
XCHAR TYPE STRING,
LFMNG TYPE STRING,
STAFO TYPE STRING,
WAVWR TYPE STRING,
KZWI1 TYPE STRING,
KZWI2 TYPE STRING,
KZWI3 TYPE STRING,
KZWI4 TYPE STRING,
KZWI5 TYPE STRING,
KZWI6 TYPE STRING,
STCUR TYPE STRING,
AEDAT TYPE STRING,
EAN11 TYPE STRING,
FIXMG TYPE STRING,
PRCTR TYPE STRING,
MVGR1 TYPE STRING,
MVGR2 TYPE STRING,
MVGR3 TYPE STRING,
MVGR4 TYPE STRING,
MVGR5 TYPE STRING,
KMPMG TYPE STRING,
SUGRD TYPE STRING,
SOBKZ TYPE STRING,
VPZUO TYPE STRING,
PAOBJNR TYPE STRING,
PS_PSP_PNR TYPE STRING,
AUFNR TYPE STRING,
VPMAT TYPE STRING,
VPWRK TYPE STRING,
PRBME TYPE STRING,
UMREF TYPE STRING,
KNTTP TYPE STRING,
KZVBR TYPE STRING,
SERNR TYPE STRING,
OBJNR TYPE STRING,
ABGRS TYPE STRING,
BEDAE TYPE STRING,
CMPRE TYPE STRING,
CMTFG TYPE STRING,
CMPNT TYPE STRING,
CMKUA TYPE STRING,
CUOBJ TYPE STRING,
CUOBJ_CH TYPE STRING,
CEPOK TYPE STRING,
KOUPD TYPE STRING,
SERAIL TYPE STRING,
ANZSN TYPE STRING,
NACHL TYPE STRING,
MAGRV TYPE STRING,
MPROK TYPE STRING,
VGTYP TYPE STRING,
PROSA TYPE STRING,
UEPVW TYPE STRING,
KALNR TYPE STRING,
KLVAR TYPE STRING,
SPOSN TYPE STRING,
KOWRR TYPE STRING,
STADAT TYPE STRING,
EXART TYPE STRING,
PREFE TYPE STRING,
KNUMH TYPE STRING,
CLINT TYPE STRING,
CHMVS TYPE STRING,
STLTY TYPE STRING,
STLKN TYPE STRING,
STPOZ TYPE STRING,
STMAN TYPE STRING,
ZSCHL_K TYPE STRING,
KALSM_K TYPE STRING,
KALVAR TYPE STRING,
KOSCH TYPE STRING,
UPMAT TYPE STRING,
UKONM TYPE STRING,
MFRGR TYPE STRING,
PLAVO TYPE STRING,
KANNR TYPE STRING,
CMPRE_FLT TYPE STRING,
ABFOR TYPE STRING,
ABGES TYPE STRING,
J_1BCFOP TYPE STRING,
J_1BTAXLW1 TYPE STRING,
J_1BTAXLW2 TYPE STRING,
J_1BTXSDC TYPE STRING,
WKTNR TYPE STRING,
WKTPS TYPE STRING,
SKOPF TYPE STRING,
KZBWS TYPE STRING,
WGRU1 TYPE STRING,
WGRU2 TYPE STRING,
KNUMA_PI TYPE STRING,
KNUMA_AG TYPE STRING,
KZFME TYPE STRING,
LSTANR TYPE STRING,
TECHS TYPE STRING,
MWSBP TYPE STRING,
BERID TYPE STRING,
PCTRF TYPE STRING,
LOGSYS_EXT TYPE STRING,
J_1BTAXLW3 TYPE STRING,
J_1BTAXLW4 TYPE STRING,
J_1BTAXLW5 TYPE STRING,
STOCKLOC TYPE STRING,
SLOCTYPE TYPE STRING,
MSR_RET_REASON TYPE STRING,
MSR_REFUND_CODE TYPE STRING,
MSR_APPROV_BLOCK TYPE STRING,
NRAB_KNUMH TYPE STRING,
TRMRISK_RELEVANT TYPE STRING,
VGTYP_LONG TYPE STRING,
MATNR_LONG TYPE STRING,
MATWA_LONG TYPE STRING,
PMATN_LONG TYPE STRING,
VPMAT_LONG TYPE STRING,
UPMAT_LONG TYPE STRING,END OF T_EKKO_STR. DATA: WA_VFKK_VBAP_SHORT_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_VFKK_VBAP_SHORT_STR-VBELN sy-vline
WA_VFKK_VBAP_SHORT_STR-POSNR sy-vline
WA_VFKK_VBAP_SHORT_STR-MATNR sy-vline
WA_VFKK_VBAP_SHORT_STR-MATWA sy-vline
WA_VFKK_VBAP_SHORT_STR-PMATN sy-vline
WA_VFKK_VBAP_SHORT_STR-CHARG sy-vline
WA_VFKK_VBAP_SHORT_STR-MATKL sy-vline
WA_VFKK_VBAP_SHORT_STR-ARKTX sy-vline
WA_VFKK_VBAP_SHORT_STR-PSTYV sy-vline
WA_VFKK_VBAP_SHORT_STR-POSAR sy-vline
WA_VFKK_VBAP_SHORT_STR-LFREL sy-vline
WA_VFKK_VBAP_SHORT_STR-FKREL sy-vline
WA_VFKK_VBAP_SHORT_STR-UEPOS sy-vline
WA_VFKK_VBAP_SHORT_STR-GRPOS sy-vline
WA_VFKK_VBAP_SHORT_STR-ABGRU sy-vline
WA_VFKK_VBAP_SHORT_STR-PRODH sy-vline
WA_VFKK_VBAP_SHORT_STR-ZWERT sy-vline
WA_VFKK_VBAP_SHORT_STR-ZMENG sy-vline
WA_VFKK_VBAP_SHORT_STR-ZIEME sy-vline
WA_VFKK_VBAP_SHORT_STR-UMZIZ sy-vline
WA_VFKK_VBAP_SHORT_STR-UMZIN sy-vline
WA_VFKK_VBAP_SHORT_STR-MEINS sy-vline
WA_VFKK_VBAP_SHORT_STR-SMENG sy-vline
WA_VFKK_VBAP_SHORT_STR-ABLFZ sy-vline
WA_VFKK_VBAP_SHORT_STR-ABDAT sy-vline
WA_VFKK_VBAP_SHORT_STR-ABSFZ sy-vline
WA_VFKK_VBAP_SHORT_STR-POSEX sy-vline
WA_VFKK_VBAP_SHORT_STR-KDMAT sy-vline
WA_VFKK_VBAP_SHORT_STR-KBVER sy-vline
WA_VFKK_VBAP_SHORT_STR-KEVER sy-vline
WA_VFKK_VBAP_SHORT_STR-VKGRU sy-vline
WA_VFKK_VBAP_SHORT_STR-VKAUS sy-vline
WA_VFKK_VBAP_SHORT_STR-GRKOR sy-vline
WA_VFKK_VBAP_SHORT_STR-FMENG sy-vline
WA_VFKK_VBAP_SHORT_STR-UEBTK sy-vline
WA_VFKK_VBAP_SHORT_STR-UEBTO sy-vline
WA_VFKK_VBAP_SHORT_STR-UNTTO sy-vline
WA_VFKK_VBAP_SHORT_STR-FAKSP sy-vline
WA_VFKK_VBAP_SHORT_STR-ATPKZ sy-vline
WA_VFKK_VBAP_SHORT_STR-RKFKF sy-vline
WA_VFKK_VBAP_SHORT_STR-SPART sy-vline
WA_VFKK_VBAP_SHORT_STR-GSBER sy-vline
WA_VFKK_VBAP_SHORT_STR-NETWR sy-vline
WA_VFKK_VBAP_SHORT_STR-WAERK sy-vline
WA_VFKK_VBAP_SHORT_STR-ANTLF sy-vline
WA_VFKK_VBAP_SHORT_STR-KZTLF sy-vline
WA_VFKK_VBAP_SHORT_STR-CHSPL sy-vline
WA_VFKK_VBAP_SHORT_STR-KWMENG sy-vline
WA_VFKK_VBAP_SHORT_STR-LSMENG sy-vline
WA_VFKK_VBAP_SHORT_STR-KBMENG sy-vline
WA_VFKK_VBAP_SHORT_STR-KLMENG sy-vline
WA_VFKK_VBAP_SHORT_STR-VRKME sy-vline
WA_VFKK_VBAP_SHORT_STR-UMVKZ sy-vline
WA_VFKK_VBAP_SHORT_STR-UMVKN sy-vline
WA_VFKK_VBAP_SHORT_STR-BRGEW sy-vline
WA_VFKK_VBAP_SHORT_STR-NTGEW sy-vline
WA_VFKK_VBAP_SHORT_STR-GEWEI sy-vline
WA_VFKK_VBAP_SHORT_STR-VOLUM sy-vline
WA_VFKK_VBAP_SHORT_STR-VOLEH sy-vline
WA_VFKK_VBAP_SHORT_STR-VBELV sy-vline
WA_VFKK_VBAP_SHORT_STR-POSNV sy-vline
WA_VFKK_VBAP_SHORT_STR-VGBEL sy-vline
WA_VFKK_VBAP_SHORT_STR-VGPOS sy-vline
WA_VFKK_VBAP_SHORT_STR-VOREF sy-vline
WA_VFKK_VBAP_SHORT_STR-UPFLU sy-vline
WA_VFKK_VBAP_SHORT_STR-ERLRE sy-vline
WA_VFKK_VBAP_SHORT_STR-LPRIO sy-vline
WA_VFKK_VBAP_SHORT_STR-WERKS sy-vline
WA_VFKK_VBAP_SHORT_STR-LGORT sy-vline
WA_VFKK_VBAP_SHORT_STR-VSTEL sy-vline
WA_VFKK_VBAP_SHORT_STR-ROUTE sy-vline
WA_VFKK_VBAP_SHORT_STR-STKEY sy-vline
WA_VFKK_VBAP_SHORT_STR-STDAT sy-vline
WA_VFKK_VBAP_SHORT_STR-STLNR sy-vline
WA_VFKK_VBAP_SHORT_STR-STPOS sy-vline
WA_VFKK_VBAP_SHORT_STR-AWAHR sy-vline
WA_VFKK_VBAP_SHORT_STR-ERDAT sy-vline
WA_VFKK_VBAP_SHORT_STR-ERNAM sy-vline
WA_VFKK_VBAP_SHORT_STR-ERZET sy-vline
WA_VFKK_VBAP_SHORT_STR-TAXM1 sy-vline
WA_VFKK_VBAP_SHORT_STR-TAXM2 sy-vline
WA_VFKK_VBAP_SHORT_STR-TAXM3 sy-vline
WA_VFKK_VBAP_SHORT_STR-TAXM4 sy-vline
WA_VFKK_VBAP_SHORT_STR-TAXM5 sy-vline
WA_VFKK_VBAP_SHORT_STR-TAXM6 sy-vline
WA_VFKK_VBAP_SHORT_STR-TAXM7 sy-vline
WA_VFKK_VBAP_SHORT_STR-TAXM8 sy-vline
WA_VFKK_VBAP_SHORT_STR-TAXM9 sy-vline
WA_VFKK_VBAP_SHORT_STR-VBEAF sy-vline
WA_VFKK_VBAP_SHORT_STR-VBEAV sy-vline
WA_VFKK_VBAP_SHORT_STR-VGREF sy-vline
WA_VFKK_VBAP_SHORT_STR-NETPR sy-vline
WA_VFKK_VBAP_SHORT_STR-KPEIN sy-vline
WA_VFKK_VBAP_SHORT_STR-KMEIN sy-vline
WA_VFKK_VBAP_SHORT_STR-SHKZG sy-vline
WA_VFKK_VBAP_SHORT_STR-SKTOF sy-vline
WA_VFKK_VBAP_SHORT_STR-MTVFP sy-vline
WA_VFKK_VBAP_SHORT_STR-SUMBD sy-vline
WA_VFKK_VBAP_SHORT_STR-KONDM sy-vline
WA_VFKK_VBAP_SHORT_STR-KTGRM sy-vline
WA_VFKK_VBAP_SHORT_STR-BONUS sy-vline
WA_VFKK_VBAP_SHORT_STR-PROVG sy-vline
WA_VFKK_VBAP_SHORT_STR-EANNR sy-vline
WA_VFKK_VBAP_SHORT_STR-PRSOK sy-vline
WA_VFKK_VBAP_SHORT_STR-BWTAR sy-vline
WA_VFKK_VBAP_SHORT_STR-BWTEX sy-vline
WA_VFKK_VBAP_SHORT_STR-XCHPF sy-vline
WA_VFKK_VBAP_SHORT_STR-XCHAR sy-vline
WA_VFKK_VBAP_SHORT_STR-LFMNG sy-vline
WA_VFKK_VBAP_SHORT_STR-STAFO sy-vline
WA_VFKK_VBAP_SHORT_STR-WAVWR sy-vline
WA_VFKK_VBAP_SHORT_STR-KZWI1 sy-vline
WA_VFKK_VBAP_SHORT_STR-KZWI2 sy-vline
WA_VFKK_VBAP_SHORT_STR-KZWI3 sy-vline
WA_VFKK_VBAP_SHORT_STR-KZWI4 sy-vline
WA_VFKK_VBAP_SHORT_STR-KZWI5 sy-vline
WA_VFKK_VBAP_SHORT_STR-KZWI6 sy-vline
WA_VFKK_VBAP_SHORT_STR-STCUR sy-vline
WA_VFKK_VBAP_SHORT_STR-AEDAT sy-vline
WA_VFKK_VBAP_SHORT_STR-EAN11 sy-vline
WA_VFKK_VBAP_SHORT_STR-FIXMG sy-vline
WA_VFKK_VBAP_SHORT_STR-PRCTR sy-vline
WA_VFKK_VBAP_SHORT_STR-MVGR1 sy-vline
WA_VFKK_VBAP_SHORT_STR-MVGR2 sy-vline
WA_VFKK_VBAP_SHORT_STR-MVGR3 sy-vline
WA_VFKK_VBAP_SHORT_STR-MVGR4 sy-vline
WA_VFKK_VBAP_SHORT_STR-MVGR5 sy-vline
WA_VFKK_VBAP_SHORT_STR-KMPMG sy-vline
WA_VFKK_VBAP_SHORT_STR-SUGRD sy-vline
WA_VFKK_VBAP_SHORT_STR-SOBKZ sy-vline
WA_VFKK_VBAP_SHORT_STR-VPZUO sy-vline
WA_VFKK_VBAP_SHORT_STR-PAOBJNR sy-vline
WA_VFKK_VBAP_SHORT_STR-PS_PSP_PNR sy-vline
WA_VFKK_VBAP_SHORT_STR-AUFNR sy-vline
WA_VFKK_VBAP_SHORT_STR-VPMAT sy-vline
WA_VFKK_VBAP_SHORT_STR-VPWRK sy-vline
WA_VFKK_VBAP_SHORT_STR-PRBME sy-vline
WA_VFKK_VBAP_SHORT_STR-UMREF sy-vline
WA_VFKK_VBAP_SHORT_STR-KNTTP sy-vline
WA_VFKK_VBAP_SHORT_STR-KZVBR sy-vline
WA_VFKK_VBAP_SHORT_STR-SERNR sy-vline
WA_VFKK_VBAP_SHORT_STR-OBJNR sy-vline
WA_VFKK_VBAP_SHORT_STR-ABGRS sy-vline
WA_VFKK_VBAP_SHORT_STR-BEDAE sy-vline
WA_VFKK_VBAP_SHORT_STR-CMPRE sy-vline
WA_VFKK_VBAP_SHORT_STR-CMTFG sy-vline
WA_VFKK_VBAP_SHORT_STR-CMPNT sy-vline
WA_VFKK_VBAP_SHORT_STR-CMKUA sy-vline
WA_VFKK_VBAP_SHORT_STR-CUOBJ sy-vline
WA_VFKK_VBAP_SHORT_STR-CUOBJ_CH sy-vline
WA_VFKK_VBAP_SHORT_STR-CEPOK sy-vline
WA_VFKK_VBAP_SHORT_STR-KOUPD sy-vline
WA_VFKK_VBAP_SHORT_STR-SERAIL sy-vline
WA_VFKK_VBAP_SHORT_STR-ANZSN sy-vline
WA_VFKK_VBAP_SHORT_STR-NACHL sy-vline
WA_VFKK_VBAP_SHORT_STR-MAGRV sy-vline
WA_VFKK_VBAP_SHORT_STR-MPROK sy-vline
WA_VFKK_VBAP_SHORT_STR-VGTYP sy-vline
WA_VFKK_VBAP_SHORT_STR-PROSA sy-vline
WA_VFKK_VBAP_SHORT_STR-UEPVW sy-vline
WA_VFKK_VBAP_SHORT_STR-KALNR sy-vline
WA_VFKK_VBAP_SHORT_STR-KLVAR sy-vline
WA_VFKK_VBAP_SHORT_STR-SPOSN sy-vline
WA_VFKK_VBAP_SHORT_STR-KOWRR sy-vline
WA_VFKK_VBAP_SHORT_STR-STADAT sy-vline
WA_VFKK_VBAP_SHORT_STR-EXART sy-vline
WA_VFKK_VBAP_SHORT_STR-PREFE sy-vline
WA_VFKK_VBAP_SHORT_STR-KNUMH sy-vline
WA_VFKK_VBAP_SHORT_STR-CLINT sy-vline
WA_VFKK_VBAP_SHORT_STR-CHMVS sy-vline
WA_VFKK_VBAP_SHORT_STR-STLTY sy-vline
WA_VFKK_VBAP_SHORT_STR-STLKN sy-vline
WA_VFKK_VBAP_SHORT_STR-STPOZ sy-vline
WA_VFKK_VBAP_SHORT_STR-STMAN sy-vline
WA_VFKK_VBAP_SHORT_STR-ZSCHL_K sy-vline
WA_VFKK_VBAP_SHORT_STR-KALSM_K sy-vline
WA_VFKK_VBAP_SHORT_STR-KALVAR sy-vline
WA_VFKK_VBAP_SHORT_STR-KOSCH sy-vline
WA_VFKK_VBAP_SHORT_STR-UPMAT sy-vline
WA_VFKK_VBAP_SHORT_STR-UKONM sy-vline
WA_VFKK_VBAP_SHORT_STR-MFRGR sy-vline
WA_VFKK_VBAP_SHORT_STR-PLAVO sy-vline
WA_VFKK_VBAP_SHORT_STR-KANNR sy-vline
WA_VFKK_VBAP_SHORT_STR-CMPRE_FLT sy-vline
WA_VFKK_VBAP_SHORT_STR-ABFOR sy-vline
WA_VFKK_VBAP_SHORT_STR-ABGES sy-vline
WA_VFKK_VBAP_SHORT_STR-J_1BCFOP sy-vline
WA_VFKK_VBAP_SHORT_STR-J_1BTAXLW1 sy-vline
WA_VFKK_VBAP_SHORT_STR-J_1BTAXLW2 sy-vline
WA_VFKK_VBAP_SHORT_STR-J_1BTXSDC sy-vline
WA_VFKK_VBAP_SHORT_STR-WKTNR sy-vline
WA_VFKK_VBAP_SHORT_STR-WKTPS sy-vline
WA_VFKK_VBAP_SHORT_STR-SKOPF sy-vline
WA_VFKK_VBAP_SHORT_STR-KZBWS sy-vline
WA_VFKK_VBAP_SHORT_STR-WGRU1 sy-vline
WA_VFKK_VBAP_SHORT_STR-WGRU2 sy-vline
WA_VFKK_VBAP_SHORT_STR-KNUMA_PI sy-vline
WA_VFKK_VBAP_SHORT_STR-KNUMA_AG sy-vline
WA_VFKK_VBAP_SHORT_STR-KZFME sy-vline
WA_VFKK_VBAP_SHORT_STR-LSTANR sy-vline
WA_VFKK_VBAP_SHORT_STR-TECHS sy-vline
WA_VFKK_VBAP_SHORT_STR-MWSBP sy-vline
WA_VFKK_VBAP_SHORT_STR-BERID sy-vline
WA_VFKK_VBAP_SHORT_STR-PCTRF sy-vline
WA_VFKK_VBAP_SHORT_STR-LOGSYS_EXT sy-vline
WA_VFKK_VBAP_SHORT_STR-J_1BTAXLW3 sy-vline
WA_VFKK_VBAP_SHORT_STR-J_1BTAXLW4 sy-vline
WA_VFKK_VBAP_SHORT_STR-J_1BTAXLW5 sy-vline
WA_VFKK_VBAP_SHORT_STR-STOCKLOC sy-vline
WA_VFKK_VBAP_SHORT_STR-SLOCTYPE sy-vline
WA_VFKK_VBAP_SHORT_STR-MSR_RET_REASON sy-vline
WA_VFKK_VBAP_SHORT_STR-MSR_REFUND_CODE sy-vline
WA_VFKK_VBAP_SHORT_STR-MSR_APPROV_BLOCK sy-vline
WA_VFKK_VBAP_SHORT_STR-NRAB_KNUMH sy-vline
WA_VFKK_VBAP_SHORT_STR-TRMRISK_RELEVANT sy-vline
WA_VFKK_VBAP_SHORT_STR-VGTYP_LONG sy-vline
WA_VFKK_VBAP_SHORT_STR-MATNR_LONG sy-vline
WA_VFKK_VBAP_SHORT_STR-MATWA_LONG sy-vline
WA_VFKK_VBAP_SHORT_STR-PMATN_LONG sy-vline
WA_VFKK_VBAP_SHORT_STR-VPMAT_LONG sy-vline
WA_VFKK_VBAP_SHORT_STR-UPMAT_LONG sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.