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 / prakash235

you can bulid three diffrent catlogues for three conditions.

as 

if cond x.
perform build_cat1.
perform alv_display1.

elseif cond y.
perform build_cat2.
perform alv_display2.

elseif cond z.
perform build_cat3.
perform alv_display3.
endif.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abap work bench?

724


Some Realtime Objects on Bdc.

2423


How do you do bdc for a table control? : abap bdc

647


How did you transfer legacy data in the mid of the financial year (us) to the sap system? : sap abap hr

536


What is PS structure

1622






It is not possible to create an abap/4 program, which contains only subroutines. State true or false. : abap modularization

700


Explain different types of locks?

558


What is the difference between select statement and provide statement ? : abap hr

564


How to display if the value entered contains records or not?

581


What is the use of dequeue function module? : sap abap data dictionary

598


What do you understand by work area and internal tables in abap? Why do we use it?

606


Explain the disadvantages of logical databases?

542


What are internal tables? How to use a specific number occurs statement?

562


What is the use of buffering?

566


What is an abap data dictionary? : abap data dictionary

600