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

dynamically checking of parameter

i have one text field (parameter) i want when i execute the report that field cannot be left empty using obligatory will not serve purpose as i want to check only when i execute the report. is there any way please help

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2007 at 05:46 AM

    Hi Bhupender,

    I didn't understand ur question...Plz post it again mentioning what the problem is ?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi, 😊

      ----


      • AT SELECTION-SCREEN *

      ----


      AT SELECTION-SCREEN.

      *-----If no value has been entered.

      IF p_vbeln IS INITIAL.

      MESSAGE text-002 TYPE 'E'.

      ENDIF.

      Bhupinder, this should solve your query.

      This is the solution to your query.

      Reward Points.

      Thanks,

      Tej..

  • Posted on Jun 13, 2007 at 05:44 AM

    START-of-selection.

    if sy-ucomm = 'ONLI'.

    if p_field is initial.

    message 'Please enter value for field XXX !' type 'I'.

    endif.

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2007 at 05:44 AM

    Hi

    Write the validation of rthat field in start-of-selection

    declare that field as

    paramters: p_bukrs like t001-bukrs.

    start-of-selection.

    if p_bukrs is initial.

    message e000 with 'Enter company code field'.

    endif.

    Reward points for useful Answers

    Regards

    Anji

    Message was edited by:

    Anji Reddy Vangala

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2007 at 05:48 AM

    Hi Bhupinder, 😊

    AT SELECTION-SCREEN.

    In this event the key field obligatory gets checked before the program gets executed so use obligatory inside the AT SELECTION-SCREEN event and this should solve your query.

    Reward Points if useful.

    Thanks,

    Tej..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2007 at 06:06 AM

    CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Look at this piece of code..

      ----


      • SELECTION-SCREEN *

      ----


      SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

      PARAMETERS: p_vbeln LIKE vbrk-vbeln.

      SELECTION-SCREEN: END OF BLOCK b1.

      ----


      • AT SELECTION-SCREEN *

      ----


      AT SELECTION-SCREEN.

      *-----If no value has been entered.

      IF p_vbeln IS INITIAL.

      MESSAGE text-002 TYPE c_error.

      ENDIF.

      Thanks,

      Tej..

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.