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 will happen when we use single buffered selected?

632


How do you populate data into a multiple line field? : abap bdc

624


how to create view in bdc..??

2333


Give Some examples of reports generated in real time scenarion? Also give examples of standard reports in SAP used in real time?

2330


Explain what are the events used in interactive reports?

498






Suppose there is check box along with the rows. The requirement is, select the require check boxes and press a used defined button to save all these checked row data to another table. How can you do it?

1628


Did you create primary index?

550


What is off cycle payroll run

1792


when run my program in se38 it was showing output, when i take background execution and giving printer details it was shoing out put. but in SP01 when i give the Spool Request Number it was showing not yet processed entire page why it happens i dont know please give me a solution.

2085


What are the check tables and value tables?

632


Which type of tables used this buffer?

613


What is sap locking?

601


What is an abap?

564


What is the maximum number of match code id's that can be defined for one match code object ?

549


Does the external program run in the same sap luw as the caller, or in a separate one?

659