‎2014 Jan 06 10:13 AM
Hi all,
I have a problem about bapi_po_create1 function. Although memory_uncomplete = 'X', return parameter has errors and not hold the PO. I want to hold the po despite errors.
I will be very happy if you help me.
Thanks alot.
Gözde Candan
‎2014 Jan 06 11:30 AM
Hi Gozde,
The details which i could dig out after reading the Documentation of the FM 'BAPI_PO_CREATE1' is as follows -
1) In case the PO has consistency errors in MM, then it checks only value of MEMORY_UNCOMPLETE.
2) In case errors pertain to MM and budgeting then it checks both MEMORY_UNCOMPLETE and PARK_UNCOMPLETE parameters.
Please read the function module documentation in SE37.
Hope this helps.
BR.
‎2014 Jan 06 11:13 AM
Hi Gözde,
as I know it just hold the order, if everything is correct in the data. So why should we create an order with errors?
It's up to you, to check and complete the data with default values, when creating an order.
i mean, imagine you got the wrong MAterialnumber, which doesn't exist. It makes no sense to create an order with such a mistake...
Or did I understand soemthing wrong, what you want to do?
Regards
Florian
‎2014 Jan 06 11:58 AM
Hi Florian, you can hold the po with some errors. It means you can correct the errors later.
‎2014 Jan 06 12:50 PM
‎2014 Jan 06 11:30 AM
Hi Gozde,
The details which i could dig out after reading the Documentation of the FM 'BAPI_PO_CREATE1' is as follows -
1) In case the PO has consistency errors in MM, then it checks only value of MEMORY_UNCOMPLETE.
2) In case errors pertain to MM and budgeting then it checks both MEMORY_UNCOMPLETE and PARK_UNCOMPLETE parameters.
Please read the function module documentation in SE37.
Hope this helps.
BR.
‎2014 Jan 06 12:05 PM
‎2014 Jan 06 12:20 PM
Hi Gozde,
I wonder then can you achieve the same using transactions? BAPIs just replicate the behavior of transactions. There might be some config. mismatch.
BR.
‎2014 Jan 06 2:05 PM
Yes, in transaction ME21N i can hold PO with some missing data.
‎2014 Jan 06 1:05 PM
Is PSM_USFED_CI_2 "PSM, US Federal 2" activated on your system ?
Park and hold facility for purchase requisitions and purchase orders from Materials Management (MM)
You can use this feature to save purchase requisitions and purchase orders temporarily.
Regards,
Raymond
‎2014 Jan 08 6:45 AM
I realized that the function can't pass the custom errors(z) that we give in the exits.
Anyone face that problem?
‎2014 Jan 09 6:50 AM
Hi Gozde,
There is a work around for this in case you have less category of error messages.
Workaround -
Use 'Import' statements to populate error messages in exits and use 'Export' statements at other place to retrieve the errors from memory.
Ask if not clear.
BR.
‎2014 Jan 09 7:42 AM
Hi
Which exit the errors are thrown..? In the exit you will need to apply the flag if PO is suppose to be hold then do not throw messages or throw in the way the exit wants
Nabehet
‎2014 Jan 09 7:50 AM