ABAP Select data from SAP table QCERT_TS_BATCH_PDF 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 QCERT_TS_BATCH_PDF 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 QCERT_TS_BATCH_PDF. 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 QCERT_TS_BATCH_PDF 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_QCERT_TS_BATCH_PDF TYPE STANDARD TABLE OF QCERT_TS_BATCH_PDF,
      WA_QCERT_TS_BATCH_PDF TYPE QCERT_TS_BATCH_PDF,
      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: <QCERT_TS_BATCH_PDF> TYPE QCERT_TS_BATCH_PDF.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM QCERT_TS_BATCH_PDF
*  INTO TABLE @DATA(IT_QCERT_TS_BATCH_PDF2).
*--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_QCERT_TS_BATCH_PDF INDEX 1 INTO DATA(WA_QCERT_TS_BATCH_PDF2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_QCERT_TS_BATCH_PDF ASSIGNING <QCERT_TS_BATCH_PDF>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<QCERT_TS_BATCH_PDF>-KZBATCH = 1.
<QCERT_TS_BATCH_PDF>-VBDPL = 1.
<QCERT_TS_BATCH_PDF>-VBELN = 1.
<QCERT_TS_BATCH_PDF>-POSNR = 1.
<QCERT_TS_BATCH_PDF>-POSEX = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_QCERT_TS_BATCH_PDF-MATNR, sy-vline,
WA_QCERT_TS_BATCH_PDF-MATWA, sy-vline,
WA_QCERT_TS_BATCH_PDF-IDNKD, sy-vline,
WA_QCERT_TS_BATCH_PDF-ARKTX, sy-vline,
WA_QCERT_TS_BATCH_PDF-WERKS, sy-vline,
WA_QCERT_TS_BATCH_PDF-LGORT, sy-vline.
ENDLOOP. *Add any further fields from structure WA_QCERT_TS_BATCH_PDF 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_QCERT_TS_BATCH_PDF 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_QCERT_TS_BATCH_PDF INTO WA_QCERT_TS_BATCH_PDF. *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_QCERT_TS_BATCH_PDF-VBELN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_QCERT_TS_BATCH_PDF-VBELN.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit ISOLA, internal->external for field MSR_FWV_LANGU CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT' EXPORTING input = WA_QCERT_TS_BATCH_PDF-MSR_FWV_LANGU IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_QCERT_TS_BATCH_PDF-MSR_FWV_LANGU.
WRITE:/ 'New Value:', ld_input.

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

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

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

*Conversion exit ALPHA, internal->external for field LIFCH CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_QCERT_TS_BATCH_PDF-LIFCH IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_QCERT_TS_BATCH_PDF-LIFCH.
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_QCERT_TS_BATCH_PDF_STR,
KZBATCH TYPE STRING,
VBDPL TYPE STRING,
VBELN TYPE STRING,
POSNR TYPE STRING,
POSEX TYPE STRING,
MATNR TYPE STRING,
MATWA TYPE STRING,
IDNKD TYPE STRING,
ARKTX TYPE STRING,
WERKS TYPE STRING,
LGORT TYPE STRING,
VTWEG TYPE STRING,
SPART TYPE STRING,
VKBUR TYPE STRING,
CHARG TYPE STRING,
SERNR TYPE STRING,
HERKL TYPE STRING,
HERKR TYPE STRING,
STAWN TYPE STRING,
BRGEW TYPE STRING,
NTGEW TYPE STRING,
GEWEI TYPE STRING,
LFIMG TYPE STRING,
VRKME TYPE STRING,
MBDAT TYPE STRING,
VBELN_VAUF TYPE STRING,
POSNR_VAUF TYPE STRING,
AUDAT_VAUF TYPE STRING,
BSTDK TYPE STRING,
BSTNK TYPE STRING,
BSTZD TYPE STRING,
IHREZ TYPE STRING,
INCO1 TYPE STRING,
INCO2 TYPE STRING,
INCO1_BEZ TYPE STRING,
TDNAME TYPE STRING,
UEPOS TYPE STRING,
VOLUM TYPE STRING,
VOLEH TYPE STRING,
EAN11 TYPE STRING,
EXART TYPE STRING,
EXART_BEZ TYPE STRING,
GRWRT TYPE STRING,
VGBEL TYPE STRING,
VGPOS TYPE STRING,
VGTYP TYPE STRING,
SORTKRI TYPE STRING,
LGMNG TYPE STRING,
KCMENG TYPE STRING,
MEINS TYPE STRING,
UECHA TYPE STRING,
KCBRGEW TYPE STRING,
KCNTGEW TYPE STRING,
KCGEWEI TYPE STRING,
KCVOLUM TYPE STRING,
KCVOLEH TYPE STRING,
KNUMH_CH TYPE STRING,
UMVKZ TYPE STRING,
UMVKN TYPE STRING,
CUOBJ TYPE STRING,
CUOBJ_CH TYPE STRING,
SHKZG TYPE STRING,
PCKPF TYPE STRING,
ABRVW TYPE STRING,
ABART TYPE STRING,
ABRLI TYPE STRING,
AESKD TYPE STRING,
EMPST TYPE STRING,
ABTNR TYPE STRING,
POSAR TYPE STRING,
PSTYV TYPE STRING,
TPREL TYPE STRING,
KZWI1 TYPE STRING,
KPEIN TYPE STRING,
KMEIN TYPE STRING,
NETPR TYPE STRING,
NETWR TYPE STRING,
ANZSN TYPE STRING,
AKTNR TYPE STRING,
SUGRD TYPE STRING,
SUDRU TYPE STRING,
VBRST TYPE STRING,
USR01_VBLB TYPE STRING,
USR02_VBLB TYPE STRING,
USR03_VBLB TYPE STRING,
USR04_VBLB TYPE STRING,
USR05_VBLB TYPE STRING,
PREFE TYPE STRING,
LABNK TYPE STRING,
ABRDT TYPE STRING,
KZUMW TYPE STRING,
PROFL TYPE STRING,
IDGPA TYPE STRING,
IDGCH TYPE STRING,
DGNTGEW TYPE STRING,
DGBRGEW TYPE STRING,
DGGEWEI TYPE STRING,
DGVOLUM TYPE STRING,
DGVOLEH TYPE STRING,
DGARAND TYPE STRING,
DGREPQU TYPE STRING,
DGPULIM TYPE STRING,
DGPAS TYPE STRING,
DGMDDAT TYPE STRING,
BSTKD TYPE STRING,
BSARK TYPE STRING,
BSTKD_E TYPE STRING,
BSTDK_E TYPE STRING,
BSARK_E TYPE STRING,
IHREZ_E TYPE STRING,
POSEX_E TYPE STRING,
VBKLT TYPE STRING,
MATKL TYPE STRING,
MTART TYPE STRING,
PRODH TYPE STRING,
QMNUM TYPE STRING,
QMDAT TYPE STRING,
SGT_RCAT TYPE STRING,
SGT_SCAT TYPE STRING,
MSR_ID TYPE STRING,
MSR_ITEM TYPE STRING,
RMA_CUSTOMER TYPE STRING,
MSR_RET_REASON TYPE STRING,
MSR_RET_REASON_TEXT TYPE STRING,
MSR_MAT_RECEIVED TYPE STRING,
MSR_FU_CODE TYPE STRING,
MSR_FU_CODE_TEXT TYPE STRING,
MSR_FORW_VENDOR TYPE STRING,
MSR_FWV_TITLE TYPE STRING,
MSR_FWV_ADDRNUM TYPE STRING,
MSR_FWV_NAME1 TYPE STRING,
MSR_FWV_NAME2 TYPE STRING,
MSR_FWV_NAME3 TYPE STRING,
MSR_FWV_NAME4 TYPE STRING,
MSR_FWV_STREET TYPE STRING,
MSR_FWV_PO_BOX TYPE STRING,
MSR_FWV_PO_BOX_LOC TYPE STRING,
MSR_FWV_CITY_CODE2 TYPE STRING,
MSR_FWV_COUNTRY TYPE STRING,
MSR_FWV_LANGU TYPE STRING,
MSR_FWV_POST_CODE1 TYPE STRING,
MSR_FWV_CITY1 TYPE STRING,
MSR_FWV_CITY2 TYPE STRING,
MSR_FWV_REGION TYPE STRING,
RMA_VENDOR TYPE STRING,
MSR_REFUND_CODE TYPE STRING,
MSR_REFUND_CODE_TEXT TYPE STRING,
MSR_FORW_PLANT1 TYPE STRING,
MSR_PLANT1_TXT TYPE STRING,
MSR_FORW_PLANT2 TYPE STRING,
MSR_PLANT2_TXT TYPE STRING,
MSR_FORW_PLANT3 TYPE STRING,
MSR_PLANT3_TXT TYPE STRING,
DUMMY TYPE STRING,
INCOV TYPE STRING,
INCO2_L TYPE STRING,
INCO3_L TYPE STRING,
INCO2_L_LBL TYPE STRING,
INCO3_L_LBL TYPE STRING,
BSTOB TYPE STRING,
DUMMY_DELITM_INCL_EEW_PS TYPE STRING,
DUMMY_DELIVERYITEM_INCL_EEW_TR TYPE STRING,
BSTKN TYPE STRING,
/BEV1/EMMVGR1 TYPE STRING,
/BEV1/EMMVGR2 TYPE STRING,
/BEV1/EMMVGR3 TYPE STRING,
/BEV1/EMMVGR4 TYPE STRING,
/BEV1/EMMVGR5 TYPE STRING,
/BEV1/EMNEUPOS TYPE STRING,
FSH_SEASON TYPE STRING,
FSH_SEASON_YEAR TYPE STRING,
FSH_COLLECTION TYPE STRING,
FSH_THEME TYPE STRING,
LIFEXPOS TYPE STRING,
WRF_CHARSTC1 TYPE STRING,
WRF_CHARSTC2 TYPE STRING,
WRF_CHARSTC3 TYPE STRING,
MCHAR TYPE STRING,
ZEILC TYPE STRING,
MATNR TYPE STRING,
WERKS TYPE STRING,
LGORT TYPE STRING,
CHARG TYPE STRING,
BWTAR TYPE STRING,
CLABS TYPE STRING,
MENGE TYPE STRING,
MEINS TYPE STRING,
ERFMG TYPE STRING,
ERFME TYPE STRING,
ZUSTD TYPE STRING,
ZUSCH TYPE STRING,
BSTAR TYPE STRING,
SPERC TYPE STRING,
XSELK TYPE STRING,
KZICL TYPE STRING,
KZVCL TYPE STRING,
KZICQ TYPE STRING,
KZVCQ TYPE STRING,
KZICS TYPE STRING,
KZVCS TYPE STRING,
VERAB TYPE STRING,
VFDAT TYPE STRING,
LVOCA TYPE STRING,
HERKR TYPE STRING,
HERKL TYPE STRING,
MTVER TYPE STRING,
LIFCH TYPE STRING,
LICHA TYPE STRING,
QNDAT TYPE STRING,
ZAEDT TYPE STRING,
FVDT1 TYPE STRING,
FVDT2 TYPE STRING,
FVDT3 TYPE STRING,
FVDT4 TYPE STRING,
FVDT5 TYPE STRING,
FVDT6 TYPE STRING,
LVOCB TYPE STRING,
SGT_SCAT TYPE STRING,
FSH_SEASON_YEAR TYPE STRING,
FSH_SEASON TYPE STRING,
FSH_COLLECTION TYPE STRING,
FSH_THEME TYPE STRING,
FSH_ATP_DATE TYPE STRING,
HSDAT TYPE STRING,
LWEDT TYPE STRING,
ERSDA TYPE STRING,
BATCH_COUNT TYPE STRING,END OF T_EKKO_STR. DATA: WA_QCERT_TS_BATCH_PDF_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_QCERT_TS_BATCH_PDF_STR-KZBATCH sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VBDPL sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VBELN sy-vline
WA_QCERT_TS_BATCH_PDF_STR-POSNR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-POSEX sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MATNR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MATWA sy-vline
WA_QCERT_TS_BATCH_PDF_STR-IDNKD sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ARKTX sy-vline
WA_QCERT_TS_BATCH_PDF_STR-WERKS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-LGORT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VTWEG sy-vline
WA_QCERT_TS_BATCH_PDF_STR-SPART sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VKBUR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-CHARG sy-vline
WA_QCERT_TS_BATCH_PDF_STR-SERNR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-HERKL sy-vline
WA_QCERT_TS_BATCH_PDF_STR-HERKR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-STAWN sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BRGEW sy-vline
WA_QCERT_TS_BATCH_PDF_STR-NTGEW sy-vline
WA_QCERT_TS_BATCH_PDF_STR-GEWEI sy-vline
WA_QCERT_TS_BATCH_PDF_STR-LFIMG sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VRKME sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MBDAT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VBELN_VAUF sy-vline
WA_QCERT_TS_BATCH_PDF_STR-POSNR_VAUF sy-vline
WA_QCERT_TS_BATCH_PDF_STR-AUDAT_VAUF sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BSTDK sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BSTNK sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BSTZD sy-vline
WA_QCERT_TS_BATCH_PDF_STR-IHREZ sy-vline
WA_QCERT_TS_BATCH_PDF_STR-INCO1 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-INCO2 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-INCO1_BEZ sy-vline
WA_QCERT_TS_BATCH_PDF_STR-TDNAME sy-vline
WA_QCERT_TS_BATCH_PDF_STR-UEPOS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VOLUM sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VOLEH sy-vline
WA_QCERT_TS_BATCH_PDF_STR-EAN11 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-EXART sy-vline
WA_QCERT_TS_BATCH_PDF_STR-EXART_BEZ sy-vline
WA_QCERT_TS_BATCH_PDF_STR-GRWRT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VGBEL sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VGPOS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VGTYP sy-vline
WA_QCERT_TS_BATCH_PDF_STR-SORTKRI sy-vline
WA_QCERT_TS_BATCH_PDF_STR-LGMNG sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KCMENG sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MEINS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-UECHA sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KCBRGEW sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KCNTGEW sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KCGEWEI sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KCVOLUM sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KCVOLEH sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KNUMH_CH sy-vline
WA_QCERT_TS_BATCH_PDF_STR-UMVKZ sy-vline
WA_QCERT_TS_BATCH_PDF_STR-UMVKN sy-vline
WA_QCERT_TS_BATCH_PDF_STR-CUOBJ sy-vline
WA_QCERT_TS_BATCH_PDF_STR-CUOBJ_CH sy-vline
WA_QCERT_TS_BATCH_PDF_STR-SHKZG sy-vline
WA_QCERT_TS_BATCH_PDF_STR-PCKPF sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ABRVW sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ABART sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ABRLI sy-vline
WA_QCERT_TS_BATCH_PDF_STR-AESKD sy-vline
WA_QCERT_TS_BATCH_PDF_STR-EMPST sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ABTNR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-POSAR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-PSTYV sy-vline
WA_QCERT_TS_BATCH_PDF_STR-TPREL sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KZWI1 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KPEIN sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KMEIN sy-vline
WA_QCERT_TS_BATCH_PDF_STR-NETPR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-NETWR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ANZSN sy-vline
WA_QCERT_TS_BATCH_PDF_STR-AKTNR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-SUGRD sy-vline
WA_QCERT_TS_BATCH_PDF_STR-SUDRU sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VBRST sy-vline
WA_QCERT_TS_BATCH_PDF_STR-USR01_VBLB sy-vline
WA_QCERT_TS_BATCH_PDF_STR-USR02_VBLB sy-vline
WA_QCERT_TS_BATCH_PDF_STR-USR03_VBLB sy-vline
WA_QCERT_TS_BATCH_PDF_STR-USR04_VBLB sy-vline
WA_QCERT_TS_BATCH_PDF_STR-USR05_VBLB sy-vline
WA_QCERT_TS_BATCH_PDF_STR-PREFE sy-vline
WA_QCERT_TS_BATCH_PDF_STR-LABNK sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ABRDT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KZUMW sy-vline
WA_QCERT_TS_BATCH_PDF_STR-PROFL sy-vline
WA_QCERT_TS_BATCH_PDF_STR-IDGPA sy-vline
WA_QCERT_TS_BATCH_PDF_STR-IDGCH sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DGNTGEW sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DGBRGEW sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DGGEWEI sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DGVOLUM sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DGVOLEH sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DGARAND sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DGREPQU sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DGPULIM sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DGPAS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DGMDDAT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BSTKD sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BSARK sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BSTKD_E sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BSTDK_E sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BSARK_E sy-vline
WA_QCERT_TS_BATCH_PDF_STR-IHREZ_E sy-vline
WA_QCERT_TS_BATCH_PDF_STR-POSEX_E sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VBKLT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MATKL sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MTART sy-vline
WA_QCERT_TS_BATCH_PDF_STR-PRODH sy-vline
WA_QCERT_TS_BATCH_PDF_STR-QMNUM sy-vline
WA_QCERT_TS_BATCH_PDF_STR-QMDAT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-SGT_RCAT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-SGT_SCAT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_ID sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_ITEM sy-vline
WA_QCERT_TS_BATCH_PDF_STR-RMA_CUSTOMER sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_RET_REASON sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_RET_REASON_TEXT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_MAT_RECEIVED sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FU_CODE sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FU_CODE_TEXT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FORW_VENDOR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_TITLE sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_ADDRNUM sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_NAME1 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_NAME2 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_NAME3 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_NAME4 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_STREET sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_PO_BOX sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_PO_BOX_LOC sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_CITY_CODE2 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_COUNTRY sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_LANGU sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_POST_CODE1 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_CITY1 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_CITY2 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FWV_REGION sy-vline
WA_QCERT_TS_BATCH_PDF_STR-RMA_VENDOR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_REFUND_CODE sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_REFUND_CODE_TEXT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FORW_PLANT1 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_PLANT1_TXT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FORW_PLANT2 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_PLANT2_TXT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_FORW_PLANT3 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MSR_PLANT3_TXT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DUMMY sy-vline
WA_QCERT_TS_BATCH_PDF_STR-INCOV sy-vline
WA_QCERT_TS_BATCH_PDF_STR-INCO2_L sy-vline
WA_QCERT_TS_BATCH_PDF_STR-INCO3_L sy-vline
WA_QCERT_TS_BATCH_PDF_STR-INCO2_L_LBL sy-vline
WA_QCERT_TS_BATCH_PDF_STR-INCO3_L_LBL sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BSTOB sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DUMMY_DELITM_INCL_EEW_PS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-DUMMY_DELIVERYITEM_INCL_EEW_TR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BSTKN sy-vline
WA_QCERT_TS_BATCH_PDF_STR-/BEV1/EMMVGR1 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-/BEV1/EMMVGR2 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-/BEV1/EMMVGR3 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-/BEV1/EMMVGR4 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-/BEV1/EMMVGR5 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-/BEV1/EMNEUPOS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FSH_SEASON sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FSH_SEASON_YEAR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FSH_COLLECTION sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FSH_THEME sy-vline
WA_QCERT_TS_BATCH_PDF_STR-LIFEXPOS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-WRF_CHARSTC1 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-WRF_CHARSTC2 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-WRF_CHARSTC3 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MCHAR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ZEILC sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MATNR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-WERKS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-LGORT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-CHARG sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BWTAR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-CLABS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MENGE sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MEINS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ERFMG sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ERFME sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ZUSTD sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ZUSCH sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BSTAR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-SPERC sy-vline
WA_QCERT_TS_BATCH_PDF_STR-XSELK sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KZICL sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KZVCL sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KZICQ sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KZVCQ sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KZICS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-KZVCS sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VERAB sy-vline
WA_QCERT_TS_BATCH_PDF_STR-VFDAT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-LVOCA sy-vline
WA_QCERT_TS_BATCH_PDF_STR-HERKR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-HERKL sy-vline
WA_QCERT_TS_BATCH_PDF_STR-MTVER sy-vline
WA_QCERT_TS_BATCH_PDF_STR-LIFCH sy-vline
WA_QCERT_TS_BATCH_PDF_STR-LICHA sy-vline
WA_QCERT_TS_BATCH_PDF_STR-QNDAT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ZAEDT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FVDT1 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FVDT2 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FVDT3 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FVDT4 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FVDT5 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FVDT6 sy-vline
WA_QCERT_TS_BATCH_PDF_STR-LVOCB sy-vline
WA_QCERT_TS_BATCH_PDF_STR-SGT_SCAT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FSH_SEASON_YEAR sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FSH_SEASON sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FSH_COLLECTION sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FSH_THEME sy-vline
WA_QCERT_TS_BATCH_PDF_STR-FSH_ATP_DATE sy-vline
WA_QCERT_TS_BATCH_PDF_STR-HSDAT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-LWEDT sy-vline
WA_QCERT_TS_BATCH_PDF_STR-ERSDA sy-vline
WA_QCERT_TS_BATCH_PDF_STR-BATCH_COUNT sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.