SAP Function Modules

MAPPING_ORDER_DAT_TO_SHIFT_SEG SAP Function module







MAPPING_ORDER_DAT_TO_SHIFT_SEG is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name MAPPING_ORDER_DAT_TO_SHIFT_SEG into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: DTCO
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM MAPPING_ORDER_DAT_TO_SHIFT_SEG - MAPPING ORDER DAT TO SHIFT SEG





CALL FUNCTION 'MAPPING_ORDER_DAT_TO_SHIFT_SEG' "
  TABLES
    x_shift_seg =               " capshift
    x_order_seg =               " capshift
    .  "  MAPPING_ORDER_DAT_TO_SHIFT_SEG

ABAP code example for Function Module MAPPING_ORDER_DAT_TO_SHIFT_SEG





The ABAP code below is a full code listing to execute function module MAPPING_ORDER_DAT_TO_SHIFT_SEG including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
it_x_shift_seg  TYPE STANDARD TABLE OF CAPSHIFT,"TABLES PARAM
wa_x_shift_seg  LIKE LINE OF it_x_shift_seg ,
it_x_order_seg  TYPE STANDARD TABLE OF CAPSHIFT,"TABLES PARAM
wa_x_order_seg  LIKE LINE OF it_x_order_seg .


"populate fields of struture and append to itab
append wa_x_shift_seg to it_x_shift_seg.

"populate fields of struture and append to itab
append wa_x_order_seg to it_x_order_seg. . CALL FUNCTION 'MAPPING_ORDER_DAT_TO_SHIFT_SEG' TABLES x_shift_seg = it_x_shift_seg x_order_seg = it_x_order_seg . " MAPPING_ORDER_DAT_TO_SHIFT_SEG
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
it_x_shift_seg  TYPE STANDARD TABLE OF CAPSHIFT ,
wa_x_shift_seg  LIKE LINE OF it_x_shift_seg,
it_x_order_seg  TYPE STANDARD TABLE OF CAPSHIFT ,
wa_x_order_seg  LIKE LINE OF it_x_order_seg.


"populate fields of struture and append to itab
append wa_x_shift_seg to it_x_shift_seg.

"populate fields of struture and append to itab
append wa_x_order_seg to it_x_order_seg.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name MAPPING_ORDER_DAT_TO_SHIFT_SEG or its description.