SAP Function Modules

FKK_SAMPLE_1087 SAP Function module







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

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


Pattern for FM FKK_SAMPLE_1087 - FKK SAMPLE 1087





CALL FUNCTION 'FKK_SAMPLE_1087' "
  EXPORTING
    is_rfkc4_1_old =            " rfkc4_1       ALV Fields for SAPLFKKC4 (Maintain Bank Data)
    is_rfkc4_1_new =            " rfkc4_1       ALV Fields for SAPLFKKC4 (Maintain Bank Data)
    iv_workmode =               " workm_kk      Change Payment Data: Work Mode
    iv_transmode =              " trans_kk      Change Payment Data: Transfer Mode
*   iv_xtest = SPACE            " boole-boole   Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
*   iv_valdt = SY-DATUM         " bu_valdt      Initial Date for Business Partner Data
  IMPORTING
    ev_updated =                " boole-boole   Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
    es_rfkc4_1_updated =        " rfkc4_1
  TABLES
    t_message =                 " rfkc4_4       Error Messages
    .  "  FKK_SAMPLE_1087

ABAP code example for Function Module FKK_SAMPLE_1087





The ABAP code below is a full code listing to execute function module FKK_SAMPLE_1087 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_ev_updated  TYPE BOOLE-BOOLE ,
ld_es_rfkc4_1_updated  TYPE RFKC4_1 ,
it_t_message  TYPE STANDARD TABLE OF RFKC4_4,"TABLES PARAM
wa_t_message  LIKE LINE OF it_t_message .

DATA(ld_is_rfkc4_1_old) = 'Check type of data required'.
DATA(ld_is_rfkc4_1_new) = 'Check type of data required'.
DATA(ld_iv_workmode) = 'Check type of data required'.
DATA(ld_iv_transmode) = 'Check type of data required'.

DATA(ld_iv_xtest) = some text here
DATA(ld_iv_valdt) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_message to it_t_message. . CALL FUNCTION 'FKK_SAMPLE_1087' EXPORTING is_rfkc4_1_old = ld_is_rfkc4_1_old is_rfkc4_1_new = ld_is_rfkc4_1_new iv_workmode = ld_iv_workmode iv_transmode = ld_iv_transmode * iv_xtest = ld_iv_xtest * iv_valdt = ld_iv_valdt IMPORTING ev_updated = ld_ev_updated es_rfkc4_1_updated = ld_es_rfkc4_1_updated TABLES t_message = it_t_message . " FKK_SAMPLE_1087
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_ev_updated  TYPE BOOLE-BOOLE ,
ld_is_rfkc4_1_old  TYPE RFKC4_1 ,
it_t_message  TYPE STANDARD TABLE OF RFKC4_4 ,
wa_t_message  LIKE LINE OF it_t_message,
ld_es_rfkc4_1_updated  TYPE RFKC4_1 ,
ld_is_rfkc4_1_new  TYPE RFKC4_1 ,
ld_iv_workmode  TYPE WORKM_KK ,
ld_iv_transmode  TYPE TRANS_KK ,
ld_iv_xtest  TYPE BOOLE-BOOLE ,
ld_iv_valdt  TYPE BU_VALDT .

ld_is_rfkc4_1_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_message to it_t_message.
ld_is_rfkc4_1_new = 'Check type of data required'.
ld_iv_workmode = 'Check type of data required'.
ld_iv_transmode = 'Check type of data required'.

ld_iv_xtest = some text here
ld_iv_valdt = 'Check type of data required'.

SAP Documentation for FM FKK_SAMPLE_1087


With a function module processed at event 1087, you can change the contract data using the import parameters IS_RFKC4_1_OLD and ...See here for full SAP fm documentation





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