I recently just first touched on the APO system and surprisingly find out that APO even doesn’t have the MARA/MARC table and Transaction code MM01 not to mention the function module like ‘BAPI_MATERIAL_SAVEDATA’!
Here list of the basic approach to mass deletes MRP controllers in APO. It’s for the beginning level of APO development only :
1. Get the structure of the planning objects by ‘/SAPAPO/TS_PLOB_LIST_GET’
◉ Input parameter IV_BAS_PLOBID is mandatory, which will define&provide by functions
◉ Input parameter table it_group_by will be lists of object names that will contain fields like material/plant/MRP controller etc. In my case, it’s totally customized fields like Z_MATNR.
◉ Output table et_plobs_in_view will be the result of the above Z fields at specified PLOBID.
CALL FUNCTION '/SAPAPO/TS_PLOB_LIST_GET'
EXPORTING
iv_bas_plobid = plobname
it_selection = lt_selection
it_group_by = lt_group_by
* is_read_options = ls_read_options
IMPORTING
et_plobs_in_view = gt_plobs_in_view
* et_plob_values = lt_plob_values
EXCEPTIONS
invalid_selection = 1
no_bas_plobid = 2
inherited_error = 3
coding_generation_failed = 4
OTHERS = 5.
No comments:
Post a Comment