SAP SIN_WI_PREVIEW_HTML_BUILD Function Module for









SIN_WI_PREVIEW_HTML_BUILD is a standard sin wi preview html build 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 wi preview html build FM, simply by entering the name SIN_WI_PREVIEW_HTML_BUILD 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_WI_PREVIEW_HTML_BUILD 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_WI_PREVIEW_HTML_BUILD'"
EXPORTING
* FOLRG = "
* SUBCLASS = "
WORKITEM = "
* INBOX_MODE = ' ' "
* DELIVER_DATA_BUT_NO_HTML = ' ' "

IMPORTING
DOCUMENT_ID = "
E_FONT_TAG_BIG = "
E_FONT_TAG_SML = "
E_COL_BC = "

CHANGING
* MERGE_TABLE = "

TABLES
* MIME_OBJECTS = "
* PREVIEW_OBJECTS = "
* PREVIEW_ADDRESSES = "
.



IMPORTING Parameters details for SIN_WI_PREVIEW_HTML_BUILD

FOLRG -

Data type: SIN_FOLRG
Optional: Yes
Call by Reference: Yes

SUBCLASS -

Data type: SIN_SUBCL
Optional: Yes
Call by Reference: Yes

WORKITEM -

Data type: SWLWP1
Optional: No
Call by Reference: Yes

INBOX_MODE -

Data type: SY-INPUT
Default: SPACE
Optional: Yes
Call by Reference: Yes

DELIVER_DATA_BUT_NO_HTML -

Data type: SY-INPUT
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SIN_WI_PREVIEW_HTML_BUILD

DOCUMENT_ID -

Data type: C
Optional: No
Call by Reference: Yes

E_FONT_TAG_BIG -

Data type: C
Optional: No
Call by Reference: Yes

E_FONT_TAG_SML -

Data type: C
Optional: No
Call by Reference: Yes

E_COL_BC -

Data type: C
Optional: No
Call by Reference: Yes

CHANGING Parameters details for SIN_WI_PREVIEW_HTML_BUILD

MERGE_TABLE -

Data type: SWWW_T_MERGE_TABLE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for SIN_WI_PREVIEW_HTML_BUILD

MIME_OBJECTS -

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

PREVIEW_OBJECTS -

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

PREVIEW_ADDRESSES -

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

Copy and paste ABAP code example for SIN_WI_PREVIEW_HTML_BUILD 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_folrg  TYPE SIN_FOLRG, "   
lv_document_id  TYPE C, "   
lv_merge_table  TYPE SWWW_T_MERGE_TABLE, "   
lt_mime_objects  TYPE STANDARD TABLE OF SINMIMEOBJ, "   
lv_subclass  TYPE SIN_SUBCL, "   
lv_e_font_tag_big  TYPE C, "   
lt_preview_objects  TYPE STANDARD TABLE OF SWLOBJECTS, "   
lv_workitem  TYPE SWLWP1, "   
lv_e_font_tag_sml  TYPE C, "   
lt_preview_addresses  TYPE STANDARD TABLE OF SWLOBJECTS, "   
lv_e_col_bc  TYPE C, "   
lv_inbox_mode  TYPE SY-INPUT, "   SPACE
lv_deliver_data_but_no_html  TYPE SY-INPUT. "   SPACE

  CALL FUNCTION 'SIN_WI_PREVIEW_HTML_BUILD'  "
    EXPORTING
         FOLRG = lv_folrg
         SUBCLASS = lv_subclass
         WORKITEM = lv_workitem
         INBOX_MODE = lv_inbox_mode
         DELIVER_DATA_BUT_NO_HTML = lv_deliver_data_but_no_html
    IMPORTING
         DOCUMENT_ID = lv_document_id
         E_FONT_TAG_BIG = lv_e_font_tag_big
         E_FONT_TAG_SML = lv_e_font_tag_sml
         E_COL_BC = lv_e_col_bc
    CHANGING
         MERGE_TABLE = lv_merge_table
    TABLES
         MIME_OBJECTS = lt_mime_objects
         PREVIEW_OBJECTS = lt_preview_objects
         PREVIEW_ADDRESSES = lt_preview_addresses
. " SIN_WI_PREVIEW_HTML_BUILD




ABAP code using 7.40 inline data declarations to call FM SIN_WI_PREVIEW_HTML_BUILD

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 INPUT FROM SY INTO @DATA(ld_inbox_mode).
DATA(ld_inbox_mode) = ' '.
 
"SELECT single INPUT FROM SY INTO @DATA(ld_deliver_data_but_no_html).
DATA(ld_deliver_data_but_no_html) = ' '.
 


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!