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

john_wayne
Participant
0 Likes
621

im having trouble with this bapi currently im able to use this bapi to create the material but when i enter the details i noticed that the basic data 1 & 2 tab is not showing. i populated exporting data fields of headdata clientdata clientdatax plantdata plantdatax and tables fields of materialdescription unitofmeasure unitofmeasurex. can anyone explain how do i get the basic data to be shown?

4 REPLIES 4
Read only

anup_deshmukh4
Active Contributor
0 Likes
586

Hello abaperdaft ,

Make sure that you are passing X in the basic view and the purchasing view field in the HEADDATA parameter of the BAPI,

More over if you are..not able to see the basic data tab... check whather you have created the material in the RETURN structure ...if you are getting some error message in the RETURN TABLE plz...elaborate them ..!

if you are getting a success message then check have you use COMMIT WORK after the BAPI call...!

Hope this helps,

anup ..!

Read only

madhu_vadlamani
Active Contributor
0 Likes
586

Dear abaperdaft ,

Hi . Please pass this code in this way . Yo can get all those fields with views .

bapimathead-material = 'BAPI_TEST'. "HEADDATA BAPIMATHEAD

bapimathead-ind_sector = 'M'.

bapimathead-matl_type = 'FERT'.

bapimathead-basic_view = 'X'.

it_description-langu_iso = 'EN'.

it_description-matl_desc = 'TEST MATERIAL '.

APPEND it_description.

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

headdata = bapimathead

clientdata = bapi_mara

clientdatax = bapi_marax

TABLES

materialdescription = it_description

returnmessages = return.

Pass this dat in this way . YOu can get basic data two views and collect the return messages . Tell if require more information in this.

Regards,

Madhu.

Edited by: madhurao123 on Jan 27, 2011 8:12 AM

Read only

Former Member
0 Likes
586

Hi,

You can follow this below link example.

In this, calls the function upload data, bapi_material_savedata, commitwork function and check it showing correct or not

all those things follows the link.

It explains every step. so, you would get a clear picture.

Read only

0 Likes
586

Dear Sekhar,

Hi. Thanks for your reply . I did R&d and got the solution . I forgot to close this thread.

Regards,

Madhu.