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 / prakash rao

built three diffrent filedcatlogs for three diff conditions
and display output.

if cond x.
perform buildcat1.
perform alv display1.

elseif cond y 

perform buildcat2.
perform alv display2.

elseif cond z.
perform buildcat3.
perform alv display3.
endif.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of 'table index'?

623


Can we create field without data element? If yes, how?

689


What are null values?

594


How do you restrict the data to be entered in the payroll area? : sap abap hr

524


What are the basic objects of the data dictionary? : abap data dictionary

605






how can we enable hyperlink in screen painter?

3372


What is payroll area

1808


What is transparent table?

592


Explain the properties of selection screen?

641


What is an Unpack command?

629


What is the function of a data element? : abap data dictionary

575


There is a situation where there is a field "MATERIAL DESCRIPTION" in say 20 display only transaction. You want that whenever user opens any of these transaction, this particular field is masked with ****. But table does not holds ****. It holds the actual value. What are different ways of doing it? Which is the best way.

919


What are the page windows?

544


what are the various types of parameters and how are they distinguished from one another?

719


What are the data classes in abap?

601