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

How to handle red traffic symbol

sri6666
Active Participant
0 Kudos
3,000

Hi expert,

My result internal table filled with RED, YELLOW, GREEN lights..requirement is if result internal has RED light symbol then mail functionality won't be work. How to read if internal table have RED symbol or not..

1 ACCEPTED SOLUTION
Read only

sri6666
Active Participant
0 Kudos
2,431

Issue solved, added one more filed char1..When ever red light is filled make it's as X. If internal table have X value stop trigger the mail functionalities.

10 REPLIES 10
Read only

MateuszAdamus
Active Contributor
2,431

Hi sri6666

Hard to say exactly, because you haven't provided much information.
What you should do is probably check if the internal table contains entries with '@0A@' string. This string is equivalent to the RED light.

Hope this helps.

regards,

Mateusz

Read only

0 Kudos
2,431

It could also be the ''@5C@'' string, depends on the red light you have.

Read only

matt
Active Contributor
2,431

Technically correct, but not clear coding. Use rather the correct ICON_ value.

Read only

2,431

The icon value may also possibly contain a text and a tooltip, for instance:

@0A\Qtooltip@text
Read only

Sandra_Rossi
Active Contributor
2,431

The traffic lights icons, or the "led" icons?

Run the program SHOWICON to see the internal values of each icon.

Read only

venkateswaran_k
Active Contributor
0 Kudos
2,431

Hi Sri

You need to provide more information so that we need to assume anything.

1. In your internal table - how you declare the field to store the Light. (Is it simple led-icon or traffic light. (Based on that we can say the solution).

2. On what condition you are updating that field to Red Icon (Is that condition value is available in the table). If so you can directly check that field.

Kindly provide more input and part of your code where you assign the red icon

Regards,

Venkat

Read only

former_member1716
Active Contributor
2,431

sri6666,

On cases where the traffic symbol is used, you can consider below points for reaching the necessary information.

--> The output table that displays the traffic symbol should have a field for this traffic light display, which should probably be of character length 5.

--> Based on the condition they may populate the field either with values like '@0A@' , '@2A@' or they may directly use the name starting with 'ICON_'.

--> As you have already informed that this is red icon check in the program how the respective field is populated. Either it should be with any values as mentioned above or the name of the icon starting with 'ICON_'

If you can search with the above points into consideration you can reach out to the logic how and why the traffic light is populated as red. To know the names of the ICON used you can follow the Type group ICON.

Regards!

Read only

sri6666
Active Participant
0 Kudos
2,432

Issue solved, added one more filed char1..When ever red light is filled make it's as X. If internal table have X value stop trigger the mail functionalities.

Read only

matt
Active Contributor
2,431

Type abap_bool would be better - populated with abap_true or abap_false. (Technically the same, but semantically much better coding).

Read only

2,431

Please:

  • mark the right answer
  • close the question

Thank you.