SAP Function Modules

LSO_BIW_TRAINTYP_MASTERDATA SAP Function module







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

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


Pattern for FM LSO_BIW_TRAINTYP_MASTERDATA - LSO BIW TRAINTYP MASTERDATA





CALL FUNCTION 'LSO_BIW_TRAINTYP_MASTERDATA' "
* EXPORTING
*   i_initflag =                " sbiwa_s_interface-initflag
*   i_updmode =                 " sbiwa_s_interface-updmode  Transfer Mode (See Domain Fixed Values)
*   i_maxsize =                 " sbiwa_s_interface-maxsize
*   i_private_mode =            " any
*   begda = '19000101'          " sy-datum      Date and Time, Current (Application Server) Date
*   endda = '99991231'          " sy-datum      Date and Time, Current (Application Server) Date
* TABLES
*   i_t_select =                " sbiwa_t_select
*   i_t_fields =                " sbiwa_t_fields
*   e_t_lso_biw_tratyp_masterdata =   " lso_biw_tratyp_masterdata  BW: LSO Course Type
    .  "  LSO_BIW_TRAINTYP_MASTERDATA

ABAP code example for Function Module LSO_BIW_TRAINTYP_MASTERDATA





The ABAP code below is a full code listing to execute function module LSO_BIW_TRAINTYP_MASTERDATA 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_i_t_select  TYPE STANDARD TABLE OF SBIWA_T_SELECT,"TABLES PARAM
wa_i_t_select  LIKE LINE OF it_i_t_select ,
it_i_t_fields  TYPE STANDARD TABLE OF SBIWA_T_FIELDS,"TABLES PARAM
wa_i_t_fields  LIKE LINE OF it_i_t_fields ,
it_e_t_lso_biw_tratyp_masterdata  TYPE STANDARD TABLE OF LSO_BIW_TRATYP_MASTERDATA,"TABLES PARAM
wa_e_t_lso_biw_tratyp_masterdata  LIKE LINE OF it_e_t_lso_biw_tratyp_masterdata .


DATA(ld_i_initflag) = some text here

DATA(ld_i_updmode) = some text here

DATA(ld_i_maxsize) = some text here
DATA(ld_i_private_mode) = 'Check type of data required'.
DATA(ld_begda) = '20210129'.
DATA(ld_endda) = '20210129'.

"populate fields of struture and append to itab
append wa_i_t_select to it_i_t_select.

"populate fields of struture and append to itab
append wa_i_t_fields to it_i_t_fields.

"populate fields of struture and append to itab
append wa_e_t_lso_biw_tratyp_masterdata to it_e_t_lso_biw_tratyp_masterdata. . CALL FUNCTION 'LSO_BIW_TRAINTYP_MASTERDATA' * EXPORTING * i_initflag = ld_i_initflag * i_updmode = ld_i_updmode * i_maxsize = ld_i_maxsize * i_private_mode = ld_i_private_mode * begda = ld_begda * endda = ld_endda * TABLES * i_t_select = it_i_t_select * i_t_fields = it_i_t_fields * e_t_lso_biw_tratyp_masterdata = it_e_t_lso_biw_tratyp_masterdata . " LSO_BIW_TRAINTYP_MASTERDATA
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_i_initflag  TYPE SBIWA_S_INTERFACE-INITFLAG ,
it_i_t_select  TYPE STANDARD TABLE OF SBIWA_T_SELECT ,
wa_i_t_select  LIKE LINE OF it_i_t_select,
ld_i_updmode  TYPE SBIWA_S_INTERFACE-UPDMODE ,
it_i_t_fields  TYPE STANDARD TABLE OF SBIWA_T_FIELDS ,
wa_i_t_fields  LIKE LINE OF it_i_t_fields,
ld_i_maxsize  TYPE SBIWA_S_INTERFACE-MAXSIZE ,
it_e_t_lso_biw_tratyp_masterdata  TYPE STANDARD TABLE OF LSO_BIW_TRATYP_MASTERDATA ,
wa_e_t_lso_biw_tratyp_masterdata  LIKE LINE OF it_e_t_lso_biw_tratyp_masterdata,
ld_i_private_mode  TYPE ANY ,
ld_begda  TYPE SY-DATUM ,
ld_endda  TYPE SY-DATUM .


ld_i_initflag = some text here

"populate fields of struture and append to itab
append wa_i_t_select to it_i_t_select.

ld_i_updmode = some text here

"populate fields of struture and append to itab
append wa_i_t_fields to it_i_t_fields.

ld_i_maxsize = some text here

"populate fields of struture and append to itab
append wa_e_t_lso_biw_tratyp_masterdata to it_e_t_lso_biw_tratyp_masterdata.
ld_i_private_mode = '20210129'.
ld_begda = '20210129'.
ld_endda = '20210129'.

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