SAP Function Modules

BKK_HY_DYNPRO_CONTROL_D20 SAP Function module - Account Hierarchy: Control of Account and Amount Entries (Screen 20+30)







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

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


Pattern for FM BKK_HY_DYNPRO_CONTROL_D20 - BKK HY DYNPRO CONTROL D20





CALL FUNCTION 'BKK_HY_DYNPRO_CONTROL_D20' "Account Hierarchy: Control of Account and Amount Entries (Screen 20+30)
  EXPORTING
    i_mode_dynpro =             " ibkk6s2-emode  I=Insert, R=Rename, U=Update, S=Display
*   i_x_insert_rootacc = SPACE  " bkk_xfeld     X = Root Account Added
*   i_node =                    " seucomm       Current Node to Be Edited
*   i_header_line =             " ibkk6s4-char99  Header Line (Valid From, Valid To)
  TABLES
    t_bkk610 =                  " bkk610        -> Current Entry; <- Updated Entry
*   t_new_acc =                 " ibkk6se       <- Newly Created Accounts in Insert Mode
* CHANGING
*   c_flg_change = '0'          " ibkk6s4-char1  Change Indicator: 0-False, 1-True
  EXCEPTIONS
    E_WRONG_INTERFACE = 1       "
    .  "  BKK_HY_DYNPRO_CONTROL_D20

ABAP code example for Function Module BKK_HY_DYNPRO_CONTROL_D20





The ABAP code below is a full code listing to execute function module BKK_HY_DYNPRO_CONTROL_D20 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_bkk610  TYPE STANDARD TABLE OF BKK610,"TABLES PARAM
wa_t_bkk610  LIKE LINE OF it_t_bkk610 ,
it_t_new_acc  TYPE STANDARD TABLE OF IBKK6SE,"TABLES PARAM
wa_t_new_acc  LIKE LINE OF it_t_new_acc .


DATA(ld_c_flg_change) = some text here

DATA(ld_i_mode_dynpro) = some text here
DATA(ld_i_x_insert_rootacc) = 'Check type of data required'.
DATA(ld_i_node) = 'Check type of data required'.

DATA(ld_i_header_line) = some text here

"populate fields of struture and append to itab
append wa_t_bkk610 to it_t_bkk610.

"populate fields of struture and append to itab
append wa_t_new_acc to it_t_new_acc. . CALL FUNCTION 'BKK_HY_DYNPRO_CONTROL_D20' EXPORTING i_mode_dynpro = ld_i_mode_dynpro * i_x_insert_rootacc = ld_i_x_insert_rootacc * i_node = ld_i_node * i_header_line = ld_i_header_line TABLES t_bkk610 = it_t_bkk610 * t_new_acc = it_t_new_acc * CHANGING * c_flg_change = ld_c_flg_change EXCEPTIONS E_WRONG_INTERFACE = 1 . " BKK_HY_DYNPRO_CONTROL_D20
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_c_flg_change  TYPE IBKK6S4-CHAR1 ,
ld_i_mode_dynpro  TYPE IBKK6S2-EMODE ,
it_t_bkk610  TYPE STANDARD TABLE OF BKK610 ,
wa_t_bkk610  LIKE LINE OF it_t_bkk610,
ld_i_x_insert_rootacc  TYPE BKK_XFELD ,
it_t_new_acc  TYPE STANDARD TABLE OF IBKK6SE ,
wa_t_new_acc  LIKE LINE OF it_t_new_acc,
ld_i_node  TYPE SEUCOMM ,
ld_i_header_line  TYPE IBKK6S4-CHAR99 .


ld_c_flg_change = some text here

ld_i_mode_dynpro = some text here

"populate fields of struture and append to itab
append wa_t_bkk610 to it_t_bkk610.
ld_i_x_insert_rootacc = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_new_acc to it_t_new_acc.
ld_i_node = 'Check type of data required'.

ld_i_header_line = some text here

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