Skip to Content
author's profile photo Former Member
Former Member

validating entries in selection screen online/background

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 17, 2006 at 10:14 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 10:24 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.