ABAP Select data from SAP table MTE_S_RECEIPT_TO_SPLIT 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 MTE_S_RECEIPT_TO_SPLIT 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 MTE_S_RECEIPT_TO_SPLIT. 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 MTE_S_RECEIPT_TO_SPLIT 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_MTE_S_RECEIPT_TO_SPLIT TYPE STANDARD TABLE OF MTE_S_RECEIPT_TO_SPLIT,
      WA_MTE_S_RECEIPT_TO_SPLIT TYPE MTE_S_RECEIPT_TO_SPLIT,
      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: <MTE_S_RECEIPT_TO_SPLIT> TYPE MTE_S_RECEIPT_TO_SPLIT.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM MTE_S_RECEIPT_TO_SPLIT
*  INTO TABLE @DATA(IT_MTE_S_RECEIPT_TO_SPLIT2).
*--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_MTE_S_RECEIPT_TO_SPLIT INDEX 1 INTO DATA(WA_MTE_S_RECEIPT_TO_SPLIT2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_MTE_S_RECEIPT_TO_SPLIT ASSIGNING <MTE_S_RECEIPT_TO_SPLIT>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<MTE_S_RECEIPT_TO_SPLIT>-PERNR = 1.
<MTE_S_RECEIPT_TO_SPLIT>-TRIPNO = 1.
<MTE_S_RECEIPT_TO_SPLIT>-CRITICALITY = 1.
<MTE_S_RECEIPT_TO_SPLIT>-RECEIPTNO = 1.
<MTE_S_RECEIPT_TO_SPLIT>-EXP_TYPE = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_MTE_S_RECEIPT_TO_SPLIT-VISIBLESPK, sy-vline,
WA_MTE_S_RECEIPT_TO_SPLIT-INPUTSPK, sy-vline,
WA_MTE_S_RECEIPT_TO_SPLIT-REQUIREDSPK, sy-vline,
WA_MTE_S_RECEIPT_TO_SPLIT-EXP_CATE, sy-vline,
WA_MTE_S_RECEIPT_TO_SPLIT-VISIBLEPAP, sy-vline,
WA_MTE_S_RECEIPT_TO_SPLIT-INPUTPAP, sy-vline.
ENDLOOP. *Add any further fields from structure WA_MTE_S_RECEIPT_TO_SPLIT 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_MTE_S_RECEIPT_TO_SPLIT 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_MTE_S_RECEIPT_TO_SPLIT INTO WA_MTE_S_RECEIPT_TO_SPLIT. *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 EXCRT, internal->external for field REC_RATE CALL FUNCTION 'CONVERSION_EXIT_EXCRT_OUTPUT' EXPORTING input = WA_MTE_S_RECEIPT_TO_SPLIT-REC_RATE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_MTE_S_RECEIPT_TO_SPLIT-REC_RATE.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ISOLA, internal->external for field VAT_SRV_DESC_LANGU CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTPUT' EXPORTING input = WA_MTE_S_RECEIPT_TO_SPLIT-VAT_SRV_DESC_LANGU IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_MTE_S_RECEIPT_TO_SPLIT-VAT_SRV_DESC_LANGU.
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_MTE_S_RECEIPT_TO_SPLIT_STR,
PERNR TYPE STRING,
TRIPNO TYPE STRING,
CRITICALITY TYPE STRING,
RECEIPTNO TYPE STRING,
EXP_TYPE TYPE STRING,
VISIBLESPK TYPE STRING,
INPUTSPK TYPE STRING,
REQUIREDSPK TYPE STRING,
EXP_CATE TYPE STRING,
VISIBLEPAP TYPE STRING,
INPUTPAP TYPE STRING,
REQUIREDPAP TYPE STRING,
PAPER_RECEIPT TYPE STRING,
REC_AMOUNT TYPE STRING,
VISIBLEAMN TYPE STRING,
INPUTAMN TYPE STRING,
REQUIREDAMN TYPE STRING,
REC_CURR TYPE STRING,
VISIBLECUR TYPE STRING,
INPUTCUR TYPE STRING,
REQUIREDCUR TYPE STRING,
REC_RATE TYPE STRING,
VISIBLERAT TYPE STRING,
INPUTRAT TYPE STRING,
REQUIREDRAT TYPE STRING,
S_FACTOR TYPE STRING,
T_FACTOR TYPE STRING,
VISIBLEDAT TYPE STRING,
INPUTDAT TYPE STRING,
REQUIREDDAT TYPE STRING,
REC_DATE TYPE STRING,
PAY_AMOUNT TYPE STRING,
VISIBLEPAM TYPE STRING,
INPUTPAM TYPE STRING,
REQUIREDPAM TYPE STRING,
PAY_CURR TYPE STRING,
VISIBLEPCU TYPE STRING,
INPUTPCU TYPE STRING,
REQUIREDPCU TYPE STRING,
TAX_CODE TYPE STRING,
TAXJURCODE TYPE STRING,
VISIBLESTX TYPE STRING,
INPUTSTX TYPE STRING,
REQUIREDSTX TYPE STRING,
SHORTTXT TYPE STRING,
COUNTRY TYPE STRING,
REGION TYPE STRING,
FROM_DATE TYPE STRING,
TO_DATE TYPE STRING,
NO_UNIT TYPE STRING,
NO_BRFT TYPE STRING,
DESCRIPT TYPE STRING,
LOCATION TYPE STRING,
BUS_PURPO TYPE STRING,
VISIBLEBPP TYPE STRING,
INPUTBPP TYPE STRING,
REQUIREDBPP TYPE STRING,
BUS_REASON TYPE STRING,
CCOMP TYPE STRING,
VISIBLECCP TYPE STRING,
INPUTCCP TYPE STRING,
REQUIREDCCP TYPE STRING,
C_DOC TYPE STRING,
VISIBLECDC TYPE STRING,
INPUTCDC TYPE STRING,
REQUIREDCDC TYPE STRING,
C_TXT TYPE STRING,
VISIBLECTX TYPE STRING,
INPUTCTX TYPE STRING,
REQUIREDCTX TYPE STRING,
CCARD TYPE STRING,
CEKEY TYPE STRING,
P_CTG TYPE STRING,
P_PRV TYPE STRING,
P_DOC TYPE STRING,
N_STF TYPE STRING,
N_PTN TYPE STRING,
N_GST TYPE STRING,
PAID_COM TYPE STRING,
PAYOUT TYPE STRING,
ABOVE_LIMIT TYPE STRING,
COMING_FROM_PLAN TYPE STRING,
REF_NO TYPE STRING,
VISIBLEROK TYPE STRING,
INPUTROK TYPE STRING,
REQUIREDROK TYPE STRING,
RECEIPT_OK TYPE STRING,
TT_COMSP TYPE STRING,
CHECK_RESULT TYPE STRING,
DISPLAY_ONLY TYPE STRING,
EDITOR TYPE STRING,
EXP_TYPE_ORIGINAL TYPE STRING,
EXP_TYPE1 TYPE STRING,
EXP_TYPE2 TYPE STRING,
EXP_TYPE3 TYPE STRING,
EXP_TYPE4 TYPE STRING,
EXP_TYPE5 TYPE STRING,
EXP_TYPE6 TYPE STRING,
PRIEXP TYPE STRING,
NO_LUNCH TYPE STRING,
NO_DINNER TYPE STRING,
FULL_AMOUNT_REIMB TYPE STRING,
PAPER_MISSING TYPE STRING,
BOOKED_PRICE TYPE STRING,
BOOKED_CURR TYPE STRING,
DIFF_AMOUNT TYPE STRING,
DIFF_CURR TYPE STRING,
REASON TYPE STRING,
DIFF_VIOLATION TYPE STRING,
RECEIPT_NO TYPE STRING,
VISIBLERNO TYPE STRING,
INPUTRNO TYPE STRING,
REQUIREDRNO TYPE STRING,
RECEIPT_ITEM TYPE STRING,
VISIBLERIT TYPE STRING,
INPUTRIT TYPE STRING,
REQUIREDRIT TYPE STRING,
VAT_AMOUNT TYPE STRING,
VISIBLEVAM TYPE STRING,
INPUTVAM TYPE STRING,
REQUIREDVAM TYPE STRING,
VAT_SERVICE_CODE TYPE STRING,
VISIBLEVSC TYPE STRING,
INPUTVSC TYPE STRING,
REQUIREDVSC TYPE STRING,
VAT_SERVICE_DESC TYPE STRING,
VISIBLEVSD TYPE STRING,
INPUTVSD TYPE STRING,
REQUIREDVSD TYPE STRING,
VAT_REG_NO TYPE STRING,
VISIBLEVRN TYPE STRING,
INPUTVRN TYPE STRING,
REQUIREDVRN TYPE STRING,
VAT_REG_NO_NAT TYPE STRING,
VISIBLEVNN TYPE STRING,
INPUTVNN TYPE STRING,
REQUIREDVNN TYPE STRING,
NAME TYPE STRING,
VISIBLENAM TYPE STRING,
INPUTNAM TYPE STRING,
REQUIREDNAM TYPE STRING,
STREET TYPE STRING,
VISIBLESTR TYPE STRING,
INPUTSTR TYPE STRING,
REQUIREDSTR TYPE STRING,
HOUSE_NUM TYPE STRING,
VISIBLEHNU TYPE STRING,
INPUTHNU TYPE STRING,
REQUIREDHNU TYPE STRING,
POST_CODE TYPE STRING,
VISIBLEPCD TYPE STRING,
INPUTPCD TYPE STRING,
REQUIREDPCD TYPE STRING,
CITY TYPE STRING,
VISIBLECTY TYPE STRING,
INPUTCTY TYPE STRING,
REQUIREDCTY TYPE STRING,
VAT_SUB_SRV_CODE TYPE STRING,
VAT_SRV_DESC_LANGU TYPE STRING,
VAT_CHANGED_MAN TYPE STRING,
IMAGE_LINK TYPE STRING,
FROM_MOBILE TYPE STRING,
VISIBLEMOB TYPE STRING,
INPUTMOB TYPE STRING,
REQUIREDMOB TYPE STRING,
AIR_DEPARTURE TYPE STRING,
VISIBLEAID TYPE STRING,
INPUTAID TYPE STRING,
REQUIREDAID TYPE STRING,
AIR_ARRIVAL TYPE STRING,
VISIBLEAIA TYPE STRING,
INPUTAIA TYPE STRING,
REQUIREDAIA TYPE STRING,
AIRLINE TYPE STRING,
VISIBLEAIL TYPE STRING,
INPUTAIL TYPE STRING,
REQUIREDAIL TYPE STRING,
AIR_CABIN_CLASS TYPE STRING,
VISIBLEAIC TYPE STRING,
INPUTAIC TYPE STRING,
REQUIREDAIC TYPE STRING,
AIR_TICKET_NUMBER TYPE STRING,
VISIBLEAIT TYPE STRING,
INPUTAIT TYPE STRING,
REQUIREDAIT TYPE STRING,
CAR_ODOMETER_READING TYPE STRING,
VISIBLEODO TYPE STRING,
INPUTODO TYPE STRING,
REQUIREDODO TYPE STRING,
SE_NAME TYPE STRING,
VISIBLESNA TYPE STRING,
INPUTSNA TYPE STRING,
REQUIREDSNA TYPE STRING,
SE_STREET TYPE STRING,
VISIBLESST TYPE STRING,
INPUTSST TYPE STRING,
REQUIREDSST TYPE STRING,
SE_CITY TYPE STRING,
VISIBLESCI TYPE STRING,
INPUTSCI TYPE STRING,
REQUIREDSCI TYPE STRING,
SE_STATE_PROVINCE TYPE STRING,
VISIBLESPR TYPE STRING,
INPUTSPR TYPE STRING,
REQUIREDSPR TYPE STRING,
SE_COUNTRY TYPE STRING,
VISIBLESCO TYPE STRING,
INPUTSCO TYPE STRING,
REQUIREDSCO TYPE STRING,
SE_POSTAL_CODE TYPE STRING,
VISIBLESPC TYPE STRING,
INPUTSPC TYPE STRING,
REQUIREDSPC TYPE STRING,
SE_CUSTOMER_SERVICE_PHONE TYPE STRING,
VISIBLESPH TYPE STRING,
INPUTSPH TYPE STRING,
REQUIREDSPH TYPE STRING,
BELSA TYPE STRING,
MAZUB TYPE STRING,
RECAG TYPE STRING,
SADV TYPE STRING,
T_GUEST TYPE STRING,
T_PRODUCT TYPE STRING,
EXP_TYPE_NAME TYPE STRING,
EXP_CATE_NAME TYPE STRING,
REC_CURR_NAME TYPE STRING,
PAY_CURR_NAME TYPE STRING,
TAX_CODE_NAME TYPE STRING,
TAXJURCODE_NAME TYPE STRING,
COUNTRY_REGION_NAME TYPE STRING,
CCOMP_NAME TYPE STRING,
P_CTG_NAME TYPE STRING,
P_PRV_NAME TYPE STRING,
PAYOUT_NAME TYPE STRING,
TT_COMSP_NAME TYPE STRING,
NUMBER_FOR_SPLITTING TYPE STRING,
AMOUNT_FOR_ALL_ITEMS TYPE STRING,
ADAPT_RECEIPT_DATE TYPE STRING,
ADAPT_FROM_DATE_TO_DATE TYPE STRING,
AMOUNT_SPLIT_MODE TYPE STRING,
DUMMY_SPLIT TYPE STRING,END OF T_EKKO_STR. DATA: WA_MTE_S_RECEIPT_TO_SPLIT_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_MTE_S_RECEIPT_TO_SPLIT_STR-PERNR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-TRIPNO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-CRITICALITY sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-RECEIPTNO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EXP_TYPE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLESPK sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTSPK sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDSPK sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EXP_CATE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEPAP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTPAP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDPAP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-PAPER_RECEIPT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REC_AMOUNT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEAMN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTAMN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDAMN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REC_CURR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLECUR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTCUR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDCUR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REC_RATE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLERAT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTRAT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDRAT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-S_FACTOR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-T_FACTOR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEDAT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTDAT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDDAT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REC_DATE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-PAY_AMOUNT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEPAM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTPAM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDPAM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-PAY_CURR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEPCU sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTPCU sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDPCU sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-TAX_CODE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-TAXJURCODE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLESTX sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTSTX sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDSTX sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-SHORTTXT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-COUNTRY sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REGION sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-FROM_DATE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-TO_DATE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-NO_UNIT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-NO_BRFT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-DESCRIPT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-LOCATION sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-BUS_PURPO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEBPP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTBPP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDBPP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-BUS_REASON sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-CCOMP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLECCP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTCCP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDCCP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-C_DOC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLECDC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTCDC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDCDC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-C_TXT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLECTX sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTCTX sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDCTX sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-CCARD sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-CEKEY sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-P_CTG sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-P_PRV sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-P_DOC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-N_STF sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-N_PTN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-N_GST sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-PAID_COM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-PAYOUT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-ABOVE_LIMIT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-COMING_FROM_PLAN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REF_NO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEROK sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTROK sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDROK sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-RECEIPT_OK sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-TT_COMSP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-CHECK_RESULT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-DISPLAY_ONLY sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EDITOR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EXP_TYPE_ORIGINAL sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EXP_TYPE1 sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EXP_TYPE2 sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EXP_TYPE3 sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EXP_TYPE4 sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EXP_TYPE5 sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EXP_TYPE6 sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-PRIEXP sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-NO_LUNCH sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-NO_DINNER sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-FULL_AMOUNT_REIMB sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-PAPER_MISSING sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-BOOKED_PRICE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-BOOKED_CURR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-DIFF_AMOUNT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-DIFF_CURR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REASON sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-DIFF_VIOLATION sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-RECEIPT_NO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLERNO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTRNO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDRNO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-RECEIPT_ITEM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLERIT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTRIT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDRIT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VAT_AMOUNT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEVAM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTVAM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDVAM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VAT_SERVICE_CODE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEVSC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTVSC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDVSC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VAT_SERVICE_DESC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEVSD sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTVSD sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDVSD sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VAT_REG_NO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEVRN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTVRN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDVRN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VAT_REG_NO_NAT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEVNN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTVNN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDVNN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLENAM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTNAM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDNAM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-STREET sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLESTR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTSTR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDSTR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-HOUSE_NUM sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEHNU sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTHNU sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDHNU sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-POST_CODE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEPCD sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTPCD sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDPCD sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-CITY sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLECTY sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTCTY sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDCTY sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VAT_SUB_SRV_CODE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VAT_SRV_DESC_LANGU sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VAT_CHANGED_MAN sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-IMAGE_LINK sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-FROM_MOBILE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEMOB sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTMOB sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDMOB sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-AIR_DEPARTURE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEAID sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTAID sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDAID sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-AIR_ARRIVAL sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEAIA sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTAIA sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDAIA sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-AIRLINE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEAIL sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTAIL sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDAIL sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-AIR_CABIN_CLASS sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEAIC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTAIC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDAIC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-AIR_TICKET_NUMBER sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEAIT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTAIT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDAIT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-CAR_ODOMETER_READING sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLEODO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTODO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDODO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-SE_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLESNA sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTSNA sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDSNA sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-SE_STREET sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLESST sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTSST sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDSST sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-SE_CITY sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLESCI sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTSCI sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDSCI sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-SE_STATE_PROVINCE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLESPR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTSPR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDSPR sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-SE_COUNTRY sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLESCO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTSCO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDSCO sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-SE_POSTAL_CODE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLESPC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTSPC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDSPC sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-SE_CUSTOMER_SERVICE_PHONE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-VISIBLESPH sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-INPUTSPH sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REQUIREDSPH sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-BELSA sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-MAZUB sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-RECAG sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-SADV sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-T_GUEST sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-T_PRODUCT sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EXP_TYPE_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-EXP_CATE_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-REC_CURR_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-PAY_CURR_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-TAX_CODE_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-TAXJURCODE_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-COUNTRY_REGION_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-CCOMP_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-P_CTG_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-P_PRV_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-PAYOUT_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-TT_COMSP_NAME sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-NUMBER_FOR_SPLITTING sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-AMOUNT_FOR_ALL_ITEMS sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-ADAPT_RECEIPT_DATE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-ADAPT_FROM_DATE_TO_DATE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-AMOUNT_SPLIT_MODE sy-vline
WA_MTE_S_RECEIPT_TO_SPLIT_STR-DUMMY_SPLIT sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.