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

how to use Okcode in subscreens

Hi All,

In a dialog programm, I have one main screen and 2 subscreens.

One of the subscreens has 2 radiobuttons and a inputfield.

My requirement is:

When the user selects the first radio button, the input field must be made inactive. And on clicking the second radio button it must be made active.

This can be done using CASE .... ENDCASE for okcode, and LOOP AT SCREEN within one of the case.

The problem is : we can't create a okcode element within a subscreen.

Please give me a idea , how to go abt this.

Regards,

Vijay

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2007 at 04:53 AM

    HI

    You would have to use the ok code assigned to the main screen. You can code for your requirement using the same. For ex, as per your requirement::

    if ok_code = <field name>

    <code>

    endif.

    Hope this helps...

    Dinesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 08, 2007 at 11:24 AM

    Hello,

    In the screen painter you define a group and assign the two radio buttons to it. path: edit->grouping->radio button group->define. assign a function code to this radio button group.

    Now you can check for this sy-ucomm = <function code radio button>

    if r1 is triggered you use the" loop at screen" to deactivate the input field.

    Rgds,

    JP

    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.