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

dynamic pf status creation

Former Member
0 Likes
649

Hi all,

Is there any way or function module to create standard pf status for a program. help needed.

Sathya

1 ACCEPTED SOLUTION
Read only

dani_mn
Active Contributor
0 Likes
593

HI,

you can't create it dynamically, but you can change the pf-status dynamically at runtime.

by excluding the function code from it.

like this.

TYPES: BEGIN OF TAB_TYPE, 
        FCODE LIKE RSMPE-FUNC, 
      END OF TAB_TYPE. 

DATA: TAB TYPE STANDARD TABLE OF TAB_TYPE WITH 
               NON-UNIQUE DEFAULT KEY INITIAL SIZE 10, 
      WA_TAB TYPE TAB_TYPE.

CLEAR TAB. 
MOVE 'DELE' TO WA_TAB-FCODE. 
APPEND WA_TAB TO TAB. 
MOVE 'AUSW' TO WA_TAB-FCODE. 
APPEND WA_TAB TO TAB. 

<b>SET PF-STATUS 'STA3' EXCLUDING TAB.

</b>

REgards,

Hi all,

Is there any way or function module to create standard pf status for a program. help needed.

Sathya

2 REPLIES 2
Read only

dani_mn
Active Contributor
0 Likes
594

HI,

you can't create it dynamically, but you can change the pf-status dynamically at runtime.

by excluding the function code from it.

like this.

TYPES: BEGIN OF TAB_TYPE, 
        FCODE LIKE RSMPE-FUNC, 
      END OF TAB_TYPE. 

DATA: TAB TYPE STANDARD TABLE OF TAB_TYPE WITH 
               NON-UNIQUE DEFAULT KEY INITIAL SIZE 10, 
      WA_TAB TYPE TAB_TYPE.

CLEAR TAB. 
MOVE 'DELE' TO WA_TAB-FCODE. 
APPEND WA_TAB TO TAB. 
MOVE 'AUSW' TO WA_TAB-FCODE. 
APPEND WA_TAB TO TAB. 

<b>SET PF-STATUS 'STA3' EXCLUDING TAB.

</b>

REgards,

Read only

Former Member
0 Likes
593

Hi,

Use Can Create A single Pf-status with all the Buttons and Use It Accordingly to ur requirement by making use of Excluding Functionality.

Regards

Ahasan