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

active mode multiple selection in dialog screen

Former Member
0 Likes
887

in my dialog screen i had multiple selection option button by using the below function module.

CALL FUNCTION 'K_CMPERS_MULTIPLE_SELECTION'

EXPORTING

P_FIELDTYPE = 'R'

P_FIELDNAME = 'MATNR'

P_TABLENAME = 'MARA'

TABLES

PT_PARM = HMAT.

its working fine.

but when i enter data into multiple selection it does not changes to active mode ( green color).

can u pls tell me how to change it into active mode when data is there

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
718

Hi Banu,

The icon will not change automatically. You need to write code in PBO and change the icon of your push button accordingly.

Please refer to the document below for how to change icon of push button in module pool:

[http://wiki.sdn.sap.com/wiki/display/sandbox/ChangeanIconofaButtonDynamicallyInModulePool|http://wiki.sdn.sap.com/wiki/display/sandbox/ChangeanIconofaButtonDynamicallyInModulePool]

Cheers,

4 REPLIES 4
Read only

Former Member
0 Likes
719

Hi Banu,

The icon will not change automatically. You need to write code in PBO and change the icon of your push button accordingly.

Please refer to the document below for how to change icon of push button in module pool:

[http://wiki.sdn.sap.com/wiki/display/sandbox/ChangeanIconofaButtonDynamicallyInModulePool|http://wiki.sdn.sap.com/wiki/display/sandbox/ChangeanIconofaButtonDynamicallyInModulePool]

Cheers,

Read only

0 Likes
718

THANKS FOR UR ANSWER.

IN DEBUGGING MODE MY ICON IS CHANGING TO GREEN COLOR BY THE BELOW CODE

WRITE ICON_DISPLAY_MORE AS ICON TO button.

BUT ITS NOT DISPLAY IN SCREEN

Moderator message: please do not use all upper case in the future.

Edited by: Thomas Zloch on Nov 9, 2010 11:51 AM

Read only

0 Likes
718

HOW TO WRITE THAT BUTTON INTO MY BUTTON USED IN SCREEN PAINTER

Moderator message: please do not use all upper case in the future.

Edited by: Thomas Zloch on Nov 9, 2010 11:51 AM

Read only

0 Likes
718

Hi Banu,

Please note:

Take a button on the screen and say we name it as BUTTON having length of 4 (at-least).

Also declare this button in TOP Module as:-

DATA : button(4) TYPE c.

so just create a variant, with the same name of your button. For example, my button name is: BTN_EXTEND

then I need to create variant:

DATA: BTN_EXTEND(4) TYPE c.

Cheers,