cancel
Showing results for 
Search instead for 
Did you mean: 

How to tigger next screen in screen painter?

Former Member
0 Kudos

Hi friends i want to know how can i go to my next screen that is iw ant to know what should me my code in flow logic.

I have one screen say 1000 in which i have entered my Empid- and password then it should go to next screen where i will have

2 radio buttons after enter one say functional or technical then next like this i want the procedure please can anybody help me in this..

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

If yoy have some pushbutton in first screen say 100 under user-command

MODULE USER_COMMAND_0100 INPUT.

OKCODE = SY-UCOMM.

CASE OKCODE.

WHEN 'DISP' OR SPACE.

SELECT *

FROM VBAK

INTO CORRESPONDING FIELDS OF TABLE IT_TAB

WHERE KUNNR = KNA1-KUNNR.

IF SY-SUBRC <> 0.

MESSAGE 'No sales document exists'(001) TYPE 'I'.

ENDIF.

LEAVE TO SCREEN 200. -


second screen

CLEAR OKCODE.

*--- To leave Transaction

WHEN 'BACK' .

LEAVE PROGRAM.

CLEAR OKCODE.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

Reward Points if usefull

Regards

Fareedas

Former Member
0 Kudos

Hello,

After you enter the values on the screen, you press enter on the screen.

For this you need to write the code in PAI.

create an module.

and in this module based on the sy-ucomm.

i.e.

case sy-ucomm.

when 'ENTE'

do the required validations.

leave screen 'next screen number'.

set screen 0.

endcase.

Former Member
0 Kudos

Hi,

while creating screen in attributes place next screen number.

it wil go to next screen what you specified in that.

create screen number what you specified using same program.

after you can trigger based on your control.

Reward points.