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
What two statements are required in an abap program to output an icon using a write statement?
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?
How do you differentiate tax for different countries? : sap abap hr
What does the insert statement in extract datasets do? : abap modularization
How do you Export a session ?
What are the differences between table controls and step loops?
foreign key enforcement?
How many lists can a program can produce?
Explain the difference between a pool table and a transparent table?
What data is contained? : abap data dictionary
In order to upload purchase order details, how you handle multiple values for a single field?
Business scenarios related to your objects( In my case -Rulebook and Pricing work flow)
What is open sql vs native sql ?
If I forgot some command in sap script e.g.: Suppress zero display – how to do find it?
Control Break statements- At new...endat.