‎2007 Oct 23 7:05 AM
hi experts,
plz help me to sort out the answer of the following question ?
1)what is the button to change the variant in alv?
2)in start of selection if we perform validation ,what happens?
‎2007 Oct 23 7:08 AM
Hi
in ALV output on the menu towards the last you will find a button related to ALV CHANGE LAYOUT such that you will display the fields as per your order of sequence
This is user specific
Nothing will happen if you validate the fields in Start of selection
But it is good practice to validate the selection screen fields in the event AT selection screen itself
Regards
Anji
‎2007 Oct 23 7:08 AM
Hi
in ALV output on the menu towards the last you will find a button related to ALV CHANGE LAYOUT such that you will display the fields as per your order of sequence
This is user specific
Nothing will happen if you validate the fields in Start of selection
But it is good practice to validate the selection screen fields in the event AT selection screen itself
Regards
Anji
‎2007 Oct 23 7:11 AM
1) use:
x_save = 'X'.
gs_variant-report = sy-repid.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_STRUCTURE_NAME = c_tabname
IS_VARIANT = gs_variant
IS_layout = lay
I_SAVE = x_save
TABLES
T_OUTTAB = gridtab
EXCEPTIONS
OTHERS = 1.2) better mak validations on input-fields at event:
at selection-screen...
A.
‎2007 Oct 23 7:12 AM
Hi Ravi,
1. Use LAYOUT button
2. Validation in Start of Selection : If we raise an error message after a validation fails, then user is redirected to selection screen of the program.
Best regards,
Prashant
‎2007 Oct 23 7:20 AM
Hi Ravi,
Solutions :
1. Using ALV layout.
2. If user enter wrong values at selection screen.
It would not restricted to selection screen. Compiler would go into start of selection and it would not stop processing.
thaty validation are always done at <b>at selection screen event.</b>
Reward pointsif helpful.
Regards,
Hemant