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

messages

Former Member
0 Likes
481

Hi all,

i am not getting message in pop up window,

here three messages are passed in to message number 15 of message class zc

in message class zc for message number 15 i kept & & & & &

wen i execute the transaction i am getting popup window showing only message 1 followed by &&&&&

wen i debug the program three messages contain text in it. but it is displaying only

1st message in popwindow.

LOOP AT itab_bills.

CLEAR itab_bills_tmp.

REFRESH itab_bills_tmp.

SELECT sdpref billno

INTO CORRESPONDING FIELDS OF TABLE itab_bills_tmp

FROM zproto_bills_dt

WHERE "sdpref <> itab_bills-sdpref AND

billno <> itab_bills-billno AND

requestno = itab_bills-requestno AND

requestyear = itab_bills-requestyear.

IF sy-subrc = 0.

LOOP AT itab_bills_tmp.

CLEAR : zmessage1, zmessage2, zmessage3.

CONCATENATE 'Job Request No' itab_bills-requestno 'Year'

itab_bills-requestyear INTO zmessage1 SEPARATED BY space.

CONCATENATE 'is already assigned to SDP Ref No'

itab_bills_tmp-sdpref INTO zmessage2 SEPARATED BY space.

CONCATENATE '& Bill No' itab_bills_tmp-billno INTO zmessage3

SEPARATED BY space.

CALL FUNCTION 'AQ_INT_SHOW_MESSAGE_AS_POPUP'

EXPORTING

popup_pos_x = 20

popup_pos_y = 4

message_class = 'ZC'

message_number = '015'

message_type = 'I'

message_var1 = zmessage1

message_var2 = zmessage2

message_var3 = zmessage3

  • message_var4 =

  • EXCEPTIONS

  • INTERNAL_ERROR = 1

  • MESSAGE_DOES_NOT_EXIST = 2

  • OTHERS = 3

.

ENDLOOP.

thanks and regards

siva

2 REPLIES 2
Read only

Former Member
0 Likes
451

Hi,

In the message class give the message as follows,

&1 &2 &3 &4 &5 instead of &&&&&.

Regards,

Vinodh.

Read only

Former Member
0 Likes
451

Hi

The FM your are using will display only one message at a time

try using this FM POPUP_DISPLAY_MESSAGE

this will work and will display in row

Import parameters Value

TITEL SSS

MSGID

MSGTY I

MSGNO 000

MSGV1 SADASD

MSGV2 DASDAD

MSGV3 DADA

MSGV4 DADA]

Ouput

I::000 SADASD DASDAD DADA DADA

regards

Shiva