ABAP Select data from SAP table RJHA431_ORD_CREA 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 RJHA431_ORD_CREA 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 RJHA431_ORD_CREA. 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 RJHA431_ORD_CREA 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_RJHA431_ORD_CREA TYPE STANDARD TABLE OF RJHA431_ORD_CREA,
      WA_RJHA431_ORD_CREA TYPE RJHA431_ORD_CREA,
      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: <RJHA431_ORD_CREA> TYPE RJHA431_ORD_CREA.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM RJHA431_ORD_CREA
*  INTO TABLE @DATA(IT_RJHA431_ORD_CREA2).
*--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_RJHA431_ORD_CREA INDEX 1 INTO DATA(WA_RJHA431_ORD_CREA2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_RJHA431_ORD_CREA ASSIGNING <RJHA431_ORD_CREA>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<RJHA431_ORD_CREA>-MANDT = 1.
<RJHA431_ORD_CREA>-AVM_NR = 1.
<RJHA431_ORD_CREA>-POS_NR = 1.
<RJHA431_ORD_CREA>-BOOK_OL = 1.
<RJHA431_ORD_CREA>-ONLPOS_START = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_RJHA431_ORD_CREA-ONLPOS_ENDE, sy-vline,
WA_RJHA431_ORD_CREA-XTEXT_INT, sy-vline,
WA_RJHA431_ORD_CREA-XTEXT_EXT, sy-vline,
WA_RJHA431_ORD_CREA-AENVERS_NR_OL, sy-vline,
WA_RJHA431_ORD_CREA-XTECH_MIN1, sy-vline,
WA_RJHA431_ORD_CREA-XTECH_EE, sy-vline.
ENDLOOP. *Add any further fields from structure WA_RJHA431_ORD_CREA 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_RJHA431_ORD_CREA 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_RJHA431_ORD_CREA INTO WA_RJHA431_ORD_CREA. *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 AVM_NR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_RJHA431_ORD_CREA-AVM_NR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_RJHA431_ORD_CREA-AVM_NR.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit VERMK, internal->external for field VERMITTLER CALL FUNCTION 'CONVERSION_EXIT_VERMK_OUTPUT' EXPORTING input = WA_RJHA431_ORD_CREA-VERMITTLER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_RJHA431_ORD_CREA-VERMITTLER.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

*Conversion exit MCAMP, internal->external for field CAMPAIGN CALL FUNCTION 'CONVERSION_EXIT_MCAMP_OUTPUT' EXPORTING input = WA_RJHA431_ORD_CREA-CAMPAIGN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_RJHA431_ORD_CREA-CAMPAIGN.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit ALPHA, internal->external for field INHK_TLEV1 CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_RJHA431_ORD_CREA-INHK_TLEV1 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_RJHA431_ORD_CREA-INHK_TLEV1.
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_RJHA431_ORD_CREA_STR,
MANDT TYPE STRING,
AVM_NR TYPE STRING,
POS_NR TYPE STRING,
BOOK_OL TYPE STRING,
ONLPOS_START TYPE STRING,
ONLPOS_ENDE TYPE STRING,
XTEXT_INT TYPE STRING,
XTEXT_EXT TYPE STRING,
AENVERS_NR_OL TYPE STRING,
XTECH_MIN1 TYPE STRING,
XTECH_EE TYPE STRING,
MERKMAL0 TYPE STRING,
MERKMAL1 TYPE STRING,
MERKMAL2 TYPE STRING,
MERKMAL3 TYPE STRING,
MERKMAL4 TYPE STRING,
MERKMAL5 TYPE STRING,
MERKMAL6 TYPE STRING,
MERKMAL7 TYPE STRING,
MERKMAL8 TYPE STRING,
MERKMAL9 TYPE STRING,
INHK_KFM TYPE STRING,
INHK_KLEV1 TYPE STRING,
TIMESLICE TYPE STRING,
BOOK_TEXT TYPE STRING,
INHKK_TEXT TYPE STRING,
POS_ART TYPE STRING,
PSTYV TYPE STRING,
VBTYP TYPE STRING,
WERBK_TYP TYPE STRING,
WERBK_KNZ TYPE STRING,
XAGENAUFTR TYPE STRING,
XEINTEILG TYPE STRING,
BRAN_PAM TYPE STRING,
STATUSK TYPE STRING,
VERMITTLER TYPE STRING,
VNR TYPE STRING,
BEDNR TYPE STRING,
PROSL TYPE STRING,
KAMPAGNE TYPE STRING,
WERBK_POS TYPE STRING,
WERBK_UPOS TYPE STRING,
WERBK_EINT TYPE STRING,
REF_AVM_NR TYPE STRING,
REF_POS_NR TYPE STRING,
SUC_AVM_NR TYPE STRING,
SUC_POS_NR TYPE STRING,
VORL_AVMNR TYPE STRING,
VORL_POSNR TYPE STRING,
CAMPAIGN TYPE STRING,
PREIS_OM TYPE STRING,
PREIS_IM TYPE STRING,
PREIS_AVM1 TYPE STRING,
PREIS_AVM2 TYPE STRING,
MWST_BETR TYPE STRING,
WAEHRG TYPE STRING,
PREIS_KPW1 TYPE STRING,
PREIS_KPW2 TYPE STRING,
WAEHRG_KOP TYPE STRING,
VERM_NAME TYPE STRING,
BSARK_TXT TYPE STRING,
AP_NAME TYPE STRING,
XSUCFKP TYPE STRING,
BRAN_PAM_TEXT TYPE STRING,
KAMPAGNE_TEXT TYPE STRING,
UPSELL_PROP TYPE STRING,
COPYVAR_NEW_ITEM TYPE STRING,
XADV_CHNGD TYPE STRING,
XSUCRR TYPE STRING,
PREIS_AVM3 TYPE STRING,
PREIS_AVM4 TYPE STRING,
PREIS_AVM5 TYPE STRING,
PREIS_AVM6 TYPE STRING,
PREIS_AVM7 TYPE STRING,
PREIS_AVM8 TYPE STRING,
PACKAGE_NAME TYPE STRING,
PK_CHECK_TYPE TYPE STRING,
WAERG TYPE STRING,
FAKSPP TYPE STRING,
XSEPFKKOPF TYPE STRING,
ZTERM TYPE STRING,
VALDT TYPE STRING,
VALTG TYPE STRING,
PERFK TYPE STRING,
FAKDATUM TYPE STRING,
VORAUSKNZ TYPE STRING,
VORAUSRCH TYPE STRING,
XRECHN TYPE STRING,
XKFMAEND TYPE STRING,
KONDA TYPE STRING,
XORTSPREIS TYPE STRING,
KALKS TYPE STRING,
KUKARR_K TYPE STRING,
KARENZ TYPE STRING,
KARENZ_ME TYPE STRING,
KDGRP TYPE STRING,
KURST TYPE STRING,
PLTYP TYPE STRING,
ZLSCH TYPE STRING,
AE TYPE STRING,
XUVFAKT TYPE STRING,
XUVGP TYPE STRING,
XUVPREIS TYPE STRING,
XUVABSCHL TYPE STRING,
XUVVZ TYPE STRING,
XUVKPV TYPE STRING,
XGENEINT TYPE STRING,
XGENGRPF TYPE STRING,
XRESERV TYPE STRING,
XRESBEST TYPE STRING,
XFAKTMIN1 TYPE STRING,
XFAKTALL TYPE STRING,
XSPERR_BON TYPE STRING,
XKOMMFRGB TYPE STRING,
XNACHBEARB TYPE STRING,
XUVPK TYPE STRING,
XUVPK_ELEM TYPE STRING,
XUV_ADM_VAL TYPE STRING,
XUVPK_PREIS TYPE STRING,
XRABZU TYPE STRING,
PREIS_OM_C TYPE STRING,
PREIS_IM_C TYPE STRING,
PREISAVM1C TYPE STRING,
PREISAVM2C TYPE STRING,
PREAVM1C15 TYPE STRING,
PREAVM2C15 TYPE STRING,
PREISHEAD1 TYPE STRING,
PREISHEAD2 TYPE STRING,
NOTIZKNZ TYPE STRING,
BELEGEINH TYPE STRING,
BE_KURZ TYPE STRING,
BEKENNZ TYPE STRING,
INSERENT TYPE STRING,
INS_NAME TYPE STRING,
INSERKNZ TYPE STRING,
XINSBLANK TYPE STRING,
ALTINSGPNR TYPE STRING,
VERMITTKNZ TYPE STRING,
ABSCHL_NR TYPE STRING,
ABS_POSNR TYPE STRING,
ABINHNR_NAME TYPE STRING,
ABSCHL_KNZ TYPE STRING,
EINTL_ANZ TYPE STRING,
XSTORNIERT TYPE STRING,
STORNOGRND TYPE STRING,
STAT_AMPEL TYPE STRING,
PRDH_HERKUNFT TYPE STRING,
PRDH_PRODUKT TYPE STRING,
PRDH_PRODUKTBEZ TYPE STRING,
PACKAGE_ID TYPE STRING,
PK_REF_AVM_NR TYPE STRING,
PK_REF_POS_NR TYPE STRING,
PK_ELEMENT_ID TYPE STRING,
PK_PSTYV TYPE STRING,
PACKAGE_TYPE TYPE STRING,
PACKAGE_CATEGORY TYPE STRING,
PREISHEAD3 TYPE STRING,
PREISHEAD4 TYPE STRING,
PREISHEAD5 TYPE STRING,
PREISHEAD6 TYPE STRING,
PREISHEAD7 TYPE STRING,
PREISHEAD8 TYPE STRING,
SOLL_KONTAKTZAHL TYPE STRING,
UNIT_OL TYPE STRING,
INHK_TECH1 TYPE STRING,
INHKT_TEXT TYPE STRING,
INHK_TLEV1 TYPE STRING,
XBEIKOZUO TYPE STRING,
PLAZ_ONL TYPE STRING,
PLZONL_TEXT TYPE STRING,
XPLAZ_KOMM TYPE STRING,
TARGET TYPE STRING,
TARGET_TEXT TYPE STRING,
XTARGZUO TYPE STRING,
BEARB_KURZ TYPE STRING,
XMOT_MULT TYPE STRING,
XMOTPOSUNI TYPE STRING,
PRODH_TEXT TYPE STRING,
TIMESLICE_TEXT TYPE STRING,
XCALE_SEL TYPE STRING,
TARGET_STR TYPE STRING,END OF T_EKKO_STR. DATA: WA_RJHA431_ORD_CREA_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_RJHA431_ORD_CREA_STR-MANDT sy-vline
WA_RJHA431_ORD_CREA_STR-AVM_NR sy-vline
WA_RJHA431_ORD_CREA_STR-POS_NR sy-vline
WA_RJHA431_ORD_CREA_STR-BOOK_OL sy-vline
WA_RJHA431_ORD_CREA_STR-ONLPOS_START sy-vline
WA_RJHA431_ORD_CREA_STR-ONLPOS_ENDE sy-vline
WA_RJHA431_ORD_CREA_STR-XTEXT_INT sy-vline
WA_RJHA431_ORD_CREA_STR-XTEXT_EXT sy-vline
WA_RJHA431_ORD_CREA_STR-AENVERS_NR_OL sy-vline
WA_RJHA431_ORD_CREA_STR-XTECH_MIN1 sy-vline
WA_RJHA431_ORD_CREA_STR-XTECH_EE sy-vline
WA_RJHA431_ORD_CREA_STR-MERKMAL0 sy-vline
WA_RJHA431_ORD_CREA_STR-MERKMAL1 sy-vline
WA_RJHA431_ORD_CREA_STR-MERKMAL2 sy-vline
WA_RJHA431_ORD_CREA_STR-MERKMAL3 sy-vline
WA_RJHA431_ORD_CREA_STR-MERKMAL4 sy-vline
WA_RJHA431_ORD_CREA_STR-MERKMAL5 sy-vline
WA_RJHA431_ORD_CREA_STR-MERKMAL6 sy-vline
WA_RJHA431_ORD_CREA_STR-MERKMAL7 sy-vline
WA_RJHA431_ORD_CREA_STR-MERKMAL8 sy-vline
WA_RJHA431_ORD_CREA_STR-MERKMAL9 sy-vline
WA_RJHA431_ORD_CREA_STR-INHK_KFM sy-vline
WA_RJHA431_ORD_CREA_STR-INHK_KLEV1 sy-vline
WA_RJHA431_ORD_CREA_STR-TIMESLICE sy-vline
WA_RJHA431_ORD_CREA_STR-BOOK_TEXT sy-vline
WA_RJHA431_ORD_CREA_STR-INHKK_TEXT sy-vline
WA_RJHA431_ORD_CREA_STR-POS_ART sy-vline
WA_RJHA431_ORD_CREA_STR-PSTYV sy-vline
WA_RJHA431_ORD_CREA_STR-VBTYP sy-vline
WA_RJHA431_ORD_CREA_STR-WERBK_TYP sy-vline
WA_RJHA431_ORD_CREA_STR-WERBK_KNZ sy-vline
WA_RJHA431_ORD_CREA_STR-XAGENAUFTR sy-vline
WA_RJHA431_ORD_CREA_STR-XEINTEILG sy-vline
WA_RJHA431_ORD_CREA_STR-BRAN_PAM sy-vline
WA_RJHA431_ORD_CREA_STR-STATUSK sy-vline
WA_RJHA431_ORD_CREA_STR-VERMITTLER sy-vline
WA_RJHA431_ORD_CREA_STR-VNR sy-vline
WA_RJHA431_ORD_CREA_STR-BEDNR sy-vline
WA_RJHA431_ORD_CREA_STR-PROSL sy-vline
WA_RJHA431_ORD_CREA_STR-KAMPAGNE sy-vline
WA_RJHA431_ORD_CREA_STR-WERBK_POS sy-vline
WA_RJHA431_ORD_CREA_STR-WERBK_UPOS sy-vline
WA_RJHA431_ORD_CREA_STR-WERBK_EINT sy-vline
WA_RJHA431_ORD_CREA_STR-REF_AVM_NR sy-vline
WA_RJHA431_ORD_CREA_STR-REF_POS_NR sy-vline
WA_RJHA431_ORD_CREA_STR-SUC_AVM_NR sy-vline
WA_RJHA431_ORD_CREA_STR-SUC_POS_NR sy-vline
WA_RJHA431_ORD_CREA_STR-VORL_AVMNR sy-vline
WA_RJHA431_ORD_CREA_STR-VORL_POSNR sy-vline
WA_RJHA431_ORD_CREA_STR-CAMPAIGN sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_OM sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_IM sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_AVM1 sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_AVM2 sy-vline
WA_RJHA431_ORD_CREA_STR-MWST_BETR sy-vline
WA_RJHA431_ORD_CREA_STR-WAEHRG sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_KPW1 sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_KPW2 sy-vline
WA_RJHA431_ORD_CREA_STR-WAEHRG_KOP sy-vline
WA_RJHA431_ORD_CREA_STR-VERM_NAME sy-vline
WA_RJHA431_ORD_CREA_STR-BSARK_TXT sy-vline
WA_RJHA431_ORD_CREA_STR-AP_NAME sy-vline
WA_RJHA431_ORD_CREA_STR-XSUCFKP sy-vline
WA_RJHA431_ORD_CREA_STR-BRAN_PAM_TEXT sy-vline
WA_RJHA431_ORD_CREA_STR-KAMPAGNE_TEXT sy-vline
WA_RJHA431_ORD_CREA_STR-UPSELL_PROP sy-vline
WA_RJHA431_ORD_CREA_STR-COPYVAR_NEW_ITEM sy-vline
WA_RJHA431_ORD_CREA_STR-XADV_CHNGD sy-vline
WA_RJHA431_ORD_CREA_STR-XSUCRR sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_AVM3 sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_AVM4 sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_AVM5 sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_AVM6 sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_AVM7 sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_AVM8 sy-vline
WA_RJHA431_ORD_CREA_STR-PACKAGE_NAME sy-vline
WA_RJHA431_ORD_CREA_STR-PK_CHECK_TYPE sy-vline
WA_RJHA431_ORD_CREA_STR-WAERG sy-vline
WA_RJHA431_ORD_CREA_STR-FAKSPP sy-vline
WA_RJHA431_ORD_CREA_STR-XSEPFKKOPF sy-vline
WA_RJHA431_ORD_CREA_STR-ZTERM sy-vline
WA_RJHA431_ORD_CREA_STR-VALDT sy-vline
WA_RJHA431_ORD_CREA_STR-VALTG sy-vline
WA_RJHA431_ORD_CREA_STR-PERFK sy-vline
WA_RJHA431_ORD_CREA_STR-FAKDATUM sy-vline
WA_RJHA431_ORD_CREA_STR-VORAUSKNZ sy-vline
WA_RJHA431_ORD_CREA_STR-VORAUSRCH sy-vline
WA_RJHA431_ORD_CREA_STR-XRECHN sy-vline
WA_RJHA431_ORD_CREA_STR-XKFMAEND sy-vline
WA_RJHA431_ORD_CREA_STR-KONDA sy-vline
WA_RJHA431_ORD_CREA_STR-XORTSPREIS sy-vline
WA_RJHA431_ORD_CREA_STR-KALKS sy-vline
WA_RJHA431_ORD_CREA_STR-KUKARR_K sy-vline
WA_RJHA431_ORD_CREA_STR-KARENZ sy-vline
WA_RJHA431_ORD_CREA_STR-KARENZ_ME sy-vline
WA_RJHA431_ORD_CREA_STR-KDGRP sy-vline
WA_RJHA431_ORD_CREA_STR-KURST sy-vline
WA_RJHA431_ORD_CREA_STR-PLTYP sy-vline
WA_RJHA431_ORD_CREA_STR-ZLSCH sy-vline
WA_RJHA431_ORD_CREA_STR-AE sy-vline
WA_RJHA431_ORD_CREA_STR-XUVFAKT sy-vline
WA_RJHA431_ORD_CREA_STR-XUVGP sy-vline
WA_RJHA431_ORD_CREA_STR-XUVPREIS sy-vline
WA_RJHA431_ORD_CREA_STR-XUVABSCHL sy-vline
WA_RJHA431_ORD_CREA_STR-XUVVZ sy-vline
WA_RJHA431_ORD_CREA_STR-XUVKPV sy-vline
WA_RJHA431_ORD_CREA_STR-XGENEINT sy-vline
WA_RJHA431_ORD_CREA_STR-XGENGRPF sy-vline
WA_RJHA431_ORD_CREA_STR-XRESERV sy-vline
WA_RJHA431_ORD_CREA_STR-XRESBEST sy-vline
WA_RJHA431_ORD_CREA_STR-XFAKTMIN1 sy-vline
WA_RJHA431_ORD_CREA_STR-XFAKTALL sy-vline
WA_RJHA431_ORD_CREA_STR-XSPERR_BON sy-vline
WA_RJHA431_ORD_CREA_STR-XKOMMFRGB sy-vline
WA_RJHA431_ORD_CREA_STR-XNACHBEARB sy-vline
WA_RJHA431_ORD_CREA_STR-XUVPK sy-vline
WA_RJHA431_ORD_CREA_STR-XUVPK_ELEM sy-vline
WA_RJHA431_ORD_CREA_STR-XUV_ADM_VAL sy-vline
WA_RJHA431_ORD_CREA_STR-XUVPK_PREIS sy-vline
WA_RJHA431_ORD_CREA_STR-XRABZU sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_OM_C sy-vline
WA_RJHA431_ORD_CREA_STR-PREIS_IM_C sy-vline
WA_RJHA431_ORD_CREA_STR-PREISAVM1C sy-vline
WA_RJHA431_ORD_CREA_STR-PREISAVM2C sy-vline
WA_RJHA431_ORD_CREA_STR-PREAVM1C15 sy-vline
WA_RJHA431_ORD_CREA_STR-PREAVM2C15 sy-vline
WA_RJHA431_ORD_CREA_STR-PREISHEAD1 sy-vline
WA_RJHA431_ORD_CREA_STR-PREISHEAD2 sy-vline
WA_RJHA431_ORD_CREA_STR-NOTIZKNZ sy-vline
WA_RJHA431_ORD_CREA_STR-BELEGEINH sy-vline
WA_RJHA431_ORD_CREA_STR-BE_KURZ sy-vline
WA_RJHA431_ORD_CREA_STR-BEKENNZ sy-vline
WA_RJHA431_ORD_CREA_STR-INSERENT sy-vline
WA_RJHA431_ORD_CREA_STR-INS_NAME sy-vline
WA_RJHA431_ORD_CREA_STR-INSERKNZ sy-vline
WA_RJHA431_ORD_CREA_STR-XINSBLANK sy-vline
WA_RJHA431_ORD_CREA_STR-ALTINSGPNR sy-vline
WA_RJHA431_ORD_CREA_STR-VERMITTKNZ sy-vline
WA_RJHA431_ORD_CREA_STR-ABSCHL_NR sy-vline
WA_RJHA431_ORD_CREA_STR-ABS_POSNR sy-vline
WA_RJHA431_ORD_CREA_STR-ABINHNR_NAME sy-vline
WA_RJHA431_ORD_CREA_STR-ABSCHL_KNZ sy-vline
WA_RJHA431_ORD_CREA_STR-EINTL_ANZ sy-vline
WA_RJHA431_ORD_CREA_STR-XSTORNIERT sy-vline
WA_RJHA431_ORD_CREA_STR-STORNOGRND sy-vline
WA_RJHA431_ORD_CREA_STR-STAT_AMPEL sy-vline
WA_RJHA431_ORD_CREA_STR-PRDH_HERKUNFT sy-vline
WA_RJHA431_ORD_CREA_STR-PRDH_PRODUKT sy-vline
WA_RJHA431_ORD_CREA_STR-PRDH_PRODUKTBEZ sy-vline
WA_RJHA431_ORD_CREA_STR-PACKAGE_ID sy-vline
WA_RJHA431_ORD_CREA_STR-PK_REF_AVM_NR sy-vline
WA_RJHA431_ORD_CREA_STR-PK_REF_POS_NR sy-vline
WA_RJHA431_ORD_CREA_STR-PK_ELEMENT_ID sy-vline
WA_RJHA431_ORD_CREA_STR-PK_PSTYV sy-vline
WA_RJHA431_ORD_CREA_STR-PACKAGE_TYPE sy-vline
WA_RJHA431_ORD_CREA_STR-PACKAGE_CATEGORY sy-vline
WA_RJHA431_ORD_CREA_STR-PREISHEAD3 sy-vline
WA_RJHA431_ORD_CREA_STR-PREISHEAD4 sy-vline
WA_RJHA431_ORD_CREA_STR-PREISHEAD5 sy-vline
WA_RJHA431_ORD_CREA_STR-PREISHEAD6 sy-vline
WA_RJHA431_ORD_CREA_STR-PREISHEAD7 sy-vline
WA_RJHA431_ORD_CREA_STR-PREISHEAD8 sy-vline
WA_RJHA431_ORD_CREA_STR-SOLL_KONTAKTZAHL sy-vline
WA_RJHA431_ORD_CREA_STR-UNIT_OL sy-vline
WA_RJHA431_ORD_CREA_STR-INHK_TECH1 sy-vline
WA_RJHA431_ORD_CREA_STR-INHKT_TEXT sy-vline
WA_RJHA431_ORD_CREA_STR-INHK_TLEV1 sy-vline
WA_RJHA431_ORD_CREA_STR-XBEIKOZUO sy-vline
WA_RJHA431_ORD_CREA_STR-PLAZ_ONL sy-vline
WA_RJHA431_ORD_CREA_STR-PLZONL_TEXT sy-vline
WA_RJHA431_ORD_CREA_STR-XPLAZ_KOMM sy-vline
WA_RJHA431_ORD_CREA_STR-TARGET sy-vline
WA_RJHA431_ORD_CREA_STR-TARGET_TEXT sy-vline
WA_RJHA431_ORD_CREA_STR-XTARGZUO sy-vline
WA_RJHA431_ORD_CREA_STR-BEARB_KURZ sy-vline
WA_RJHA431_ORD_CREA_STR-XMOT_MULT sy-vline
WA_RJHA431_ORD_CREA_STR-XMOTPOSUNI sy-vline
WA_RJHA431_ORD_CREA_STR-PRODH_TEXT sy-vline
WA_RJHA431_ORD_CREA_STR-TIMESLICE_TEXT sy-vline
WA_RJHA431_ORD_CREA_STR-XCALE_SEL sy-vline
WA_RJHA431_ORD_CREA_STR-TARGET_STR sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.