2022 Oct 13 11:01 AM
Hi together,
I am trying to deactivate a maintenance plan via a function module or method, such as: FM - MPLAN_DEACTIVATE or mplan_api->mplan_deactivate, but nothing is working. The status of the maintenance plan remains unchanged. Is there any function module or method that I can use to change the status of a maintenance plan from active to inactive?
Please find below a snippet of code that I used in FM and method:
DATA: lv_warpl TYPE mpla-warpl,
table_l TYPE bapirettab,
me TYPE REF TO mplan_api.
lv_warpl = '1010000608'.
"FM
CALL FUNCTION 'MPLAN_DEACTIVATE'
EXPORTING
warpl = lv_warpl
TABLES
return = table_l.
"Method
me = mplan_api=>get_reference( ).
CALL METHOD me->mplan_deactivate
EXPORTING
warpl = lv_warpl
* dialog =
IMPORTING
return = table_l
Thank you all in advance!
Bests regards,
R
2022 Oct 13 11:29 AM
2022 Oct 13 11:29 AM
2022 Oct 13 12:54 PM