‎2006 Dec 11 5:42 AM
Hi,
Can any one help me out in sollving this issue!
When ever I am trying to use the above Fun module to chane the Material Po text, it is reflectiung in MM03 but not in Me23N.
Do I need to change any thing in my below code to get this done??
Pls have alook at the code.
REFRESH lt_lines.
Clear ls_header-tdname.
****-Populate Header Text details
ls_header-tdobject = 'MATERIAL'.
ls_header-tdname = Ekpo_t-matnr.
ls_header-tdid = 'BEST'.
ls_header-tdspras = sy-langu.
*****-Populate details of Text
lt_lines-tdline = 'JJJJKKKKSSSS' .
lt_lines-tdformat = '*'.
APPEND lt_lines.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = ls_header
savemode_direct = 'X'
INSERT = 'X '
TABLES
lines = lt_lines
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'COMMIT_TEXT'.
‎2006 Dec 11 6:01 AM
The TDOBJECT parameter that you are passing is MATERIAL and this is applicable only for material. For PO the Object is EKPO and Text ID F03
However, when you are creating the PO, it copies the text from the MATERIAL. But it will not reflect once you have created the PO.
Regards,
Ravi
Note - Please mark all the helpful answers
‎2006 Dec 11 6:10 AM
hi
good
go through this links and use accordingly.
http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm
thanks
mrutyun^
‎2006 Dec 11 6:18 AM
hi this save_text function module is meant for the SAP Script form, so i think it will be better if you specify the form name too.
Regards,
Manohar.