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
Did you use buffering?
How many types of size categories and data classes are there?
Explain buffering
Do you know any other patterns if yes.. explain
What is pakey structure, pshd1 structure and what type of fields it contains? : abap hr
Does the external program run in the same sap luw as the caller, or in a separate one?
What is help view?
Define database layer? : abap data dictionary
Explain about Recording Function?
What is a variable in the sap abap?
What is meant by authorization? : sap abap hr
What are the events we use in dialog programming and explain them?
If I have put commit in badi implementation class after update, is it allowed? Also if some standard functionality already implemented an update and now i m doing update and if it fails, what will be the impact of commit?
Tell me a scenario where did you use secondary index?
How do you delete duplicate records from internal table?