2008 May 16 4:05 PM
Hi guys,
I need your help, i am using BAPI_MATERIAL_SAVEDATA to create all views for material, but i don't know how update Sales Text and Purchase Order Text, somebody knows how to create this texts and organizational levels?
Thanks in advance .
regards
Marisol
2008 May 16 4:20 PM
HI
You can use the function module 'CREATE TEXT', to save the standrd text lile Material Sales Text/ PO text.
For Sales text:
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = v_tid
FLANGUAGE = lv_spras
FNAME = v_tdname
FOBJECT = v_tdobject
SAVE_DIRECT = 'X'
FFORMAT = '*'
FFORMAT = ' '
TABLES
FLINES = i_lines
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3.
Text name 000000000001110257B227BD
Language EN
Text ID 0001 Sales text
Text object MVKE Material texts, sales
HI
You can use the function module 'CREATE TEXT', to save the standrd text lile Material Sales Text/ PO text.
For Sales text:
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = v_tid
FLANGUAGE = lv_spras
FNAME = v_tdname
FOBJECT = v_tdobject
SAVE_DIRECT = 'X'
FFORMAT = '*'
FFORMAT = ' '
TABLES
FLINES = i_lines
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3.
Text name 000000000001110257B227BD
Language EN
Text ID 0001 Sales text
Text object MVKE Material texts, sales
2008 May 16 4:20 PM
HI
You can use the function module 'CREATE TEXT', to save the standrd text lile Material Sales Text/ PO text.
For Sales text:
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = v_tid
FLANGUAGE = lv_spras
FNAME = v_tdname
FOBJECT = v_tdobject
SAVE_DIRECT = 'X'
FFORMAT = '*'
FFORMAT = ' '
TABLES
FLINES = i_lines
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3.
Text name 000000000001110257B227BD
Language EN
Text ID 0001 Sales text
Text object MVKE Material texts, sales
2008 May 16 4:28 PM
Have you SET the sales view field in headdata and make sure you are using the internal language key?
2008 May 16 4:38 PM
HI
You can use the function module 'CREATE TEXT', to save the standard text like Material Sales Text/ PO text.
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
FID = v_tid
FLANGUAGE = 'EN'
FNAME = v_tdname
FOBJECT = v_tdobject
SAVE_DIRECT = 'X'
FFORMAT = '*'
FFORMAT = ' '
TABLES
FLINES = i_lines
EXCEPTIONS
NO_INIT = 1
NO_SAVE = 2
OTHERS = 3.
Here,
for sales text
v_tid = '0001'
v_tdobject = 'MVKE'
v_tdname = Concatenated text of Material Number (18 chars), Sales org (4 chars) and Distribution Channel (2 chars)
For PO text
v_tid = 'BEST'
v_tdobject = 'MATERIAL'
v_tdname = Material Number(18 chars)
And i_lines is the table with the text lines you want to create.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |