Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to write event driven code for a layout push button..i mean in MPP prog

Former Member
0 Likes
333

step by step procedure is really appreciated...

step by step procedure is really appreciated...

1 REPLY 1
Read only

Former Member
0 Likes
318

hi balaji,

this is a sample mpp prog...

MODULE user_command_1050.

CASE sy-ucomm.

WHEN 'E'.

LEAVE PROGRAM.

WHEN 'S'.

CALL SCREEN 1200.

WHEN 'F1'.

SELECT * FROM zusrpass INTO TABLE it_01.

LOOP AT it_01.

IF pri1 = it_01-username AND pri2 = it_01-password.

CONCATENATE pri1 a INTO p2.

CONDENSE p2 NO-GAPS.

CLEAR : pri1 , pri2.

CALL SCREEN 1100.

ENDIF.

ENDLOOP.

MESSAGE i007.

WHEN 'F2'.

CLEAR : pri1 , pri2.

WHEN 'F3'.

LEAVE PROGRAM.

WHEN 'F4'.

CALL SCREEN 1150.

WHEN 'TQM'.

CALL SCREEN 1200.

ENDCASE.

ENDMODULE. "user_command_1050

Please reward if useful.