2007 Aug 15 3:14 PM
Hi,
I´m creating purchase orders with BAPI_PO_CREATE1 and afterwards the delivery.
That is working well. But when the type is 'NB', I have to check a table, if the user
has the rights to do this purchasing.
My first thought was, creating the purchase order in blocked mode and then
calculate the amount of the entries in EKPO and compare it to the purchasing
limit, the user has.
If he is allowed to do this purchase, I wanted to release the purchase order after-
wards with the function BAPI_PO_RELEASE.
But then I´m getting the message, that I´m not responsible for releasing purchase
orders.
I have seen, that I can create the purchase orders blocked or released. But how
can I check the purchasing amount before I have created it? Then I could do my
checking before creating the purchase order and I could create a blocked or
released one.
Any ideas? Or other tips, what I can do?
THANK YOU VERY MUCH!
2007 Aug 15 3:48 PM
HI,
Where you are reading data from. is it a file.. File might contain the material and quantity right.. before the bapi call get the price for based on material and quantity and check if that user is authorized if ok then call bapi.
Thanks,
Mahesh
2007 Aug 16 9:28 AM
Hi,
I have the quantity and material before creating the purchase order. How to get the price for the item?
But right now I have the problem, that I can´t create the purchase order as "blocked" any more.
Don´t know what the problem is. I have to pass a 'S' in poheader-po_rel_ind , and also set the 'X' in poheaderx-po_rel_ind, right?
Thank you!