Hi Everybody,
Who had used the BOM Allocation Deletion Function Module: CSAP_MAT_BOM_ALLOC_DELETE ?
I use this FM to delete the BOM Allocation of plant: 0498 and BOM: '98-000122'
code:as below :
REFRESH: T_PLANT.
CLEAR:T_PLANT.
T_PLANT-PLANT = '0498'.
APPEND T_PLANT.
CALL FUNCTION 'CSAP_MAT_BOM_ALLOC_DELETE'
EXPORTING
MATERIAL = '98-000122'
PLANT = '0498'
BOM_USAGE = '8'
ALTERNATIVE = '01'
FL_NO_CHANGE_DOC = ' '
FL_COMMIT_AND_WAIT = 'X'
IMPORTING
FL_WARNING =
BOM_NO =
TABLES
T_PLANT = T_PLANT
EXCEPTIONS
ERROR = 1
OTHERS = 2
.
when I run the programme, the result is the system variant sy-subrc is 0 . but when I used Tcode: cs08 to display the Bom allocation , the alloction of plant: 0498 and bom: '98-000122' is also exist. I don't konw where the problem is.
Anyone who can help me ?