Application Development and Automation 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: 
Read only

Create some purchasing orders and function BAPI_ENTRYSHEET_CREATE

martadelasota2
Explorer
0 Likes
424

Hi all.

I have a program which create some purchasing orders. There is a loop, and orders are created by function BAPI_PO_CREATE1 and then program calls function BAPI_ENTRYSHEET_CREATE. Function BAPI_TRANSACTION_COMMIT is after both functions.

My problem is: when program creates  first order, it works ok, but for next orders, conditions values can't be find, and PO is created without these values. Field NETPR is zero.

I have fount out the problem occurs when program calls function BAPI_ENTRYSHEET_CREATE. If program doesn't call this function, conditions values are taken ok in the purchasing order.

Would you help me?

Thanks a lot.

Marta.

1 REPLY 1
Read only

martadelasota2
Explorer
0 Likes
389

Good morning.

I have called fm ME_STATISTICS_TABLES_REFRESH before BAPI_ENTRYSHEET_CREATE but it doesn't work. Some idea?

Thanks a lot.

Marta.