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_CHANGE

phil_moh
Participant
0 Likes
2,074

Tyring to test run the BAPI manually via SE37, but not successful.

example, I try BAPI_PR_CHANGE.

1) In SE37, go to Function Moduel ->Test ->Test Sequence

2) Enter BAPI_PR_CHANGE, and BAPI_TRANSACTION_COMMIT. click Execute to continue.

3) In the Initial Screen, specify the PR number. Then click on Table PRITEM.

4) In the Table, specify the PREQ_ITEM. And enter value "019" in PUR_GROUP (currently in the EBAN table, the value for this PUR_GROUP is "018").

5) Execute the BAPI. I can see in the Return tabl with the following message:

S 06 403 Purchase requisition 10013584 changed

S BAPI 002 Instance 10013584 of object type PurchaseRequisition has been changed.

6) I press "F3" to execute the BAPI_TRANSACTION_COMMIT as required.

7) Click execute to run BAPI_TRANSACTION_COMMIT. I have no error message from the Return table.

In SE16 ->EBAN table, I can see the "Changed on" field change to today date. However, the value "018" unchanged for the Purch. Group field.

What is wrong? Please advice.

3 REPLIES 3
Read only

Former Member
0 Likes
905

HI,

Do the same in SE38 your problem will be solved.

***

Write the code in SE38 call BAPI and commit in the program.

******

Hope this helps you

Regards,

Amit Teja

Read only

Former Member
0 Likes
905

Hi,

The procedure you are opting in test run is absolutely correct,

pobably you are missing some field in BAPI_PR_CHANGE. Read the documentation for what all the mandatory fields you are require to pass.

BAPI_TRANSACTION_COMMIT is correct.

check out this link;

Thanks,

Krishna..

Read only

phil_moh
Participant
0 Likes
905

need to flag the PRITMX field too.