SAP Function Modules

SIN_GRID_EXECUTE_GS SAP Function module







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

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


Pattern for FM SIN_GRID_EXECUTE_GS - SIN GRID EXECUTE GS





CALL FUNCTION 'SIN_GRID_EXECUTE_GS' "
  EXPORTING
    fcode =                     " sy-ucomm      Screens, Function Code Triggered by PAI
    owner =                     " sy-uname      SAP System, User Logon Name
    folrg =                     " sin_folrg     Folder area
    subclass =                  " sin_subcl     Subordinate class
*   row =                       " lvc_s_row     ALV control: Line Description
*   column =                    " lvc_s_col     ALV Control: Column ID
*   class_data_in =             " sin_cldep     Class values
*   action =                    " c
*   frame =                     " c
*   getdata =                   " c
*   dd_object =                 " sinw_drdrobj
  IMPORTING
    class_data_out =            " sin_cldep     Class values
    refreshs =                  " sin_s_refr    Workplace: Refresh
* TABLES
*   row_table =                 " lvc_s_row     ALV control: Line Description
*   common_outtab =             " sin_t_comm    Workplace: Cross-Application Tables for BPT Workplace
*   counters =                  " sin_s_cnt     Workplace: Inbox Counter
*   postdata =                  " cnht_post_data_tab
*   query_table =               " cnht_query_table
*   dragdrop =                  " sin_t_wpdd    Workplace: Table for Drag & Drop by Class Key
* CHANGING
*   title_text =                " lvc_title     ALV Control: Title bar text
    .  "  SIN_GRID_EXECUTE_GS

ABAP code example for Function Module SIN_GRID_EXECUTE_GS





The ABAP code below is a full code listing to execute function module SIN_GRID_EXECUTE_GS 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_class_data_out  TYPE SIN_CLDEP ,
ld_refreshs  TYPE SIN_S_REFR ,
it_row_table  TYPE STANDARD TABLE OF LVC_S_ROW,"TABLES PARAM
wa_row_table  LIKE LINE OF it_row_table ,
it_common_outtab  TYPE STANDARD TABLE OF SIN_T_COMM,"TABLES PARAM
wa_common_outtab  LIKE LINE OF it_common_outtab ,
it_counters  TYPE STANDARD TABLE OF SIN_S_CNT,"TABLES PARAM
wa_counters  LIKE LINE OF it_counters ,
it_postdata  TYPE STANDARD TABLE OF CNHT_POST_DATA_TAB,"TABLES PARAM
wa_postdata  LIKE LINE OF it_postdata ,
it_query_table  TYPE STANDARD TABLE OF CNHT_QUERY_TABLE,"TABLES PARAM
wa_query_table  LIKE LINE OF it_query_table ,
it_dragdrop  TYPE STANDARD TABLE OF SIN_T_WPDD,"TABLES PARAM
wa_dragdrop  LIKE LINE OF it_dragdrop .

DATA(ld_title_text) = 'Check type of data required'.
DATA(ld_fcode) = 'some text here'.
DATA(ld_owner) = 'some text here'.
DATA(ld_folrg) = 'some text here'.
DATA(ld_subclass) = 'some text here'.
DATA(ld_row) = 'some text here'.
DATA(ld_column) = 'some text here'.
DATA(ld_class_data_in) = 'some text here'.
DATA(ld_action) = 'some text here'.
DATA(ld_frame) = 'some text here'.
DATA(ld_getdata) = 'some text here'.
DATA(ld_dd_object) = 'some text here'.

"populate fields of struture and append to itab
append wa_row_table to it_row_table.

"populate fields of struture and append to itab
append wa_common_outtab to it_common_outtab.

"populate fields of struture and append to itab
append wa_counters to it_counters.

"populate fields of struture and append to itab
append wa_postdata to it_postdata.

"populate fields of struture and append to itab
append wa_query_table to it_query_table.

"populate fields of struture and append to itab
append wa_dragdrop to it_dragdrop. . CALL FUNCTION 'SIN_GRID_EXECUTE_GS' EXPORTING fcode = ld_fcode owner = ld_owner folrg = ld_folrg subclass = ld_subclass * row = ld_row * column = ld_column * class_data_in = ld_class_data_in * action = ld_action * frame = ld_frame * getdata = ld_getdata * dd_object = ld_dd_object IMPORTING class_data_out = ld_class_data_out refreshs = ld_refreshs * TABLES * row_table = it_row_table * common_outtab = it_common_outtab * counters = it_counters * postdata = it_postdata * query_table = it_query_table * dragdrop = it_dragdrop * CHANGING * title_text = ld_title_text . " SIN_GRID_EXECUTE_GS
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_title_text  TYPE LVC_TITLE ,
ld_class_data_out  TYPE SIN_CLDEP ,
ld_fcode  TYPE SY-UCOMM ,
it_row_table  TYPE STANDARD TABLE OF LVC_S_ROW ,
wa_row_table  LIKE LINE OF it_row_table,
ld_refreshs  TYPE SIN_S_REFR ,
ld_owner  TYPE SY-UNAME ,
it_common_outtab  TYPE STANDARD TABLE OF SIN_T_COMM ,
wa_common_outtab  LIKE LINE OF it_common_outtab,
ld_folrg  TYPE SIN_FOLRG ,
it_counters  TYPE STANDARD TABLE OF SIN_S_CNT ,
wa_counters  LIKE LINE OF it_counters,
ld_subclass  TYPE SIN_SUBCL ,
it_postdata  TYPE STANDARD TABLE OF CNHT_POST_DATA_TAB ,
wa_postdata  LIKE LINE OF it_postdata,
ld_row  TYPE LVC_S_ROW ,
it_query_table  TYPE STANDARD TABLE OF CNHT_QUERY_TABLE ,
wa_query_table  LIKE LINE OF it_query_table,
ld_column  TYPE LVC_S_COL ,
it_dragdrop  TYPE STANDARD TABLE OF SIN_T_WPDD ,
wa_dragdrop  LIKE LINE OF it_dragdrop,
ld_class_data_in  TYPE SIN_CLDEP ,
ld_action  TYPE C ,
ld_frame  TYPE C ,
ld_getdata  TYPE C ,
ld_dd_object  TYPE SINW_DRDROBJ .

ld_title_text = 'some text here'.
ld_fcode = 'some text here'.

"populate fields of struture and append to itab
append wa_row_table to it_row_table.
ld_owner = 'some text here'.

"populate fields of struture and append to itab
append wa_common_outtab to it_common_outtab.
ld_folrg = 'some text here'.

"populate fields of struture and append to itab
append wa_counters to it_counters.
ld_subclass = 'some text here'.

"populate fields of struture and append to itab
append wa_postdata to it_postdata.
ld_row = 'some text here'.

"populate fields of struture and append to itab
append wa_query_table to it_query_table.
ld_column = 'some text here'.

"populate fields of struture and append to itab
append wa_dragdrop to it_dragdrop.
ld_class_data_in = 'some text here'.
ld_action = 'some text here'.
ld_frame = 'some text here'.
ld_getdata = 'some text here'.
ld_dd_object = '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_GRID_EXECUTE_GS or its description.