ABAP Select data from SAP table EORDEROBJ_OUTPUT 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 EORDEROBJ_OUTPUT 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 EORDEROBJ_OUTPUT. 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 EORDEROBJ_OUTPUT 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_EORDEROBJ_OUTPUT TYPE STANDARD TABLE OF EORDEROBJ_OUTPUT,
      WA_EORDEROBJ_OUTPUT TYPE EORDEROBJ_OUTPUT,
      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: <EORDEROBJ_OUTPUT> TYPE EORDEROBJ_OUTPUT.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM EORDEROBJ_OUTPUT
*  INTO TABLE @DATA(IT_EORDEROBJ_OUTPUT2).
*--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_EORDEROBJ_OUTPUT INDEX 1 INTO DATA(WA_EORDEROBJ_OUTPUT2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_EORDEROBJ_OUTPUT ASSIGNING <EORDEROBJ_OUTPUT>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<EORDEROBJ_OUTPUT>-SERVFREQ_TXT = 1.
<EORDEROBJ_OUTPUT>-SERVLOC_FLAG = 1.
<EORDEROBJ_OUTPUT>-INSTLN_FLAG = 1.
<EORDEROBJ_OUTPUT>-SDAUFNR_FLAG = 1.
<EORDEROBJ_OUTPUT>-ROB_FLAG = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_EORDEROBJ_OUTPUT-STYPE_TXT, sy-vline,
WA_EORDEROBJ_OUTPUT-MANDT, sy-vline,
WA_EORDEROBJ_OUTPUT-ORDERNR, sy-vline,
WA_EORDEROBJ_OUTPUT-ORDER_LAUFNR, sy-vline,
WA_EORDEROBJ_OUTPUT-CONTAINER, sy-vline,
WA_EORDEROBJ_OUTPUT-BEH_TYPE, sy-vline.
ENDLOOP. *Add any further fields from structure WA_EORDEROBJ_OUTPUT 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_EORDEROBJ_OUTPUT 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_EORDEROBJ_OUTPUT INTO WA_EORDEROBJ_OUTPUT. *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 ORDERNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_EORDEROBJ_OUTPUT-ORDERNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EORDEROBJ_OUTPUT-ORDERNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit GERNR, internal->external for field CONTAINER CALL FUNCTION 'CONVERSION_EXIT_GERNR_OUTPUT' EXPORTING input = WA_EORDEROBJ_OUTPUT-CONTAINER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EORDEROBJ_OUTPUT-CONTAINER.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit GERNR, internal->external for field SERNR CALL FUNCTION 'CONVERSION_EXIT_GERNR_OUTPUT' EXPORTING input = WA_EORDEROBJ_OUTPUT-SERNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EORDEROBJ_OUTPUT-SERNR.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

*Conversion exit TPLNR, internal->external for field SERVLOC CALL FUNCTION 'CONVERSION_EXIT_TPLNR_OUTPUT' EXPORTING input = WA_EORDEROBJ_OUTPUT-SERVLOC IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EORDEROBJ_OUTPUT-SERVLOC.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit GERNR, internal->external for field SERNR_NEW CALL FUNCTION 'CONVERSION_EXIT_GERNR_OUTPUT' EXPORTING input = WA_EORDEROBJ_OUTPUT-SERNR_NEW IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EORDEROBJ_OUTPUT-SERNR_NEW.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit GJAHR, internal->external for field MJAHR_SC CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_EORDEROBJ_OUTPUT-MJAHR_SC IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EORDEROBJ_OUTPUT-MJAHR_SC.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit GERNR, internal->external for field SERNR_RM_NEW CALL FUNCTION 'CONVERSION_EXIT_GERNR_OUTPUT' EXPORTING input = WA_EORDEROBJ_OUTPUT-SERNR_RM_NEW IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EORDEROBJ_OUTPUT-SERNR_RM_NEW.
WRITE:/ 'New Value:', ld_input.

*Conversion exit GERNR, internal->external for field REMSERNR CALL FUNCTION 'CONVERSION_EXIT_GERNR_OUTPUT' EXPORTING input = WA_EORDEROBJ_OUTPUT-REMSERNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EORDEROBJ_OUTPUT-REMSERNR.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

*Conversion exit CUNIT, internal->external for field FAHRSTE CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_EORDEROBJ_OUTPUT-FAHRSTE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_EORDEROBJ_OUTPUT-FAHRSTE.
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_EORDEROBJ_OUTPUT_STR,
SERVFREQ_TXT TYPE STRING,
SERVLOC_FLAG TYPE STRING,
INSTLN_FLAG TYPE STRING,
SDAUFNR_FLAG TYPE STRING,
ROB_FLAG TYPE STRING,
STYPE_TXT TYPE STRING,
MANDT TYPE STRING,
ORDERNR TYPE STRING,
ORDER_LAUFNR TYPE STRING,
CONTAINER TYPE STRING,
BEH_TYPE TYPE STRING,
SERNR TYPE STRING,
ORDER_DATE TYPE STRING,
ACTUAL_DATE TYPE STRING,
WASTE_TYPE TYPE STRING,
SERVICE_TYPE TYPE STRING,
WDPLANTNR TYPE STRING,
WASTE_WERKS TYPE STRING,
WASTE_LGORT TYPE STRING,
TIMEFRAME TYPE STRING,
START_TIME TYPE STRING,
END_TIME TYPE STRING,
SERVFREQNR TYPE STRING,
SERVFREQ_LFNR TYPE STRING,
ROUTE_SEQUENCE TYPE STRING,
SDAUFNR TYPE STRING,
SDPOSNR TYPE STRING,
ADDRNR TYPE STRING,
OLD_ORDER_DATE TYPE STRING,
EORDER_STATUS TYPE STRING,
STATUS_TXT TYPE STRING,
POSTPONED TYPE STRING,
SMAUFNR TYPE STRING,
ORDERTXT TYPE STRING,
SERVLOC TYPE STRING,
BEH_TYPE_NEW TYPE STRING,
SERNR_NEW TYPE STRING,
BEH_ANZAHL TYPE STRING,
EPROP TYPE STRING,
KUNNR TYPE STRING,
KUNWE TYPE STRING,
CAPAB TYPE STRING,
BULK_WEIGHT_UNIT TYPE STRING,
BULK_WASTE_WEIGH TYPE STRING,
BULK_VOL_UNIT TYPE STRING,
BULK_WASTE_VOL TYPE STRING,
ORDER_TYPE TYPE STRING,
ROB TYPE STRING,
ROBTYP TYPE STRING,
SUPERROB TYPE STRING,
WINTERLEVEL TYPE STRING,
CLEAN1 TYPE STRING,
CLEAN2 TYPE STRING,
CLEAN3 TYPE STRING,
CLEAN4 TYPE STRING,
CLEAN5 TYPE STRING,
REMENG_TARGET TYPE STRING,
REUNIT TYPE STRING,
BEHGRP TYPE STRING,
ANZAHL_BEHGRP TYPE STRING,
BEHGRP_NEW TYPE STRING,
MBLNR TYPE STRING,
MBLNR_GG TYPE STRING,
ADD_SERVICE TYPE STRING,
BELNR TYPE STRING,
GGVERTRAG TYPE STRING,
SDAUFNR_NACH TYPE STRING,
CONTALLOC TYPE STRING,
EHS_PARTNER TYPE STRING,
INTAPPNO TYPE STRING,
APPNO TYPE STRING,
RECN TYPE STRING,
WAKEYIDE TYPE STRING,
WAKEYCATLG TYPE STRING,
MNAMIN TYPE STRING,
MNAMQIN TYPE STRING,
MNINO_UNS TYPE STRING,
MNINO_BGS TYPE STRING,
TRANSPORTER TYPE STRING,
DISPOSER TYPE STRING,
RECNWAKEY TYPE STRING,
E_WERKS TYPE STRING,
E_LGORT TYPE STRING,
POBJNR TYPE STRING,
CAPACITYKIND TYPE STRING,
SDMULTIPLE TYPE STRING,
SLOCCONTACT TYPE STRING,
PLANNED_TIME TYPE STRING,
PLANNED_DURT TYPE STRING,
IBASE TYPE STRING,
IBASE_NEW TYPE STRING,
EBELN_SC TYPE STRING,
EBELP_SC TYPE STRING,
MBLNR_SC TYPE STRING,
MJAHR_SC TYPE STRING,
VBELN_SC TYPE STRING,
POSNR_SC TYPE STRING,
BEHTYP_RM TYPE STRING,
SERNR_RM_NEW TYPE STRING,
BEH_ANZAHL_RM TYPE STRING,
REMSERNR TYPE STRING,
WEIGHT_UNIT TYPE STRING,
WASTE_WEIGHT TYPE STRING,
CONT_WGHT_TARA TYPE STRING,
CONT_WEIGHT_FULL TYPE STRING,
WASTE TYPE STRING,
VOL_UNIT TYPE STRING,
WASTE_VOL TYPE STRING,
UZEIT TYPE STRING,
CONT_SERV_DURAT TYPE STRING,
REMENG TYPE STRING,
CONFTYPE1 TYPE STRING,
CONFTYPE2 TYPE STRING,
CONFTYPE3 TYPE STRING,
TEXT TYPE STRING,
WCNT TYPE STRING,
REF_ORDERNR TYPE STRING,
WERKS TYPE STRING,
LGORT TYPE STRING,
ABRMENGE TYPE STRING,
MIETDAUER TYPE STRING,
ZEITUNIT TYPE STRING,
PAUSE_P TYPE STRING,
ACTUAL_TIME TYPE STRING,
WGH_WASTE_WEIGHT TYPE STRING,
WGH_WASTE_VOL TYPE STRING,
KONNR_SC TYPE STRING,
KTPNR_SC TYPE STRING,
BSTMG_SC TYPE STRING,
BSTME_SC TYPE STRING,
KONNRSLS_SC TYPE STRING,
KTPNRSLS_SC TYPE STRING,
IDAUR TYPE STRING,
IDAURE TYPE STRING,
FAHRST TYPE STRING,
FAHRSTE TYPE STRING,END OF T_EKKO_STR. DATA: WA_EORDEROBJ_OUTPUT_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_EORDEROBJ_OUTPUT_STR-SERVFREQ_TXT sy-vline
WA_EORDEROBJ_OUTPUT_STR-SERVLOC_FLAG sy-vline
WA_EORDEROBJ_OUTPUT_STR-INSTLN_FLAG sy-vline
WA_EORDEROBJ_OUTPUT_STR-SDAUFNR_FLAG sy-vline
WA_EORDEROBJ_OUTPUT_STR-ROB_FLAG sy-vline
WA_EORDEROBJ_OUTPUT_STR-STYPE_TXT sy-vline
WA_EORDEROBJ_OUTPUT_STR-MANDT sy-vline
WA_EORDEROBJ_OUTPUT_STR-ORDERNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-ORDER_LAUFNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-CONTAINER sy-vline
WA_EORDEROBJ_OUTPUT_STR-BEH_TYPE sy-vline
WA_EORDEROBJ_OUTPUT_STR-SERNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-ORDER_DATE sy-vline
WA_EORDEROBJ_OUTPUT_STR-ACTUAL_DATE sy-vline
WA_EORDEROBJ_OUTPUT_STR-WASTE_TYPE sy-vline
WA_EORDEROBJ_OUTPUT_STR-SERVICE_TYPE sy-vline
WA_EORDEROBJ_OUTPUT_STR-WDPLANTNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-WASTE_WERKS sy-vline
WA_EORDEROBJ_OUTPUT_STR-WASTE_LGORT sy-vline
WA_EORDEROBJ_OUTPUT_STR-TIMEFRAME sy-vline
WA_EORDEROBJ_OUTPUT_STR-START_TIME sy-vline
WA_EORDEROBJ_OUTPUT_STR-END_TIME sy-vline
WA_EORDEROBJ_OUTPUT_STR-SERVFREQNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-SERVFREQ_LFNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-ROUTE_SEQUENCE sy-vline
WA_EORDEROBJ_OUTPUT_STR-SDAUFNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-SDPOSNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-ADDRNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-OLD_ORDER_DATE sy-vline
WA_EORDEROBJ_OUTPUT_STR-EORDER_STATUS sy-vline
WA_EORDEROBJ_OUTPUT_STR-STATUS_TXT sy-vline
WA_EORDEROBJ_OUTPUT_STR-POSTPONED sy-vline
WA_EORDEROBJ_OUTPUT_STR-SMAUFNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-ORDERTXT sy-vline
WA_EORDEROBJ_OUTPUT_STR-SERVLOC sy-vline
WA_EORDEROBJ_OUTPUT_STR-BEH_TYPE_NEW sy-vline
WA_EORDEROBJ_OUTPUT_STR-SERNR_NEW sy-vline
WA_EORDEROBJ_OUTPUT_STR-BEH_ANZAHL sy-vline
WA_EORDEROBJ_OUTPUT_STR-EPROP sy-vline
WA_EORDEROBJ_OUTPUT_STR-KUNNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-KUNWE sy-vline
WA_EORDEROBJ_OUTPUT_STR-CAPAB sy-vline
WA_EORDEROBJ_OUTPUT_STR-BULK_WEIGHT_UNIT sy-vline
WA_EORDEROBJ_OUTPUT_STR-BULK_WASTE_WEIGH sy-vline
WA_EORDEROBJ_OUTPUT_STR-BULK_VOL_UNIT sy-vline
WA_EORDEROBJ_OUTPUT_STR-BULK_WASTE_VOL sy-vline
WA_EORDEROBJ_OUTPUT_STR-ORDER_TYPE sy-vline
WA_EORDEROBJ_OUTPUT_STR-ROB sy-vline
WA_EORDEROBJ_OUTPUT_STR-ROBTYP sy-vline
WA_EORDEROBJ_OUTPUT_STR-SUPERROB sy-vline
WA_EORDEROBJ_OUTPUT_STR-WINTERLEVEL sy-vline
WA_EORDEROBJ_OUTPUT_STR-CLEAN1 sy-vline
WA_EORDEROBJ_OUTPUT_STR-CLEAN2 sy-vline
WA_EORDEROBJ_OUTPUT_STR-CLEAN3 sy-vline
WA_EORDEROBJ_OUTPUT_STR-CLEAN4 sy-vline
WA_EORDEROBJ_OUTPUT_STR-CLEAN5 sy-vline
WA_EORDEROBJ_OUTPUT_STR-REMENG_TARGET sy-vline
WA_EORDEROBJ_OUTPUT_STR-REUNIT sy-vline
WA_EORDEROBJ_OUTPUT_STR-BEHGRP sy-vline
WA_EORDEROBJ_OUTPUT_STR-ANZAHL_BEHGRP sy-vline
WA_EORDEROBJ_OUTPUT_STR-BEHGRP_NEW sy-vline
WA_EORDEROBJ_OUTPUT_STR-MBLNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-MBLNR_GG sy-vline
WA_EORDEROBJ_OUTPUT_STR-ADD_SERVICE sy-vline
WA_EORDEROBJ_OUTPUT_STR-BELNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-GGVERTRAG sy-vline
WA_EORDEROBJ_OUTPUT_STR-SDAUFNR_NACH sy-vline
WA_EORDEROBJ_OUTPUT_STR-CONTALLOC sy-vline
WA_EORDEROBJ_OUTPUT_STR-EHS_PARTNER sy-vline
WA_EORDEROBJ_OUTPUT_STR-INTAPPNO sy-vline
WA_EORDEROBJ_OUTPUT_STR-APPNO sy-vline
WA_EORDEROBJ_OUTPUT_STR-RECN sy-vline
WA_EORDEROBJ_OUTPUT_STR-WAKEYIDE sy-vline
WA_EORDEROBJ_OUTPUT_STR-WAKEYCATLG sy-vline
WA_EORDEROBJ_OUTPUT_STR-MNAMIN sy-vline
WA_EORDEROBJ_OUTPUT_STR-MNAMQIN sy-vline
WA_EORDEROBJ_OUTPUT_STR-MNINO_UNS sy-vline
WA_EORDEROBJ_OUTPUT_STR-MNINO_BGS sy-vline
WA_EORDEROBJ_OUTPUT_STR-TRANSPORTER sy-vline
WA_EORDEROBJ_OUTPUT_STR-DISPOSER sy-vline
WA_EORDEROBJ_OUTPUT_STR-RECNWAKEY sy-vline
WA_EORDEROBJ_OUTPUT_STR-E_WERKS sy-vline
WA_EORDEROBJ_OUTPUT_STR-E_LGORT sy-vline
WA_EORDEROBJ_OUTPUT_STR-POBJNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-CAPACITYKIND sy-vline
WA_EORDEROBJ_OUTPUT_STR-SDMULTIPLE sy-vline
WA_EORDEROBJ_OUTPUT_STR-SLOCCONTACT sy-vline
WA_EORDEROBJ_OUTPUT_STR-PLANNED_TIME sy-vline
WA_EORDEROBJ_OUTPUT_STR-PLANNED_DURT sy-vline
WA_EORDEROBJ_OUTPUT_STR-IBASE sy-vline
WA_EORDEROBJ_OUTPUT_STR-IBASE_NEW sy-vline
WA_EORDEROBJ_OUTPUT_STR-EBELN_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-EBELP_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-MBLNR_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-MJAHR_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-VBELN_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-POSNR_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-BEHTYP_RM sy-vline
WA_EORDEROBJ_OUTPUT_STR-SERNR_RM_NEW sy-vline
WA_EORDEROBJ_OUTPUT_STR-BEH_ANZAHL_RM sy-vline
WA_EORDEROBJ_OUTPUT_STR-REMSERNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-WEIGHT_UNIT sy-vline
WA_EORDEROBJ_OUTPUT_STR-WASTE_WEIGHT sy-vline
WA_EORDEROBJ_OUTPUT_STR-CONT_WGHT_TARA sy-vline
WA_EORDEROBJ_OUTPUT_STR-CONT_WEIGHT_FULL sy-vline
WA_EORDEROBJ_OUTPUT_STR-WASTE sy-vline
WA_EORDEROBJ_OUTPUT_STR-VOL_UNIT sy-vline
WA_EORDEROBJ_OUTPUT_STR-WASTE_VOL sy-vline
WA_EORDEROBJ_OUTPUT_STR-UZEIT sy-vline
WA_EORDEROBJ_OUTPUT_STR-CONT_SERV_DURAT sy-vline
WA_EORDEROBJ_OUTPUT_STR-REMENG sy-vline
WA_EORDEROBJ_OUTPUT_STR-CONFTYPE1 sy-vline
WA_EORDEROBJ_OUTPUT_STR-CONFTYPE2 sy-vline
WA_EORDEROBJ_OUTPUT_STR-CONFTYPE3 sy-vline
WA_EORDEROBJ_OUTPUT_STR-TEXT sy-vline
WA_EORDEROBJ_OUTPUT_STR-WCNT sy-vline
WA_EORDEROBJ_OUTPUT_STR-REF_ORDERNR sy-vline
WA_EORDEROBJ_OUTPUT_STR-WERKS sy-vline
WA_EORDEROBJ_OUTPUT_STR-LGORT sy-vline
WA_EORDEROBJ_OUTPUT_STR-ABRMENGE sy-vline
WA_EORDEROBJ_OUTPUT_STR-MIETDAUER sy-vline
WA_EORDEROBJ_OUTPUT_STR-ZEITUNIT sy-vline
WA_EORDEROBJ_OUTPUT_STR-PAUSE_P sy-vline
WA_EORDEROBJ_OUTPUT_STR-ACTUAL_TIME sy-vline
WA_EORDEROBJ_OUTPUT_STR-WGH_WASTE_WEIGHT sy-vline
WA_EORDEROBJ_OUTPUT_STR-WGH_WASTE_VOL sy-vline
WA_EORDEROBJ_OUTPUT_STR-KONNR_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-KTPNR_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-BSTMG_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-BSTME_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-KONNRSLS_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-KTPNRSLS_SC sy-vline
WA_EORDEROBJ_OUTPUT_STR-IDAUR sy-vline
WA_EORDEROBJ_OUTPUT_STR-IDAURE sy-vline
WA_EORDEROBJ_OUTPUT_STR-FAHRST sy-vline
WA_EORDEROBJ_OUTPUT_STR-FAHRSTE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.