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

where are the passwords for ITS stores?

1816


What is going life actually? What is the role of a functional consultant in it? : sap abap hr

755


Where do you code the hide statement?

751


What is the process to enhance the Infotype

3089


A field-groups statement or an insert statement reverses storage space and transfers values. State true or false. : abap modularization

774


What are the different types of laws. What are they?

775


What are data classes? What are the various data classes available for selection? : abap data dictionary

744


Difference between .Include and .append?

931


What is buffering in abap?

847


What are types of select statements?

775


Define abap/4 layer?

992


What are the two ways for restricting the value range for a domain ?

924


How to transfer data into line items using batch input session method? : abap bdc

776


What are the different window types in sapscript?

750


what is abstract classes

1051