Hello, there.
I'm utilizing the BAPI_MATERIAL_SAVEDATA to alteration immoderate materials. (Just privation to alteration a unsocial tract MARC-MFRGR).
The occupation is the BAPI returns an error:
"The tract MARC-MTVFP/BAPI_MARC-AVAILCHECK is defined arsenic a required field; it does not incorporate an entry"
Strange things:
- The worldly is modified correctly contempt the error.
- The worldly doesn't person created the presumption wherever this tract (MARC-MTVFP) is located.
If I spell to MM02 and alteration the worldly it's ok, nary mistake is showed. If I make the presumption wherever the tract is located past I spot the mistake successful MM02.
Why the bapi is returning an mistake connection asking for a required tract successful a presumption that doesnt beryllium successful the material?
The codification I'm utilizing is prety simple:
ls_plantdata-plant = p_ls_datos-werks. ls_plantdatax-plant = p_ls_datos-werks. CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
ls_headdata-material = p_ls_datos-matnr.
ls_plantdata-matfrgtgrp = p_ls_datos-mfrgr.
ls_plantdatax-matfrgtgrp = abap_true.
EXPORTING
headdata = ls_headdata
plantdata = ls_plantdata
plantdatax = ls_plantdatax
IMPORTING
return = ls_return
TABLES
returnmessages = lt_returnmessages.
Thanks successful advance.
PS: We are using SAP ECC 6.0