2009 Jun 23 3:38 PM
Dear All,
Case1: I am using message class ZMESSAGE in my program as mentioned below.
PROGRAM zm_pp_prdconf MESSAGE-ID zmessage.
LOOP AT lt_return WHERE type = 'E'.
MESSAGE e001 WITH lt_return-message.
ENDLOOP.Message class: ZMESSAGE
001 & & & &Here, my problem is.. the text from lt_return-message is not displaying completely. It is displaying maximum 50 Characters.
Example:
If lt_return-message = 'The Plant data for the material 10000 is locked by the user XXXXXXXXXXX".
It is displaying only "The Plant data for the material 1000 is locked by"
Can anyone help me for this problem
Case 2: I have also tried using the statement,
MESSAGE lt_return-message TYPE 'E'.In this case. I am getting the message like "No Vendor specified" instead of displaying the real text.
Can anyone tel me the solution for either of these cases.
2009 Jun 23 3:43 PM
Hi,
The variable part of the message (the &) is only 50 characters long, your field lt_return-message is longer than this so it truncates.
Try breaking the message string up into smaller parts;
MESSAGE e001 WITH lt_return-message(50) lt_return-message+50(50)
lt_return-message+100(50) lt_return-message+150(50) .
Regards,
Nick
Dear All,
Case1: I am using message class ZMESSAGE in my program as mentioned below.
PROGRAM zm_pp_prdconf MESSAGE-ID zmessage.
LOOP AT lt_return WHERE type = 'E'.
MESSAGE e001 WITH lt_return-message.
ENDLOOP.Message class: ZMESSAGE
001 & & & &Here, my problem is.. the text from lt_return-message is not displaying completely. It is displaying maximum 50 Characters.
Example:
If lt_return-message = 'The Plant data for the material 10000 is locked by the user XXXXXXXXXXX".
It is displaying only "The Plant data for the material 1000 is locked by"
Can anyone help me for this problem
Case 2: I have also tried using the statement,
MESSAGE lt_return-message TYPE 'E'.In this case. I am getting the message like "No Vendor specified" instead of displaying the real text.
Can anyone tel me the solution for either of these cases.
2009 Jun 23 3:43 PM
Hi,
Try to split the message and pass to MESSAGE statement..
lt_return-message1 = 'The Plant data for the material 10000'.
lt_return-message2 = 'locked by the user XXXXXXXXXXX".
LOOP AT lt_return WHERE type = 'E'.
MESSAGE e001 WITH lt_return-message1 lt_return-message2 .
ENDLOOP.
2009 Jun 23 3:43 PM
Hi,
The variable part of the message (the &) is only 50 characters long, your field lt_return-message is longer than this so it truncates.
Try breaking the message string up into smaller parts;
MESSAGE e001 WITH lt_return-message(50) lt_return-message+50(50)
lt_return-message+100(50) lt_return-message+150(50) .
Regards,
Nick
2009 Jun 23 3:48 PM
Hi,
Split the sentence into two and use two variables. See the below example.
data v1(65) type c value '12345678901234567890 12345678901234567890 12345678901234567890'.
data v2(5) value 'hello'.
message i000 with v1 v2.
2009 Jun 23 3:55 PM
2009 Jun 23 4:13 PM
Hi,
While my earlier solution will work, Raymond's is the better approach, as it will also allow you to navigate to the long text of the message, whereas using a generic message with for placeholders will not.
Regards,
Nick
2009 Jun 23 4:14 PM
Hi,
Use the FM "FORMAT_MESSAGE" to construct the complete message.
for this FM u need to pass Message class, Message Number, Message variables V1,V2,V3,V4.
Regards,
Bharat Kalagara.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |