SAP Function Modules

FKK_ORDER_CHECK_POS SAP Function module







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

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


Pattern for FM FKK_ORDER_CHECK_POS - FKK ORDER CHECK POS





CALL FUNCTION 'FKK_ORDER_CHECK_POS' "
  EXPORTING
    i_fkkorder =                " fkkorder      Requests: Header Data
*   i_applk =                   " fkkorder-applk  Application Area
    i_extern =                  " boole-boole
    i_action =                  " action_kk     Actions for Requests
*   i_no_dialog =               " x_no_dialog_kk
*   i_xopasg =                  " xopasg_kk     Assignment of Payment to Request Through Classification Key
  IMPORTING
    es_period_messages =        " fkkwnper
* TABLES
*   return =                    " bapiret2      Return Parameter(s)
  CHANGING
    c_fkkorderpos =             " fkkorderpos   Requests: Items
    .  "  FKK_ORDER_CHECK_POS

ABAP code example for Function Module FKK_ORDER_CHECK_POS





The ABAP code below is a full code listing to execute function module FKK_ORDER_CHECK_POS 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:
ld_es_period_messages  TYPE FKKWNPER ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .

DATA(ld_c_fkkorderpos) = 'Check type of data required'.
DATA(ld_i_fkkorder) = 'Check type of data required'.

DATA(ld_i_applk) = some text here

DATA(ld_i_extern) = some text here
DATA(ld_i_action) = 'Check type of data required'.
DATA(ld_i_no_dialog) = 'Check type of data required'.
DATA(ld_i_xopasg) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'FKK_ORDER_CHECK_POS' EXPORTING i_fkkorder = ld_i_fkkorder * i_applk = ld_i_applk i_extern = ld_i_extern i_action = ld_i_action * i_no_dialog = ld_i_no_dialog * i_xopasg = ld_i_xopasg IMPORTING es_period_messages = ld_es_period_messages * TABLES * return = it_return CHANGING c_fkkorderpos = ld_c_fkkorderpos . " FKK_ORDER_CHECK_POS
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_c_fkkorderpos  TYPE FKKORDERPOS ,
ld_es_period_messages  TYPE FKKWNPER ,
ld_i_fkkorder  TYPE FKKORDER ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_i_applk  TYPE FKKORDER-APPLK ,
ld_i_extern  TYPE BOOLE-BOOLE ,
ld_i_action  TYPE ACTION_KK ,
ld_i_no_dialog  TYPE X_NO_DIALOG_KK ,
ld_i_xopasg  TYPE XOPASG_KK .

ld_c_fkkorderpos = 'Check type of data required'.
ld_i_fkkorder = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_return to it_return.

ld_i_applk = some text here

ld_i_extern = some text here
ld_i_action = 'Check type of data required'.
ld_i_no_dialog = 'Check type of data required'.
ld_i_xopasg = '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 FKK_ORDER_CHECK_POS or its description.