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: 

addb icons to selection screen

Former Member
0 Kudos
197

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
126

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.

6 REPLIES 6

Former Member
0 Kudos
126

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 .

former_member181962
Active Contributor
0 Kudos
126

see the demo program DEMO_SEL_SCREEN_FUNCTION_KEY.

andreas_mann3
Active Contributor
0 Kudos
126

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

Former Member
0 Kudos
127

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.

former_member188685
Active Contributor
0 Kudos
126

Hi,

Check this Demo program..

<b> demo_dynpro_status_icons</b>

Regards

vijay

Former Member
0 Kudos
126

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