Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
552

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 blank

If I check the parameters list, I didn't find out any field called "MATNR".

any valuable tips?

Thanks & Regards,

Satish.

3 REPLIES 3
Read only

Former Member
0 Likes
496

Satish,

you will able to see matnr in BAPIMATHEAD-MATNR in import parameter.it should not be blank.

Amit.

Read only

0 Likes
496

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.

Read only

Former Member
0 Likes
496

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.