Application Development 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: 

BAPI_REQUISITION_CHANGE

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member184551
Contributor
0 Kudos

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

Former Member
0 Kudos

it seems bapi_pr_change is better

Former Member
0 Kudos

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.