2006 Aug 03 2:07 PM
Hi,
I'm using a ICON, which is displayed as a column value.
It is defined in table icon and also has a defined
quickinfo.
I want to change this quickinfo at runtime, without changing
in database.
How can i achieve this?
Regards,
Rohit.
2006 Aug 03 2:31 PM
If you use function module ICON_CREATE, you can do it.
Example:
CALL FUNCTION 'ICON_CREATE'
EXPORTING
NAME = 'ICON_CREATE_TEXT'
INFO = 'Your new Quick Info!'
IMPORTING
RESULT = but1
EXCEPTIONS
ICON_NOT_FOUND = 1
OUTPUTFIELD_TOO_SHORT = 2
OTHERS = 3.
Hope it helps,
Leonardo De Araujo
2006 Aug 03 2:30 PM
2006 Aug 03 2:31 PM
If you use function module ICON_CREATE, you can do it.
Example:
CALL FUNCTION 'ICON_CREATE'
EXPORTING
NAME = 'ICON_CREATE_TEXT'
INFO = 'Your new Quick Info!'
IMPORTING
RESULT = but1
EXCEPTIONS
ICON_NOT_FOUND = 1
OUTPUTFIELD_TOO_SHORT = 2
OTHERS = 3.
Hope it helps,
Leonardo De Araujo
2006 Aug 03 3:27 PM
You need to excute like this:
CALL FUNCTION 'ICON_CREATE'
EXPORTING
NAME = '@D6@'
TEXT = 'ICON_CREATE_TEXT'
INFO = 'Your new Quick Info!'
IMPORTING
RESULT = but1
EXCEPTIONS
ICON_NOT_FOUND = 1
OUTPUTFIELD_TOO_SHORT = 2
OTHERS = 3.
Regards.
2006 Aug 03 2:31 PM
Hi Rohit,
Can you explain indetial. what type of output is it either list or ALV or module pool.
Regards,
Kiran i
2006 Aug 03 2:37 PM
Hi,
It ALV layout.
Regarding the FM:
CALL FUNCTION 'ICON_CREATE'
EXPORTING
NAME = 'ICON_CREATE_TEXT'
INFO = 'Your new Quick Info!'
IMPORTING
RESULT = but1
EXCEPTIONS
ICON_NOT_FOUND = 1
OUTPUTFIELD_TOO_SHORT = 2
OTHERS = 3.
Which ICON does it create?
I've to create a specific icon :
sls TYPE v_icon-id VALUE '@D6@'.
can this FM help?
Thanks,
Rohit
2006 Aug 04 6:56 AM
Hey Peluka,
You solved my problem!
Thanks a lot.
regards,
Rohit.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |