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

updating SALES TEXT for materials. (FM: SAVE_TEXT)

Former Member
0 Kudos
3,435

Hi friends,

We have some data for material master in ENglish language in SAP.

Now I need to load material desctions, and sales text1, sales text2,3,4,5 for Spanish (ES) language for the existing materials.

Note: Similar kind of load, but long text1,2,3,4,5 done using FM SAVE_TEXT.

-


i have done as follows.

loop the itab . " for input file data

wa_header-tdobject = 'MATERIAL'.

wa_header-tdname = wa_file-matnr.

wa_header-tdid = 'GRUN'.

wa_header-tdspras = wa_file-spras.

wa_lines-tdformat = '/'.

wa_lines-tdline = temp1+55(17).

APPEND wa_lines TO itab_lines.

CLEAR: wa_lines-tdline.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

header = wa_header

insert = 'X'

savemode_direct = 'X'

-


similar fashion, can we also upload material descriptions as well as 5 sales text in ES?

I tried as follows, but could not see the new mat desc, sales text1-1data in SAP for language ES.

wa_header-tdobject = 'MVKE'.

wa_header-tdname = wa_file-matnr.

wa_header-tdid = '0001'.

wa_header-tdspras = wa_file-spras.

..also tried by passing empty for isert parameter of SAVE_TEXT. insert = ' '

Please help me in this regard.

Edited by: puneindian on Nov 12, 2009 12:39 PM

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Kudos
1,197

For MVKE tdname is not MARA-MATNR, but a concatenation of tdname MVKE-MATNR, MVKE-VKORG and MVKE-VTWEG. - call transaction SE16 on table STXH with partial key TDOBJECT = 'MVKE' to get the idea

I prefer to use BAPI_MATERIAL_SAVEDATA instead of SAVE_TEXT to save the long texts. (parameter table MATERIALLONGTEXT)

Regards,

Raymond

8 REPLIES 8
Read only

kesavadas_thekkillath
Active Contributor
0 Kudos
1,197

Read only

0 Kudos
1,197

yes.

using Function modules.

Read only

former_member217544
Active Contributor
0 Kudos
1,197

Hi,

Above thread by Keshu is a link (he is not asking a question). Click on the link provided by him.

Also cross check whether ES language is maintained in table T002 table or not.

Regards,

Swarna Munukoti.

Edited by: Swarna Munukoti on Nov 12, 2009 12:56 PM

Read only

0 Kudos
1,197

Thank you.

It is useful, but not working.(MARA, SL1 combination).

when I use 'MVKE' and '0001' combination , FM showing status "I" .(insert). Seems successful.

But when i checked using MM03, could not see the data.

Read only

0 Kudos
1,197

Raymond,

Thank you very much.

Now it is working after passing conacatenation of (matnrsalesordDC) as per your comments.

Read only

0 Kudos
1,197

Hi

The object name has to be the key of MVKE

wa_header-tdname = MVKE-MATNR + MVKE-VKORG + MVKE-VTWEG

Max

Read only

RaymondGiuseppi
Active Contributor
0 Kudos
1,198

For MVKE tdname is not MARA-MATNR, but a concatenation of tdname MVKE-MATNR, MVKE-VKORG and MVKE-VTWEG. - call transaction SE16 on table STXH with partial key TDOBJECT = 'MVKE' to get the idea

I prefer to use BAPI_MATERIAL_SAVEDATA instead of SAVE_TEXT to save the long texts. (parameter table MATERIALLONGTEXT)

Regards,

Raymond

Read only

Former Member
0 Kudos
1,197

Hi,

Try to use commit work after save_text is successfull.

Thank you,

Gangadhar.S