SAP RSRD_X_DISTRIBUTE Function Module for Distribute a document in Broadcasting
RSRD_X_DISTRIBUTE is a standard rsrd x distribute SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Distribute a document in Broadcasting 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 rsrd x distribute FM, simply by entering the name RSRD_X_DISTRIBUTE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSRD_X_RUNTIME
Program Name: SAPLRSRD_X_RUNTIME
Main Program: SAPLRSRD_X_RUNTIME
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSRD_X_DISTRIBUTE 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 'RSRD_X_DISTRIBUTE'"Distribute a document in Broadcasting.
EXPORTING
I_JAVA_CLASS_NAME = "Name of Java class, that processes the call
* I_DISTRIBUTION_TYPE = "Distribution Type in Broadcasting Framework
* I_RECIPIENT = "Recipient ID for Recipient-Specific Creation of Documents
I_PARAMETER_CONTAINER_ID = "RFC Schnittstelle: ID for Additionally Inserted Keys
I_S_SETTING = "Setting parameter
* I_S_RECIPIENT_X = "
IMPORTING
E_SUBRC = "Return Value, Return Value after ABAP Statements
TABLES
I_T_PARAMETER_X = "Parameter Structure (RFC-enabled with Additional Key)
I_T_SETTING_NODE_X = "Node for a Setting for Design Time (RFC-enabled)
* I_T_RECIPIENT_X = "Recipient-Specific Document Creation (RFC-Enabled)
I_T_DOCUMENT_X = "Document for RFC Communication
I_T_DOCUMENT_MIME_X = "Mime Files for the Document, for RFC Communication
I_T_FILE_X = "Broadcasting: File (RFC Enabled, with Additional Key)
* I_T_CONTENT_ASCII_X = "Broadcasting: ASCII File Content (RFC Enabled)
* I_T_CONTENT_BINARY_X = "Broadcasting: Binary File Content (RFC Enabled)
IMPORTING Parameters details for RSRD_X_DISTRIBUTE
I_JAVA_CLASS_NAME - Name of Java class, that processes the call
Data type: RSRPARAMETERVALUEOptional: No
Call by Reference: Yes
I_DISTRIBUTION_TYPE - Distribution Type in Broadcasting Framework
Data type: RSRD_DISTRIBUTION_TYPEOptional: Yes
Call by Reference: Yes
I_RECIPIENT - Recipient ID for Recipient-Specific Creation of Documents
Data type: RSRD_RECIPIENTOptional: Yes
Call by Reference: Yes
I_PARAMETER_CONTAINER_ID - RFC Schnittstelle: ID for Additionally Inserted Keys
Data type: RSRD_RFC_KEY_IDOptional: No
Call by Reference: Yes
I_S_SETTING - Setting parameter
Data type: RSRD_V_SETTINGOptional: No
Call by Reference: Yes
I_S_RECIPIENT_X -
Data type: RSRD_S_RECIPIENT_XOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSRD_X_DISTRIBUTE
E_SUBRC - Return Value, Return Value after ABAP Statements
Data type: SYSUBRCOptional: No
Call by Reference: Yes
TABLES Parameters details for RSRD_X_DISTRIBUTE
I_T_PARAMETER_X - Parameter Structure (RFC-enabled with Additional Key)
Data type: RSRD_S_PARAMETER_XOptional: No
Call by Reference: Yes
I_T_SETTING_NODE_X - Node for a Setting for Design Time (RFC-enabled)
Data type: RSRD_S_SETTING_NODE_XOptional: No
Call by Reference: Yes
I_T_RECIPIENT_X - Recipient-Specific Document Creation (RFC-Enabled)
Data type: RSRD_S_RECIPIENT_XOptional: Yes
Call by Reference: Yes
I_T_DOCUMENT_X - Document for RFC Communication
Data type: RSRD_S_DOCUMENT_XOptional: No
Call by Reference: Yes
I_T_DOCUMENT_MIME_X - Mime Files for the Document, for RFC Communication
Data type: RSRD_S_DOCUMENT_MIME_XOptional: No
Call by Reference: Yes
I_T_FILE_X - Broadcasting: File (RFC Enabled, with Additional Key)
Data type: RSRD_S_FILE_XOptional: No
Call by Reference: Yes
I_T_CONTENT_ASCII_X - Broadcasting: ASCII File Content (RFC Enabled)
Data type: RSRD_S_FILE_CONTENT_ASCII_XOptional: Yes
Call by Reference: Yes
I_T_CONTENT_BINARY_X - Broadcasting: Binary File Content (RFC Enabled)
Data type: RSRD_S_FILE_CONTENT_BINARY_XOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for RSRD_X_DISTRIBUTE 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_subrc | TYPE SYSUBRC, " | |||
| lt_i_t_parameter_x | TYPE STANDARD TABLE OF RSRD_S_PARAMETER_X, " | |||
| lv_i_java_class_name | TYPE RSRPARAMETERVALUE, " | |||
| lt_i_t_setting_node_x | TYPE STANDARD TABLE OF RSRD_S_SETTING_NODE_X, " | |||
| lv_i_distribution_type | TYPE RSRD_DISTRIBUTION_TYPE, " | |||
| lv_i_recipient | TYPE RSRD_RECIPIENT, " | |||
| lt_i_t_recipient_x | TYPE STANDARD TABLE OF RSRD_S_RECIPIENT_X, " | |||
| lt_i_t_document_x | TYPE STANDARD TABLE OF RSRD_S_DOCUMENT_X, " | |||
| lv_i_parameter_container_id | TYPE RSRD_RFC_KEY_ID, " | |||
| lv_i_s_setting | TYPE RSRD_V_SETTING, " | |||
| lt_i_t_document_mime_x | TYPE STANDARD TABLE OF RSRD_S_DOCUMENT_MIME_X, " | |||
| lt_i_t_file_x | TYPE STANDARD TABLE OF RSRD_S_FILE_X, " | |||
| lv_i_s_recipient_x | TYPE RSRD_S_RECIPIENT_X, " | |||
| lt_i_t_content_ascii_x | TYPE STANDARD TABLE OF RSRD_S_FILE_CONTENT_ASCII_X, " | |||
| lt_i_t_content_binary_x | TYPE STANDARD TABLE OF RSRD_S_FILE_CONTENT_BINARY_X. " |
|   CALL FUNCTION 'RSRD_X_DISTRIBUTE' "Distribute a document in Broadcasting |
| EXPORTING | ||
| I_JAVA_CLASS_NAME | = lv_i_java_class_name | |
| I_DISTRIBUTION_TYPE | = lv_i_distribution_type | |
| I_RECIPIENT | = lv_i_recipient | |
| I_PARAMETER_CONTAINER_ID | = lv_i_parameter_container_id | |
| I_S_SETTING | = lv_i_s_setting | |
| I_S_RECIPIENT_X | = lv_i_s_recipient_x | |
| IMPORTING | ||
| E_SUBRC | = lv_e_subrc | |
| TABLES | ||
| I_T_PARAMETER_X | = lt_i_t_parameter_x | |
| I_T_SETTING_NODE_X | = lt_i_t_setting_node_x | |
| I_T_RECIPIENT_X | = lt_i_t_recipient_x | |
| I_T_DOCUMENT_X | = lt_i_t_document_x | |
| I_T_DOCUMENT_MIME_X | = lt_i_t_document_mime_x | |
| I_T_FILE_X | = lt_i_t_file_x | |
| I_T_CONTENT_ASCII_X | = lt_i_t_content_ascii_x | |
| I_T_CONTENT_BINARY_X | = lt_i_t_content_binary_x | |
| . " RSRD_X_DISTRIBUTE | ||
ABAP code using 7.40 inline data declarations to call FM RSRD_X_DISTRIBUTE
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