Update capacity of a network
I am trying to close a netowrk using the BAPI "BAPI_NETWORK_MAINTAIN"
lwa_bapi_method_project-refnumber = '0001'. lwa_bapi_method_project-objecttype ='NETWORKACTIVITY'. lwa_bapi_method_project-method = 'DELETE'. lwa_bapi_method_project-objectkey = NetworkActivity APPEND lwa_bapi_method_project TO lt_bapi_method_project . CLEAR lwa_bapi_method_project. lwa_bapi_method_project-method = 'SAVE'. APPEND lwa_bapi_method_project TO lt_bapi_method_project . lwa_activity-network = Network. lwa_activity-activity = ActivityNo. APPEND lwa_activity TO lt_activity. lwa_network-network = Network. APPEND lwa_network TO lt_network. CALL FUNCTION 'BAPI_NETWORK_MAINTAIN' IMPORTING return = lfd_return TABLES i_method_project = lt_bapi_method_project i_network = lt_network i_activity = lt_activity * i_activity_update = lt_activity_update e_message_table = lt_bapi_meth_message.
This deletes the capacity from the network and also sets the network as status CLOSED. But when I check the capacity evaluation report through CM50 with the Work center and the plant it is still showing the capacity for the closed network.
Please suggest something to close the network that would also update the capacity to 0 for that network.
Thanks in advance.