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

about Function key in PF status

Former Member
0 Kudos
1,373

Hi all.

I have one doubt in pf status.

1.Actually i have some input fields in my dilogue program.it has pf status (it has some button like back,exit,cancel)

2.input field has obligatory.if i press cancel or exit or back it need one input for that obligatory field.

3.i want avoid this obilgatory when i will be press cancel or back ot exit.

pls advice me.

regards.

Raju.j

12 REPLIES 12
Read only

Former Member
0 Kudos
775

In the pf-status definition,

when you define the fcodes for the exit and cancel buttons, YOu have to set the FUNCTIONAL TYPE as 'E'.

Regards,

Ravi

Read only

0 Kudos
775

hi Ravi.

what is means for following pls may you explain briefly?

FUNCTIONAL TYPE as 'E'.

thank u

Read only

Former Member
0 Kudos
775

1. Assign the function type E to your cancel or exit or back buttons . <br>

2. in PAI <br>

write in the following way:-<br>

module exit <b>AT EXIT-COMMAND.</b><br>

MODULE EXIT INPUT.<br>

WHEN 'CANCEL'.<br>

LEAVE To SCREEN 0.<br>

....<br>

.......<br>

code for exit, back.<br>

ENDMODULE.<br>

SHEFALI GANGRADE

Read only

0 Kudos
775

Hi

what is means for following pls may you explain briefly?

FUNCTIONAL TYPE as 'E'.

thank u

Read only

Former Member
0 Kudos
775

Hello Raju,

Create a muodule like this.

MODULE EXIT AT EXIT-COMMAND.

The type of pushbutton should <b>E</b>

If useful reward,

Vasanth

Read only

0 Kudos
775

Hi

what is means for following pls may you explain briefly?

FUNCTIONAL TYPE as 'E'.

thank u

Read only

Former Member
0 Kudos
775

For Cancel fcode, You set that fcode as exit command 'E' .

In PAI of screen..

MODULE d9002_exit AT EXIT-COMMAND.

&----


*

*& Module D9002_EXIT INPUT

&----


MODULE d9002_exit INPUT.

set screen 0.

leave screen.

Endmodule.

Read only

0 Kudos
775

Hi

what is means for following pls may you explain briefly?

FUNCTIONAL TYPE as 'E'.

thank u

Read only

Former Member
0 Kudos
775

Hi

In the set pf-status while creating EXIT in application toolbar give Functional type as 'E'.

Regards

Haritha.

Read only

0 Kudos
775

Hi

what is means for following pls may you explain briefly?

FUNCTIONAL TYPE as 'E'.

thank u

Read only

0 Kudos
775

when you go to properties, you will get the Function code and type.

Function code means the sy-ucomm which you check at run time in PAI/PBO.

we can assign the type to function code,

from type system will determine when to exectute the related module attached to function code.

if you are setting it to type 'E', it means it on the exit and will be the last module to execute on the screen.

Read only

0 Kudos
775

Double click on your status, and you will get into the screen where you define the buttons, menus etc.(YOu can also go thru se41 transaction).

In that screen, open the Function Keys node.

Double click on the button for cancel/exit .

You will get a pop up with details like, function code, functional type etc.

GIve E for functionla type.

Then you can follow what others have suggested.

like in pai section, you have to use

module exit_command at exit-command.

REgards,

Ravi