2006 Dec 12 3:32 AM
2006 Dec 12 3:40 AM
Hi,
You can use FM RS_SET_SELSCREEN_STATUS at event AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
IF SY-DYNNR = 1000.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
P_STATUS = 'SELK "your status
TABLES
P_EXCLUDE = EXCLUDE
EXCEPTIONS
OTHERS = 1.
ENDIF.Also check program DEMO_SEL_SCREEN_STATUS and this link.
Regards,
Ferry Lianto
hi,
How to add a gui status in a selection screen
2006 Dec 12 3:35 AM
Please use SET PF-STATUS stmt in <b>INITIALIZATION</b> Event.
Kind Regards
Eswar
2006 Dec 12 3:40 AM
Hi,
You can use FM RS_SET_SELSCREEN_STATUS at event AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
IF SY-DYNNR = 1000.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
P_STATUS = 'SELK "your status
TABLES
P_EXCLUDE = EXCLUDE
EXCEPTIONS
OTHERS = 1.
ENDIF.Also check program DEMO_SEL_SCREEN_STATUS and this link.
Regards,
Ferry Lianto
2006 Dec 12 3:44 AM
is it to keep in INITILIZATION OR AT SELECTION-SREEN OUTPUT
can you explain
thank you
2006 Dec 12 3:50 AM
Hi Sarath
You can use any of the above. Both are just like alternative methods of performing the task.
Ferry,
Correct me if i am wrong??? I guess we can perform the same via SET PF-STATUS in INITIALIZATION event...
Kind Regards
Eswar
Message was edited by:
Eswar Rao Boddeti
2006 Dec 12 3:49 AM
Hi Sarath,
If you are trying to set a gui status in selection screen then it should be done in the event AT SELECTION-SCREEN OUTPUT.
Regards,
Ferry Lianto
2006 Dec 12 3:55 AM
TRY THIS CODE
DATA : ITABS LIKE RSEXFCODE OCCURS 5,
WTAB1 LIKE RSEXFCODE.
ADD WHAT ARE THE FN CODE YOU DONT WANT IN THE SELECTION *SCREEN TO ITABS.
IF SY-DYNNR = '1000'.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
P_STATUS = SY-PFKEY
P_PROGRAM = SY-REPID
TABLES
P_EXCLUDE = ITABS
.
ENDIF.
REGARDS
shiba dutta
Message was edited by:
SHIBA DUTTA
2006 Dec 12 4:03 AM
Hi Eswar,
I never done at initialization. I usually set SET PF-STATUS at START-OF-SELECTION, AT LINE-SELECTION or AT USER-COMMAND event.
Regards,
Ferry Lianto
2006 Dec 12 4:22 AM
hi sarath ,
i will tell u a simplest way to add gui status to selection screen ....without writing any code to ur program....
goto se 80
select 'PROGRAM' in the drop-down box..
enter your 'program name' below ...
and press enter key..
right click on ur program name (object name)
choose create option...
and then choose GUI status...
enter the gui satus name and short description..
and then finallly u can set
application toolbar
or menu bar
or function keys
as gui status for ur program on the selection screen....
2006 Dec 12 4:28 AM
hi..
You can try out the following steps.
1.go to se80.
2.enter your program name.
3.right click on the program name and create a gui status.
4.Activate the gui status.
5.now in your code,
add the following statements.
SET PF-STATUS 'ZTH_GUI'.
AT USER-COMMAND.
for example consider this ..
DATA : OK_CODE TYPE SY-UCOMM.
SET PF-STATUS 'ZTH_GUI'.
AT USER-COMMAND.
CASE OK_CODE.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'CANCEL'.
LEAVE PROGRAM.
ENDCASE.
hope this helps you.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |