I'm creating conformations using BAPI_CONFEC_CREATE. I'm getting the PO data using BBP_PD_PO_GETDETAIL.
ls_header_conf-BUSINESSPROCESS = '00000000000000000000000000000001'.
ls_header_conf-PROCESS_TYPE = 'CONF'.
ls_header_conf-SUBTYPE = ls_header_po-SUBTYPE.
ls_item_conf-ITEM_NUMBER = <fs_item_po>-NUMBER_INT.
ls_item_conf-PARENT = '00000000000000000000000000000001'.
ls_item_conf-PO_NUMBER = IM_PO_NUM.
ls_item_conf-PO_GUID = IM_PO_GUID.
ls_item_conf-PO_ITEM_NUMBER = <fs_item_po>-NUMBER_INT.
ls_item_conf-PO_ITEM_GUID = <fs_item_po>-guid.
ls_partner_conf-PARTNER_FCT = <fs_partner_po>-PARTNER_FCT.
ls_partner_conf-PARTNER_guid = <fs_partner_po>-PARTNER_no.
(which are only on the header level)
I'm getting these 2 errors in the return table:
1)E BS 013 Active status of document Confirmation 5100000099 is Complete . No changes are possible 000000 COMP Confirmation 5100000099 Complete Rejected in Part 0
2)E BS 013 Active status of document Confirmation 5100000099 is Confirmed . No changes are possible 000000 CONF Confirmation 5100000099 Confirmed Rejected in Part 0
Can anyone help me.
Please provide a sample code so that I can pass the correct data.
Points will be rewarded.