07-13-2006 11:33 AM
hi!
hi!
i need to add print icon and delete icon to selection screen near the execute icon.
i added one icon using structre sscrfields. but since is a structure i dont know how to add records to it.
regards
yifat
07-13-2006 11:38 AM
Set your own PF-status in INitilization screen..
1) Write <b>SET PF-status 'STATUS'.</b>
2) double click on it
3) Create your own function code.. DEL.
4) You can create icon for that along with Execute.
rgds,
TM
Please mark points if helpful.
07-13-2006 11:35 AM
REPORT ZNEGI12 .
TABLES: sscrfields .
INCLUDE <icon> .
SELECTION-SCREEN FUNCTION KEY 1 .
parameters: pc(1) .
INITIALIZATION .
CONCATENATE icon_next_object 'test button at applicatin toolbar'
INTO
sscrfields-functxt_01 .
AT SELECTION-SCREEN.
IF sscrfields-ucomm EQ 'FC01' .
<b>do coding.</b>
ENDIF .
07-13-2006 11:37 AM
07-13-2006 11:38 AM
hi:
use that pattern:
TABLES: sscrfields.
...
SELECTION-SCREEN FUNCTION KEY 1.
SELECTION-SCREEN FUNCTION KEY 2.
INCLUDE <icon>.
...
AT SELECTION-SCREEN.
*at SY-ucomm
CASE sy-ucomm.
WHEN 'FC01'.
CALL TRANSACTION 'Y001'.
WHEN 'FC02'.
CALL TRANSACTION 'Y002'.
Endcase.
INITIALIZATION.
WRITE icon_print TO sscrfields-functxt_01 AS ICON.
MOVE text-c17 TO sscrfields-functxt_01+5.
WRITE icon_delete TO sscrfields-functxt_02 AS ICON.
MOVE text-c19 TO sscrfields-functxt_02+5.
...
A.
Message was edited by: Andreas Mann
07-13-2006 11:38 AM
Set your own PF-status in INitilization screen..
1) Write <b>SET PF-status 'STATUS'.</b>
2) double click on it
3) Create your own function code.. DEL.
4) You can create icon for that along with Execute.
rgds,
TM
Please mark points if helpful.
07-13-2006 11:38 AM
Hi,
Check this Demo program..
<b> demo_dynpro_status_icons</b>
Regards
vijay
07-13-2006 11:47 AM
HI!
thanks for your answer.
i did exactly as in the demo program, but ir shows me only the first icon.
the code is:
TABLES sscrfields.
INCLUDE <icon> .
INITIALIZATION.
******************
CONCATENATE icon_print 'print layout' INTO
sscrfields-functxt_01 .
CONCATENATE icon_delete 'Delete box' INTO
sscrfields-functxt_02 .
*&----
*& Event at selection-screen
*&----
at selection-screen.
CASE sscrfields-ucomm.
WHEN'FC01'.
MY_ITCPO-TDNOPREV = 'X'.
MY_ITCPO-TDIMMED = 'X'.
PERFORM PRINT_LAYOUT_NEW.
LEAVE TO TRANSACTION 'ZBOX1'.
WHEN 'FC02'.
PERFORM XXX.
ENDCASE.
it shows me only the first icon(print) and not the delete icon.
what is the problem?
regards
yifat