Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding some basic question

Former Member
0 Likes
562

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
544

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

4 REPLIES 4
Read only

Former Member
0 Likes
545

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

Read only

andreas_mann3
Active Contributor
0 Likes
544

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.

Read only

Former Member
0 Likes
544

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

Read only

Former Member
0 Likes
544

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