‎2010 Feb 03 11:09 AM
Hi Gurus,
I am trying to create material using BAPI '/AFS/BAPI_MATERIAL_SAVEDATA'.
When I am executing the BAPI from code it is giving error 'No description Transferred'.
But when I test the BAPI from SE37 it works fine.
‎2010 Feb 03 2:18 PM
I usually believe the message of SAP.
did you give a description?
‎2010 Feb 04 2:21 PM
I am giving the description in the 'materialdescription' table for the BAPI. Two parameters are passed Lang = 'E' and the Matl_Desc field with the description.
Then also it is giving error. Type E number 148 Message Class 'MG'.
Any suggestions.
‎2010 Feb 08 4:53 AM
Dear if you are using this above bapi then do it step by step .
e.g.
First make active only basi view
bapi_head-material = gs_data-matnr.
bapi_head-ind_sector = gs_data-mbrsh.
bapi_head-matl_type = gs_data-mtart.
bapi_head-basic_view = 'X'.
AND PASS ONLY CLIENT BASIC DATA
Client Data - Basic
bapi_mara1-matl_group = gs_data-matkl.
bapi_mara1-base_uom = gs_data-meins.
bapi_mara1-unit_of_wt = gs_data-gewei.
bapi_mara1-division = gs_data-spart.
bapi_marax-matl_group = 'X'.
bapi_marax-base_uom = 'X'.
bapi_marax-unit_of_wt = 'X'.
bapi_marax-division = 'X'.
THEN TEST IST MATERIAL
2ndly activate purchase view ( bapi_head-purchase_view = 'X'. ) and put purchase data (BAPI_MARC).
By this way you will definately get result and reaason for for error .