SAP SIN_PREVIEW_READ_WF Function Module for









SIN_PREVIEW_READ_WF is a standard sin preview read wf SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for sin preview read wf FM, simply by entering the name SIN_PREVIEW_READ_WF into the relevant SAP transaction such as SE37 or SE38.

Function Group: SIWWP2
Program Name: SAPLSIWWP2
Main Program: SAPLSIWWP2
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SIN_PREVIEW_READ_WF pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SIN_PREVIEW_READ_WF'"
EXPORTING
* OWNER = "
* FOLRG = "
* CLASS = "
* SUBCLASS = "
* ROW_ID = "

IMPORTING
DOCUMENT_ID = "
DOCUMENT_TEXTPOOL = "
DOCUMENT_URL = "

CHANGING
* MERGE_TABLE = "

TABLES
* MIME_OBJECTS = "
.



IMPORTING Parameters details for SIN_PREVIEW_READ_WF

OWNER -

Data type: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

FOLRG -

Data type: SIN_FOLRG
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLASS -

Data type: SIN_CLASS
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUBCLASS -

Data type: SIN_SUBCL
Optional: Yes
Call by Reference: No ( called with pass by value option)

ROW_ID -

Data type: LVC_S_ROW
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SIN_PREVIEW_READ_WF

DOCUMENT_ID -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

DOCUMENT_TEXTPOOL -

Data type: SY-REPID
Optional: No
Call by Reference: No ( called with pass by value option)

DOCUMENT_URL -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for SIN_PREVIEW_READ_WF

MERGE_TABLE -

Data type: SWWW_T_MERGE_TABLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SIN_PREVIEW_READ_WF

MIME_OBJECTS -

Data type: SINMIMEOBJ
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SIN_PREVIEW_READ_WF Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_owner  TYPE SY-UNAME, "   
lv_document_id  TYPE C, "   
lv_merge_table  TYPE SWWW_T_MERGE_TABLE, "   
lt_mime_objects  TYPE STANDARD TABLE OF SINMIMEOBJ, "   
lv_folrg  TYPE SIN_FOLRG, "   
lv_document_textpool  TYPE SY-REPID, "   
lv_class  TYPE SIN_CLASS, "   
lv_document_url  TYPE C, "   
lv_subclass  TYPE SIN_SUBCL, "   
lv_row_id  TYPE LVC_S_ROW. "   

  CALL FUNCTION 'SIN_PREVIEW_READ_WF'  "
    EXPORTING
         OWNER = lv_owner
         FOLRG = lv_folrg
         CLASS = lv_class
         SUBCLASS = lv_subclass
         ROW_ID = lv_row_id
    IMPORTING
         DOCUMENT_ID = lv_document_id
         DOCUMENT_TEXTPOOL = lv_document_textpool
         DOCUMENT_URL = lv_document_url
    CHANGING
         MERGE_TABLE = lv_merge_table
    TABLES
         MIME_OBJECTS = lt_mime_objects
. " SIN_PREVIEW_READ_WF




ABAP code using 7.40 inline data declarations to call FM SIN_PREVIEW_READ_WF

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single UNAME FROM SY INTO @DATA(ld_owner).
 
 
 
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_document_textpool).
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!