SAP Function Modules

CIF_SHIFT_APO_MAP SAP Function module







CIF_SHIFT_APO_MAP 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 CIF_SHIFT_APO_MAP into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CIF_SHIFT_APO_MAP - CIF SHIFT APO MAP





CALL FUNCTION 'CIF_SHIFT_APO_MAP' "
* TABLES
*   it_tc37a =                  " tc37a
*   it_tc37p =                  " tc37p
*   it_tc38a =                  " tc38a
*   it_tc37t =                  " tc37t
*   it_tc37s =                  " tc37s
*   it_tc38t =                  " tc38t
*   et_shift_apo =              " crcifshift_apo
*   et_shiftsequence_apo =      " crcifshiftsequence_apo
*   et_breakmodel_apo =         " crcifbreak_apo
*   et_shift_text_apo =         " crcifshift_text_apo
*   et_shiftsequence_text_apo =   " crcifshiftseq_text_apo
*   et_breakmodel_text_apo =    " crcifbreak_text_apo
*   et_shift_apo_x =            " crcifshift_apo_x
*   et_shiftsequence_apo_x =    " crcifshiftsequence_apo_x
*   et_breakmodel_apo_x =       " crcifbreak_apo_x
*   et_shift_text_apo_x =       " crcifshift_text_apo_x
*   et_shiftsequence_text_apo_x =   " crcifshiftseq_text_apo_x
*   et_breakmodel_text_apo_x =   " crcifbreak_text_apo_x
    .  "  CIF_SHIFT_APO_MAP

ABAP code example for Function Module CIF_SHIFT_APO_MAP





The ABAP code below is a full code listing to execute function module CIF_SHIFT_APO_MAP 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_it_tc37a  TYPE STANDARD TABLE OF TC37A,"TABLES PARAM
wa_it_tc37a  LIKE LINE OF it_it_tc37a ,
it_it_tc37p  TYPE STANDARD TABLE OF TC37P,"TABLES PARAM
wa_it_tc37p  LIKE LINE OF it_it_tc37p ,
it_it_tc38a  TYPE STANDARD TABLE OF TC38A,"TABLES PARAM
wa_it_tc38a  LIKE LINE OF it_it_tc38a ,
it_it_tc37t  TYPE STANDARD TABLE OF TC37T,"TABLES PARAM
wa_it_tc37t  LIKE LINE OF it_it_tc37t ,
it_it_tc37s  TYPE STANDARD TABLE OF TC37S,"TABLES PARAM
wa_it_tc37s  LIKE LINE OF it_it_tc37s ,
it_it_tc38t  TYPE STANDARD TABLE OF TC38T,"TABLES PARAM
wa_it_tc38t  LIKE LINE OF it_it_tc38t ,
it_et_shift_apo  TYPE STANDARD TABLE OF CRCIFSHIFT_APO,"TABLES PARAM
wa_et_shift_apo  LIKE LINE OF it_et_shift_apo ,
it_et_shiftsequence_apo  TYPE STANDARD TABLE OF CRCIFSHIFTSEQUENCE_APO,"TABLES PARAM
wa_et_shiftsequence_apo  LIKE LINE OF it_et_shiftsequence_apo ,
it_et_breakmodel_apo  TYPE STANDARD TABLE OF CRCIFBREAK_APO,"TABLES PARAM
wa_et_breakmodel_apo  LIKE LINE OF it_et_breakmodel_apo ,
it_et_shift_text_apo  TYPE STANDARD TABLE OF CRCIFSHIFT_TEXT_APO,"TABLES PARAM
wa_et_shift_text_apo  LIKE LINE OF it_et_shift_text_apo ,
it_et_shiftsequence_text_apo  TYPE STANDARD TABLE OF CRCIFSHIFTSEQ_TEXT_APO,"TABLES PARAM
wa_et_shiftsequence_text_apo  LIKE LINE OF it_et_shiftsequence_text_apo ,
it_et_breakmodel_text_apo  TYPE STANDARD TABLE OF CRCIFBREAK_TEXT_APO,"TABLES PARAM
wa_et_breakmodel_text_apo  LIKE LINE OF it_et_breakmodel_text_apo ,
it_et_shift_apo_x  TYPE STANDARD TABLE OF CRCIFSHIFT_APO_X,"TABLES PARAM
wa_et_shift_apo_x  LIKE LINE OF it_et_shift_apo_x ,
it_et_shiftsequence_apo_x  TYPE STANDARD TABLE OF CRCIFSHIFTSEQUENCE_APO_X,"TABLES PARAM
wa_et_shiftsequence_apo_x  LIKE LINE OF it_et_shiftsequence_apo_x ,
it_et_breakmodel_apo_x  TYPE STANDARD TABLE OF CRCIFBREAK_APO_X,"TABLES PARAM
wa_et_breakmodel_apo_x  LIKE LINE OF it_et_breakmodel_apo_x ,
it_et_shift_text_apo_x  TYPE STANDARD TABLE OF CRCIFSHIFT_TEXT_APO_X,"TABLES PARAM
wa_et_shift_text_apo_x  LIKE LINE OF it_et_shift_text_apo_x ,
it_et_shiftsequence_text_apo_x  TYPE STANDARD TABLE OF CRCIFSHIFTSEQ_TEXT_APO_X,"TABLES PARAM
wa_et_shiftsequence_text_apo_x  LIKE LINE OF it_et_shiftsequence_text_apo_x ,
it_et_breakmodel_text_apo_x  TYPE STANDARD TABLE OF CRCIFBREAK_TEXT_APO_X,"TABLES PARAM
wa_et_breakmodel_text_apo_x  LIKE LINE OF it_et_breakmodel_text_apo_x .


"populate fields of struture and append to itab
append wa_it_tc37a to it_it_tc37a.

"populate fields of struture and append to itab
append wa_it_tc37p to it_it_tc37p.

"populate fields of struture and append to itab
append wa_it_tc38a to it_it_tc38a.

"populate fields of struture and append to itab
append wa_it_tc37t to it_it_tc37t.

"populate fields of struture and append to itab
append wa_it_tc37s to it_it_tc37s.

"populate fields of struture and append to itab
append wa_it_tc38t to it_it_tc38t.

"populate fields of struture and append to itab
append wa_et_shift_apo to it_et_shift_apo.

"populate fields of struture and append to itab
append wa_et_shiftsequence_apo to it_et_shiftsequence_apo.

"populate fields of struture and append to itab
append wa_et_breakmodel_apo to it_et_breakmodel_apo.

"populate fields of struture and append to itab
append wa_et_shift_text_apo to it_et_shift_text_apo.

"populate fields of struture and append to itab
append wa_et_shiftsequence_text_apo to it_et_shiftsequence_text_apo.

"populate fields of struture and append to itab
append wa_et_breakmodel_text_apo to it_et_breakmodel_text_apo.

"populate fields of struture and append to itab
append wa_et_shift_apo_x to it_et_shift_apo_x.

"populate fields of struture and append to itab
append wa_et_shiftsequence_apo_x to it_et_shiftsequence_apo_x.

"populate fields of struture and append to itab
append wa_et_breakmodel_apo_x to it_et_breakmodel_apo_x.

"populate fields of struture and append to itab
append wa_et_shift_text_apo_x to it_et_shift_text_apo_x.

"populate fields of struture and append to itab
append wa_et_shiftsequence_text_apo_x to it_et_shiftsequence_text_apo_x.

"populate fields of struture and append to itab
append wa_et_breakmodel_text_apo_x to it_et_breakmodel_text_apo_x. . CALL FUNCTION 'CIF_SHIFT_APO_MAP' * TABLES * it_tc37a = it_it_tc37a * it_tc37p = it_it_tc37p * it_tc38a = it_it_tc38a * it_tc37t = it_it_tc37t * it_tc37s = it_it_tc37s * it_tc38t = it_it_tc38t * et_shift_apo = it_et_shift_apo * et_shiftsequence_apo = it_et_shiftsequence_apo * et_breakmodel_apo = it_et_breakmodel_apo * et_shift_text_apo = it_et_shift_text_apo * et_shiftsequence_text_apo = it_et_shiftsequence_text_apo * et_breakmodel_text_apo = it_et_breakmodel_text_apo * et_shift_apo_x = it_et_shift_apo_x * et_shiftsequence_apo_x = it_et_shiftsequence_apo_x * et_breakmodel_apo_x = it_et_breakmodel_apo_x * et_shift_text_apo_x = it_et_shift_text_apo_x * et_shiftsequence_text_apo_x = it_et_shiftsequence_text_apo_x * et_breakmodel_text_apo_x = it_et_breakmodel_text_apo_x . " CIF_SHIFT_APO_MAP
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_it_tc37a  TYPE STANDARD TABLE OF TC37A ,
wa_it_tc37a  LIKE LINE OF it_it_tc37a,
it_it_tc37p  TYPE STANDARD TABLE OF TC37P ,
wa_it_tc37p  LIKE LINE OF it_it_tc37p,
it_it_tc38a  TYPE STANDARD TABLE OF TC38A ,
wa_it_tc38a  LIKE LINE OF it_it_tc38a,
it_it_tc37t  TYPE STANDARD TABLE OF TC37T ,
wa_it_tc37t  LIKE LINE OF it_it_tc37t,
it_it_tc37s  TYPE STANDARD TABLE OF TC37S ,
wa_it_tc37s  LIKE LINE OF it_it_tc37s,
it_it_tc38t  TYPE STANDARD TABLE OF TC38T ,
wa_it_tc38t  LIKE LINE OF it_it_tc38t,
it_et_shift_apo  TYPE STANDARD TABLE OF CRCIFSHIFT_APO ,
wa_et_shift_apo  LIKE LINE OF it_et_shift_apo,
it_et_shiftsequence_apo  TYPE STANDARD TABLE OF CRCIFSHIFTSEQUENCE_APO ,
wa_et_shiftsequence_apo  LIKE LINE OF it_et_shiftsequence_apo,
it_et_breakmodel_apo  TYPE STANDARD TABLE OF CRCIFBREAK_APO ,
wa_et_breakmodel_apo  LIKE LINE OF it_et_breakmodel_apo,
it_et_shift_text_apo  TYPE STANDARD TABLE OF CRCIFSHIFT_TEXT_APO ,
wa_et_shift_text_apo  LIKE LINE OF it_et_shift_text_apo,
it_et_shiftsequence_text_apo  TYPE STANDARD TABLE OF CRCIFSHIFTSEQ_TEXT_APO ,
wa_et_shiftsequence_text_apo  LIKE LINE OF it_et_shiftsequence_text_apo,
it_et_breakmodel_text_apo  TYPE STANDARD TABLE OF CRCIFBREAK_TEXT_APO ,
wa_et_breakmodel_text_apo  LIKE LINE OF it_et_breakmodel_text_apo,
it_et_shift_apo_x  TYPE STANDARD TABLE OF CRCIFSHIFT_APO_X ,
wa_et_shift_apo_x  LIKE LINE OF it_et_shift_apo_x,
it_et_shiftsequence_apo_x  TYPE STANDARD TABLE OF CRCIFSHIFTSEQUENCE_APO_X ,
wa_et_shiftsequence_apo_x  LIKE LINE OF it_et_shiftsequence_apo_x,
it_et_breakmodel_apo_x  TYPE STANDARD TABLE OF CRCIFBREAK_APO_X ,
wa_et_breakmodel_apo_x  LIKE LINE OF it_et_breakmodel_apo_x,
it_et_shift_text_apo_x  TYPE STANDARD TABLE OF CRCIFSHIFT_TEXT_APO_X ,
wa_et_shift_text_apo_x  LIKE LINE OF it_et_shift_text_apo_x,
it_et_shiftsequence_text_apo_x  TYPE STANDARD TABLE OF CRCIFSHIFTSEQ_TEXT_APO_X ,
wa_et_shiftsequence_text_apo_x  LIKE LINE OF it_et_shiftsequence_text_apo_x,
it_et_breakmodel_text_apo_x  TYPE STANDARD TABLE OF CRCIFBREAK_TEXT_APO_X ,
wa_et_breakmodel_text_apo_x  LIKE LINE OF it_et_breakmodel_text_apo_x.


"populate fields of struture and append to itab
append wa_it_tc37a to it_it_tc37a.

"populate fields of struture and append to itab
append wa_it_tc37p to it_it_tc37p.

"populate fields of struture and append to itab
append wa_it_tc38a to it_it_tc38a.

"populate fields of struture and append to itab
append wa_it_tc37t to it_it_tc37t.

"populate fields of struture and append to itab
append wa_it_tc37s to it_it_tc37s.

"populate fields of struture and append to itab
append wa_it_tc38t to it_it_tc38t.

"populate fields of struture and append to itab
append wa_et_shift_apo to it_et_shift_apo.

"populate fields of struture and append to itab
append wa_et_shiftsequence_apo to it_et_shiftsequence_apo.

"populate fields of struture and append to itab
append wa_et_breakmodel_apo to it_et_breakmodel_apo.

"populate fields of struture and append to itab
append wa_et_shift_text_apo to it_et_shift_text_apo.

"populate fields of struture and append to itab
append wa_et_shiftsequence_text_apo to it_et_shiftsequence_text_apo.

"populate fields of struture and append to itab
append wa_et_breakmodel_text_apo to it_et_breakmodel_text_apo.

"populate fields of struture and append to itab
append wa_et_shift_apo_x to it_et_shift_apo_x.

"populate fields of struture and append to itab
append wa_et_shiftsequence_apo_x to it_et_shiftsequence_apo_x.

"populate fields of struture and append to itab
append wa_et_breakmodel_apo_x to it_et_breakmodel_apo_x.

"populate fields of struture and append to itab
append wa_et_shift_text_apo_x to it_et_shift_text_apo_x.

"populate fields of struture and append to itab
append wa_et_shiftsequence_text_apo_x to it_et_shiftsequence_text_apo_x.

"populate fields of struture and append to itab
append wa_et_breakmodel_text_apo_x to it_et_breakmodel_text_apo_x.

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