‎2008 Jul 17 8:23 AM
Hi,
I am using BAPI_MATERIAL_SAVEDATA webservice to create a "MATERIAL", but unfortunately I am getting following error
Field MATNR has been transferred inconsistently or is blankIf I check the parameters list, I didn't find out any field called "MATNR".
any valuable tips?
Thanks & Regards,
Satish.
‎2008 Jul 17 8:29 AM
Satish,
you will able to see matnr in BAPIMATHEAD-MATNR in import parameter.it should not be blank.
Amit.
‎2008 Jul 17 8:38 AM
Hello Amit,
Following is the parameters list for "HEADDATA". Here I didn't find such a field in the list...
<HEADDATA>
<MATERIAL>SDH_005_fromSOAP</MATERIAL>
<IND_SECTOR>Retail</IND_SECTOR>
<MATL_TYPE>Additionals</MATL_TYPE>
<BASIC_VIEW>X</BASIC_VIEW>
<SALES_VIEW></SALES_VIEW>
<PURCHASE_VIEW></PURCHASE_VIEW>
<MRP_VIEW></MRP_VIEW>
<FORECAST_VIEW></FORECAST_VIEW>
<WORK_SCHED_VIEW></WORK_SCHED_VIEW>
<PRT_VIEW></PRT_VIEW>
<STORAGE_VIEW></STORAGE_VIEW>
<WAREHOUSE_VIEW></WAREHOUSE_VIEW>
<QUALITY_VIEW></QUALITY_VIEW>
<ACCOUNT_VIEW></ACCOUNT_VIEW>
<COST_VIEW></COST_VIEW>
<INP_FLD_CHECK></INP_FLD_CHECK>
<MATERIAL_EXTERNAL>123456789123456789</MATERIAL_EXTERNAL>
<MATERIAL_GUID></MATERIAL_GUID>
<MATERIAL_VERSION></MATERIAL_VERSION>
</HEADDATA>Thanks & Regards,
Satish.
‎2008 Jul 17 9:42 AM
Hi,
Test the BAPI manually by passing the values and then fire the BAPI from where it has to execute in real time, to know whether the BAPI is solving your purpose or not.
MATNR field is there in the structure HEADDATA of the BAPI. While you are passing the data related to plant you should pass in the structure PLANTDATA and at the same time you need to set the flag for the fields which you have passed in that structure in the structure PLANTDATAX.
Similarly you have lot of structures which follow the same procedure in the BAPI, check all those things and test.
Thanks,
Mahesh.