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 is the max no of match code id's that can be defined for one match code object? : abap data dictionary
What is view proxy in abap?
what is 3 tire architecture and how does SAP utilizes this architecture. and how do netweaver came into picture?
What are the differences between a database index and a match code?
What is the difference between collect and sum?
What is the collect statement? How is it different from append?
How can we handle table control in bdc? : abap bdc
While sorting field groups we cannot use more than one key field. State true or false. : abap modularization
What are the basic functions of database utility? : abap data dictionary
In which time constraint does the infotype records depend on the subtype ? : abap hr
How can we create callable modules of program code within one abap/4 program?
What are the differences between session method and call transaction method? : abap bdc
Explain how to write a bdc - how do you go about it?
What is synchronous update?
Define database layer?