SAP Function Modules

SAMPLE_INTERFACE_00011050 SAP Function module - BCA: Account Time Periods - Edit NEXT_DATE







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

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


Pattern for FM SAMPLE_INTERFACE_00011050 - SAMPLE INTERFACE 00011050





CALL FUNCTION 'SAMPLE_INTERFACE_00011050' "BCA: Account Time Periods - Edit NEXT_DATE
  EXPORTING
    i_bkkrs =                   " tbkk01-bkkrs  Bank Area
    i_clos_typ =                " ibkkm7-clos_typ  Balancing Type
    i_period =                  " ibkkm7-period  Period
    i_per_unit =                " ibkkm7-per_unit  Period Unit
    i_key_date =                " ibkkm7-key_date  Key Date
    i_refdate =                 " ibkkm4-next_date  Next Date
    i_calendar1 =               " ibkk42-cal_id1  Public Holiday Calendar ID 1
    i_calendar2 =               " ibkk42-cal_id2  Public Holiday Calendar ID 2
  IMPORTING
    e_return =                  " sy-subrc      Return Value, Return Value After ABAP Statements
* TABLES
*   t_mesg =                    " ibkkmesg      Transfer Table for Messages
  CHANGING
    c_next_date =               " ibkkm4-next_date  Next Date
*   c_flg_check_past =          " boole-boole   Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
    .  "  SAMPLE_INTERFACE_00011050

ABAP code example for Function Module SAMPLE_INTERFACE_00011050





The ABAP code below is a full code listing to execute function module SAMPLE_INTERFACE_00011050 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_e_return  TYPE SY-SUBRC ,
it_t_mesg  TYPE STANDARD TABLE OF IBKKMESG,"TABLES PARAM
wa_t_mesg  LIKE LINE OF it_t_mesg .


DATA(ld_c_next_date) = 20210129

DATA(ld_c_flg_check_past) = some text here

SELECT single BKKRS
FROM TBKK01
INTO @DATA(ld_i_bkkrs).


DATA(ld_i_clos_typ) = some text here

DATA(ld_i_period) = Check type of data required

DATA(ld_i_per_unit) = some text here

DATA(ld_i_key_date) = Check type of data required

DATA(ld_i_refdate) = 20210129

DATA(ld_i_calendar1) = some text here

DATA(ld_i_calendar2) = some text here

"populate fields of struture and append to itab
append wa_t_mesg to it_t_mesg. . CALL FUNCTION 'SAMPLE_INTERFACE_00011050' EXPORTING i_bkkrs = ld_i_bkkrs i_clos_typ = ld_i_clos_typ i_period = ld_i_period i_per_unit = ld_i_per_unit i_key_date = ld_i_key_date i_refdate = ld_i_refdate i_calendar1 = ld_i_calendar1 i_calendar2 = ld_i_calendar2 IMPORTING e_return = ld_e_return * TABLES * t_mesg = it_t_mesg CHANGING c_next_date = ld_c_next_date * c_flg_check_past = ld_c_flg_check_past . " SAMPLE_INTERFACE_00011050
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_next_date  TYPE IBKKM4-NEXT_DATE ,
ld_e_return  TYPE SY-SUBRC ,
ld_i_bkkrs  TYPE TBKK01-BKKRS ,
it_t_mesg  TYPE STANDARD TABLE OF IBKKMESG ,
wa_t_mesg  LIKE LINE OF it_t_mesg,
ld_c_flg_check_past  TYPE BOOLE-BOOLE ,
ld_i_clos_typ  TYPE IBKKM7-CLOS_TYP ,
ld_i_period  TYPE IBKKM7-PERIOD ,
ld_i_per_unit  TYPE IBKKM7-PER_UNIT ,
ld_i_key_date  TYPE IBKKM7-KEY_DATE ,
ld_i_refdate  TYPE IBKKM4-NEXT_DATE ,
ld_i_calendar1  TYPE IBKK42-CAL_ID1 ,
ld_i_calendar2  TYPE IBKK42-CAL_ID2 .


ld_c_next_date = 20210129

SELECT single BKKRS
FROM TBKK01
INTO ld_i_bkkrs.


"populate fields of struture and append to itab
append wa_t_mesg to it_t_mesg.

ld_c_flg_check_past = some text here

ld_i_clos_typ = some text here

ld_i_period = Check type of data required

ld_i_per_unit = some text here

ld_i_key_date = Check type of data required

ld_i_refdate = 20210129

ld_i_calendar1 = some text here

ld_i_calendar2 = 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 SAMPLE_INTERFACE_00011050 or its description.