‎2007 Jul 06 6:44 AM
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
‎2007 Jul 06 6:55 AM
Hi,
In ZC mesage class for your message number , have you maintained '&'?
Please write it.
Reward if useful!
‎2007 Jul 06 7:04 AM
Hi,
As per this Function module it will show the one Message and 3 Variables
But check your message parameter Datatype u r concatenating..
Regards,
Nandha
Reward if it helps
‎2007 Jul 06 7:10 AM
Hi Siva,
Just check the code below
Message class: ZAN
Message number 001 &&&
data:z_msg1 type SY-MSGV1 value 'Hi',
z_msg2 type SY-MSGV2 value 'sap',
z_msg3 type SY-MSGV3 value 'by'.
CALL FUNCTION 'AQ_INT_SHOW_MESSAGE_AS_POPUP'
EXPORTING
POPUP_POS_X = 5
POPUP_POS_Y = 5
message_class = 'ZAN'
message_number = '001'
message_type = 'I'
MESSAGE_VAR1 = z_msg1
MESSAGE_VAR2 = z_msg2
MESSAGE_VAR3 = z_msg3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
I think this will help you, please reward points if it is helpfull
Regards
Antony Thomas
‎2007 Jul 07 9:30 AM
Hi Siva,
Did you get the answer . If not let me know, otherwise reward points to my help!
Regards,
Antony