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

Coloring Selection-Screen Comments

Former Member
0 Likes
3,711

Hello,

how can I assign an other color to a comment in a selection-screen?

Thx

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
2,044

Did you check this?

[color to selection-screen comment|https://forums.sdn.sap.com/click.jspa?searchID=22146177&messageID=1399014]

8 REPLIES 8
Read only

viquar_iqbal
Active Contributor
0 Likes
2,044

hi

you can use format color (color number)

selection screen comment

end it with format color off.

Thanks

Viquar Iqbal

Read only

GauthamV
Active Contributor
0 Likes
2,045

Did you check this?

[color to selection-screen comment|https://forums.sdn.sap.com/click.jspa?searchID=22146177&messageID=1399014]

Read only

Former Member
0 Likes
2,044

Hi Mike,

DATA: BEGIN OF itab OCCURS 0,

BUKRS LIKE T001-BUKRS,

BUTXT LIKE T001-BUTXT,

END OF itab.

PARAMETERS: P_BUKRS TYPE BUKRS.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_BUKRS.

PERFORM F4_FOR_BUKRS.

&----


*& Form F4_FOR_BUKRS

----


FORM F4_FOR_BUKRS.

DATA: IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,

ES_SELFIELD TYPE SLIS_SELFIELD.

  • Get data

SELECT BUKRS

BUTXT

FROM T001

INTO TABLE itab

up to 10 rows .

  • Get field

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

I_PROGRAM_NAME = SY-REPID

I_INTERNAL_TABNAME = 'ITAB'

CHANGING

CT_FIELDCAT = IT_FIELDCAT[].

LOOP AT IT_FIELDCAT.

IT_FIELDCAT-KEY = SPACE.

IF IT_FIELDCAT-FIELDNAME = 'BUTXT'.

IT_FIELDCAT-EMPHASIZE = 'C710'.

ENDIF.

IF IT_FIELDCAT-FIELDNAME = 'BUKRS'.

IT_FIELDCAT-EMPHASIZE = 'C610'.

ENDIF.

MODIFY IT_FIELDCAT.

ENDLOOP.

CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'

EXPORTING

I_TITLE = 'THIS IS FOR F4 IN COLOR'

I_TABNAME = 'ITAB'

IT_FIELDCAT = IT_FIELDCAT[]

IMPORTING

ES_SELFIELD = ES_SELFIELD

TABLES

T_OUTTAB = ITAB .

ENDFORM. " F4_FOR_BUKRS

check with the Above code...

This ia an example code...

thanks,

Neelima.

Read only

Former Member
0 Likes
2,044

Hi Mike,

I think you cant colour selection-screen parameter,

but what you can do is intesify parameters.

Ref to this prog : demo_at_selection_screen_pbo

Regards,

Pratik

Read only

Former Member
0 Likes
2,044

Hi,

Copy this code into ur editor..

Try this one it will work...

PARAMETERS:

p_num TYPE i.

INITIALIZATION.

p_num = 20.

END-OF-SELECTION.

FORMAT COLOR COL_TOTAL.

WRITE: 'COMMENT'.

WRITE: p_num.

FORMAT COLOR OFF.

Regards

Kiran

Edited by: Kiran Saka on Feb 11, 2009 12:05 PM

Read only

Former Member
0 Likes
2,044

I read the following link

[color to selection-screen comment|]

and noticed that it is not possible to change the color in SELECTION-SCREENs. So i decided to use

INTENSIFIED-statement.

Thx

Read only

0 Likes
2,044

sorry, this one

Read only

0 Likes
2,044

k