2009 Nov 12 11:38 AM
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
2009 Nov 12 12:06 PM
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
2009 Nov 12 11:44 AM
2009 Nov 12 11:54 AM
2009 Nov 12 11:55 AM
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
2009 Nov 12 2:06 PM
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.
2009 Nov 12 2:11 PM
Raymond,
Thank you very much.
Now it is working after passing conacatenation of (matnrsalesordDC) as per your comments.
2009 Nov 12 2:13 PM
Hi
The object name has to be the key of MVKE
wa_header-tdname = MVKE-MATNR + MVKE-VKORG + MVKE-VTWEG
Max
2009 Nov 12 12:06 PM
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
2009 Nov 12 2:11 PM
Hi,
Try to use commit work after save_text is successfull.
Thank you,
Gangadhar.S