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

Dialog Programming

Hello folks,

Here is my requirement.

If field1 is '01' then gray out field2 and field3 else if field1 is '02' then edit the fields field2 and field3 for the user to enter some values.

I had coded the logic in PBO for the above requirement.

Now if the field1 is '02' then field2 and field3 can not be empty.

For this I am giving an error message coded in PAI.

My problem here is when the error message is displayed the fields field2 and field3 are grayed out. But I want those 2 fields to be displayed for input even after the error message. I will post the logic in my next message.

Thanks,

Naren

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Aug 15, 2005 at 09:13 PM

    Use ON CHAIN INPUT for the 3 fields.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 15, 2005 at 07:57 PM

    PBO logic

    -


    if vbap-zv_wc_product = '02'.

    loop at screen.

    case screen-name.

    when 'VBAP-ZV_NC_RCODE'.

    screen-input = '1'.

    modify screen.

    when 'VBAP-ZZV_NC_RCODE_DET'.

    screen-input = '1'.

    modify screen.

    when others.

    • do nothing

    endcase.

    endloop.

    else.

    *disable the fields if the waived charged product is not equal to '02'

    loop at screen.

    case screen-name.

    when 'VBAP-ZV_NC_RCODE'.

    screen-input = '0'.

    modify screen.

    when 'VBAP-ZZV_NC_RCODE_DET'.

    screen-input = '0'.

    modify screen.

    when others.

    • do nothing

    endcase.

    endloop.

    endif.

    endif.

    PAI logic

    -


    *NCR code and NCR detail should not empty when the charge product

    *is equal to 02

    if vbap-zv_wc_product = '02' and

    VBAP-ZV_NC_RCODE is initial and

    VBAP-ZZV_NC_RCODE_DET is initial.

    message e206(zsd).

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 15, 2005 at 08:02 PM

    use on-input event for field2 and field3. this will make the field2 and 3 turn on in turns. an example code will be like this.

    FIELD field2 MODULE chk_field2 ON INPUT.

    FIELD field3 MODULE chk_field3 ON INPUT.

    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.