on ‎2006 Mar 06 10:50 AM - last edited on ‎2024 Feb 04 4:37 AM by postmig_api_4
in one proram i have status '001'
in the second program i declare set pf-status '001' and i dont get it why??
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<b>set pf-status of (program)</b> is the syntax if u want to call pf status of one program in another
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
PF-STATUS is program specific.
You will have to recreate the PF status in every program, even if it is same.
Regards,
Shashank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<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>
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.
hi Rani,
a pf-status corresponds to that particular program..
in a new prg you'll have to redefine it..
regards
satesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi rani,
You have to create it for each program..double click on '001' in the 2nd program.. & create & activate it..
Regards,
Suresh datti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.