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

Please Help me: Prob with BAPI_PR_CREATE (URGENT)

Former Member
0 Likes
884

Hi,

I am creating a PR using BAPI_PR_CREATE. It is showing an error:

1. Account 460000 requires an assignment to a CO object

2. Account 460000 does not exist in chart of accounts CANO

I passed GL Account as: 460000.

Please let me know ASAP.

<b><REMOVED BY MODERATOR></b>

Thanks,

Harish

Message was edited by:

Alvaro Tejada Galindo

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
788

Hi Harish:

Check if the GL account is properly maintianed. Before testing with BAPI, check if u are able to create the PR for the same model and for the same plant manually.

5 REPLIES 5
Read only

Former Member
0 Likes
789

Hi Harish:

Check if the GL account is properly maintianed. Before testing with BAPI, check if u are able to create the PR for the same model and for the same plant manually.

Read only

0 Likes
788

Yeah it I tested it manually, with the same data. It was working fine.

Please help me out.

Thanks,

Harish

Read only

0 Likes
788

Hi Harish,

did you try only for one PR number or for multiple PRs at a time?

why I ask this is, the item structure for this BAPI doesn't have PR number.

if you try for mutiple records,I think this BAPI will work only if you call the BAPI in a loop.

regards

SK

Read only

0 Likes
788

Sorry , I think misunderstand the queston.

regards

SK

Read only

Former Member
0 Likes
788

We used the BAPI: BAPI_REQUISITION_CREATE before for PR creation and it worked fine.