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

Regarding the save_text

Former Member
0 Likes
1,665

Hello Experts,

I'm facing a problem to save the text in 'MD04'.

I've all the values to pass it to header except the Languge.

I couldn't able to get it.

Could any one help in resolving this?

Thanks in Advance!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,574

Try Passing value tdspras in thead with 'E'.

This tdspras has conversion routine ISOLA. Check this one also.

I think passing value 'S' will work.

Regards,

Krishna.

Hello Experts,

I'm facing a problem to save the text in 'MD04'.

I've all the values to pass it to header except the Languge.

I couldn't able to get it.

Could any one help in resolving this?

Thanks in Advance!!

12 REPLIES 12
Read only

Former Member
0 Likes
1,574

Hi,

You can use the sy-langu .

Read only

0 Likes
1,574

Hi Avinash,

Thanks for Quick reply!!

Its not working with sy-langu, cause the material text in MD04 is maintained in 'ES'. so if Logon in EN and try to save the text its not updating.

Regards,

Pavan

Read only

Former Member
0 Likes
1,574

hi

Try doing this in Transaction MM02.

hope it helps

regards

Aakash Banga

Read only

Former Member
0 Likes
1,575

Try Passing value tdspras in thead with 'E'.

This tdspras has conversion routine ISOLA. Check this one also.

I think passing value 'S' will work.

Regards,

Krishna.

Read only

0 Likes
1,574

Hi Krishna,

My Question is, to pass the input value to Conversion Routine i want to know in which language (TDSPRAS) the text is maintained in MD04

for ex: Material '1' has 'DE' in MD04 (in Text icon)

'2' has 'ES' in MD04 (in Text icon)

'3' has 'EN' in MD04 (in Text icon)

how do i get dynamically these values?

Regards,

Pavan

Read only

0 Likes
1,574

Find language from 'READ_TEXT' first and then pass this language to 'SAVE_TEXT'.

Regards,

Aparna.

Read only

0 Likes
1,574

Every Material text will contain one TdOBJECT name. (U can get from texts---Goto->Header).

Try to get it from Table STXH.

Regards,

Krishna.

Read only

0 Likes
1,574

Hi Krishna,

I have checked that, and passing the required values (objectname, object id, etc...) to FM. But when i compare the TDSPRAS in MD04 and DB table STXH it is different (TDSPRAS in MD04 is 'ES' where in STXH it is 'DE'). Thats the region the save_text is failing to save.

Kindly do the needful.

Regards,

Pavan

Read only

0 Likes
1,574

Hi Krishna,

any idea?? how to get the language maintained in MD04

Regards,

Pavan

Read only

0 Likes
1,574

If u wnat to save in spanish pass 'S' else if u want to save it in german pass 'D' to Function module.

From Save_text u are creating a entry in STXH.

Regards,

Krishna.

Read only

0 Likes
1,574

Hi Krishna,

i want to save the text with logon languge, but when i pass sy-langu to TDSPRAS and trying to save the text, it was not saving cause the TDSPRAS in MD04 is ES (spanish).

is there any table or FM to get the value of TDSPRAS in MD04?

Regards,

Pavan

Read only

0 Likes
1,574

If MD04 u r refering is Object name,

try to pass sylangu to routine and get single character value and populate in function module.

Regards,

Krishna.