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
1,294

Hi All,

in my program, i run the BAPI_PR_CREATE first with testrun = 'X' to check for errors.

If there are no errors, rerun with testrun not set, but does not create anything, and RETURN is empty.

Can you help me?

sorry for my english!!

Thanks

Cc

3 REPLIES 3
Read only

Former Member
0 Likes
866

Hi,

Two solutions:

1. Call function module 'BAPI_TRANSACTION_COMMIT' .

2. Use sentence 'COMMIT WORK.

Regards

Sam

Read only

Former Member
0 Likes
866

Hi ,

When you run BAPI_PR_CREATE test run = X , at this time you are checking the error messages for run is successful.

If run is successful , you again call BAPI_PR_CREATE , after this you need to Commit work.

For this you can use COMMIT WORK. Press F1 to know more.

Hope this helps you.

Read only

0 Likes
866

Thanks to all.

The problem was in the data.

After the BAPI with testrun = X BAPI parameters are changed, and must be set again!

These settings, cause errors in the second BAPI with testrun not set, or PRNUMBER empty and the RDA is not created.

Thanks

Another question:

I changed my program by running the BAPI with testrun = X, because I had a problem, maybe I solve this!?

When run the BAPI only with testrun not set, SAP find the standard error "BP629" and the program goes to DUMP, EXCEPTION PANIC.

I have tried SAP notes, finding 953881st but not served.

Can you help?

Thanks

Cc