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

Dialog Programming

Former Member
0 Likes
1,877

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,842

Hi,

You need to declare the OKCODE in the element list of the screen in the Screen Painter SE51.

Regards

Karthik D

20 REPLIES 20
Read only

Former Member
0 Likes
1,842

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

Read only

Former Member
0 Likes
1,842

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

Read only

Former Member
0 Likes
1,843

Hi,

You need to declare the OKCODE in the element list of the screen in the Screen Painter SE51.

Regards

Karthik D

Read only

0 Likes
1,842

I had declared the okcode in the elementlist and inside the inclue program also.Still i am getting the error.

Read only

0 Likes
1,842

Can you place the Data Declaration Include in the Top of the Report Program ? or Activate all the Includes

Kanagaraja L

Read only

0 Likes
1,842

Thanks dude......actually i was not keeping the include on top....

Read only

0 Likes
1,842

Actually now the "OKCODE" error is gone...but still i cannot display the menubar....

Read only

0 Likes
1,842

Have you given SET PF-STATUS 'XXXX'. ? Is it acive ?

Send you piece of Code

Kanagaraja L

Read only

0 Likes
1,842

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

Read only

Kanagaraja_L
Active Contributor
0 Likes
1,842

Can you check in SE38 ? the below code is thr ?

Data okcode type sy-ucomm.

Kanagaraja L

Read only

Former Member
0 Likes
1,842

Not displayed

Read only

Former Member
0 Likes
1,842

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

Read only

matt
Active Contributor
0 Likes
1,842

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

Read only

Former Member
0 Likes
1,842

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

Read only

Former Member
0 Likes
1,842

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

Read only

0 Likes
1,842

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...

Read only

0 Likes
1,842

Hi,

Double click on S_MIN2 and activate it.

Thanks

Venkat.O

Read only

sravya_ch
Participant
0 Likes
1,842

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.

Read only

Former Member
0 Likes
1,842

Thanks dude..i solved the issue

Read only

Former Member
0 Likes
1,842

Solved the problem by changing the table control screen number to 100.