‎2007 Feb 05 11:27 AM
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
‎2007 Feb 05 11:51 AM
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.
‎2007 Feb 05 11:51 AM
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.
‎2007 Feb 05 11:54 AM
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
‎2007 Feb 05 11:56 AM
In PAI:
case sy-ucomm.
when 'open'.
select -- -- -- from -
into table itab where --- = -
.
when 'save'.
-
when 'exit'.
leave program.
endcase.
Cheers