SAP Function Modules

SIN_GRID_READ_SO SAP Function module







SIN_GRID_READ_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_GRID_READ_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_GRID_READ_SO - SIN GRID READ SO





CALL FUNCTION 'SIN_GRID_READ_SO' "
  EXPORTING
*   fcode = 'READ'              " sy-ucomm
*   owner =                     " sy-uname      Owner
    folrg =                     " sin_folrg
*   subclass = ' '              " sin_subcl     Subordinate class
*   preview = ' '               " c
*   class_data_in =             " sin_cldep
*   variant =                   " disvariant
  IMPORTING
    refreshs =                  " sin_s_refr
* TABLES
*   counters =                  " sin_s_cnt
*   fieldcatalog =              " lvc_t_fcat
*   sort =                      " lvc_t_sort
*   cldep_path =                "
* CHANGING
*   title_text =                " lvc_title
  EXCEPTIONS
    FOLDER_NOT_EXIST = 1        "
    CANCELLED = 2               "
    .  "  SIN_GRID_READ_SO

ABAP code example for Function Module SIN_GRID_READ_SO





The ABAP code below is a full code listing to execute function module SIN_GRID_READ_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_refreshs  TYPE SIN_S_REFR ,
it_counters  TYPE STANDARD TABLE OF SIN_S_CNT,"TABLES PARAM
wa_counters  LIKE LINE OF it_counters ,
it_fieldcatalog  TYPE STANDARD TABLE OF LVC_T_FCAT,"TABLES PARAM
wa_fieldcatalog  LIKE LINE OF it_fieldcatalog ,
it_sort  TYPE STANDARD TABLE OF LVC_T_SORT,"TABLES PARAM
wa_sort  LIKE LINE OF it_sort ,
it_cldep_path  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_cldep_path  LIKE LINE OF it_cldep_path .

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_preview) = 'some text here'.
DATA(ld_class_data_in) = 'some text here'.
DATA(ld_variant) = 'some text here'.

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

"populate fields of struture and append to itab
append wa_fieldcatalog to it_fieldcatalog.

"populate fields of struture and append to itab
append wa_sort to it_sort.

"populate fields of struture and append to itab
append wa_cldep_path to it_cldep_path. . CALL FUNCTION 'SIN_GRID_READ_SO' EXPORTING * fcode = ld_fcode * owner = ld_owner folrg = ld_folrg * subclass = ld_subclass * preview = ld_preview * class_data_in = ld_class_data_in * variant = ld_variant IMPORTING refreshs = ld_refreshs * TABLES * counters = it_counters * fieldcatalog = it_fieldcatalog * sort = it_sort * cldep_path = it_cldep_path * CHANGING * title_text = ld_title_text EXCEPTIONS FOLDER_NOT_EXIST = 1 CANCELLED = 2 . " SIN_GRID_READ_SO
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_title_text  TYPE LVC_TITLE ,
ld_refreshs  TYPE SIN_S_REFR ,
ld_fcode  TYPE SY-UCOMM ,
it_counters  TYPE STANDARD TABLE OF SIN_S_CNT ,
wa_counters  LIKE LINE OF it_counters,
ld_owner  TYPE SY-UNAME ,
it_fieldcatalog  TYPE STANDARD TABLE OF LVC_T_FCAT ,
wa_fieldcatalog  LIKE LINE OF it_fieldcatalog,
ld_folrg  TYPE SIN_FOLRG ,
it_sort  TYPE STANDARD TABLE OF LVC_T_SORT ,
wa_sort  LIKE LINE OF it_sort,
ld_subclass  TYPE SIN_SUBCL ,
it_cldep_path  TYPE STANDARD TABLE OF STRING ,
wa_cldep_path  LIKE LINE OF it_cldep_path,
ld_preview  TYPE C ,
ld_class_data_in  TYPE SIN_CLDEP ,
ld_variant  TYPE DISVARIANT .

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

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

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

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

"populate fields of struture and append to itab
append wa_cldep_path to it_cldep_path.
ld_preview = 'some text here'.
ld_class_data_in = 'some text here'.
ld_variant = '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_READ_SO or its description.