Application Development 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: 

Is it possible to make an entry in field of ALV GRID mandatory

Former Member
0 Kudos

Hello Experts,

I have a requirement in which I have an ALV TREE . In that tree I have folders and nodes . There are descriptions for nodes.

In one description I have somethng like

'Sender' '-->' 'Receiver'.( whihc I am passing to the tree from an outside class where it gets computed )

But the client wants to replace the '-->' symbol with an icon or some special characters. T

The problem is I am doing the Concatenating operation

data r_description type char256.

CALL FUNCTION 'ICON_CREATE'

EXPORTING

name = '@04@'

text = 'Receiver'

IMPORTING

RESULT = l_text

  • EXCEPTIONS

  • ICON_NOT_FOUND = 1

  • OUTPUTFIELD_TOO_SHORT = 2

  • OTHERS = 3

.

Concatenate 'Sender' l_text into r_description separated by space .

here l_text is fine . But when I concatenate 'Sender' at the beginning it gets unformated and icons special characters are appearing instead of icons.

Any idea How could i possibly do this ?

5 REPLIES 5

Former Member
0 Kudos

Sorry for the wrong subject of the Grid . I mistyped it

0 Kudos

Hi Arshad,

I checked , it will not work

Concatenate 'Sender' l_text into r_description separated by space . "Will not work

The icon in the beggining will only get displayed,

Concatenate l_text 'Sender' into r_description separated by space . "Will work

Wait for experts replies.:)

0 Kudos

yes.. if you want to put the text first then you have to put two elements...

0 Kudos

Halo Soumya

I did not get you.

How will I put 'Sender' before the icon .Is there any other option other than concatenating the variables.

Regards

Arshad

kesavadas_thekkillath
Active Contributor
0 Kudos

The fieldcatalouge has a property as icon.

Generally we will mark it as X.

But in your case you are also concatenating the text along with it, You can give a try.