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

Need to hide the field based on input to other field on screen

Hi All,

I enhanced the std. infotype 1029.Now I need to display one custom field only if another custom field (check box) is enabled, otherwise no.

I tried writtinf code in PBO of ZP102900 in subscreen 0200.

loop at screen.

if screen-name = 'fld1'.

if 'fld1' = 'X'. -


>if chk box is selected then it shud display the fld2 on the screen along with fld1

screen-name = 'fld2'.

endif.

endif.

endloop.

But no results:-(

Can you please help me out in this ASAP.

Thanks in advance.

Regards,

Ashwini

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 14, 2010 at 09:07 AM

    The logic should be something like this.

    LOOP AT SCREEN.
      CASE SCREEN-NAME.
        WHEN 'FIELD2'.
          IF FIELD1 = 'X'.
            SCREEN-ACTIVE = 1.
          ELSE.
            SCREEN-ACTIVE = 0.
          ENDIF.
          MODIFY SCREEN.
      ENDCASE.
    ENDLOOP.
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2010 at 04:38 AM

    Solution is updated in teh post msg.

    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.