SAP Function Modules

CK_F_PREPARE_OUTPUT_LIST SAP Function module







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

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


Pattern for FM CK_F_PREPARE_OUTPUT_LIST - CK F PREPARE OUTPUT LIST





CALL FUNCTION 'CK_F_PREPARE_OUTPUT_LIST' "
  EXPORTING
    f_ckiwerk =                 " ckiwerk
    f_mack4_bwtar =             " mack4
    f_mack4_eigen =             " mack4
    p_meins =                   " meins         Base Unit of Measure
  TABLES
    t_ckmlpr_eigen =            " ckmlpr
    t_ckmlpr_bwtar =            " ckmlpr
    t_xdata_ckvo =              " list_of_marking
    .  "  CK_F_PREPARE_OUTPUT_LIST

ABAP code example for Function Module CK_F_PREPARE_OUTPUT_LIST





The ABAP code below is a full code listing to execute function module CK_F_PREPARE_OUTPUT_LIST 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_t_ckmlpr_eigen  TYPE STANDARD TABLE OF CKMLPR,"TABLES PARAM
wa_t_ckmlpr_eigen  LIKE LINE OF it_t_ckmlpr_eigen ,
it_t_ckmlpr_bwtar  TYPE STANDARD TABLE OF CKMLPR,"TABLES PARAM
wa_t_ckmlpr_bwtar  LIKE LINE OF it_t_ckmlpr_bwtar ,
it_t_xdata_ckvo  TYPE STANDARD TABLE OF LIST_OF_MARKING,"TABLES PARAM
wa_t_xdata_ckvo  LIKE LINE OF it_t_xdata_ckvo .

DATA(ld_f_ckiwerk) = 'Check type of data required'.
DATA(ld_f_mack4_bwtar) = 'Check type of data required'.
DATA(ld_f_mack4_eigen) = 'Check type of data required'.
DATA(ld_p_meins) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_ckmlpr_eigen to it_t_ckmlpr_eigen.

"populate fields of struture and append to itab
append wa_t_ckmlpr_bwtar to it_t_ckmlpr_bwtar.

"populate fields of struture and append to itab
append wa_t_xdata_ckvo to it_t_xdata_ckvo. . CALL FUNCTION 'CK_F_PREPARE_OUTPUT_LIST' EXPORTING f_ckiwerk = ld_f_ckiwerk f_mack4_bwtar = ld_f_mack4_bwtar f_mack4_eigen = ld_f_mack4_eigen p_meins = ld_p_meins TABLES t_ckmlpr_eigen = it_t_ckmlpr_eigen t_ckmlpr_bwtar = it_t_ckmlpr_bwtar t_xdata_ckvo = it_t_xdata_ckvo . " CK_F_PREPARE_OUTPUT_LIST
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_f_ckiwerk  TYPE CKIWERK ,
it_t_ckmlpr_eigen  TYPE STANDARD TABLE OF CKMLPR ,
wa_t_ckmlpr_eigen  LIKE LINE OF it_t_ckmlpr_eigen,
ld_f_mack4_bwtar  TYPE MACK4 ,
it_t_ckmlpr_bwtar  TYPE STANDARD TABLE OF CKMLPR ,
wa_t_ckmlpr_bwtar  LIKE LINE OF it_t_ckmlpr_bwtar,
ld_f_mack4_eigen  TYPE MACK4 ,
it_t_xdata_ckvo  TYPE STANDARD TABLE OF LIST_OF_MARKING ,
wa_t_xdata_ckvo  LIKE LINE OF it_t_xdata_ckvo,
ld_p_meins  TYPE MEINS .

ld_f_ckiwerk = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_ckmlpr_eigen to it_t_ckmlpr_eigen.
ld_f_mack4_bwtar = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_ckmlpr_bwtar to it_t_ckmlpr_bwtar.
ld_f_mack4_eigen = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_xdata_ckvo to it_t_xdata_ckvo.
ld_p_meins = 'Check type of data required'.

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