cancel
Showing results for 
Search instead for 
Did you mean: 

HTML Template language specific output

henning_abel
Participant
0 Kudos

Dear HTML Business gurus,

In SRM 5.0 in a Z-HTML template I'd like to have the output in German or English whatever the user's language is.

So far the coding looks like that (ONLY German):


`if ((REQUEST-LINES.value != "0") && (REQUEST-LINES.value != ""))`

`BBPGroupBegin()`


`TABLECUST(class="list", title=" ", width="20%")`

`TR(tableName="Anfragen")`

`TR(class="heading")`

`TD(nowrap="x", width="60%")` `"Einkaufsbeleg"`

What I want to do is if the system language is English...the output for

`TR(tableName="Anfragen")`  should be `TR(tableName="RfQs")`

`TD(nowrap="x", width="60%")` `"Einkaufsbeleg"` should be `TD(nowrap="x", width="60%")` `"Purchasing document"`

I'm not so familiar with HTML Business coding. ABAP coding like below does not work:

if sy-langu = 'D'.

`TR(tableName="Anfragen")`

else.

`TR(tableName="RfQs")`

I hope someone can give me a hint how to do the language "if else condition" in HTML.

Thanks and best regards,

Henning

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member194364
Active Contributor
0 Kudos

Hello Henning,

The following SAP HELP link might be useful to you here:

Developing IACs with the Integrated SAP ITS

Under the "HTMLBusiness Language Reference -> HTMLBusiness Statements -> if Statement"

OR go directly to it

if Statement

Regards,

Oisin