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_REQUISITION_CHANGE

Former Member
0 Likes
767

I want to recomment off the coding which prevent Subcontract PR to be changed due to reservation number ( refer to OSS note 501861 &537507 )

in BAPI_REQUISITION_CHANGE.

This function is in function group MEWQ. Can i copy the function group to ZMEWQ and then copy BAPI_REQUISITION_CHANGE to ZBAPI_REQUISITION_CHANGE to ZMEWQ, and let my program call the ZBAPI_REQUISITION_CHANGE ?

Is this the right way to do it? Please advise.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
729

Hi,

Why not change the BAPI? This way, when upgrading the SAP system you

will get an automatic message in SPAU. If you are afraid that changing

the BAPI affects other parts of the SAP-system, just make sure that the

code you want to 'delete' is skipped under specific circumstances.

Copying the function means copying the complete function group with al

the functions in it. And then perhaps you need to change other CALL

FUNCTION statements if you need to refer to functions within the copied

function group etc.

regards.....

Chaitanya.

3 REPLIES 3
Read only

Former Member
0 Likes
729

Hi Mukesh

Actually a BAPI call will eventually update some of the standard tables. If you are copying a bapi fm into a zbapi fm its internally still updating those tables, if the oss note says commenting off the subcontract pr code change is okay then i think your approach is right, otherwise you might end up making some of ur std database tables inconsistent.

Hope it helps

Rgds

Sameer

Read only

Former Member
0 Likes
729

it seems bapi_pr_change is better

Read only

Former Member
0 Likes
730

Hi,

Why not change the BAPI? This way, when upgrading the SAP system you

will get an automatic message in SPAU. If you are afraid that changing

the BAPI affects other parts of the SAP-system, just make sure that the

code you want to 'delete' is skipped under specific circumstances.

Copying the function means copying the complete function group with al

the functions in it. And then perhaps you need to change other CALL

FUNCTION statements if you need to refer to functions within the copied

function group etc.

regards.....

Chaitanya.