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

MM02 - Changing material description

0 Likes
3,556

Hi...

I need to update the material description using EXCEL file.

Do you think is safe if I update MARA~maktx directly ?

Or I should call some function ? Not too sure any inter-related process in between or not.

Thanks.

1 ACCEPTED SOLUTION
Read only

former_member438956
Active Participant
0 Likes
2,238

use the BAPI 'BAPI_MATERIAL_SAVEDATA' and change the material description.

Regards,

Anil N.

7 REPLIES 7
Read only

Former Member
0 Likes
2,238

Hi,

Do a small BDC for T-code MM02, to update Material Description it will be in one shot you can complete it.

Its not fair to update MARA table directly, coz Material Description need to update in few more tables like MAKT.

Regards,

Suneel G

Read only

0 Likes
2,238

Thanks ...

What's the difference between LSMW and BDC ?

I think I need to write some codes for BDC. Right ?

Read only

former_member438956
Active Participant
0 Likes
2,239

use the BAPI 'BAPI_MATERIAL_SAVEDATA' and change the material description.

Regards,

Anil N.

Read only

Former Member
0 Likes
2,238

Hi ,

The difference bewteen the LSMW and BDC is in bdc u have to write the code and lsmw u have to perform some steps given by sap.

in bdc u can perofrm ur own logic wht evr way u want.

But for updating materila desc, i say the best way is to use the bapi , not hing else.

u can go with

BAPI_MATERIAL_SAVEDATA

u can check the same in se37 by passing the rqired fields and executing.

Regards

Rajendra

Read only

0 Likes
2,238

Ok, thanks .. I will check the BAPI method.

I completed the BDC but I have another dilemma which field to enable.

Since I am updating only the description, it should be the part ID and description. Right ?

CALL FUNCTION 'ZFM_UPDMATDESC'

EXPORTING

CTU = 'X'

MODE = 'N'

UPDATE = 'L'

  • GROUP =

  • USER =

  • KEEP =

  • HOLDDATE =

  • NODATA = '/'

MATNR_001 = wa_matdesc-matnr

  • KZSEL_01_002 = 'X'

MAKTX_01_003 = wa_matdesc-desc

" MEINS_004 = 'EA'

" MATKL_005 = '07'

  • IMPORTING

  • SUBRC =

  • TABLES

  • MESSTAB =

.

Read only

0 Likes
2,238

Hi,

why you are using a custom function module?

just call the BAPI - BAPI_MATERIAL_SAVE_DATA.

Pass the required parameters.

for your case, pass,

1). HEADDATA - FOR SELECTING THE VIEW (BASIC VIEW - MUST )

2). CLIENT DATA AND CLIENT DATAX

and in tables you get the material description.

pass those values and check.

if you have doubt still, revert back.

Regards,

Sakthi sri.

Read only

Former Member
0 Likes
2,238

Hi friends,

I have a similar requirement i have to change material description of many materials

Also i need to change a few things in CLASSIFICATION VIEW .. does any one have any idea how can i make changes to CLASSIFICATION VIEW ??

I desperately need a solution.

Thanking you all in anticipation