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...

what is the button to change the variant in alv?

Answer Posted / k.nagalakshmi

It depend when these "specific circumstances" are occurring?

Before displaying the ALV, then force the value of the
variant used in set_table_for_first_display,

CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'SFLIGHT'
IS_VARIANT = GS_variant
I_SAVE = X_SAVE
CHANGING
IT_OUTTAB = GT_SFLIGHT.



If you want to simulate multiple "default variant" you
should "mislead" the ALV by changing the report name used
for storing variant (IS_VARIANT-REPORT) But in this case
you will no longuer see every variant when in the ALV, only
those of the "report name" passed when setting for first
display.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What two statements are required in an abap program to output an icon using a write statement?

922


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?

1414


How do you differentiate tax for different countries? : sap abap hr

1129


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

1013


How do you Export a session ?

1840


What are the differences between table controls and step loops?

1065


foreign key enforcement?

2009


How many lists can a program can produce?

1004


Explain the difference between a pool table and a transparent table?

964


What data is contained? : abap data dictionary

1061


In order to upload purchase order details, how you handle multiple values for a single field?

917


Business scenarios related to your objects( In my case -Rulebook and Pricing work flow)

1251


What is open sql vs native sql ?

2546


If I forgot some command in sap script e.g.: Suppress zero display – how to do find it?

942


Control Break statements- At new...endat.

1343