1.GET MD05/MS05 DATA
DATA: l_mdez LIKE mdez OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'MD_STOCK_REQUIREMENTS_LIST_API'
EXPORTING
PLSCN = P_PLSCN " p_plscn=''-->MD05; p_plscn<> ''--> MS05
MATNR = P_MATNR
WERKS = P_WERKS
TABLES
MDEZX = L_MDEZ
EXCEPTIONS
MATERIAL_PLANT_NOT_FOUND = 1
PLANT_NOT_FOUND = 2
OTHERS = 3.
2.GET MD04/MS04 DATA
DATA: l_mdez LIKE mdez OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'MD_STOCK_REQUIREMENTS_LIST_API'
EXPORTING
PLSCN = P_PLSCN " p_plscn=''-->MD04; p_plscn<> ''--> MS04
MATNR