cancel
Showing results for 
Search instead for 
Did you mean: 

module pool programing

Former Member
0 Kudos

Hi All,

I am trying to implement a screen flow. I have written a code for that and it is not working. I am enclosing the code below.

Here rb1,rb2,rb3 are the radio buttons on initial screen.

Also there is a pushbutton on the initial screen. My aim is to go to the checked screen when we press the push button. please help me.

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE user_command_0100 INPUT.

CASE sy-ucomm.

WHEN 'EXE'."Push button functon code

IF rb1 = 'X'.

CALL SCREEN 200.

ENDIF.

IF rb2 = 'X'.

CALL SCREEN 300.

ENDIF.

IF rb3 = 'X'.

CALL SCREEN 400.

ENDIF.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Try it with :

case Sy-ucomm.

case 'EXE'.

When rd2='X'.

[.......]

endcase.

endcase.

Regards,

Abderrazzak.

Answers (5)

Answers (5)

Former Member
0 Kudos

I wanted to update a z table..... Let me say thre are some records in it...

Now I wanted to edit those records... how do I do and can anyone help me with sample piece of code....

query 2. I update the z table through module pool pro

Former Member
0 Kudos

I wanted to update a z table..... Let me say thre are some records in it...

Now I wanted to edit those records... how do I do and can anyone help me with sample piece of code....

query 2. I update the z table through module pool program....

when I execute it it gets updated...

next time when I again execute it the old records vanish and this gets placed over there...

how do I do this... hlep me sooon

Former Member
0 Kudos

In module pool programming how can we use mune painter and screen generation .Please give me the suggestion

Former Member
0 Kudos

hi dear try this one ur problem will be solved

first group the radio buttons in screen ( goto edit menu -> grouping) and give fn code 'SHOW' to command button. then write this code

module USER_COMMAND_0100 input.

case sy-ucomm.

when 'SHOW'.

if RD1 = 'X'.

leave to screen 1000.

endif.

if RD2 = 'X'.

leave to screen 2000.

endif.

when 'EXIT'.

leave program.

endcase.

endmodule. " USER_COMMAND_0100 INPUT

Message was edited by: Madan Gopal Sharma

Message was edited by: Madan Gopal Sharma

christian_wohlfahrt
Active Contributor
0 Kudos

Hello Jaison!

Usually an own variable is used for OK-code. Maybe something is going wrong, if you just try to use sy-ucomm.

Please check element list of dynpro 0100: in last line a (global) variable for OK-code should be assigned. You can use this than in your program (and normally sy-ucomm contains same value).

Regards,

Christian