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 are the two methods of modifying sap standard tables ?

658


What is the difference between dialog program and a report?

698


Can we set page headers to details lists?

661


How do you execute the payroll

2200


What are the various types of selection screen event?

658






What are conditional chain statement?

832


What is step-loop? Explain all the steps?

631


How can I get ascii value of any letter? Is there any function?

758


Explain what is a logical database?

690


what is 3 tire architecture and how does SAP utilizes this architecture. and how do netweaver came into picture?

1837


How many main windows will be there in a page window?

654


How can we create callable modules of program code within one abap/4 program?

720


What is abap dictionary or data dictionary? What is the transaction to access abap dictionary? : abap data dictionary

655


How you attach search help to data element? : sap abap data dictionary

788


How can we omit a leading sign and a leading zero in sapscript?

696