Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / ambareesh.j28

Everything what you asked for lies in the field catalog. Let us assume there are totally 7 fields (A to G) , and 3 conditions (X,Y,Z). So your code should be something like this:

If X, Pass A,C,D fields to field catalog.
elseif Y, Pass B,C,G fields to field catalog.
elseif Z, Pass E,F,G fields to field catalog.
endif. 

Use the function modules REUSE_ALV_LIST_DISPLAY / REUSE_ALV_GRID_DISPLAY to execute the output and view it. 

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between synchronous and asynchronous update?

1111


What is the use of abap data dictionary? : abap data dictionary

1067


Rp_provide_from_last contains how many parameters ? : abap hr

1519


In an abap/4 program how do you access data that exists on a presentation server vs on an application server?

1217


How can a lock object be called in the transaction?

1035


What data is contained? : abap data dictionary

1136


The extract statements in field groups can be used before or after processing the sort statements. State true or false. : abap modularization

1046


What was the requirement of IDoc in your project? How it was working?

2051


What are the uses of secondary indexes?

1130


Explain what are the problems in processing batch input sessions?

1094


Difference between call by value and call by reference? : abap data dictionary

1100


What are the disadvantages of logical databases?

1235


What is the functionality of BIZTALK and how it handles the IDOC’s and how u will transfer the IDOCS to the BIZTALK ?

2724


Can we handle two transaction codes in the same program using call transaction bdc input method? : abap bdc

1267


What does a lock object involve?

1196