Application Development 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: 

validating entries in selection screen online/background

Former Member
0 Kudos

Hi,

i need to validate entries entered in selection screen . im able to do the validation when the user executes the report online.

however, i need to execute this logic when the user selects 'execute report in background' option ,what should be my approach.

BR,

ravi.

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Take the following example, if user tries to run in background using the mentioned method, user will still get the message . Use the AT SELECTION-SCREEN for validations



report zrich_0001.


parameters: p_check type c.

at selection-screen.

    if p_check is initial.
        message e001(00) with 'P_CHECK is initial'.
    endif.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi Ravi,

1. To do any specific validation when you are running in Batch only, you can use the <b>SY-BATCH</b> field.

eg;

If not sy-batch is initial.

Perform background_validation.

Endif.

Hope this helps.

Regards