SAP Function Modules

SIN_SET_MENU_SO SAP Function module







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

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


Pattern for FM SIN_SET_MENU_SO - SIN SET MENU SO





CALL FUNCTION 'SIN_SET_MENU_SO' "
  EXPORTING
    owner =                     " sy-uname
    folrg =                     " sin_folrg
    subclass =                  " sin_subcl
*   class_data =                " sin_cldep
*   i_ucomm =                   " sy-ucomm
*   i_row_id =                  " lvc_s_row
*   i_col_id =                  " lvc_s_col
  IMPORTING
    et_fcodes =                 " lvc_t_func
* TABLES
*   it_rows =                   " lvc_t_row
  CHANGING
    ir_ctmenu =                 " sinw_ctmenu
    .  "  SIN_SET_MENU_SO

ABAP code example for Function Module SIN_SET_MENU_SO





The ABAP code below is a full code listing to execute function module SIN_SET_MENU_SO 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_et_fcodes  TYPE LVC_T_FUNC ,
it_it_rows  TYPE STANDARD TABLE OF LVC_T_ROW,"TABLES PARAM
wa_it_rows  LIKE LINE OF it_it_rows .

DATA(ld_ir_ctmenu) = 'Check type of data required'.
DATA(ld_owner) = 'some text here'.
DATA(ld_folrg) = 'some text here'.
DATA(ld_subclass) = 'some text here'.
DATA(ld_class_data) = 'some text here'.
DATA(ld_i_ucomm) = 'some text here'.
DATA(ld_i_row_id) = 'some text here'.
DATA(ld_i_col_id) = 'some text here'.

"populate fields of struture and append to itab
append wa_it_rows to it_it_rows. . CALL FUNCTION 'SIN_SET_MENU_SO' EXPORTING owner = ld_owner folrg = ld_folrg subclass = ld_subclass * class_data = ld_class_data * i_ucomm = ld_i_ucomm * i_row_id = ld_i_row_id * i_col_id = ld_i_col_id IMPORTING et_fcodes = ld_et_fcodes * TABLES * it_rows = it_it_rows CHANGING ir_ctmenu = ld_ir_ctmenu . " SIN_SET_MENU_SO
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_ir_ctmenu  TYPE SINW_CTMENU ,
ld_et_fcodes  TYPE LVC_T_FUNC ,
ld_owner  TYPE SY-UNAME ,
it_it_rows  TYPE STANDARD TABLE OF LVC_T_ROW ,
wa_it_rows  LIKE LINE OF it_it_rows,
ld_folrg  TYPE SIN_FOLRG ,
ld_subclass  TYPE SIN_SUBCL ,
ld_class_data  TYPE SIN_CLDEP ,
ld_i_ucomm  TYPE SY-UCOMM ,
ld_i_row_id  TYPE LVC_S_ROW ,
ld_i_col_id  TYPE LVC_S_COL .

ld_ir_ctmenu = 'some text here'.
ld_owner = 'some text here'.

"populate fields of struture and append to itab
append wa_it_rows to it_it_rows.
ld_folrg = 'some text here'.
ld_subclass = 'some text here'.
ld_class_data = 'some text here'.
ld_i_ucomm = 'some text here'.
ld_i_row_id = 'some text here'.
ld_i_col_id = '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 SIN_SET_MENU_SO or its description.