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

Difference between top-of-page and top-of-page during at line- selection?

2393


How many structures can be created in a Ztable ?

3669


Explain what is the difference between sy-tabix and sy-index? Where it is used?

1095


What is the difference between skip and new-line?

1373


What are the rules to create a BAPI?

1703


How many ways can a sap system be accessed?

1295


While using extract datasets it is required to have a special workarea for interface. State true or false. : abap modularization

1163


What is screen flow logic? What are the sections in it?

1303


How do you move on to the next screen in interactive reporting?

1227


Why lsmw does not support call transaction method? : abap bdc

1158


What are the different abap editors? What is the used of different editors in abap?

1096


What is repository info. Systems?

1152


What are the differences between domain and data element?

1130


What is a table attribute?

1111


Setting up a BDC program where you find information from?

1265