SAP Function Modules

SIN_WI_PREVIEW_TIPS SAP Function module







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

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


Pattern for FM SIN_WI_PREVIEW_TIPS - SIN WI PREVIEW TIPS





CALL FUNCTION 'SIN_WI_PREVIEW_TIPS' "
* EXPORTING
*   folrg =                     " sin_folrg
*   subclass =                  " sin_subcl
*   workitem =                  " swlwp1
*   inbox_mode = 'X'            " sy-input
*   i_font_tag_sml =            " c
* TABLES
*   et_mime_objects =           " sinmimeobj
*   et_merge_table =            " swww_t_merge_table
    .  "  SIN_WI_PREVIEW_TIPS

ABAP code example for Function Module SIN_WI_PREVIEW_TIPS





The ABAP code below is a full code listing to execute function module SIN_WI_PREVIEW_TIPS 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_et_mime_objects  TYPE STANDARD TABLE OF SINMIMEOBJ,"TABLES PARAM
wa_et_mime_objects  LIKE LINE OF it_et_mime_objects ,
it_et_merge_table  TYPE STANDARD TABLE OF SWWW_T_MERGE_TABLE,"TABLES PARAM
wa_et_merge_table  LIKE LINE OF it_et_merge_table .

DATA(ld_folrg) = 'Check type of data required'.
DATA(ld_subclass) = 'Check type of data required'.
DATA(ld_workitem) = 'Check type of data required'.
DATA(ld_inbox_mode) = 'some text here'.
DATA(ld_i_font_tag_sml) = 'some text here'.

"populate fields of struture and append to itab
append wa_et_mime_objects to it_et_mime_objects.

"populate fields of struture and append to itab
append wa_et_merge_table to it_et_merge_table. . CALL FUNCTION 'SIN_WI_PREVIEW_TIPS' * EXPORTING * folrg = ld_folrg * subclass = ld_subclass * workitem = ld_workitem * inbox_mode = ld_inbox_mode * i_font_tag_sml = ld_i_font_tag_sml * TABLES * et_mime_objects = it_et_mime_objects * et_merge_table = it_et_merge_table . " SIN_WI_PREVIEW_TIPS
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_folrg  TYPE SIN_FOLRG ,
it_et_mime_objects  TYPE STANDARD TABLE OF SINMIMEOBJ ,
wa_et_mime_objects  LIKE LINE OF it_et_mime_objects,
ld_subclass  TYPE SIN_SUBCL ,
it_et_merge_table  TYPE STANDARD TABLE OF SWWW_T_MERGE_TABLE ,
wa_et_merge_table  LIKE LINE OF it_et_merge_table,
ld_workitem  TYPE SWLWP1 ,
ld_inbox_mode  TYPE SY-INPUT ,
ld_i_font_tag_sml  TYPE C .

ld_folrg = 'some text here'.

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

"populate fields of struture and append to itab
append wa_et_merge_table to it_et_merge_table.
ld_workitem = 'some text here'.
ld_inbox_mode = 'some text here'.
ld_i_font_tag_sml = '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_WI_PREVIEW_TIPS or its description.