04-13-2016 6:24 AM
Hi Friends,
I am using BAPI_PO_CREATE1 for PO Creation. But PO is going to held(hold). where i came to know that below Standard code is getting executed by default in the BADI : ME_BAPI_PO_CUST
how to solve this..
please suggest
Regards,
Lokesh
04-13-2016 7:14 AM
Did someone activate the sample implementing class CL_EXM_IM_ME_BAPI_PO_CUST of BAdI ME_BAPI_PO_CUST (Enh. Spot ES_BADI_ME_BAPI) on your system, check it with SE18/SE19?
Regards,
Raymond
04-13-2016 6:46 AM
Hi lokesh,
this happens when you set
MEMORY_UNCOMPLETE = 'X' "held if there is error in data
MEMORY_COMPLETE = 'X' "held even there is no error in data
remove the flag 'X' from MEMORY_UNCOMPLETE and MEMORY_COMPLETE
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = ls_po_header
poheaderx = ls_po_headerx
MEMORY_UNCOMPLETE = ' '
MEMORY_COMPLETE = ' '
Regards,
NP
04-13-2016 6:49 AM
Hi NP,
I did not set any 'X' as u mentioned above, But still it is creating PO on held only
Regards,
Lokesh
04-13-2016 7:14 AM
Did someone activate the sample implementing class CL_EXM_IM_ME_BAPI_PO_CUST of BAdI ME_BAPI_PO_CUST (Enh. Spot ES_BADI_ME_BAPI) on your system, check it with SE18/SE19?
Regards,
Raymond
04-13-2016 7:26 AM
Hi raymond,
I had checked and observed that for Badi:: ME_BAPI_PO_CUST there is an Example implementation class specified with Example class : CL_EXM_IM_ME_BAPI_PO_CUST under this method INBOUND the hold parameter is getting set
whether this is sample implementation ?? if so what is this sample implementation importance ??
what is the solution for this ??
Regards,
Lokesh
04-13-2016 7:33 AM
Indentify and deactivate the implementation with SE19
Regards,
Raymond
04-13-2016 7:47 AM
Hi Raymond,
Deactivating existing Implementation ??
which means whether we should not do any implementation for this badi ME_BAPI_PO_CUST in future as well ??
Regards,
Lokesh.
04-13-2016 8:56 AM
I've not access to your system, so check yourself for some "test" implementation of the BAdI which would use the sample class. How did you identify the code that force the hold, some debug?
Regards,
Raymond