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

read_text in language?

Former Member
0 Likes
2,679

Hi abapers,

  i have created 2 texts with same id ,object and Name with different language (english(EN) & spanish(ES).

In fm read_text : language has single character so while passing ES its taking 'E' and displaying in English text..i want display text in Spanish when i pass ES. how can i achieve this .Please guide me

1 ACCEPTED SOLUTION
Read only

rosenberg_eitan
Active Contributor
0 Likes
1,437

Hi,

Have a look at table t002 (se11)

Field SPRAS is using Data element SPRAS .

Data element SPRAS is using Domain SPRAS .

Domain SPRAS use Conversion Routine ISOLA .

Here are the functions that implemnent Conversion Routine ISOLA .

CONVERSION_EXIT_ISOLA_INPUT    Convert two-digit ISO language -> one-digit SAP language key

CONVERSION_EXIT_ISOLA_OUTPUT   Convert One-digit SAP Lang. Key to Two-digit ISO Lang. Key

  

Regards.

Hi abapers,

  i have created 2 texts with same id ,object and Name with different language (english(EN) & spanish(ES).

In fm read_text : language has single character so while passing ES its taking 'E' and displaying in English text..i want display text in Spanish when i pass ES. how can i achieve this .Please guide me

2 REPLIES 2
Read only

Former Member
0 Likes
1,437

Hi Balaji

Use the ISO value from table T002 (Languages).

Read this table with your 2 Character value for 'ES', this should then return the single character value you require.

You can then use this to pass to the Function Module

Regards

Arden

Read only

rosenberg_eitan
Active Contributor
0 Likes
1,438

Hi,

Have a look at table t002 (se11)

Field SPRAS is using Data element SPRAS .

Data element SPRAS is using Domain SPRAS .

Domain SPRAS use Conversion Routine ISOLA .

Here are the functions that implemnent Conversion Routine ISOLA .

CONVERSION_EXIT_ISOLA_INPUT    Convert two-digit ISO language -> one-digit SAP language key

CONVERSION_EXIT_ISOLA_OUTPUT   Convert One-digit SAP Lang. Key to Two-digit ISO Lang. Key

  

Regards.