Based on certain condition how can we show different columns in output of ALV?? For Ex if Condition A is met we need to show 1 5 and 7 column , If condition B is met we need to show 1 2 and 4 and if condition C is met we need to show 1 3 and 6.
Answer Posted / ambareesh.j28
Everything what you asked for lies in the field catalog. Let us assume there are totally 7 fields (A to G) , and 3 conditions (X,Y,Z). So your code should be something like this:
If X, Pass A,C,D fields to field catalog.
elseif Y, Pass B,C,G fields to field catalog.
elseif Z, Pass E,F,G fields to field catalog.
endif.
Use the function modules REUSE_ALV_LIST_DISPLAY / REUSE_ALV_GRID_DISPLAY to execute the output and view it.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
The loop-endloop on extract datasets can be used without any kind of errors. State true or false. : abap modularization
What is the use of the statement leave to list-processing?
When, how and how would you control changes to standard SAP objects.
What is a collect statement?
Name some data dictionary objects?
How can we set the table spaces and extent sizes? : abap data dictionary
What is a type-pool?
What is generic area buffering in abap?
What is the use of abap data dictionary? : abap data dictionary
Define batch input session?
Explain how do you use structures in the abap programs?
What is abap?
What is difference between float and packed data type?
What data is contained in data dictionary? : abap data dictionary
What is off cycle payroll run