on 07-26-2007 10:58 AM
Hello All,
My Requirement is like this :
1. I have a Selection Screen Parameter for language p_spras.
2. I'll use the logic as per my reuirement and get the Suppliers and thier details.
3. This supllier has a language.
4. Now the Output of my Program is a letter to the Supplier with some Standard texts .
5. What's my problem is the printing of the standard texts.
6. While executing the Include of my STandard Text in the Form I need to check whether the text exists for that language which I pass thru &p_spras& .
7. If the text is not there then I have to print the text in English i.e I need to make p_spras as 'EN'.
8. Can any one tell me how to check whether the text is there in the particular language ?
IN which table shud I check and How shud I proceed ?
I hope i'm clear in Explaining my problem.
Regards,
Deepu.K
If you want to read header text you can use
ALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'Z040'
LANGUAGE = p_spras
NAME = <textname>
OBJECT = 'VBBK'
TABLES
LINES = i_tlines_r
If you want to display in SAP script then do it like this
In the desired window
INCLUDE &Textname& OBJECT TEXT ID ADRS LANGUAGE &p_spras&
IF SY-SUBRC NE 0.
INCLUDE &Textname& OBJECT TEXT ID ADRS LANGUAGE EN.
ENDIF.
Standard text are maintained in SO10 Tcode.
Regards,
Sairam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sai,
I'm actually looking for this type of solution.
I want to check in my script only.
U said :-
<i>In the desired window
INCLUDE &Textname& OBJECT TEXT ID ADRS LANGUAGE &p_spras&
IF SY-SUBRC NE 0.
INCLUDE &Textname& OBJECT TEXT ID ADRS LANGUAGE EN.
ENDIF.</i>
What Does the above sy-subrc check ?
Willl it check the content of the include if present or not ?
will sy-subrc work in scripts ?
if yes can u tell me the exact syntax ?
Regards,
Deepu.K
Hi
I suggest that it is better to maintain the Std texts in different languages in SO10 transaction
and check the table <b>STXH</b> for the TEXT ID and LANGUAGE fields and put a condition to display the proper lang related text
<b>Reward points for useful Answers</b>
Regards
Anji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use the FM: READ_TEXT with the particular language key. THe return parameter will tell you if the text is present or not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.