Message class
Hi,
I have created amessage in the message class ZUP as &&&& in message number e000.In the program if a certain condition is not satisfied,it has to give error message as 'either select the file,or enter the plant and materials, but not both'.
I gave this message in two text elements text-001 and text-002.In the program I gave the code like this
MESSAGE e000 WITH TEXT-001 TEXT-002.
But in the o/p it is showing only two && and it is not displaying the text.What would be the reason for this?
Regards,
Hema
Hi,
I got the output I tried as you said only, I think in TEXT Elements you are not given space in between '&' you have to give like this & & & &. If you don't give spaces it will shows message as && like that only.
Regards
Ganesh
Similar Messages
-
Message class as result data object
hello brf+ users,
is it possible to use as Result data object in a Case expression a message from a custom message class?
thanks
danilothanks Carsten,
my requirement can be simplified in
IF FISCAL CODE
equals to " " then "001" ENTRY MISSING is returned
otherwise "000" check ok is returned.
where 000,001 are domain values of an element (MESSAGE RESULT).
can i use the message class as result? is there a way to anchor the result to the message class?
thanks
danilo -
Write message to Job log with message class and message number
hi folk,
When running a background job I'm able to write a message to the job log using the statement - Message "some text..." type 'I'.
In the Job log I can see the message "some text.." with a "default" message class and message number (but in my report i don't specify any message ID) so I have no idea it comes from.
Then I try to send a message where I specify the message class/number etc...using message id 'Z1' number 000 with "some text..." In the job log I now can see the "right" message class "Z1" and the number 000, but the message is empty?
Please advice how to write a message with the message class and message number.
Best regards
LinhNgHi Linh,
How did you provide the text "Some message"? Did you hard code it or used a text element?
Regards,
Immanuel. -
How to import a message class in a fm
Hello!
I' m programminn a FM.
I need to use a message class that i have created. How i can import it?
I have to return a strcuct which i have to copy my message class.
My code:
DETAIL_RETURN-ID =
DETAIL_RETURN-NUMBER =
DETAIL_RETURN-MESSAGE =
DETAIL_RETURN-MESSAGE_V1 =
APPEND DETAIL_RETURN.
I know in a report is:
REPORT report_name MESSAGE-ID my_message_class_name.
In a FM?
regards1.Add in the Top include or
2.
message id is nothing but Message class .
here u have to populate the Return table itself.
like this
DETAIL_RETURN-ID = 'V1'.
DETAIL_RETURN-NUMBER ='100'.
DETAIL_RETURN-MESSAGE = 'Njoy SAP'.
DETAIL_RETURN-MESSAGE_V1 = 'U'.
APPEND DETAIL_RETURN.
Regards
Peram -
Error Occured While Creating message class 8II In SapNote 1486147
Dear All
I applied SapNote 1486147 but at the time of creating message class 8II
It shows error like this
Object MSAG 8II is in reserved name range for sap partner
Any body help on this.
Edited by: chandrap on Feb 24, 2011 2:08 PMHi Yasir,
remove the jaxb.jar from the WEB_INF/lib and move
them to your SUNWappserv/lib/endorsed - dir, together
with the following jars:
dom.jar jaxb-api.jar jaxb-impl.jar jaxb-libs.jar
jaxb-xjc.jar namespace.jar relaxngDatatype.jar
r xalan.jar
xercesImpl.jar xsdlib.jar
(restart the deploytool if used)
This should work,
Bas van OudenaardeHi Bas
Thank you for the very useful tip but I don't seem to have a SUNWappserv/lib/endorsed - directory inside my .war archive , could you please advise on this issue -
Issue in maintaining Long Text in Message Class
Hi
For Note implementation 1413492, I have to maintain long text, when I click on Long Text , I get a pop-up Create Modification , with 2 options for Template Type (1) Original Text (2) Template (With Headers)
Can anyone let me know how to proceed further, whatever name I give for the Modification, I am getting Error Message saying 'Enhancement Name violates the namespace convention (Note 989653)', I have tried unchecking the Self Explanatory check box as well, but still I get the same error message.
Below is the Long text I have to maintain class FR, message number 533
7. Create new error messages in the message class FR:
Call transaction SE91, enter the message class FR, and choose "Display" and
then "Change". Enter the following new messages:
Message Message short text:
533 Error while calling RFC destination
534 Contract Accounts Receivable and Payable is not installed in the
system
535 For company code & there were & data records transferred from
FI-CA
536 Error during data transfer from FI-CA for company code &; error
text:
Set the "Self-explanat'y" indicator for messages 535 and 536.
Enter a long text for messages 533 and 534:
Long text FR 533:
CAUSE
An error occurred when testing the RFC connection to Contract Accounts
Receivable and Payable. The message text is:
&V1&&V2&&V3&
SYS_ADMIN
Check the settings of the RFC destination &V4&.Hi Ryan,
Extract from note 989653;
Note:
The name of the modification object must start with:
o 'Z'/'Y', or
o the customer namespace available in the system (TRNSPACE table).
Otherwise, message 645 will appear because the SAP namespace is not
permitted.
My suggestion would be to start the name with a Z.
Regards,
Nick -
How to maintain long texts in different languages in a message class
Hi All,
I have maintained a message and its transaltions in some other languages in a custom message class. I have maintined the long text in English language. But I am not getting how to maintain the long text in other languages.
Please help.
Regards
KiranHi Kiran,
Good!
In the message class corresponding to that message give the place holders &&&&.
Like 001 &&&&
in the program.
Message <class>001 with text-001 text-002 text-003 text-004.
then you could disply long text.translation takes place if u enter in different language automatically.
thanks,
Sunil. -
Selecting and moving many messages not working - try sorting by message classes
I posted this a while back, and have an update now.
I file my sent items. Call me crazy, but I like to at the end of every quarter, move sent items from that quarter into sub folders. It's usually 2-4000 items, and ever since I installed OL2010, I have had weird issues when trying to clean my Sent items.
Example: Select 2000 items, sorted by date from Sent Items. Drag and drop to my 2009Q4 folder. It then prompts me "Creating a new item from the selected items could take some time. Are you sure you want to create a new item from these 2000 items?"
So I figured possible Ctrl is stuck down or something, so I right click, Move, select the folder. Same issue.
I start selecting smaller data sets. I got to about 50-60 items at a time that I was able to move and not get that message. I got frustrated and stopped working on it.
This morning, I decided to re-test this. Same issue presents itself. So instead, I sorted by message class. I was able to select 3800 message items. The remaining items were messages with attachments, text/mobile messages, and calendar invite responses.
It appears that some combination of selecting multiple message classes was triggering my issue. I suspect the newest of them, the mobile messages to be the issue, so I deleted them, and retried, nope, same error, even selecting only the show message class types. Would like to see this fixed, of course, and will be sending a frown with the link to this thread as well.
ChrisI had this problem too. For me, simply sorting by message class, then finding all the calendar items and moving them first, then going back and doing the rest, allowed me to move them as I liked. However, its not clear to me that I have
all message classes (not sure what they all are), so it could be there are other message classes that cause problems when you move "mixed classes". I do think this is an MS Outlook bug, but not clear anyone has reported it to MS. ;-<
You can prove this by simply selecting a calendar item and a msg, and try moving the two. You will have this issue.
However, you'd think that MS itself would be a vast user of MS Outlook and if we're discovering this, you'd think MS internal folks are too, so I'm deferring to them to self-resolve. Until then, I'll just use this workaround.
Definition of "Message classes" for others reading this... You may have already inferred, but two examples of "classes" are a normal email (.msg) and a calendar item. You can sort these by clicking on the "icon" field at the top of your email
folder, just to the right of the "bell" (Reminders). Not sure how to put a .JPG in this posting, since a picture would explain this much better than I can using words. -
How to get the text of a message class
Hi,
I have a message class and added few message(with attributes) to that class.
Now i want to read the text of the message based on the attributes and
the message no.
Example:
Message 19 is - Where is &1. Where is &1. Where is &1. Where is &1.
Information that i have :
ls_msg-msgty = 'S' .
ls_msg-msgid = 'AP_JATT_TDC_MSG_CL'.
ls_msg-msgno = 19 .
ls_msg-msgv1 = 'A'.
ls_msg-msgv1 = 'B'.
ls_msg-msgv1 = 'C'.
ls_msg-msgv1 = 'D'.
From the info that i have i want the text
Where is A. Where is B. Where is C. Where is D.
Is there any function modules which will provide me these details?
Regards,
Bikash.HI
You can get the Text based on the Message attributes using the FMs
FORMAT_MESSAGE
MESSAGE_TEXT_BUILD.
Use any one of them..
It will work for u...
<b>reward if Helpful</b> -
Linking an entity table to a message class
Is there any way to associate the contents of an entity table (v_tvk0 through v_tvk9) with a defined message class?
Regards.if you want to pass internal table, then you have to use the table types. create the Table type (you can define in Se11 or you can define your own type pool and include in the properties section )and refer it when you are defining the importing or exporting parameter.
-
How to increase the length of a message in message class
Hi Friends,
Is there any way to increase the length of a message in a message class as the maximum length is 72 chars.
My requirement is I cannot use the Long text option.
Thank YouHI,
We cannot change the message length in the message class
but you can do one thing ,
while giving the message in your msg class write till which you are allowed to and then you put '&'
eg : this is message &
now goto text elements and create a text element suppose T00
and write the remaining text in that text element.
and when you want to display the message do it like
message i00(zmsg_class) with text-T00.
it ll work.
*****Reward if useful,
Thanks & Regards,
Sunny Suren .C. -
How to find the Message Class and ID for messages in WebIC
Dear Experts,
I get some error messages in the WebIC
I went to SAAB to activate and see details on the error messages
But, what i am missing is the the message class and the ID information
Can any one tell me if there is a work around to check and find out which message class and ID the message belongs to
Regards,
RajHi Raj,
Put a break-point in method get_instance or ADD_MESSAGE of class cl_bsp_wd_message_service.
Best regards,
Caíque Escaler -
Message length in a message class
hi all,
I have a error message to be displayed in report , its length exceeds 74 character.
What is the way to increase the default length?
or is there another way to display the error where length is greaterHI
You can Write Like ths
MESSAGE E000(Z..) WITH text-001 text-002.
And Also go through This Link
How to increase the length of a message in message class
Ranga -
Message Text in a Message Class is missing in Production System
Hi,
I am facing a peculiar error, in Message Class, the messages which I created was missing all of sudden in Prod system which was present earlier.
The same messages are available in Dev and QA system.
Even I checked all the transports whether I have deleted unknowingly and moved to Prod, but I didn't.
Whether Is it possible to delete the messages in Prod system directly and Is there any way to find how the messages got missed in Prod system. Kindly share your valuable inputs.
Regards,
Karthikeyan.Hi Karthikeyan,
If the SAP systems are upgraded recently this case may occur. Sometimes during the enhancement patch upgrade some objects get vanishes from systems.
So you can take help of the BASIS team, Inform them this object was present earlier.
They will take a look and will resolve it.
Cheers,
Pravin -
Pass a varaible (Place holder) in the Long text of message class
Hi Gurus,
My requirement is to display an error messages using message class for better understanding I am using Long text will it possible to pass a variable (place holder) in the long text if possible means suggest how to pass the variable (we need to put any &1 like this similar we do in message class) or only we can display only text in long text.
Confirm the same
Regards
Dhanoohiii
Create new message in message class with text like material number & is not valid
Here .
& symbol is the place holder. you can dynamically pass some thing to this message. In your validation do like this.
MESSAGE e001 WITH wa_matnr.
Here wa_matnr is the input field value.Display this message under appropriate events.
eg: AT SELECTION-SCREEN ON wa_matnr in case of reports.
reward if useful
thx
twinkal -
Long Text of a custom message class on a pop up screen
Hi All,
I have a custom message class and i have few custom messages with short text and long texts.
Then i have a ALV report output which displays the message class and message number and my requirement is when i do F1 on the message number i want the long text to be displayed on a popup screen
Can anyone give me an idea as how to approach this
Thanks in advancehi,
try the below code.
DATA: HELPINFO LIKE HELP_INFO.
DATA: LONGTEXT LIKE TLINE OCCURS 1 WITH HEADER LINE.
DATA: EXCLUDEFUN LIKE SY-UCOMM OCCURS 1 WITH HEADER LINE.
longtext-tdline = 'Sales Order test help'.
append longtext.
CALL FUNCTION 'HELP_DOCULINES_SHOW'
EXPORTING
CUCOL = 10
CUROW = 3
HELP_INFOS = HELPINFO
LINENR = 1
TABLES
EXCLUDEFUN = EXCLUDEFUN
HELPLINES = LONGTEXT
Maybe you are looking for
-
Image in Photoshop looks smaller than in a viewer. Please help!!!
When i view an image in PS CC in looks 2 times smaller than in Mac OS Preview or in any other viewer. I tried it on another computer - same thing. (Photoshop CC, 15 inch Macbook Pro with Retina display) Moreover, while the image looks sharp in photos
-
Mailboxes reference old mailbox server name
Exchange 2010 SP2 RU7 We are preparing to decommission one of our mailbox servers in a DAG and it currently contains no mailboxes or database copies. However, when we run get-mailbox -server OLDSERVER there seems to be a few mailboxes that still ref
-
IBook say's it's connected to internet but it isn't...
Hi everyone, I've been using an old iBook running os 9.2.1 and it is able to connect to every other wireless internet but the one in my house! I'm using DSL with a 2wire 2700HG-d router and the thing is, it used to connect fine until we had to reinst
-
Has anyone got any bright ideas for bulk creation of a page hierarchy. We would like to create about 100 pages in a simple hierarchy, and need to reproduce the hierarchy with minor changes in multiple environments. If there were a page creation API t
-
External Hard Drive...USB or Firewire 400
I just purchased a new iMac (I'm coming from the P.C. world) and would like to purchase an external hard drive for backup purposes. I was wondering whether to purchase a USB, Firewire, or a drive compatible with both. Which runs faster on Macs? I was