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
Explain what are the system fields? Explain?
What are the function modules used in a sap script driver program?
Does every abap/4 have a modular structure? : abap modularization
What are the user interfaces of interactive lists?
What is an abap dictionary? : abap data dictionary
How can we declare a table control in the abap/4 program?
What is the use of table maintenance allowed?
What is PS structure
What is search help exit? : sap abap data dictionary
Difference between sy-tabix and sy-index? Where it is used? Can you check sy-subarc after perform?
What are the events in screen programming?
what next in SAP-ABAP/4 is it going to be change?
When the get cursor command used in interactive lists?
How many types of size categories and data classes are there? : abap data dictionary
how to read the standard field value in your custom program.