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

Explain the difference between tables and structures?

477


please any one can tell me How to validate the data in Table maintinance generator?how can u validate the table field values if u r entering the data into fields .it shows record is wrong?wher we can done validation in table maitenance generator before getting the data as out ?

1576


What are the fields in the memory table ‘screen’?

581


what will happen if called program is not executable ?

1697


In se11 -->Tech. settings --> Data class. If I save table as Mater data OR Transaction data, what effect will it has for 'Storage' in Database after activation. or In Database how it will store in both the cases.

2109






How do you execute the payroll

2096


What is the disadvantage of a call by reference?

634


What are the basic object types? : sap abap hr

621


What are the types of data types in the sap abap?

472


What is the significance of delivery class? : abap data dictionary

570


How does the interface between the dynpro and the abap/4 modules take place?

553


In delivery processing which step comes first picking, packing, posting goods issue ?

1625


What are internal tables? : abap hr

560


What is a fall back class?

1015


What are the client dependant objects in abap / sap?

531