Skip to Content
0
Former Member
Aug 30, 2011 at 10:20 PM

BAPI_REQUIREMENTS_CHANGE

346 Views

Hi

I am using below bapi to Change The Planning Order Requirements.

Does this Bapi has Internal Commit or need to explicitly mention it using BAPI_TRANSACTION_COMMIT/ROLLBACK.

Because i can also see one parameter DO_COMMIT. Setting this parameter BLANK will automatically get committed.?

Does all BAPI needs to be handled commit work explicitly? or depends on the parameter?

CALL FUNCTION 'BAPI_REQUIREMENTS_CHANGE'

EXPORTING

MATERIAL = U_WL_PBIM-MATNR

PLANT = U_WL_PBIM-WERKS

REQUIREMENTSTYPE = U_WL_PBIM-BEDAE

VERSION = U_WL_PBIM-VERSB

REQMTSPLANNUMBER = U_WL_PBIM-PBDNR

VERS_ACTIV = CG_X

DELETE_OLD = CG_MSGV_BLANK

TABLES

REQUIREMENTS_SCHEDULE_IN = TL_NREDL

RETURN = TL_REPA. "Return parameter

Pls confirm.

Regard

Chandra