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 purchase requisition has changed after creatin PO

0 Kudos

Hello ABAP Gurus,

There is another wired problem with BAPI_PO_CREATE1. After I created PO in reference to PR (with service) in hold status, everything is created properly but it's changing quantity at service position in PR (yes in purchase requsition). How is that even possible? What is more, when I maintain created PO outside my transaction and change quantity at service level it changes again (in PR)! But most wired thing is that, when I create PO in reference to PR by myself during transaction ME21n there is no such problem.

For example:

PR nr 100000

          pos. 10 with service 'SERVICE No1', quantity 10.

I'm creating PO in ref to PR nr 100000 pos 10 and changing quantity of SERVICE No1 to 15.

PO is created properly.

But now I'm going to transaction me53n and what can I see?

PR nr 100000

          pos. 10 with service 'SERVICE No1', quantity 15.

Any ideas?

Best regards,

Marcin

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Have you looked at note 1855300?

I also noticed that note 1573047 seemed to propose a similar but more limited problem.  Do you think it could be related?

Neal

3 REPLIES 3

Former Member
0 Kudos

Hi,

Can you please copy your code here

Former Member
0 Kudos

Have you looked at note 1855300?

I also noticed that note 1573047 seemed to propose a similar but more limited problem.  Do you think it could be related?

Neal

0 Kudos

I solved the problem.

It is not possible to send package number as a "real number" (from ESLL table), it needs to be dummy one. It is also worth to fill pln_pckgno and number line with the "real numbers".

Thx everyone for help.