cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

set pf-status

Former Member
0 Likes
774

in one proram i have status '001'

in the second program i declare set pf-status '001' and i dont get it why??

Accepted Solutions (0)

Answers (9)

Answers (9)

Former Member
0 Likes

hi again,

1. SET PF-STATUS 'ABCD1' OF PROGRAM 'ZAM_TEMP0'.

This will work in

START-OF-SELECTION

<b> BUT NOT IN INITIALIZATION.</b>

2.

REPORT abc.

PARAMETERS : a TYPE c.

INITIALIZATION.

*----


does not work

  • SET PF-STATUS 'ABCD1' OF PROGRAM 'ZAM_TEMP0'.

*----


START-OF-SELECTION.

*-----will work

WRITE 😕 'amit'.

SET PF-STATUS 'ABCD1' OF PROGRAM 'ZAM_TEMP0'.

regards,

amit m.

hymavathi_oruganti
Active Contributor
0 Likes

<b>set pf-status of (program)</b> is the syntax if u want to call pf status of one program in another

Former Member
0 Likes

Hi,

PF-STATUS is program specific.

You will have to recreate the PF status in every program, even if it is same.

Regards,

Shashank

Former Member
0 Likes

Hi

The pf-status '001'is set only for that program but if u are Calling a list from Screen Processing then you must set this status explicitly using the statement

SET PF-STATUS space.

Former Member
0 Likes

pf status is program specific if u want to use same pf status for diffrent programm just go to se41 and copy the pf status for diffrent name and use this for 2nd programm...

Former Member
0 Likes

Hi rani,

1. pf-status are all PROGRAM SPECIFIC.

2. however, u can use like this.

set pf-status '001' OF PROGRAM progname.

regards,

amit m.

Former Member
0 Likes

this is include, an d wrote as you tell and it not work

Former Member
0 Likes

Hi Rani,

Then <b>give the name of the main program</b> Not the name of include in...

<b>SET PF-STATUS '001' OF PROGRAM 'ZMAIN'.</b>

It works this way...

Former Member
0 Likes

<b><i>SET PF-STATUS pfstat</i></b>.

<b>Effect</b>

Sets a GUI (Graphical User Interface) status pfstat which can be up to 20 characters long. There are many of these statuses in the GUI of a program. Each one describes which functions are available and how you can select these via menus and menu bars or by pressing function keys or pushbuttons. For further information about this, refer to the Menu Painter documentation.

Each status has a name which may be up to 8 characters long.

Setting a status makes the functions contained therein selectable.

This method allows you to vary the available functions according to the current screen, list level and/or previous program flow.

The current status is stored in the system field SY-PFKEY.

A status remains valid for the duration of a transaction or until you set a new status.

<b>Example</b>

Event in program:

START-OF-SELECTION.

SET PF-STATUS 'MAIN'.

WRITE SY-PFKEY.

AT USER-COMMAND.

CASE SY-UCOMM.

WHEN 'F001'.

SET PF-STATUS '0001'.

WRITE SY-PFKEY.

...

ENDCASE.

Produces a list (contents MAIN) with a GUI framework which allows you to select functions assigned to the the status MAIN. If you choose the function code F001 (e.g. from the menu or by pressing a pushbutton), you trigger the event AT USER-COMMAND . This generates a secondary list (contents 0001) with a GUI framework which allows you to select functions assigned to the status 0001. On returning from the secondary list to the basic list the status MAIN is reactivated.

<b>reward if useful</b>

Former Member
0 Likes

1.thank i will try.

2.i create a new status with exit,cancel,back and activate it,and it not appaer

Former Member
0 Likes

Hi again,

1. i tried, but its not working

SET PF-STATUS 'ABCD1' OF PROGRAM 'ZPROG'.

2. Its advisable that,

COPY the pf-status (gui status)

from the original program, to the new program

(Using SE80, and right-click on gui-status)

3. After this, ACTIVATE it in the new program.

4. Creating gui-status for each program

is advisable in the sense bcos

if some functionality is to be added/modified

in the pf-status,

then it wont affect the dependent program.

regards,

amit m.

Former Member
0 Likes

Hi Amit,

It worked for me...

In the first main program:

*************MAIN

REPORT ZMAIN.

INCLUDE ZINC.

In the include program...

*******Include : ZINC

SET PF-STATUS '001'.

Change your Menu and Icons : RW, CANC ...

In your new program

SET PF-STATUS '001' OF PROGRAM '<b>ZMAIN</b>'.

This works...

Former Member
0 Likes

hi ,

after typing the command

SET PF-STATUS 'Z001'.(caps)

double click on it..

in the screen that appears

go to the FUNCTION KEYS.

give

BACK for back icon.

RW for exit icon.

CANC for cancel.

and activate it..

regards

satesh

Former Member
0 Likes

hi Rani,

a pf-status corresponds to that particular program..

in a new prg you'll have to redefine it..

regards

satesh

FredericGirod
Active Contributor
0 Likes

Hi,

Status is program dependant, so when you have two different program, the status is not the same. Like the Screen painter ...

Rgd

Frédéric

suresh_datti
Active Contributor
0 Likes

Hi rani,

You have to create it for each program..double click on '001' in the 2nd program.. & create & activate it..

Regards,

Suresh datti

Former Member
0 Likes

The pf-status that you have created is for that program only.

The menus and the toolbars that are created cannot be applied to other program.