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

BAPI_PR_CREATE

Former Member
0 Likes
867

Hi,

I am trying to create a PR using BAPI_PR_CREATE.

I have given the value of G/L Account in PRAccount and have passed 'X' in the corresponding PRAccountX parameter of the BAPI.

Still I m getting the error "Enter G/L Account".

Is there any other place where I need to mention it?

Kindly reply.

4 REPLIES 4
Read only

Former Member
0 Likes
658

Hi ,

Have you populated PRACCOUNT-PREQ_ITEM .

This has to be populated and if you have populated ,send me the mapping data .

Read only

Former Member
0 Likes
658

Hi Balu,

we have same problem before, i was able to solve it! you just need to populate the following fields:

praccount-preq_item = '10'. <--- this depends on how many items you have in your PR.

praccount-serial_no = '1'. <--- this one is required, in case you split the qty of the item by G/L or Cost Center.

dont forget to populate the ff. fields in the Purchase Requisition Change Parameter - Account Assignment table.

praccountx-preq_item = '10'.

praccountx-serial_no = '1'.

thanks!

Read only

Former Member
0 Likes
658

THNKS

Read only

0 Likes
658

This message was moderated.