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

Function module BAPI_PR_CREATE

Former Member
0 Likes
1,633

Hi Experts,

I am using fucntion module BAPI_PR_CREATE for creating purchase requisition. here PR number is created but not showing while go and check in ME53N.

then I tested to create manually using ME51N then next number is craeted then it is showing details PR.

But while creating PR using FM is not showing in ME53N

please can suggest the solution.

Regards,

BBC

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,290

Hi,

You have to call BAPI_TRANSACTION_COMMIT after the BAPI_PR_CREATE.

You have execute the entire program, Like if you check once the BAPI_PR_CREATE is executed it will not show the PR in ME53N.

So execute the program completely and check in ME53N or EBAN table.

Regards

Rajesh V

5 REPLIES 5
Read only

dev_parbutteea
Active Contributor
0 Likes
1,290

hi,

what is exactly your issue here:

- no PR is being generated ? --> Did you commit the changes?

- or PR number is not appearing automatically in ME53n?

Regards,

Dev.

Read only

Former Member
0 Likes
1,291

Hi,

You have to call BAPI_TRANSACTION_COMMIT after the BAPI_PR_CREATE.

You have execute the entire program, Like if you check once the BAPI_PR_CREATE is executed it will not show the PR in ME53N.

So execute the program completely and check in ME53N or EBAN table.

Regards

Rajesh V

Read only

0 Likes
1,290

Hi,

First read the function module document and make sure the mandatory fields that has to pass.(Those details will be in that document) or check where used list and check the existing bapi.

After the call of PR BAPI CALL BAPI_TRANSACTION_COMMIT

THEN CALL BAPI_TRANSACTION_ROLLBACK.

Thanks,

Pradeep.

Read only

Former Member
0 Likes
1,290

resolved. Thank for your help.

Read only

Former Member
0 Likes
1,290

resolved. Thanks for your help.