ABAP Select data from SAP table V_OIJ05_OIJSCHED 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 V_OIJ05_OIJSCHED 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 V_OIJ05_OIJSCHED. 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 V_OIJ05_OIJSCHED 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_V_OIJ05_OIJSCHED TYPE STANDARD TABLE OF V_OIJ05_OIJSCHED,
      WA_V_OIJ05_OIJSCHED TYPE V_OIJ05_OIJSCHED,
      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: <V_OIJ05_OIJSCHED> TYPE V_OIJ05_OIJSCHED.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM V_OIJ05_OIJSCHED
*  INTO TABLE @DATA(IT_V_OIJ05_OIJSCHED2).
*--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_V_OIJ05_OIJSCHED INDEX 1 INTO DATA(WA_V_OIJ05_OIJSCHED2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_V_OIJ05_OIJSCHED ASSIGNING <V_OIJ05_OIJSCHED>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<V_OIJ05_OIJSCHED>-MANDT = 1.
<V_OIJ05_OIJSCHED>-SIM_SCHED_ID = 1.
<V_OIJ05_OIJSCHED>-SIM_SCHED_LN = 1.
<V_OIJ05_OIJSCHED>-SCHED_COMM = 1.
<V_OIJ05_OIJSCHED>-NOMTK = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_V_OIJ05_OIJSCHED-NOMCL, sy-vline,
WA_V_OIJ05_OIJSCHED-NOMTYP, sy-vline,
WA_V_OIJ05_OIJSCHED-BUSTYP, sy-vline,
WA_V_OIJ05_OIJSCHED-NOMNR, sy-vline,
WA_V_OIJ05_OIJSCHED-NOMST, sy-vline,
WA_V_OIJ05_OIJSCHED-NMSHTYPE, sy-vline.
ENDLOOP. *Add any further fields from structure WA_V_OIJ05_OIJSCHED 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_V_OIJ05_OIJSCHED 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_V_OIJ05_OIJSCHED INTO WA_V_OIJ05_OIJSCHED. *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 SIM_SCHED_ID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_V_OIJ05_OIJSCHED-SIM_SCHED_ID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_V_OIJ05_OIJSCHED-SIM_SCHED_ID.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit ALPHA, internal->external for field PEGID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_V_OIJ05_OIJSCHED-PEGID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_V_OIJ05_OIJSCHED-PEGID.
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_V_OIJ05_OIJSCHED_STR,
MANDT TYPE STRING,
SIM_SCHED_ID TYPE STRING,
SIM_SCHED_LN TYPE STRING,
SCHED_COMM TYPE STRING,
NOMTK TYPE STRING,
NOMCL TYPE STRING,
NOMTYP TYPE STRING,
BUSTYP TYPE STRING,
NOMNR TYPE STRING,
NOMST TYPE STRING,
NMSHTYPE TYPE STRING,
NMBALCH TYPE STRING,
STAGES_ID TYPE STRING,
WORKLIST TYPE STRING,
SENTDAT TYPE STRING,
SENTTIME TYPE STRING,
SENTNAM TYPE STRING,
ITEMS TYPE STRING,
COUNTER1 TYPE STRING,
COUNTER2 TYPE STRING,
COUNTER3 TYPE STRING,
COUNTER4 TYPE STRING,
COUNTER5 TYPE STRING,
COUNTER6 TYPE STRING,
APO_SHIPMENT_ID TYPE STRING,
APO_SHIPMENT_NUM TYPE STRING,
NMBLOCK TYPE STRING,
NOMTYPDESC TYPE STRING,
SHTYP TYPE STRING,
TKNUM TYPE STRING,
LOV_GL TYPE STRING,
TSYST TYPE STRING,
TSNAM TYPE STRING,
NMSHIPPER TYPE STRING,
NAME1 TYPE STRING,
NMCARRIER TYPE STRING,
CARR_NAME TYPE STRING,
CYCLE TYPE STRING,
NMWERK TYPE STRING,
NMLGORT TYPE STRING,
NMVEHICLE TYPE STRING,
VEH_TEXT TYPE STRING,
NMVESSEL TYPE STRING,
NMTPLST TYPE STRING,
ROUTE TYPE STRING,
BOOKTS TYPE STRING,
EV_GROUP TYPE STRING,
VKTRA TYPE STRING,
BEZEI TYPE STRING,
QTYIN TYPE STRING,
QTYOUT TYPE STRING,
UNIT TYPE STRING,
TST_FROM_MIN TYPE STRING,
TST_TO_MAX TYPE STRING,
BLOIND TYPE STRING,
DELIND TYPE STRING,
SHNUM TYPE STRING,
ERDAT TYPE STRING,
ERZEIT TYPE STRING,
ERNAM TYPE STRING,
AEDAT TYPE STRING,
AEZEIT TYPE STRING,
AENAM TYPE STRING,
NOMIT TYPE STRING,
SITYP TYPE STRING,
ISTAT TYPE STRING,
ISUBSTAT TYPE STRING,
IDATE TYPE STRING,
SCHED_TST_FROM TYPE STRING,
SCHED_TST_TO TYPE STRING,
LOCID TYPE STRING,
LOCNAM TYPE STRING,
S_MATNR_I TYPE STRING,
S_MAKTX TYPE STRING,
MATNR_I TYPE STRING,
MAKTX TYPE STRING,
MENGE TYPE STRING,
UNIT_I TYPE STRING,
UNIT_I_T TYPE STRING,
DOCIND TYPE STRING,
DOCNR TYPE STRING,
DOCITM TYPE STRING,
DOCSCHEDLN TYPE STRING,
QTYFCR TYPE STRING,
QTYFCR_UOM TYPE STRING,
WORKLIST_I TYPE STRING,
TANK TYPE STRING,
CONS TYPE STRING,
PARTNR TYPE STRING,
CONPAT TYPE STRING,
INSPE TYPE STRING,
IMPOEXPO TYPE STRING,
FLAG_IMEX TYPE STRING,
OWNER TYPE STRING,
CHARG_O TYPE STRING,
CHARG_D TYPE STRING,
RVP TYPE STRING,
VALUATIONTYPE_O TYPE STRING,
VALUATIONTYPE_D TYPE STRING,
SHITEM TYPE STRING,
ILOCK TYPE STRING,
PRORATEQTY TYPE STRING,
ASSIGNEDQTY TYPE STRING,
ACTDAT TYPE STRING,
ACTTIME TYPE STRING,
ACTUALS TYPE STRING,
ACTUALQTY TYPE STRING,
ACTUALUOM TYPE STRING,
ITBOTOL TYPE STRING,
ITBUTOL TYPE STRING,
ITBOTOLABS TYPE STRING,
ITBUTOLABS TYPE STRING,
ITTOLUNIT TYPE STRING,
UNLIMITED TYPE STRING,
UPDATEXDOK TYPE STRING,
INCOMPLETE_FLAG TYPE STRING,
DOCTYP TYPE STRING,
LDRATE TYPE STRING,
LDQUOM TYPE STRING,
LDTUOM TYPE STRING,
THIRD_NOMNR TYPE STRING,
UPMAT TYPE STRING,
REFITEM TYPE STRING,
STLTY TYPE STRING,
STLKN TYPE STRING,
CHARG_D_CREATE TYPE STRING,
CHARG_O_CREATE TYPE STRING,
CO_CARR TYPE STRING,
CO_SHIP TYPE STRING,
CO_TSYST TYPE STRING,
COMMCTL TYPE STRING,
SOLDTO TYPE STRING,
PRORATE_ROUTINE TYPE STRING,
CHARG_L TYPE STRING,
CHARG_L_CREATE TYPE STRING,
TCNUM TYPE STRING,
TCITM TYPE STRING,
GA_NMSHIPPER TYPE STRING,
GA_CONF_QTY TYPE STRING,
GA_CONF_UOM TYPE STRING,
GA_TECHSCH_QTY TYPE STRING,
GA_TECHSCH_UOM TYPE STRING,
GA_CONF_QTY_CAL TYPE STRING,
GA_TSCH_QTY_CAL TYPE STRING,
GA_ALLOCATED_QTY TYPE STRING,
GA_ALLOCATED_UOM TYPE STRING,
GA_RANK TYPE STRING,
CYCLE_ITEM TYPE STRING,
LESSHNUM TYPE STRING,
LESTPNUM TYPE STRING,
ATL_DELV_NUMBER TYPE STRING,
ATL_DELV_ITM TYPE STRING,
ATL_CRDT_QTY TYPE STRING,
ATL_CRDT_UOM TYPE STRING,
ATL_CRDT_VAL TYPE STRING,
ATL_CRDT_CURR TYPE STRING,
PRE_EXIST_IND TYPE STRING,
UPDKZ TYPE STRING,
USER_ID TYPE STRING,
SIM_VERSION TYPE STRING,
SCENARIO_ID TYPE STRING,
IPW_TXT TYPE STRING,
SIM_SCHED_TYP TYPE STRING,
SCHED_STAT TYPE STRING,
LOCPT TYPE STRING,
LOCSL TYPE STRING,
QUICKCONF TYPE STRING,
PEGID TYPE STRING,
PEGTYPE TYPE STRING,END OF T_EKKO_STR. DATA: WA_V_OIJ05_OIJSCHED_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_V_OIJ05_OIJSCHED_STR-MANDT sy-vline
WA_V_OIJ05_OIJSCHED_STR-SIM_SCHED_ID sy-vline
WA_V_OIJ05_OIJSCHED_STR-SIM_SCHED_LN sy-vline
WA_V_OIJ05_OIJSCHED_STR-SCHED_COMM sy-vline
WA_V_OIJ05_OIJSCHED_STR-NOMTK sy-vline
WA_V_OIJ05_OIJSCHED_STR-NOMCL sy-vline
WA_V_OIJ05_OIJSCHED_STR-NOMTYP sy-vline
WA_V_OIJ05_OIJSCHED_STR-BUSTYP sy-vline
WA_V_OIJ05_OIJSCHED_STR-NOMNR sy-vline
WA_V_OIJ05_OIJSCHED_STR-NOMST sy-vline
WA_V_OIJ05_OIJSCHED_STR-NMSHTYPE sy-vline
WA_V_OIJ05_OIJSCHED_STR-NMBALCH sy-vline
WA_V_OIJ05_OIJSCHED_STR-STAGES_ID sy-vline
WA_V_OIJ05_OIJSCHED_STR-WORKLIST sy-vline
WA_V_OIJ05_OIJSCHED_STR-SENTDAT sy-vline
WA_V_OIJ05_OIJSCHED_STR-SENTTIME sy-vline
WA_V_OIJ05_OIJSCHED_STR-SENTNAM sy-vline
WA_V_OIJ05_OIJSCHED_STR-ITEMS sy-vline
WA_V_OIJ05_OIJSCHED_STR-COUNTER1 sy-vline
WA_V_OIJ05_OIJSCHED_STR-COUNTER2 sy-vline
WA_V_OIJ05_OIJSCHED_STR-COUNTER3 sy-vline
WA_V_OIJ05_OIJSCHED_STR-COUNTER4 sy-vline
WA_V_OIJ05_OIJSCHED_STR-COUNTER5 sy-vline
WA_V_OIJ05_OIJSCHED_STR-COUNTER6 sy-vline
WA_V_OIJ05_OIJSCHED_STR-APO_SHIPMENT_ID sy-vline
WA_V_OIJ05_OIJSCHED_STR-APO_SHIPMENT_NUM sy-vline
WA_V_OIJ05_OIJSCHED_STR-NMBLOCK sy-vline
WA_V_OIJ05_OIJSCHED_STR-NOMTYPDESC sy-vline
WA_V_OIJ05_OIJSCHED_STR-SHTYP sy-vline
WA_V_OIJ05_OIJSCHED_STR-TKNUM sy-vline
WA_V_OIJ05_OIJSCHED_STR-LOV_GL sy-vline
WA_V_OIJ05_OIJSCHED_STR-TSYST sy-vline
WA_V_OIJ05_OIJSCHED_STR-TSNAM sy-vline
WA_V_OIJ05_OIJSCHED_STR-NMSHIPPER sy-vline
WA_V_OIJ05_OIJSCHED_STR-NAME1 sy-vline
WA_V_OIJ05_OIJSCHED_STR-NMCARRIER sy-vline
WA_V_OIJ05_OIJSCHED_STR-CARR_NAME sy-vline
WA_V_OIJ05_OIJSCHED_STR-CYCLE sy-vline
WA_V_OIJ05_OIJSCHED_STR-NMWERK sy-vline
WA_V_OIJ05_OIJSCHED_STR-NMLGORT sy-vline
WA_V_OIJ05_OIJSCHED_STR-NMVEHICLE sy-vline
WA_V_OIJ05_OIJSCHED_STR-VEH_TEXT sy-vline
WA_V_OIJ05_OIJSCHED_STR-NMVESSEL sy-vline
WA_V_OIJ05_OIJSCHED_STR-NMTPLST sy-vline
WA_V_OIJ05_OIJSCHED_STR-ROUTE sy-vline
WA_V_OIJ05_OIJSCHED_STR-BOOKTS sy-vline
WA_V_OIJ05_OIJSCHED_STR-EV_GROUP sy-vline
WA_V_OIJ05_OIJSCHED_STR-VKTRA sy-vline
WA_V_OIJ05_OIJSCHED_STR-BEZEI sy-vline
WA_V_OIJ05_OIJSCHED_STR-QTYIN sy-vline
WA_V_OIJ05_OIJSCHED_STR-QTYOUT sy-vline
WA_V_OIJ05_OIJSCHED_STR-UNIT sy-vline
WA_V_OIJ05_OIJSCHED_STR-TST_FROM_MIN sy-vline
WA_V_OIJ05_OIJSCHED_STR-TST_TO_MAX sy-vline
WA_V_OIJ05_OIJSCHED_STR-BLOIND sy-vline
WA_V_OIJ05_OIJSCHED_STR-DELIND sy-vline
WA_V_OIJ05_OIJSCHED_STR-SHNUM sy-vline
WA_V_OIJ05_OIJSCHED_STR-ERDAT sy-vline
WA_V_OIJ05_OIJSCHED_STR-ERZEIT sy-vline
WA_V_OIJ05_OIJSCHED_STR-ERNAM sy-vline
WA_V_OIJ05_OIJSCHED_STR-AEDAT sy-vline
WA_V_OIJ05_OIJSCHED_STR-AEZEIT sy-vline
WA_V_OIJ05_OIJSCHED_STR-AENAM sy-vline
WA_V_OIJ05_OIJSCHED_STR-NOMIT sy-vline
WA_V_OIJ05_OIJSCHED_STR-SITYP sy-vline
WA_V_OIJ05_OIJSCHED_STR-ISTAT sy-vline
WA_V_OIJ05_OIJSCHED_STR-ISUBSTAT sy-vline
WA_V_OIJ05_OIJSCHED_STR-IDATE sy-vline
WA_V_OIJ05_OIJSCHED_STR-SCHED_TST_FROM sy-vline
WA_V_OIJ05_OIJSCHED_STR-SCHED_TST_TO sy-vline
WA_V_OIJ05_OIJSCHED_STR-LOCID sy-vline
WA_V_OIJ05_OIJSCHED_STR-LOCNAM sy-vline
WA_V_OIJ05_OIJSCHED_STR-S_MATNR_I sy-vline
WA_V_OIJ05_OIJSCHED_STR-S_MAKTX sy-vline
WA_V_OIJ05_OIJSCHED_STR-MATNR_I sy-vline
WA_V_OIJ05_OIJSCHED_STR-MAKTX sy-vline
WA_V_OIJ05_OIJSCHED_STR-MENGE sy-vline
WA_V_OIJ05_OIJSCHED_STR-UNIT_I sy-vline
WA_V_OIJ05_OIJSCHED_STR-UNIT_I_T sy-vline
WA_V_OIJ05_OIJSCHED_STR-DOCIND sy-vline
WA_V_OIJ05_OIJSCHED_STR-DOCNR sy-vline
WA_V_OIJ05_OIJSCHED_STR-DOCITM sy-vline
WA_V_OIJ05_OIJSCHED_STR-DOCSCHEDLN sy-vline
WA_V_OIJ05_OIJSCHED_STR-QTYFCR sy-vline
WA_V_OIJ05_OIJSCHED_STR-QTYFCR_UOM sy-vline
WA_V_OIJ05_OIJSCHED_STR-WORKLIST_I sy-vline
WA_V_OIJ05_OIJSCHED_STR-TANK sy-vline
WA_V_OIJ05_OIJSCHED_STR-CONS sy-vline
WA_V_OIJ05_OIJSCHED_STR-PARTNR sy-vline
WA_V_OIJ05_OIJSCHED_STR-CONPAT sy-vline
WA_V_OIJ05_OIJSCHED_STR-INSPE sy-vline
WA_V_OIJ05_OIJSCHED_STR-IMPOEXPO sy-vline
WA_V_OIJ05_OIJSCHED_STR-FLAG_IMEX sy-vline
WA_V_OIJ05_OIJSCHED_STR-OWNER sy-vline
WA_V_OIJ05_OIJSCHED_STR-CHARG_O sy-vline
WA_V_OIJ05_OIJSCHED_STR-CHARG_D sy-vline
WA_V_OIJ05_OIJSCHED_STR-RVP sy-vline
WA_V_OIJ05_OIJSCHED_STR-VALUATIONTYPE_O sy-vline
WA_V_OIJ05_OIJSCHED_STR-VALUATIONTYPE_D sy-vline
WA_V_OIJ05_OIJSCHED_STR-SHITEM sy-vline
WA_V_OIJ05_OIJSCHED_STR-ILOCK sy-vline
WA_V_OIJ05_OIJSCHED_STR-PRORATEQTY sy-vline
WA_V_OIJ05_OIJSCHED_STR-ASSIGNEDQTY sy-vline
WA_V_OIJ05_OIJSCHED_STR-ACTDAT sy-vline
WA_V_OIJ05_OIJSCHED_STR-ACTTIME sy-vline
WA_V_OIJ05_OIJSCHED_STR-ACTUALS sy-vline
WA_V_OIJ05_OIJSCHED_STR-ACTUALQTY sy-vline
WA_V_OIJ05_OIJSCHED_STR-ACTUALUOM sy-vline
WA_V_OIJ05_OIJSCHED_STR-ITBOTOL sy-vline
WA_V_OIJ05_OIJSCHED_STR-ITBUTOL sy-vline
WA_V_OIJ05_OIJSCHED_STR-ITBOTOLABS sy-vline
WA_V_OIJ05_OIJSCHED_STR-ITBUTOLABS sy-vline
WA_V_OIJ05_OIJSCHED_STR-ITTOLUNIT sy-vline
WA_V_OIJ05_OIJSCHED_STR-UNLIMITED sy-vline
WA_V_OIJ05_OIJSCHED_STR-UPDATEXDOK sy-vline
WA_V_OIJ05_OIJSCHED_STR-INCOMPLETE_FLAG sy-vline
WA_V_OIJ05_OIJSCHED_STR-DOCTYP sy-vline
WA_V_OIJ05_OIJSCHED_STR-LDRATE sy-vline
WA_V_OIJ05_OIJSCHED_STR-LDQUOM sy-vline
WA_V_OIJ05_OIJSCHED_STR-LDTUOM sy-vline
WA_V_OIJ05_OIJSCHED_STR-THIRD_NOMNR sy-vline
WA_V_OIJ05_OIJSCHED_STR-UPMAT sy-vline
WA_V_OIJ05_OIJSCHED_STR-REFITEM sy-vline
WA_V_OIJ05_OIJSCHED_STR-STLTY sy-vline
WA_V_OIJ05_OIJSCHED_STR-STLKN sy-vline
WA_V_OIJ05_OIJSCHED_STR-CHARG_D_CREATE sy-vline
WA_V_OIJ05_OIJSCHED_STR-CHARG_O_CREATE sy-vline
WA_V_OIJ05_OIJSCHED_STR-CO_CARR sy-vline
WA_V_OIJ05_OIJSCHED_STR-CO_SHIP sy-vline
WA_V_OIJ05_OIJSCHED_STR-CO_TSYST sy-vline
WA_V_OIJ05_OIJSCHED_STR-COMMCTL sy-vline
WA_V_OIJ05_OIJSCHED_STR-SOLDTO sy-vline
WA_V_OIJ05_OIJSCHED_STR-PRORATE_ROUTINE sy-vline
WA_V_OIJ05_OIJSCHED_STR-CHARG_L sy-vline
WA_V_OIJ05_OIJSCHED_STR-CHARG_L_CREATE sy-vline
WA_V_OIJ05_OIJSCHED_STR-TCNUM sy-vline
WA_V_OIJ05_OIJSCHED_STR-TCITM sy-vline
WA_V_OIJ05_OIJSCHED_STR-GA_NMSHIPPER sy-vline
WA_V_OIJ05_OIJSCHED_STR-GA_CONF_QTY sy-vline
WA_V_OIJ05_OIJSCHED_STR-GA_CONF_UOM sy-vline
WA_V_OIJ05_OIJSCHED_STR-GA_TECHSCH_QTY sy-vline
WA_V_OIJ05_OIJSCHED_STR-GA_TECHSCH_UOM sy-vline
WA_V_OIJ05_OIJSCHED_STR-GA_CONF_QTY_CAL sy-vline
WA_V_OIJ05_OIJSCHED_STR-GA_TSCH_QTY_CAL sy-vline
WA_V_OIJ05_OIJSCHED_STR-GA_ALLOCATED_QTY sy-vline
WA_V_OIJ05_OIJSCHED_STR-GA_ALLOCATED_UOM sy-vline
WA_V_OIJ05_OIJSCHED_STR-GA_RANK sy-vline
WA_V_OIJ05_OIJSCHED_STR-CYCLE_ITEM sy-vline
WA_V_OIJ05_OIJSCHED_STR-LESSHNUM sy-vline
WA_V_OIJ05_OIJSCHED_STR-LESTPNUM sy-vline
WA_V_OIJ05_OIJSCHED_STR-ATL_DELV_NUMBER sy-vline
WA_V_OIJ05_OIJSCHED_STR-ATL_DELV_ITM sy-vline
WA_V_OIJ05_OIJSCHED_STR-ATL_CRDT_QTY sy-vline
WA_V_OIJ05_OIJSCHED_STR-ATL_CRDT_UOM sy-vline
WA_V_OIJ05_OIJSCHED_STR-ATL_CRDT_VAL sy-vline
WA_V_OIJ05_OIJSCHED_STR-ATL_CRDT_CURR sy-vline
WA_V_OIJ05_OIJSCHED_STR-PRE_EXIST_IND sy-vline
WA_V_OIJ05_OIJSCHED_STR-UPDKZ sy-vline
WA_V_OIJ05_OIJSCHED_STR-USER_ID sy-vline
WA_V_OIJ05_OIJSCHED_STR-SIM_VERSION sy-vline
WA_V_OIJ05_OIJSCHED_STR-SCENARIO_ID sy-vline
WA_V_OIJ05_OIJSCHED_STR-IPW_TXT sy-vline
WA_V_OIJ05_OIJSCHED_STR-SIM_SCHED_TYP sy-vline
WA_V_OIJ05_OIJSCHED_STR-SCHED_STAT sy-vline
WA_V_OIJ05_OIJSCHED_STR-LOCPT sy-vline
WA_V_OIJ05_OIJSCHED_STR-LOCSL sy-vline
WA_V_OIJ05_OIJSCHED_STR-QUICKCONF sy-vline
WA_V_OIJ05_OIJSCHED_STR-PEGID sy-vline
WA_V_OIJ05_OIJSCHED_STR-PEGTYPE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.