‎2011 Jan 27 4:17 AM
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?
‎2011 Jan 27 5:21 AM
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 ..!
‎2011 Jan 27 7:12 AM
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
‎2011 Feb 01 4:31 PM
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.
‎2011 Feb 01 4:33 PM
Dear Sekhar,
Hi. Thanks for your reply . I did R&d and got the solution . I forgot to close this thread.
Regards,
Madhu.