Skip to Content


dump for lv_layout-expand_fieldname = 'EXP'.

what should i pass to alv?

An exception has occurred in class "CX_SY_DYN_TABLE_ILL_COMP_VAL". This exception was not caught in procedure "FB_OUTTAB_SORT2" "(FORM)" or propagated by a RAISING clause. Since the caller of the procedure could not have anticipated this exception, the current program was terminated. The reason for the exception occurring was: The reason for the exception is: There is an invalid value in table "\FUNCTION-POOL=KKBL\FORM=FB_OUTTAB_SORT2\DATA=LT_SORTBYTAB", row 1, component "NAME". In the present case, the condition flagged below has been violated: (" ") Addition AS TEXT can only be used for character type fields.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 24, 2020 at 06:11 AM

    Hello nick ruju

    As mentioned earlier, it would be a lot easier to find the issue if you had attached the images of the short dump and your code (formatted using the "Code" feature of forum editor). Right now it's guessing based on what you provided.

    My guess would be - you have some sorting set, this sorting is incorrect in some way. This may be related to the NAME column or to addition "AS TEXT" in relation to a non-text field.

    But that's just a guess.

    Kind regards,
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 23, 2020 at 09:08 AM


    try passing field name in CAPS, some cases we face this issues though it is not case sensitive.

    and check the link - field catalog in ALV

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 23, 2020 at 08:16 AM

    The fieldname EXP is numerical ?

    Add a comment
    10|10000 characters needed characters exceeded

    • Well, there's no official guideline about what means voting, so it's up to anybody to choose what means "good or bad". Worth noting, there's this sentence from Gabriella Gogl-Gyorgy about the intention of SAP concerning the SAP Community voting feature: "We’d also like to provide an opportunity for good answers climb to the top. As a general community member you can help decide whether an answer is useful or not and vote it up or down. Items having the most votes will appear on the top to help us to find information faster."

      What is important is to have the most interesting answers at the top (even if the top answer has -1 vote, and other answers have -2). The most important thing is to have many voters, no need to understand the reasons of people to vote +1/-1 (unless the concept of the vote is misunderstood). It's like democracy. If people want an answer to appear at the top, they will upvote it. It isn't fair to condemn the only person who voted. Why not complaining about the persons who don't vote, or about upvoting low-quality answers, etc. Hopefully, it's not an actual topic because it has no actual interest (I'd be happy if the vote system is removed, for now I use it because it's how the SAP Community Q&A currently works).

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.