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_pr_create - External reference error.

0 Kudos

I am trying to create pr using bapi_pr_create , im getting following error.

E BAPI 001 No instance of object type PurchaseRequisition has been created. External reference: # 5

I am not passing any value in HEADER-PREQ_NO assuming it should pick up the next PR no in internal no range. However it doesn't.

Looks like some configuration issue.

Any help is appreciated.

Thanks,

Tejas.

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos

In forum, I searched for "BAPI 001 No instance of object type ..." and saw it just means "object not created" (why can't it be simple).

Could you see if you have other error messages returned by the bapi ? (messages are usually returned in an internal table)

0 Kudos

Hi Sandra,

I was also getting another error message "Enter Material Group".

Now when i am passing a valid material group i get following messages in return table:

I 00 001 Function 'Create Purchase Requisition' was perform

S 06 402 Purchase requisition number # 3 created

However my issue is why is it not picking up the PR No from internal no range maintained as from 0010000000 to 0019999999 and the next available no in tht range is 10000109.

Also i dont know how to view PR '#3' if it has been created in the system.

Regards,

Tejas.

0 Kudos

Can you check via sap transactions (search help) or directly in pr database table, whether a PR has been created today by you ?

And check the number. Maybe #3 is not the real number ?

Try to display the PRs number 10000107, 10000108, 10000109 to check if they are yours.