SAP Function Modules

ICLX_MODIFY_BENCALCVAL_IN SAP Function module - API 'Benefit Calculation Item: Create or Change Entries'







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

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


Pattern for FM ICLX_MODIFY_BENCALCVAL_IN - ICLX MODIFY BENCALCVAL IN





CALL FUNCTION 'ICLX_MODIFY_BENCALCVAL_IN' "API 'Benefit Calculation Item: Create or Change Entries'
* EXPORTING
*   iv_fill_field_descr = 'X'   " boole_d       Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
*   iv_language_iso = SY-LANGU  " laiso         Language According to ISO 639
  IMPORTING
    ev_message_type =           " iclx_message_type_d  Message Type: S Success, E Error, W Warning, I Info
  TABLES
*   it_assignment =             " iclx_node_assignment_s  Assignment Structure of BO Node Instances (Category, GUID)
    it_data =                   " iclx_i_bencalcval_s_in  Repetitive Payment Items: Input Fields for UI
*   et_data =                   " iclx_io_bencalcval_s_in  Benefit Calculation Item: Input/Output Fields for UI
*   et_message_protocol =       " iclx_message_protocol_s_in  Message Log: Error, Warning, Information, Success Messages
    .  "  ICLX_MODIFY_BENCALCVAL_IN

ABAP code example for Function Module ICLX_MODIFY_BENCALCVAL_IN





The ABAP code below is a full code listing to execute function module ICLX_MODIFY_BENCALCVAL_IN 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_message_type  TYPE ICLX_MESSAGE_TYPE_D ,
it_it_assignment  TYPE STANDARD TABLE OF ICLX_NODE_ASSIGNMENT_S,"TABLES PARAM
wa_it_assignment  LIKE LINE OF it_it_assignment ,
it_it_data  TYPE STANDARD TABLE OF ICLX_I_BENCALCVAL_S_IN,"TABLES PARAM
wa_it_data  LIKE LINE OF it_it_data ,
it_et_data  TYPE STANDARD TABLE OF ICLX_IO_BENCALCVAL_S_IN,"TABLES PARAM
wa_et_data  LIKE LINE OF it_et_data ,
it_et_message_protocol  TYPE STANDARD TABLE OF ICLX_MESSAGE_PROTOCOL_S_IN,"TABLES PARAM
wa_et_message_protocol  LIKE LINE OF it_et_message_protocol .

DATA(ld_iv_fill_field_descr) = 'Check type of data required'.
DATA(ld_iv_language_iso) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_assignment to it_it_assignment.

"populate fields of struture and append to itab
append wa_it_data to it_it_data.

"populate fields of struture and append to itab
append wa_et_data to it_et_data.

"populate fields of struture and append to itab
append wa_et_message_protocol to it_et_message_protocol. . CALL FUNCTION 'ICLX_MODIFY_BENCALCVAL_IN' * EXPORTING * iv_fill_field_descr = ld_iv_fill_field_descr * iv_language_iso = ld_iv_language_iso IMPORTING ev_message_type = ld_ev_message_type TABLES * it_assignment = it_it_assignment it_data = it_it_data * et_data = it_et_data * et_message_protocol = it_et_message_protocol . " ICLX_MODIFY_BENCALCVAL_IN
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_message_type  TYPE ICLX_MESSAGE_TYPE_D ,
ld_iv_fill_field_descr  TYPE BOOLE_D ,
it_it_assignment  TYPE STANDARD TABLE OF ICLX_NODE_ASSIGNMENT_S ,
wa_it_assignment  LIKE LINE OF it_it_assignment,
ld_iv_language_iso  TYPE LAISO ,
it_it_data  TYPE STANDARD TABLE OF ICLX_I_BENCALCVAL_S_IN ,
wa_it_data  LIKE LINE OF it_it_data,
it_et_data  TYPE STANDARD TABLE OF ICLX_IO_BENCALCVAL_S_IN ,
wa_et_data  LIKE LINE OF it_et_data,
it_et_message_protocol  TYPE STANDARD TABLE OF ICLX_MESSAGE_PROTOCOL_S_IN ,
wa_et_message_protocol  LIKE LINE OF it_et_message_protocol.

ld_iv_fill_field_descr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_assignment to it_it_assignment.
ld_iv_language_iso = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_data to it_it_data.

"populate fields of struture and append to itab
append wa_et_data to it_et_data.

"populate fields of struture and append to itab
append wa_et_message_protocol to it_et_message_protocol.

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