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

Making field obligatory(conditional)

hi all,

i neeed to make on field mandatory dependending on

weather a check bbox is checked.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 28, 2008 at 12:05 PM

    I think you have to handle this thru Error message .

    If Check box is checked .

    then check for the field which u need mandatory .

    IF Initial then throw an error message and set the curson on the field.

    otherwise make to diff screen which can be operated(hide and unhide) depends upon u r check box value.

    Rewards if u find useful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 28, 2008 at 12:05 PM

    Loop at screen.

    if p_chk = 'X'.

    if screen-name = 'P_PERNR'.

    screen-required = 'X'.

    modify screen.

    endif.

    endif.

    endloop.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 28, 2008 at 12:06 PM

    Hi,

    you can do it in event.

    at selection-screen output.

    loop at screen.

    check if checbox is checked or not and then depending upon that.

    IF screen-name = '<fieldname in caps>'.

    screen-required = 1.

    MODIFY SCREEN.

    ENDIF.

    regards,

    sudha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 28, 2008 at 01:05 PM

    Hi,

    Use below code.

    parameters: p_check as checkbox,

    p_name(20), P_name1(30).

    at selection-screen output.

    loop at screen.

    if p_check = 'X'.

    if screen-name = 'P_NAME'.

    screen-required = '1'.

    endif.

    endif.

    modify screen.

    endloop.

    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.