Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PO_CREATE1 - I need some help in usage

Former Member
0 Kudos
108

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!

2 REPLIES 2

Former Member
0 Kudos
55

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

0 Kudos
55

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!