SAP Function Modules

GET_TIME_SEGMENT_FOR_ORDER_10 SAP Function module







GET_TIME_SEGMENT_FOR_ORDER_10 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 GET_TIME_SEGMENT_FOR_ORDER_10 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 GET_TIME_SEGMENT_FOR_ORDER_10 - GET TIME SEGMENT FOR ORDER 10





CALL FUNCTION 'GET_TIME_SEGMENT_FOR_ORDER_10' "
  EXPORTING
    i_unit =                    " dtresr-dteh
  TABLES
    i_redtel =                  " redtel
    i_rcr01 =                   " rcr01
    i_afvgdt =                  " afvgdt
    e_capshift =                " capshift
    .  "  GET_TIME_SEGMENT_FOR_ORDER_10

ABAP code example for Function Module GET_TIME_SEGMENT_FOR_ORDER_10





The ABAP code below is a full code listing to execute function module GET_TIME_SEGMENT_FOR_ORDER_10 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_i_redtel  TYPE STANDARD TABLE OF REDTEL,"TABLES PARAM
wa_i_redtel  LIKE LINE OF it_i_redtel ,
it_i_rcr01  TYPE STANDARD TABLE OF RCR01,"TABLES PARAM
wa_i_rcr01  LIKE LINE OF it_i_rcr01 ,
it_i_afvgdt  TYPE STANDARD TABLE OF AFVGDT,"TABLES PARAM
wa_i_afvgdt  LIKE LINE OF it_i_afvgdt ,
it_e_capshift  TYPE STANDARD TABLE OF CAPSHIFT,"TABLES PARAM
wa_e_capshift  LIKE LINE OF it_e_capshift .


DATA(ld_i_unit) = Check type of data required

"populate fields of struture and append to itab
append wa_i_redtel to it_i_redtel.

"populate fields of struture and append to itab
append wa_i_rcr01 to it_i_rcr01.

"populate fields of struture and append to itab
append wa_i_afvgdt to it_i_afvgdt.

"populate fields of struture and append to itab
append wa_e_capshift to it_e_capshift. . CALL FUNCTION 'GET_TIME_SEGMENT_FOR_ORDER_10' EXPORTING i_unit = ld_i_unit TABLES i_redtel = it_i_redtel i_rcr01 = it_i_rcr01 i_afvgdt = it_i_afvgdt e_capshift = it_e_capshift . " GET_TIME_SEGMENT_FOR_ORDER_10
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:
ld_i_unit  TYPE DTRESR-DTEH ,
it_i_redtel  TYPE STANDARD TABLE OF REDTEL ,
wa_i_redtel  LIKE LINE OF it_i_redtel,
it_i_rcr01  TYPE STANDARD TABLE OF RCR01 ,
wa_i_rcr01  LIKE LINE OF it_i_rcr01,
it_i_afvgdt  TYPE STANDARD TABLE OF AFVGDT ,
wa_i_afvgdt  LIKE LINE OF it_i_afvgdt,
it_e_capshift  TYPE STANDARD TABLE OF CAPSHIFT ,
wa_e_capshift  LIKE LINE OF it_e_capshift.


ld_i_unit = Check type of data required

"populate fields of struture and append to itab
append wa_i_redtel to it_i_redtel.

"populate fields of struture and append to itab
append wa_i_rcr01 to it_i_rcr01.

"populate fields of struture and append to itab
append wa_i_afvgdt to it_i_afvgdt.

"populate fields of struture and append to itab
append wa_e_capshift to it_e_capshift.

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 GET_TIME_SEGMENT_FOR_ORDER_10 or its description.