Skip to Content

Dialog Program

I am working on a dialog program. On the screen 100 i have 6 push buttons and a tables.

if the user click one push new screen 200 should be displayed...how can i do that...

module user_command_0100 input.

case sy-ucomm.
when 'N'.
message i029(ys) with text-001.
call screen 200.
when 'S'.
message i029(ys) with text-002.
when 'C'.
message i029(ys) with text-003.
when 'A'.
message i029(ys) with text-004.
when 'T'.
message i029(ys) with text-005.
when 'D'.
message i029(ys) with text-006.
endcase.

endmodule.                 " USER_COMMAND_0100  INPUT

Here is the code what is present.. and it is giving short dump.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 04:00 PM

    declare a filed OKCODE in screen fields.

    This should be of type sy-ucomm.

    now ,

    module user_command_0100 input.

    case OKCODE.

    when 'N'. " or whatever pushbotton code

    call screen '0200'.

    *--- u can also use LEAVE TO SCREEN '0200'

    *--depending on whether u want control to return back to the screen.......

    endcase.

    endmodule. " USER_COMMAND_0100 INPUT

    Regards

    vasu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 04:01 PM

    Instead of writing call screen use leave to screen 200.

    make sure that you should assign function code for each push button ,function code should be in upper case

    module user_command_0100 input.

    case sy-ucomm.

    when 'N'.

    message i029(ys) with text-001.

    <b>Leave to screen 200.</b>

    when 'S'.

    message i029(ys) with text-002.

    when 'C'.

    message i029(ys) with text-003.

    when 'A'.

    message i029(ys) with text-004.

    when 'T'.

    message i029(ys) with text-005.

    when 'D'.

    message i029(ys) with text-006.

    endcase.

    endmodule. " USER_COMMAND_0100 INPUT

    Thanks

    Seshu

    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.