09-23-2013 9:06 AM
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
09-23-2013 9:14 AM
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
09-23-2013 9:14 AM
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
09-23-2013 10:06 AM
You can also pass the text in SET_LONG_TEXT() if the text cannot be cut short.
09-23-2013 10:12 AM
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
09-23-2013 10:16 AM
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
09-23-2013 10:16 AM
Hi Vijaya,
Check the length and data type parameters of method SET_MEDIUM_TEXT().
Regard's,
Hiriyappa
09-23-2013 10:21 AM