SAP /SAPSRM/REPLICATE_RESP Function Module for This FM Replicates the Response from Supplier System to SRM System
/SAPSRM/REPLICATE_RESP is a standard /sapsrm/replicate resp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for This FM Replicates the Response from Supplier System to SRM System 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 /sapsrm/replicate resp FM, simply by entering the name /SAPSRM/REPLICATE_RESP into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPSRM/BID_DECOUPLING
Program Name: /SAPSRM/SAPLBID_DECOUPLING
Main Program: /SAPSRM/SAPLBID_DECOUPLING
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPSRM/REPLICATE_RESP 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 '/SAPSRM/REPLICATE_RESP'"This FM Replicates the Response from Supplier System to SRM System.
EXPORTING
I_HEADER = "Header Data Procurement Document Interface
* IT_LIMIT = "Value limit
* IV_IS_RESUBMIT = "Flag to identify resubmit of quote
* IT_CONDITIONS = "Table Type for BBP_PDS_CND
* IT_DYN_ATTR = "Temporary Table Type for Dynamic Attributes
* IT_ATTACH = "KW Attachments Including Document
* IT_ITEM = "Item Data
* IT_PARTNER = "Business Partner
* IT_LONGTEXT = "Long texts
* IT_HCF = "Tabular Customer and Solution Fields - Header
* IT_ICF = "Tabular Customer and Solution Fields - Item
IMPORTING
E_HEADER = "Header Data Procurement Document Interface
ET_MESSAGES = "Error Messages
EXCEPTIONS
/SAPSRM/CX_PDO_ERROR = 1 /SAPSRM/CX_PDO_ABORT = 2
IMPORTING Parameters details for /SAPSRM/REPLICATE_RESP
I_HEADER - Header Data Procurement Document Interface
Data type: BBP_PDS_HEADEROptional: No
Call by Reference: Yes
IT_LIMIT - Value limit
Data type: BBPT_PD_LIMITOptional: Yes
Call by Reference: Yes
IV_IS_RESUBMIT - Flag to identify resubmit of quote
Data type: ABAP_BOOLOptional: Yes
Call by Reference: Yes
IT_CONDITIONS - Table Type for BBP_PDS_CND
Data type: BBPT_PD_CNDOptional: Yes
Call by Reference: Yes
IT_DYN_ATTR - Temporary Table Type for Dynamic Attributes
Data type: BBPT_PDS_DYNATTRIBUTEOptional: Yes
Call by Reference: Yes
IT_ATTACH - KW Attachments Including Document
Data type: BBPT_PD_ATT_TOptional: Yes
Call by Reference: Yes
IT_ITEM - Item Data
Data type: BBPT_PD_ITEMOptional: Yes
Call by Reference: Yes
IT_PARTNER - Business Partner
Data type: BBPT_PD_PARTNEROptional: Yes
Call by Reference: Yes
IT_LONGTEXT - Long texts
Data type: BBPT_PD_LONGTEXTOptional: Yes
Call by Reference: Yes
IT_HCF - Tabular Customer and Solution Fields - Header
Data type: BBPT_PDS_HCFOptional: Yes
Call by Reference: Yes
IT_ICF - Tabular Customer and Solution Fields - Item
Data type: BBPT_PDS_ICFOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for /SAPSRM/REPLICATE_RESP
E_HEADER - Header Data Procurement Document Interface
Data type: BBP_PDS_HEADEROptional: No
Call by Reference: Yes
ET_MESSAGES - Error Messages
Data type: BBPT_PD_MESSAGESOptional: No
Call by Reference: Yes
EXCEPTIONS details
/SAPSRM/CX_PDO_ERROR - PDO General Exception
Data type:Optional: No
Call by Reference: Yes
/SAPSRM/CX_PDO_ABORT - Fatal error caught by PDO Layer
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPSRM/REPLICATE_RESP 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_header | TYPE BBP_PDS_HEADER, " | |||
| lv_i_header | TYPE BBP_PDS_HEADER, " | |||
| lv_/sapsrm/cx_pdo_error | TYPE BBP_PDS_HEADER, " | |||
| lv_it_limit | TYPE BBPT_PD_LIMIT, " | |||
| lv_iv_is_resubmit | TYPE ABAP_BOOL, " | |||
| lv_et_messages | TYPE BBPT_PD_MESSAGES, " | |||
| lv_it_conditions | TYPE BBPT_PD_CND, " | |||
| lv_/sapsrm/cx_pdo_abort | TYPE BBPT_PD_CND, " | |||
| lv_it_dyn_attr | TYPE BBPT_PDS_DYNATTRIBUTE, " | |||
| lv_it_attach | TYPE BBPT_PD_ATT_T, " | |||
| lv_it_item | TYPE BBPT_PD_ITEM, " | |||
| lv_it_partner | TYPE BBPT_PD_PARTNER, " | |||
| lv_it_longtext | TYPE BBPT_PD_LONGTEXT, " | |||
| lv_it_hcf | TYPE BBPT_PDS_HCF, " | |||
| lv_it_icf | TYPE BBPT_PDS_ICF. " |
|   CALL FUNCTION '/SAPSRM/REPLICATE_RESP' "This FM Replicates the Response from Supplier System to SRM System |
| EXPORTING | ||
| I_HEADER | = lv_i_header | |
| IT_LIMIT | = lv_it_limit | |
| IV_IS_RESUBMIT | = lv_iv_is_resubmit | |
| IT_CONDITIONS | = lv_it_conditions | |
| IT_DYN_ATTR | = lv_it_dyn_attr | |
| IT_ATTACH | = lv_it_attach | |
| IT_ITEM | = lv_it_item | |
| IT_PARTNER | = lv_it_partner | |
| IT_LONGTEXT | = lv_it_longtext | |
| IT_HCF | = lv_it_hcf | |
| IT_ICF | = lv_it_icf | |
| IMPORTING | ||
| E_HEADER | = lv_e_header | |
| ET_MESSAGES | = lv_et_messages | |
| EXCEPTIONS | ||
| /SAPSRM/CX_PDO_ERROR = 1 | ||
| /SAPSRM/CX_PDO_ABORT = 2 | ||
| . " /SAPSRM/REPLICATE_RESP | ||
ABAP code using 7.40 inline data declarations to call FM /SAPSRM/REPLICATE_RESP
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