on 01-26-2011 12:45 AM
Hi,
I have an issue when using REPORT_T100_MESSAGE, I need to pass variables in P1,P2,P3 and or P4 but when it has spaces at the end then the message is been displayed without those spaces.
Example:
CALL METHOD LO_MESSAGE_MANAGER->REPORT_T100_MESSAGE
EXPORTING
MSGID = 'Z_VOFM_HPAPAYMX_192'
MSGNO = '606'
MSGTY = 'E'
P1 = '12345678901234567890123456789012345678901234567 '
P2 = lv_msgv2
P3 = lv_msgv3
P4 = lv_msgv4
.
is displaying in the message '12345678901234567890123456789012345678901234567'
instead of '12345678901234567890123456789012345678901234567 '
does somebody knows how to avoid this behavior?
Thanx in advanced!
kind Regards,
Gerardo J
HI
it condenses the strings passed to it through as parameters . so these cannot be maintained.
however why you need space there to be passed. it will automatically shows one space between the two parameters.
thanks
sarb
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sarbjeet,
Really apreciate the help!,
In my case what I´m doing is that I have several entries, some of them are grouped, and when an error is found I display a message that mentions all the labels in that group so I need to display the Error mentioning all the labels separated by ', ' in the group, since there are only 4 variables posible to pass to a message I´m spliting the labels string in this 4 variables, but when there is a space between this split then I have this problem that it loses the spaces, I solved it checking if a space comes at the end of the split and if so then I save just 49 chars instead of 50 in the variable and in next variable(p1,p2 etc) then I save other 50 begining with the space and so on. This way I could avoid this problem but I was looking for something less complex like in the method there were a parameter or something that avoids this behavior.
Kind Regards,
Gerardo J
I´m Marking the question as solved asuming that the message class wont allow to change this behavior, I have seen some threads answered as asumed correct or something like that, if someone knows how to mark them like that please let me know, hope a moderator could help me on this one.
Kind Regards,
Gerardo J
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.