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

Issue in Message Popup ( High Priority )

Former Member
0 Likes
1,209

Hi ,

How to populate Long message in one pop up ??

ex : I have six lines of message ,

if i try to use Message syntax it is not displaying in one pop up , this message should be information message,

Any one please help me on this ...

Thanks in adv

Varma

7 REPLIES 7
Read only

Former Member
0 Likes
1,159

Using the message syntax you are only allow 4 message parameters.

You could do a

CALL SCREEN 9001 starting at .. ..

ending at .. ..

to show your message.

Or create a message class/id using SE91 and put your long text in there.

Read only

Former Member
0 Likes
1,159

DATA: oref TYPE REF TO cx_sy_arithmetic_error,

text TYPE string.

TRY.

...

CATCH cx_sy_arithmetic_error INTO oref.

text = oref->get_text( ).

MESSAGE text TYPE 'I'.

ENDTRY.

the variable "text" can hold as many as 300 characters

Read only

0 Likes
1,159

Thanks for your reply ,

when i try to test it

cx_sy_airthmetic_error unknown it is giving error .

Please send me with clear example ..

Thanks ,

Varma

Read only

0 Likes
1,159

Hi Varma,

Please check this example code

REPORT ZYH284_TEST1.

data:

string type string.

START-OF-SELECTION.

string =

'123456789123456789123456789123456789123456789123456789123456789'.

message string type 'I'.

Read only

former_member194669
Active Contributor
0 Likes
1,159

Hi,

Why don't you use fm


      call function 'POPUP_TO_INFORM'
        exporting
          titel         = text-213
          txt1          = text-209
          txt2          = text-210
          txt3          = text-211
          txt4          = text-212.

aRs

Read only

Former Member
0 Likes
1,159

Hi,

Best thing is you can use FM 'POPUP_TO_INFORM' .

Hope this helps.

Thanks,

Srinivas

Read only

Former Member
0 Likes
1,159

Thank u all for your replys

Still not resolved my issue ,

Any other way ??..it should display either information icon or warning icon in top

and the message should be below that .

Popup_to_inform also not matching my requirement ...

Thanks ,

varma