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 '/AFS/BAPI_MATERIAL_SAVEDATA'

Former Member
0 Likes
700

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.

3 REPLIES 3
Read only

JL23
Active Contributor
0 Likes
637

I usually believe the message of SAP.

did you give a description?

Read only

Former Member
0 Likes
637

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.

Read only

0 Likes
637

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 .