Hi,
SRM is different from MM side. It is based on Webdynpro, so running FM directly could not generate the document successfully.
FM BBP_PD_CONF_CREATE is called by include LBBP_BD_APIF27 as below:
=========================
* Create Confirmation CALL FUNCTION 'BBP_PD_CONF_CREATE' EXPORTING i_testrun = iv_testrun i_header = is_header_c it_attach = it_attach_c i_item_sorted_by_hierarchy = c_on IMPORTING e_header = es_header_e et_attach = et_attach_e TABLES i_item = it_item_c i_account = it_account_c i_partner = it_partner_c i_longtext = it_longtext_c i_orgdata = it_orgdata_c i_tax = it_tax_c e_item = et_item_e e_account = et_account_e e_partner = et_partner_e e_longtext = et_longtext_e e_orgdata = et_orgdata_e e_messages = lt_messages.
=========================
I suggest you debug the standard creation of SRM confirmation to understand the logic, and then adjust it to create your own program to generate confirmation directly.
BR,
Ivy
Add comment