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

Header text in Script

Former Member
0 Likes
1,489

Hi,

My SAP Script is maintained in English language. In one place, i have to read header text which is in portuguese.

I have used

INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID ZU04 PARAGRAPH HT

in script.

The text is read correctly which has maintained in English(other document no).

But the problem is with the text in portugese.

I can understand that it is because of Language conflict. But is there any solution to overcome this? My user wants that text should be displayed in Portuguese only and the script should be maintained in English.

Regards,

Priya

11 REPLIES 11
Read only

Former Member
0 Likes
1,230

Hi,

In SO10, maintain the standard text in portugese same as maintained for English.

and also pass the langauge parameter in the command as below:

INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID ZU04 LANGUAGE PT PARAGRAPH HT

PT => Portuguese

Let me know if anything is not clear.

Regs

Lokesh

Read only

0 Likes
1,230

Hi Lokesh,

Thanks for your reply.

The text hasnt maintained in SO10. It has maintained in Header text of billing document.

And i cant use the Language key in script editor, bcoz the same include is called for the text in english of other billing document.

My question is: How to call the header text irrespective of the language.

Pls reply.

Regards,

Priya

Read only

0 Likes
1,230

Sorry in a hurry i told you about SO10. My mistake..

Can you pls tell me the NAST-TDSPRAS value (In debugging) for you billing document?

and there must be some condition to select the Portuguese language text in your layout.. can you pls tell me that?

Regs,

Lokesh

Read only

0 Likes
1,230

Hello Lokesh,

The NAST-Spras is EN.

and there is no condition for portugese language.

I think I need to keep a condition befor the text.

correct me.

Regards,

Priya

Read only

0 Likes
1,230

There is only a way to call that PT text on your english layout is to put a condition.. Include command just works like read_text ..

So if you will not pass the langauge in the editor you will always get the ENGLISH text ...

For example ant specific document number u wud like to print the PT text

Even in editor you can write like this.

/: IF &CONDITION 1& = 'TRUE'  --> For PT
/: INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID ZU04 LANGUAGE PT PARAGRAPH HT
/: ENDIF

/: IF &CONDITION 2& = 'TRUE'   --> For EN
/: INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID ZU04 LANGUAGE EN PARAGRAPH HT
/: ENDIF

I think that should the way..

Regards,

Lokesh

Edited by: Lokesh Tarey on May 13, 2010 8:40 AM

Read only

0 Likes
1,230

Hi Lokesh,

Exactly the same way Im also thinking.

But if it is in portugese it would work fine,,say if they maintain some other text in some other language,,then the problem again will occur.

My question is how to retreive the language of the text maintained in header text.

/: INCLUDE &VBDKR-TDNAME& OBJECT VBBK ID ZU04 LANGUAGE PT PARAGRAPH HT

In the place of PT, if v pass some field,then the problem would be resolved.

Then what would be that field?

Pls let me know if u have any clue on this,,other wise no issues.

Rgs,

Priya

Read only

0 Likes
1,230

But the strange thing is that, How you ar deciding that which text has to be called..

1. Means if you give doc num 001, so it has to print the text in EN.

2. And if you give doc num 002, so it has to print the text in PT.

How your object came to know which to print???

For example there is a customer ABC belongs to Portuguese, in that case only you need to put the text in PT while whole documnet in English..

I think you need to consult this with your functional buddies so let you know about the condition.

I hope my suggestion helped you.

I any case you can still post again.

Regs,

Lokesh.

Read only

Former Member
0 Likes
1,230

While maintaining the Text in header text, the language should be selected as PT.

Try to execute the READ_TEXT in SE37 and see if you are getting SY-SUBRC = 0 when language is PT.

Read only

nirajgadre
Active Contributor
0 Likes
1,230

Hi,

Iif you have maintained the same text in portuguese language as well then use the parameter LANGUAGE in the include statement.

Read only

Former Member
0 Likes
1,230

Thanks Lokesh.

Read only

0 Likes
1,230

Hi Priya,

Did you got your issue resolved. If so, how?

RSTXT-TDSPRAS field contains the language in which the text is maintained.

May be you can put a check or condition on this field and display the corresponding texts accordingly.

Thanks,

Daya