Application Development 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: 

SET PF-STATUS & SET TITLEBAR in a DYNPRO is not showed

Former Member
0 Kudos

When i try to show my status and title bar these are not showed and if I click on back or exit button, altough the parameters goes empty,we get all the information.

I got this code on my INCLUDE TOP, i don't use START-OF-SELECTION...............END-OF.........

SELECTION-SCREEN BEGIN OF SCREEN 9250.

SELECTION-SCREEN BEGIN OF BLOCK 20 WITH FRAME TITLE text-002.

SELECT-OPTIONS: noclc FOR nourc MATCHCODE OBJECT kost OBLIGATORY.

PARAMETERS: zlspr TYPE bseg-zlspr OBLIGATORY,

budat TYPE bkpf-budat,

usnam TYPE bkpf-usnam.

SELECTION-SCREEN END OF BLOCK 20.

SELECTION-SCREEN END OF SCREEN 9250.

*&SPWIZARD: DECLARATION OF TABLECONTROL 'DATOS' ITSELF

CONTROLS: datos TYPE TABLEVIEW USING SCREEN 0100.

*&SPWIZARD: LINES OF TABLECONTROL 'DATOS'

DATA: g_datos_lines LIKE sy-loopc.

AT SELECTION-SCREEN ON BLOCK 20.

IF noclc IS INITIAL.

EXIT.

ENDIF.

SET PF-STATUS 'STATUS100'.

SET TITLEBAR 'PO100'.

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

try like this


at selection-screen output. 
call function u2018RS_SET_SELSCREEN_STATUSu2019 
EXPORTING 
P_STATUS  = u2018STATUS_2100u2019 
P_PROGRAM = sy-repid.

or


INITIALIZATION.
set pf-status 'ABC'.
SET TITLEBAR 'PALLETLABEL'. 

Edited by: Keshav.T on Apr 14, 2010 9:57 PM

5 REPLIES 5

kesavadas_thekkillath
Active Contributor
0 Kudos

Do you want your pf status on screen 0100 ?

0 Kudos

No, i want my pf status on screen 9250

0 Kudos

Hi,

After your selection screen call the screen 9250 and double click on the screen number so you can go to the screen printer. Now dowuble click on MODULE %_PF_STATUS and create the module . Now enter the SET PF-STATUS 'STATUS100'.

SET TITLEBAR 'PO100'. commands in the newly create module.

Thanks,

Suresh Babu Dorai

Edited by: Suresh Dorai on Apr 15, 2010 8:42 AM

kesavadas_thekkillath
Active Contributor
0 Kudos

try like this


at selection-screen output. 
call function u2018RS_SET_SELSCREEN_STATUSu2019 
EXPORTING 
P_STATUS  = u2018STATUS_2100u2019 
P_PROGRAM = sy-repid.

or


INITIALIZATION.
set pf-status 'ABC'.
SET TITLEBAR 'PALLETLABEL'. 

Edited by: Keshav.T on Apr 14, 2010 9:57 PM

0 Kudos

Perfect!!!

First Ok, but i need to create p_exclude, is obligatory.

AT SELECTION-SCREEN OUTPUT.

CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'

EXPORTING

p_status = 'STATUS300'

p_program = sy-repid

TABLES

p_exclude = p_exclude.

Second do nothing..

But Thanks a lot.