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

How can we handle table control in bdc? : abap bdc

605


What happens if we use leave to list-processing without using suppress-dialog?

706


Can we control the sequence in which multiple implementations of a multiple use BADI are called? If yes, how?

922


What are the aggregate objects in the dictionary? : abap data dictionary

755


What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why? : abap modularization

624






Explain the difference between call screen and leave screen?

609


What does the extract statement do in extract datasets? : abap modularization

569


What is the difference between a structure and a table?

559


When a program is created and need to be transported to prodn does selection texts always go with it? If not how do you make sure? Can you change the cts entries? How do you do it?

576


Did you use buffering?

608


What is the use of message command in a report? What are the different message types?

558


I just wanted to know that when I am recruiting somebody, I am generating his personal no also. Then I want to give him training also. Now I just want to create 2 scenarios to clear my doubts? : sap abap hr

581


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

545


When will the current screen processing terminates?

559


In BDC, data transfer is done success in foreground mode but if we done the same in background mode it shows errors. What is the reason?

988