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

Force Close PR Number

Former Member
0 Likes
632

Hi Experts,

I need to develop a custom program that will force close a PR number that are partially served with PO by changing the value of the quantity of a PR number.

I know it is not a good practice to change the data of a standard table.

But by doing this I need to update table eban and change the MENGE value.

I need to know if there are any other fields in a certain table that I need to update in order to close a PR number.

How can i know the affected table and field when deleting a line item in a PO?

Hi Experts,

I need to develop a custom program that will force close a PR number that are partially served with PO by changing the value of the quantity of a PR number.

I know it is not a good practice to change the data of a standard table.

But by doing this I need to update table eban and change the MENGE value.

I need to know if there are any other fields in a certain table that I need to update in order to close a PR number.

How can i know the affected table and field when deleting a line item in a PO?

2 REPLIES 2
Read only

Sijin_Chandran
Active Contributor
0 Likes
592

Ask your team's functional guy to show how a PR is closed.

i.e using ME52N.

And later you implement the same in your custom code using ME52N BAPI.

Read only

Former Member
0 Likes
592

Hi Jepoy,

You're looking at this the wrong way.  You say you know that you should not change table data directly, but now you're asking which other tables you have to update directly since you're going to do it anyway!

Use BAPI_PR_CHANGE to make this change.  This is the approved way to make the change.  Do NOT update EBAN directly, you will cause problems.

Jim