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

CALLING SCREEN THROUGH MENU BAR

Former Member
0 Likes
736

hi experts,

I created a menu bar with 3 items

New

1.open

2.save.

3.exit.

when clicking open menu item i want display data's through select query. For that in function type what i want to mention and also to call another screen what is the function type and code?

Kindly give me the solution.

Reg

R.Vijai

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
539

hi,

while creating the menu item we have to specify the function code and text, for eg, function code - OPEN and text Open for the menu item.

Normaly we have to specify function type as ' ' - Normal application function , for menu items, push butons, icons, etc.,.

Function type 'E' - Exit command, can be used for Exit button. which help you to overcome input validation which will be trigered in the PAI event of the screen.

Function type 'P' - Local gui functions will be used with TABS of tabstrip control for local selection of tabs without triggering the PAI event.

For your example you can select function type ' ' and the necessary coding can be given in the PAI event of screen.

Inside the PAI event of screen call a module

eg: module validat_input.

you can create this module by double clicking and create it either in the include file or the main program itself.

Inside the module, check the function code using the case statement , and you can call a transaction or you can write an open SQL querry.

3 REPLIES 3
Read only

Former Member
0 Likes
540

hi,

while creating the menu item we have to specify the function code and text, for eg, function code - OPEN and text Open for the menu item.

Normaly we have to specify function type as ' ' - Normal application function , for menu items, push butons, icons, etc.,.

Function type 'E' - Exit command, can be used for Exit button. which help you to overcome input validation which will be trigered in the PAI event of the screen.

Function type 'P' - Local gui functions will be used with TABS of tabstrip control for local selection of tabs without triggering the PAI event.

For your example you can select function type ' ' and the necessary coding can be given in the PAI event of screen.

Inside the PAI event of screen call a module

eg: module validat_input.

you can create this module by double clicking and create it either in the include file or the main program itself.

Inside the module, check the function code using the case statement , and you can call a transaction or you can write an open SQL querry.

Read only

Former Member
0 Likes
539

vijay,

code you can give any four character field ex .. FICA. function type = '' (space'

IN AT USER-COMMAND.

WHEN 'FICA'.

CALL SCREEN.. (LOGIC).

Regds,

kiran

Read only

Former Member
0 Likes
539

In PAI:

case sy-ucomm.

when 'open'.

select -- -- -- from -


into table itab where --- = -


.

when 'save'.

-


when 'exit'.

leave program.

endcase.

Cheers