02-06-2008 3:32 PM
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.
02-07-2008 8:10 AM
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.
02-06-2008 6:48 PM
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
02-07-2008 7:15 AM
02-07-2008 8:10 AM
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.