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

Sourcetable for text elements

Former Member
0 Likes
597

Hi there, could You tell me which table keeps application texts?

I've got such problem, that I'd like to determine text language by code, so for example:


IF ( condition1 ) .
  text-001 will be taken in language A .
ELSEIF ( condition 2 ) .
  text-002 will be taken in language B .
ENDIF .

I tried


IF ( condition1 ) .
  langu = 'A' .
ELSEIF ( condition 2 ) .
  langu = 'B' .
ENDIF .

but it has no effect, because when sy-langu in one line is set to new value ... in the next line in debuger it takes the old value

So maybe I could ... SELECT texts directly from database with language key, according to some code-condition ... is it make any sense?


DATA: langu LIKE sy-langu .

IF ( condition1 ) .
  langu = 'A' .
ELSEIF ( condition 2 ) .
  langu = 'B' .
ENDIF .

SELECT text FROM text_table WHERE language = langu .

Which table are text kept in? I'd be thankful for some tip, greetings. P.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
566

Hello,

You mentioned that tryed to change sy-langu, I think it is not possible.

just case sy-langu and write the text you need.

I hope this was helpful.

Bye

Gabriel P-.

4 REPLIES 4
Read only

Former Member
0 Likes
566

HI,

Use this Statement to get the text elements of the program..

READ TEXTPOOL prog INTO itab LANGUAGE lang.

For more help press F1.

Read only

Former Member
0 Likes
567

Hello,

You mentioned that tryed to change sy-langu, I think it is not possible.

just case sy-langu and write the text you need.

I hope this was helpful.

Bye

Gabriel P-.

Read only

Former Member
0 Likes
566

check with table.

CIFTXTPOOL - Table for Storing Additional Integration Model Texts

Regards,

Krishna

Read only

0 Likes
566

Krishna Gowrneni

CIFTXTPOOL No such table in our SAP 4.6 C