‎2009 Jun 29 10:44 AM
Please use a meaningful subject in future
Hi,
I have an requirement to create an maintenance screen. I created the module pool program but when i try to display the layout, menubar(Select,Delete,Create) is not displaying. I already set the PF status. When i tried to activate the program using se38 I got the error "OKCODE not defined". I already defined the OKCODE as well. Please help me to solve this issue.
Regards,
Arun.
Edited by: Matt on Jun 29, 2009 1:10 PM
‎2009 Jun 29 10:54 AM
Hi,
You need to declare the OKCODE in the element list of the screen in the Screen Painter SE51.
Regards
Karthik D
‎2009 Jun 29 10:51 AM
hi
Check u have declare 'OKCODE" in program and the dialog module...
If you declared in inclue activate it("Active Anyway").Excute the program.
Thanks
Edited by: dharma raj on Jun 29, 2009 3:34 PM
‎2009 Jun 29 10:54 AM
Hi;
There are 2 places where okcode should be declared as in screen - Element List and in the main program as
data:
okcode type sy-ucomm
And then activate the entire things one by one, it would work.
Regards
Shashi
‎2009 Jun 29 10:54 AM
Hi,
You need to declare the OKCODE in the element list of the screen in the Screen Painter SE51.
Regards
Karthik D
‎2009 Jun 29 10:58 AM
I had declared the okcode in the elementlist and inside the inclue program also.Still i am getting the error.
‎2009 Jun 29 11:01 AM
Can you place the Data Declaration Include in the Top of the Report Program ? or Activate all the Includes
Kanagaraja L
‎2009 Jun 29 11:06 AM
Thanks dude......actually i was not keeping the include on top....
‎2009 Jun 29 11:12 AM
Actually now the "OKCODE" error is gone...but still i cannot display the menubar....
‎2009 Jun 29 11:14 AM
Have you given SET PF-STATUS 'XXXX'. ? Is it acive ?
Send you piece of Code
Kanagaraja L
‎2009 Jun 29 11:14 AM
Note: Use Proper subject line for your Posts, your current subject is very vague.
Did you really set the pf-status..?? , if so did you activate it or not. Check it once
‎2009 Jun 29 10:57 AM
Can you check in SE38 ? the below code is thr ?
Data okcode type sy-ucomm.Kanagaraja L
‎2009 Jun 29 11:11 AM
‎2009 Jun 29 11:21 AM
hi
In PBO
check u have specify and active the it.
SET TITLEBAR 'TIT_100'.
SET PF-STATUS 'SCREEN_100'.
and you can for the samol demo programme
DEMO_DYNPRO
DEMO_DYNPRO*
Thanks
Edited by: dharma raj on Jun 29, 2009 3:51 PM
‎2009 Jun 29 12:11 PM
Please use a meaningful subject in future
And try to get the right forum. Dialog questions should be in UI Programming - I've moved it for you.
matt
‎2009 Jun 29 12:48 PM
HI Arun,
In the PBO Module,giive the following code
SET PF-STATUS 'S9000'.Here S9000 is the pf status name, in which u have created fcodes for Menus.
Regards
Sajid
‎2009 Jun 29 12:49 PM
HI Arun,
In the PBO Module,giive the following code
SET PF-STATUS 'S9000'.Here S9000 is the pf status name, in which u have created fcodes for Menus.
Regards
Sajid
‎2009 Jun 30 1:27 AM
I had put the codes like that
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'S_MIN2'.
SET TITLEBAR 'T_MIN2'.
ENDMODULE. " STATUS_0100 OUTPUT
Still i cannot dispaly the menubar...
‎2009 Jun 30 2:54 AM
‎2009 Jun 30 6:41 AM
The Detail Steps to create a Module Pool Programming .If you follow these steps 100% sure it will work .I think you would have followed similar but please check it out .
T-Code u2013SE38.start the program name with (SAPMYu2026u2026..)
1. Create a program just activate it.
T-Code-SE51.
1. Give the same (SAPMYu2026u2026..) and screen number.
2. Element List (2nd tab) give okcode double click some times when you do this it will be locked .goto T-Code SM12 unlock what ever is there and the double click it will navigate you to se38 .there you declare data : okcode like sy-ucomm .
Know create your screens write the code if u donu2019t get even this then I will give some screen shorts u can work with that.
As being a trainer for 2 year and then a developer this is the best that some can tell you if you.
‎2009 Jun 30 8:33 AM
‎2009 Jun 30 8:34 AM
Solved the problem by changing the table control screen number to 100.