Application Development 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: 

French text in SET_MEDIUM_TEXT method of class CL_SALV_COLUMN_TABLE

VijayaKrishnaG
Active Contributor
0 Kudos

Hi Experts, Good Day.

I have developed an ALV Grid using class CL_SALV_TABLE and I need the headings in both English and French with respective to active login language. When I am setting the medium text of columns using method SET_MEDIUM_TEXT of class CL_SALV_COLUMN_TABLE, the French text is not accepting and I am getting a sytax error like

The literal "'numéro de demande d achat'" is not type-compatible with

the formal parameter "VALUE".'

So, can you guys help or suggest me what to do for getting column heading in French language by using same method SET_MEDIUM_TEXT().

Thanks in Adv.

-Vijay

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Vijay,

Can you try to set the value less then 20 char. As the maximum length for SET_MEDIUM_TEXT is 20.

Hope this helps.

Regards,

Supratik

6 REPLIES 6

Former Member
0 Kudos

Hi Vijay,

Can you try to set the value less then 20 char. As the maximum length for SET_MEDIUM_TEXT is 20.

Hope this helps.

Regards,

Supratik

Former Member
0 Kudos

You can also pass the text in SET_LONG_TEXT() if the text cannot be cut short.

former_member215344
Contributor
0 Kudos

Hi Vijay,

You can create a text symbol for this and then create a translation for the text symbol. You can pass this text symbol in the method SET_MEDIUM_TEXT.

For info on how to translate text see the thread:

http://scn.sap.com/thread/1381277

Thanks,

Ajay

raymond_giuseppi
Active Contributor
0 Kudos

Use a shortest text (max is 20) why did you not use standard data element texts from ddic  ("Demande d'achat" in french)  here you used the "short description" and not one of the "field labels" ?

When you get this kind of error, always look at the parameters definition and length.

Regards,

Raymond

hiriyappa_myageri
Participant
0 Kudos

Hi Vijaya,

Check the length and data type parameters of method SET_MEDIUM_TEXT().

Regard's,

Hiriyappa

Former Member
0 Kudos

Regard's

Smruti