Skip to Content

French text in SET_MEDIUM_TEXT method of class CL_SALV_COLUMN_TABLE

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2013 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2013 at 09:06 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 23, 2013 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 23, 2013 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 23, 2013 at 09:16 AM

    Hi Vijaya,

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

    Regard's,

    Hiriyappa

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2013 at 09:21 AM

    Regard's

    Smruti


    s1.png (45.0 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.