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

Error with BAPI:'BAPI _MATERIAL_SAVEDATA'.

Former Member
0 Likes
701

Hi Guys,

I am getting error when creating extended views for newly created materials.I am taking a new material number with Function module :BAPI_MATERIAL_GETINTNUMBER, and it has been created new material with Basi view.When i try to create extended views for the same material,its giving the following error: Field MATNR has been transferred inconsistently or is blank.

Thanks in advance.

Regards,

Reddy

5 REPLIES 5
Read only

Former Member
0 Likes
651

Hi,

Check the header data is cleared.

Link :

Edited by: Raj on Jul 13, 2010 1:52 PM

Read only

0 Likes
651

Hi,

I have cleared the Header data but still i am getting the same error.

Regards,

Reddy

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
651

The BAPI 'BAPI_MATERIAL_GETINTNUMBER' should not be used to assign internal numbers to material types.

Documentation for 'BAPI_MATERIAL_GETINTNUMBER' says:

In future, this method will no longer be supported for the object type Material (BUS1001).

For standard materials you should use 'BAPI_STDMATERIAL_GETINTNUMBER' & for retail materials you should be using 'BAPI_MATERIAL_GETINTNUMBERRET'.

BR,

Suhas

Read only

0 Likes
651

Hi Anup,

i am passing MATNR for header data ,for the first time its creating extended views for first material but for second record ,its not creating extended views.still its giving the same error.

Regards,

Reddy

Read only

anup_deshmukh4
Active Contributor
0 Likes
651

Are you Commiting after creating the Basic View...then only the further extension will carry out...

just pass the MATNR when you are extending the view in header...

Thanks

Hope it Helps

Edited by: Anup Deshmukh on Jul 13, 2010 10:59 AM