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

Expand/Collapse button with text in module pool

Former Member
0 Likes
891

Hi All,

Note: Please see the attached requirement example.

I have created a push button as output field with icon tick in the push button characteristic. But i was not able to give any text to it. In the PBO i have written the following code.



IF ok_code EQ 'BUT'.

     GV_COLL_EXP = icon_expand.

   ELSE.

     GV_COLL_EXP = icon_collapse.

ENDIF.

In Top include i have declared as:


INCLUDE <icon>.

DATA : gv_coll_exp LIKE icons-l4.

Please let me know if anyone knows how to assign text to this push button.

Thanks in advance,

Best Regards,

Venkat.

Hi All,

Note: Please see the attached requirement example.

I have created a push button as output field with icon tick in the push button characteristic. But i was not able to give any text to it. In the PBO i have written the following code.



IF ok_code EQ 'BUT'.

     GV_COLL_EXP = icon_expand.

   ELSE.

     GV_COLL_EXP = icon_collapse.

ENDIF.

In Top include i have declared as:


INCLUDE <icon>.

DATA : gv_coll_exp LIKE icons-l4.

Please let me know if anyone knows how to assign text to this push button.

Thanks in advance,

Best Regards,

Venkat.

1 REPLY 1
Read only

Former Member
0 Likes
688

1 make dummy button

   screen attribute : output check

                               icon check

2. create icon

    Use function 'ICON_CREATE'

    code sample

    if ok_code eq 'BUT'.

       call function 'ICON_CREATE'

            exporting

                  name = icon_expand

                  text    = 'Text'

                  info    = 'Into text'

             importing

                  result = GV_COLL_EXPAND.

   else.

      ...