SAP Function Modules

RH_INIT_BINDING_EDIT_CNT SAP Function module







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

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


Pattern for FM RH_INIT_BINDING_EDIT_CNT - RH INIT BINDING EDIT CNT





CALL FUNCTION 'RH_INIT_BINDING_EDIT_CNT' "
  EXPORTING
    act_otype_text =            " t777o-otext
*   act_short = SPACE           " hrs1000-short  Name of task
    drain_otype_text =          " t777o-otext
*   drain_short = SPACE         " hrs1000-short  Name of task
*   b_display = SPACE           " t77fc-maint
    task_container =            " if_swf_cnt_container  Container - Implementation of a 'Collection'
  IMPORTING
    input_done =                " swabinedit-changed  Changes implemented
  CHANGING
    act_bind_def =              " swfbndptab    Table with Binding Definitions, Persistent Form
  EXCEPTIONS
    INCONSISTENT_BINDINGDEFINITION = 1  "
    INVALID_BINDINGTYPE = 2     "
    INVALID_CONTAINERTYPE = 3   "
    .  "  RH_INIT_BINDING_EDIT_CNT

ABAP code example for Function Module RH_INIT_BINDING_EDIT_CNT





The ABAP code below is a full code listing to execute function module RH_INIT_BINDING_EDIT_CNT 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_input_done  TYPE SWABINEDIT-CHANGED .

DATA(ld_act_bind_def) = 'Check type of data required'.

SELECT single OTEXT
FROM T777O
INTO @DATA(ld_act_otype_text).


SELECT single SHORT
FROM HRS1000
INTO @DATA(ld_act_short).


SELECT single OTEXT
FROM T777O
INTO @DATA(ld_drain_otype_text).


SELECT single SHORT
FROM HRS1000
INTO @DATA(ld_drain_short).


SELECT single MAINT
FROM T77FC
INTO @DATA(ld_b_display).

DATA(ld_task_container) = 'Check type of data required'. . CALL FUNCTION 'RH_INIT_BINDING_EDIT_CNT' EXPORTING act_otype_text = ld_act_otype_text * act_short = ld_act_short drain_otype_text = ld_drain_otype_text * drain_short = ld_drain_short * b_display = ld_b_display task_container = ld_task_container IMPORTING input_done = ld_input_done CHANGING act_bind_def = ld_act_bind_def EXCEPTIONS INCONSISTENT_BINDINGDEFINITION = 1 INVALID_BINDINGTYPE = 2 INVALID_CONTAINERTYPE = 3 . " RH_INIT_BINDING_EDIT_CNT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_act_bind_def  TYPE SWFBNDPTAB ,
ld_input_done  TYPE SWABINEDIT-CHANGED ,
ld_act_otype_text  TYPE T777O-OTEXT ,
ld_act_short  TYPE HRS1000-SHORT ,
ld_drain_otype_text  TYPE T777O-OTEXT ,
ld_drain_short  TYPE HRS1000-SHORT ,
ld_b_display  TYPE T77FC-MAINT ,
ld_task_container  TYPE IF_SWF_CNT_CONTAINER .

ld_act_bind_def = 'Check type of data required'.

SELECT single OTEXT
FROM T777O
INTO ld_act_otype_text.


SELECT single SHORT
FROM HRS1000
INTO ld_act_short.


SELECT single OTEXT
FROM T777O
INTO ld_drain_otype_text.


SELECT single SHORT
FROM HRS1000
INTO ld_drain_short.


SELECT single MAINT
FROM T77FC
INTO ld_b_display.

ld_task_container = '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 RH_INIT_BINDING_EDIT_CNT or its description.