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

'SAVE_TEXT'

Former Member
0 Likes
479

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'.

3 REPLIES 3
Read only

Former Member
0 Likes
419

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

Read only

Former Member
0 Likes
419

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.