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

Menu options for custom Transaction

Former Member
0 Likes
2,559

Hi All,

I have created a Custom Transaction. but the screen menu options are disabled.

How can I activate the menu options like BACK button,EXIT button, CANCEL buttons etc..

Please help me out with this.

Thanks and Regards,

Srik.

Hi All,

I have created a Custom Transaction. but the screen menu options are disabled.

How can I activate the menu options like BACK button,EXIT button, CANCEL buttons etc..

Please help me out with this.

Thanks and Regards,

Srik.

18 REPLIES 18
Read only

h_senden2
Active Contributor
0 Likes
2,470

create a status by using

SET PF-STATUS 'mystatus'.

In this status you can define your buttons and menu entries.

regards,

Hans

Read only

Former Member
0 Likes
2,470

Hi Hans,

Could you please tell me in detail. how and where to create?

Thanks and Regards,

Srik.

Read only

Former Member
0 Likes
2,470

create PF status for that and double click on that it takes u to se41. there give some fcode for those buttons and write code in se38 as per ur need.

those buttons will be activated

Read only

Former Member
0 Likes
2,470

Hi,

Do you create and activate a status on the custom Transaction's Report?

If no. You need create and activate a status.

Try code.

SET PF-STATUS 'XXX'.

Best Regards,

Wind

Read only

0 Likes
2,470

Hi WIND,

I had put SET PF-STATUS 'STATUS_0101' in my code.

Now how to get the menu bar. what should I do next?

Regards,

Srik.

Read only

0 Likes
2,470

Hi

Just double click on the Set pf status 'STATUS_0101' it will take you to SE41 there select the Function Keys there you fing the standard buttons

if you are using BACK EXIT CANCEL, make sure to select TYPE E as the Function type

regards

Ramchander Rao.k

Read only

0 Likes
2,470

Hi,

When it is taking to SE41 it is asking for Normal screen or Dialog or Contxt Menu. which one to select . I used the context menu and tried and when trying to insert the menu options it is telling it can be used only for menu bars. Please help me with the steps in SE41.

Regards,

Srik

Read only

0 Likes
2,470

Hi,

context menu means RIGHT MOUSE CLICK

if you want it for normal screen then

just select normal screen

regards

Ramchander Rao.K

Edited by: ramchander krishnamraju on Dec 4, 2008 10:16 AM

Read only

0 Likes
2,470

Hi Ramchander,

I created accordingly selecting the normal screen and created the menu but they r not refelcting in the transaction. In the menu bar option I typed as BACK, code and text has come. I saved and activated.

is this only the procedure?

Help me out.

Regards,

Srik.

Read only

0 Likes
2,470

Hi,

You need to activate the screen where this STATUS has been declared or double click on the program and activate it , this activates all the components of the program

regards

Ramchander Rao.K

Read only

0 Likes
2,470

Hi,

Try double clicking the Main Program and activate it this activates all the includes PF Status Fm screens etc

It is always a good pracise in SE80 to activate from the main program itself.

thanks and regards

Ramchander Rao.K

Read only

0 Likes
2,470

Hi !! First create the PF Status in by using se41 then write the following code in the PBO module

e.g, here the screen no is 1010,

SET PF-STATUS '1010'.

hope this will help u

Regards

SHOAIB REHMAN

Read only

0 Likes
2,470

Hi Shoib,

I did that It took me to SE41. there how to include the options?

Regards,

Srik.

Read only

0 Likes
2,470

MY friend,

it will go SE41....

there u can create Menu Bar

Application Toolbar

Function Keys

thank u,

santhosh

Edited by: santhosh kumar on Dec 4, 2008 9:23 AM

Read only

Former Member
0 Likes
2,470

hi..

just try frm se80 there you can create all the graphal part.

there in that GUI Status:

just create with some name.

and call the PF-status in your program

like: set pf-satus 'XXX" name

if it is module pool then creata module below PAI.

like:

module exit_screen_9000 at exit-command.

in that modules maintain:

module exit_screen_9000 input.

case sy-ucomm.

when 'BACK' or

'EXIT' or

'CANC'.

leave program.

endcase.

endmodule.

ok just try it,. it may useful to u.. all the best..

UR's

GSANA

Read only

Former Member
0 Likes
2,470

Hi,

You need to create PF status for the screen.

When you assign a Function code to the button, it will become active.

Use se41 for creation of menu and buttons.

Reg,

Raj

Read only

Former Member
0 Likes
2,470

Hi,

use menu exit.

Regards,

Flavya

Read only

Former Member
0 Likes
2,470

Thanks a Lot