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

How many tables are there in sap?

1085


Difference between function group and function module?

1150


after creating lock object if does n't access record by second user what should we do?

1962


What are the different abap/4 editors?

1022


what are the critical issues u face in ur project?

2517


What is the use of info groups? : sap abap hr

1007


What is the function of the transport system and workbench organiser? : abap data dictionary

1036


What is the significance of delivery class?

1014


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?

1436


What is table attribute? : abap data dictionary

1015


Why do we use types statement in abap programming?

1125


On ABAP, Did you set up a workflow? Are you familiar with all steps for setting up a workflow?

1034


Have you set up a back ground job? How to create a background job without a variant ? : abap bdc

1045


How the Sy-Mandt value gets updated in the table and Is this having any foreign key relationship.

2346


What is Buffering Concept? When should a Table be buffered?

12872