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 G/L Account problem

Former Member
0 Likes
995

Hi experts,

good day! i am trying to create a PR using bapi in ABAP and have supplied all necessary data in the internal tables for the bapi. But i'm still getting this error message from the RETURN table of the bapi.

No instance of object type PurchaseRequisition has been created. External reference: # 1

Enter G/L Account

i dont know why i'm getting this error message even though i have provided the G/L accont in the praccount table of the bapi. i also noticed in the debug mode that the value of GL_ACCOUNT field in my internal table i_praccount (in reference with structure bapimereqaccount) is cleared when the call to bapi BAPI_PR_CREATE is performed.

Thank you for your usual support!

Onin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
735

Hi,

Check your Item Category in the first item table. Check whether you missed populating any mandatory parameter in Account Assignment table like Purchase item no. Acc Assignment, Quantity etc.

Regards,

Santosh Kumar M.

3 REPLIES 3
Read only

Former Member
0 Likes
736

Hi,

Check your Item Category in the first item table. Check whether you missed populating any mandatory parameter in Account Assignment table like Purchase item no. Acc Assignment, Quantity etc.

Regards,

Santosh Kumar M.

Read only

former_member300754
Participant
0 Likes
735

Hi,

i face the same problem. would you please elaborate the solution.

Thanks in advance.

Peerasit

Read only

Former Member
0 Likes
735

Check that the WBS element (PRACCOUNT-WBS_ELEMENT) is initial, if you do not use an account assignment with WBS element.

I had this problem because the WBS element value was '00000000' although I used account assignment category K and this created the error.