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: 

How to give out a status message indicating the number of fields selected

Former Member
0 Kudos

Hi experts,

I hope some one might have done what I'm trying to do. Could some one please show me how to give out a status message saying for example how many fields have been give out(or selected) in the t_ouput in an alv grid? Is there a FM that could do this? I mean like giving the FM the t_output and it will show a status message with the number of fields selected?

Thank you for your input.

Nadin

Message was edited by:

nadin ram

3 REPLIES 3

Former Member
0 Kudos

Hi Ram,

Write this code,

Message 'Select Only Ten Fields' type 'I'.

It displays The Message in Message Box.

Or if you want the Error Message means,

Message 'Select Only Ten Fields' type 'E'.

Thanks,

reward If Helpful.

JozsefSzikszai
Active Contributor
0 Kudos

hi Nadin,

do you want a popup (and the user has to hit Enter or anything to continue), or is it enough some text in the message line? in the latter case you can use the FM SAPGUI_PROGRES_INDICATOR, it displays a nice watch and any sentence you wish.

hope this helps

ec

0 Kudos

Hi viji, hi ec,

thank you for your input. I found a way to put out the message. I just wanted message displayed on the message line telling me how many fields have been selected or have been outputted.

DATA w_num TYPE i.

DESCRIBE TABLE t_output LINES w_num.

IF w_num = 0.

MESSAGE (?).

EXIT.

ELSE.

MESSAGE (?) WITH w_num.

ENDIF.