SAP SIW_RFC_WRITE_FUNC Function Module for Schreibt einen Baustein
SIW_RFC_WRITE_FUNC is a standard siw rfc write func SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Schreibt einen Baustein processing and below is the pattern details for this FM, 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 siw rfc write func FM, simply by entering the name SIW_RFC_WRITE_FUNC into the relevant SAP transaction such as SE37 or SE38.
Function Group: SIW_RFC_REPOSITORY
Program Name: SAPLSIW_RFC_REPOSITORY
Main Program: SAPLSIW_RFC_REPOSITORY
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SIW_RFC_WRITE_FUNC 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 'SIW_RFC_WRITE_FUNC'"Schreibt einen Baustein.
EXPORTING
I_NAME = "Function name
I_FUNCTION_GROUP = "Function group, to which the function module belongs
I_TAB_CODE = "Table of Code Lines
I_STR_SIGNATURE = "Signature of a function module
I_STR_ATTRIBUTES = "Attributes of a function module
I_TAB_TOP_CODE = "Table of Code Lines
I_FLG_DELETE = "Checkbox
IMPORTING
E_STR_EXCEPTION = "Message/Exception
E_RESOURCE_ROLLBACK = "Type is a Boolean type
IMPORTING Parameters details for SIW_RFC_WRITE_FUNC
I_NAME - Function name
Data type: FUNCNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_FUNCTION_GROUP - Function group, to which the function module belongs
Data type: RS38L_AREAOptional: No
Call by Reference: No ( called with pass by value option)
I_TAB_CODE - Table of Code Lines
Data type: SIW_TAB_CODEOptional: No
Call by Reference: No ( called with pass by value option)
I_STR_SIGNATURE - Signature of a function module
Data type: SIW_STR_FUNC_SIGNATUREOptional: No
Call by Reference: No ( called with pass by value option)
I_STR_ATTRIBUTES - Attributes of a function module
Data type: SIW_STR_FUNC_ATTRIBUTESOptional: No
Call by Reference: No ( called with pass by value option)
I_TAB_TOP_CODE - Table of Code Lines
Data type: SIW_TAB_CODEOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_DELETE - Checkbox
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SIW_RFC_WRITE_FUNC
E_STR_EXCEPTION - Message/Exception
Data type: SIW_STR_MSGOptional: No
Call by Reference: No ( called with pass by value option)
E_RESOURCE_ROLLBACK - Type is a Boolean type
Data type: SIW_DTE_TYPE_IS_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SIW_RFC_WRITE_FUNC 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_i_name | TYPE FUNCNAME, " | |||
| lv_e_str_exception | TYPE SIW_STR_MSG, " | |||
| lv_i_function_group | TYPE RS38L_AREA, " | |||
| lv_e_resource_rollback | TYPE SIW_DTE_TYPE_IS_BOOLEAN, " | |||
| lv_i_tab_code | TYPE SIW_TAB_CODE, " | |||
| lv_i_str_signature | TYPE SIW_STR_FUNC_SIGNATURE, " | |||
| lv_i_str_attributes | TYPE SIW_STR_FUNC_ATTRIBUTES, " | |||
| lv_i_tab_top_code | TYPE SIW_TAB_CODE, " | |||
| lv_i_flg_delete | TYPE XFELD. " |
|   CALL FUNCTION 'SIW_RFC_WRITE_FUNC' "Schreibt einen Baustein |
| EXPORTING | ||
| I_NAME | = lv_i_name | |
| I_FUNCTION_GROUP | = lv_i_function_group | |
| I_TAB_CODE | = lv_i_tab_code | |
| I_STR_SIGNATURE | = lv_i_str_signature | |
| I_STR_ATTRIBUTES | = lv_i_str_attributes | |
| I_TAB_TOP_CODE | = lv_i_tab_top_code | |
| I_FLG_DELETE | = lv_i_flg_delete | |
| IMPORTING | ||
| E_STR_EXCEPTION | = lv_e_str_exception | |
| E_RESOURCE_ROLLBACK | = lv_e_resource_rollback | |
| . " SIW_RFC_WRITE_FUNC | ||
ABAP code using 7.40 inline data declarations to call FM SIW_RFC_WRITE_FUNC
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.Search for further information about these or an SAP related objects