SAP RSOD_DOC_TRAN_CHANGE Function Module for Document API: Create Document for InfoProvider Data
RSOD_DOC_TRAN_CHANGE is a standard rsod doc tran change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Document API: Create Document for InfoProvider Data 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 rsod doc tran change FM, simply by entering the name RSOD_DOC_TRAN_CHANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSOD_API
Program Name: SAPLRSOD_API
Main Program: SAPLRSOD_API
Appliation area:
Release date: 24-Jul-2002
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RSOD_DOC_TRAN_CHANGE 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 'RSOD_DOC_TRAN_CHANGE'"Document API: Create Document for InfoProvider Data.
EXPORTING
* I_INFOPROV = "InfoProvider
* I_WITH_URL = "= 'X' Document specified using URL
* I_URL = "URL
* I_COPY_URL_CONTENT = "= 'X' Document read and copied. ' ' Link to URL (not yet functional)
* I_QUERY = "Name (ID) of a reporting component
* I_KYFNM = "Online Documentation
I_DESCRIPTION = "Short Description
* I_NAME = "Name
* I_LANGU = SY-LANGU "Language Key
I_OVERWRITE_MODE = "0: New LOIO, 1: New PHIO, 2: Replace PHIO, 3: Delete LOIO
* I_WITH_CONTENT = "= 'X' Contents provided (I_T_FILE_CONTENT_ASCII / I_T_FILE_CONTENT_BINARY)
* I_S_CONTENT_INFO = "API Documents: Content Info
IMPORTING
E_NAME = "Attribute Value
E_S_RETURN = "Return Parameter
CHANGING
* I_T_CHAVL = "Characteristic/value
TABLES
* I_T_FILE_CONTENT_ASCII = "Text Document Contents
* I_T_FILE_CONTENT_BINARY = "Binary Document Contents
IMPORTING Parameters details for RSOD_DOC_TRAN_CHANGE
I_INFOPROV - InfoProvider
Data type: RSINFOPROVOptional: Yes
Call by Reference: No ( called with pass by value option)
I_WITH_URL - = 'X' Document specified using URL
Data type: RS_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_URL - URL
Data type: SAEURIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_COPY_URL_CONTENT - = 'X' Document read and copied. ' ' Link to URL (not yet functional)
Data type: RS_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_QUERY - Name (ID) of a reporting component
Data type: RSZCOMPIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KYFNM - Online Documentation
Data type: RSKYFNMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DESCRIPTION - Short Description
Data type: SDOK_DESCROptional: No
Call by Reference: No ( called with pass by value option)
I_NAME - Name
Data type: SKWF_URLPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LANGU - Language Key
Data type: LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OVERWRITE_MODE - 0: New LOIO, 1: New PHIO, 2: Replace PHIO, 3: Delete LOIO
Data type: RSOD_OVERWRITE_MODEOptional: No
Call by Reference: No ( called with pass by value option)
I_WITH_CONTENT - = 'X' Contents provided (I_T_FILE_CONTENT_ASCII / I_T_FILE_CONTENT_BINARY)
Data type: RS_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_S_CONTENT_INFO - API Documents: Content Info
Data type: RSOD_S_CONTENT_INFOOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSOD_DOC_TRAN_CHANGE
E_NAME - Attribute Value
Data type: SDOK_PROPVOptional: No
Call by Reference: No ( called with pass by value option)
E_S_RETURN - Return Parameter
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for RSOD_DOC_TRAN_CHANGE
I_T_CHAVL - Characteristic/value
Data type: RSOD_T_CHANM_CHAVLOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RSOD_DOC_TRAN_CHANGE
I_T_FILE_CONTENT_ASCII - Text Document Contents
Data type: SDOKCNTASCOptional: Yes
Call by Reference: Yes
I_T_FILE_CONTENT_BINARY - Binary Document Contents
Data type: SDOKCNTBINOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for RSOD_DOC_TRAN_CHANGE 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_e_name | TYPE SDOK_PROPV, " | |||
| lv_i_t_chavl | TYPE RSOD_T_CHANM_CHAVL, " | |||
| lv_i_infoprov | TYPE RSINFOPROV, " | |||
| lt_i_t_file_content_ascii | TYPE STANDARD TABLE OF SDOKCNTASC, " | |||
| lv_i_with_url | TYPE RS_BOOL, " | |||
| lv_i_url | TYPE SAEURI, " | |||
| lv_i_copy_url_content | TYPE RS_BOOL, " | |||
| lv_i_query | TYPE RSZCOMPID, " | |||
| lv_e_s_return | TYPE BAPIRET2, " | |||
| lt_i_t_file_content_binary | TYPE STANDARD TABLE OF SDOKCNTBIN, " | |||
| lv_i_kyfnm | TYPE RSKYFNM, " | |||
| lv_i_description | TYPE SDOK_DESCR, " | |||
| lv_i_name | TYPE SKWF_URLP, " | |||
| lv_i_langu | TYPE LANGU, " SY-LANGU | |||
| lv_i_overwrite_mode | TYPE RSOD_OVERWRITE_MODE, " | |||
| lv_i_with_content | TYPE RS_BOOL, " | |||
| lv_i_s_content_info | TYPE RSOD_S_CONTENT_INFO. " |
|   CALL FUNCTION 'RSOD_DOC_TRAN_CHANGE' "Document API: Create Document for InfoProvider Data |
| EXPORTING | ||
| I_INFOPROV | = lv_i_infoprov | |
| I_WITH_URL | = lv_i_with_url | |
| I_URL | = lv_i_url | |
| I_COPY_URL_CONTENT | = lv_i_copy_url_content | |
| I_QUERY | = lv_i_query | |
| I_KYFNM | = lv_i_kyfnm | |
| I_DESCRIPTION | = lv_i_description | |
| I_NAME | = lv_i_name | |
| I_LANGU | = lv_i_langu | |
| I_OVERWRITE_MODE | = lv_i_overwrite_mode | |
| I_WITH_CONTENT | = lv_i_with_content | |
| I_S_CONTENT_INFO | = lv_i_s_content_info | |
| IMPORTING | ||
| E_NAME | = lv_e_name | |
| E_S_RETURN | = lv_e_s_return | |
| CHANGING | ||
| I_T_CHAVL | = lv_i_t_chavl | |
| TABLES | ||
| I_T_FILE_CONTENT_ASCII | = lt_i_t_file_content_ascii | |
| I_T_FILE_CONTENT_BINARY | = lt_i_t_file_content_binary | |
| . " RSOD_DOC_TRAN_CHANGE | ||
ABAP code using 7.40 inline data declarations to call FM RSOD_DOC_TRAN_CHANGE
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.| DATA(ld_i_langu) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects