‎2010 Nov 09 4:00 AM
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
‎2010 Nov 09 4:42 AM
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,
‎2010 Nov 09 4:42 AM
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,
‎2010 Nov 09 5:34 AM
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
‎2010 Nov 09 5:50 AM
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
‎2010 Nov 09 6:22 AM
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,