Create null message using BizTalk mapper XSLT

Hi,
I have a requirement to check if a message contains a certian value, and if so, throw away the message.  Does anyone know how this could be done using BizTalk mapper/ XSLT?  It's an ESB messaging only solution so don;t want to introduce orchestratons
/ c# code.
In short is field A = 'yes' the message will be thrown away / made null. 
Thanks in advance.
GilesB

If you consider doing this in Receive-side with some pipeline component, I am afraid you can't eat the data at the receive pipeline. For a null returned, I believe at least a empty message would be published to message box.
Without orchestration, in message-only scenario one option you can consider is using a custom adapter where you can have your logic whether to send a stream/message out or not. Something like:
public bool TransmitMessage(IBaseMessage msg)
_terminate.Enter();
try
bool logMessages = Convert.ToBoolean(
GetAdapterConfigValue(msg.Context, "logMessages")
if ( logMessages ) {
SystemMessageContext ctxt = new SystemMessageContext(msg.Context);
//Add your logic using XPathReader - stream based XPath
//and check whether the message has the value your're looking for
bool isFound = false;
if (!isFound)
string msgData = "";
StreamReader reader = new StreamReader(msg.BodyPart.Data);
using (reader)
msgData = reader.ReadToEnd();
// discard the message
return true;
} finally {
_terminate.Leave();
Above is part of the send adapter code where you add your logic using XPathReader - stream based XPath and check whether the message has the value your're looking for. You can use
null send adapter as refernce and build your logic where it would check for the required value in your custom adapter.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • Why routing failures create two messages in BizTalk admin

    hi,
    can some one help me to understand why routing failures create two messages in BizTalk admin, one with suspended(resumable) and one with suspended(non resumable)?
    Regards, Amit More

    One of the non-resumable Message contains the message context properties which is passe when message is passed for the first time . It varies for with each message retry .
    While the second message contains your actual data i.e incoming message or the message which has failed to route to the destination system .You can resume it when ever the down stream system is available .
    Below links can guide you
    Scenarios Leading to Suspended (Non-Resumable) Messages
    Types of Message Failures
    Thanks
    Abhishek

  • How to map an array to fixed fields using Biztalk mapper

    I need to remap an array of objects like this:
        <Root>
          <ListOfObjs>
            <Obj>
              <Attr1>0000</Attr1>
              <Attr2>Hello!</Attr2>
            </Obj>
            <Obj>
              <Attr1>1111</Attr1>
              <Attr2>Hello1!</Attr2>
            </Obj>
          </ListOfObjs>
        </Root>
    in an output like this:
            <Root>
                <Obj1_Attr1>0000</Obj1_Attr1>
                <Obj1_Attr2>Hello!</Obj1_Attr2>
                <Obj2_Attr1>1111</Obj2_Attr1>
                <Obj2_Attr2>Hello1!</Obj2_Attr2>
            </Root>
    So in my XSD schema I have something like this:
    Schema Input
                               <xs:element name="Root">
                                <xs:complexType>
                                 <xs:sequence>
                                  <xs:element name="ListOfObjs">
                                   <xs:complexType>
                                    <xs:sequence>
                                     <xs:element name="Obj">
                                      <xs:complexType>
                                       <xs:sequence>
                                        <xs:element name="Attr1">
                                         <xs:simpleType>
                                          <xs:restriction base="xs:string">
                                           <xs:minLength value="1"/>
                                           <xs:maxLength value="50"/>
                                          </xs:restriction>
                                         </xs:simpleType>
                                        </xs:element>
                                       <xs:element name="Attr2">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:string">
                                           <xs:minLength value="1"/>
                                           <xs:maxLength value="50"/>
                                          </xs:restriction>
                                         </xs:simpleType>
                                        </xs:element>
                                       </xs:sequence>
                                      </xs:complexType>
                                     </xs:element>
                                    </xs:sequence>
                                   </xs:complexType>
                                  </xs:element>
    Schema output
                                     <xs:element name="Root">
                                      <xs:complexType>
                                       <xs:sequence>
                                        <xs:element name="Obj1_Attr1">
                                         <xs:simpleType>
                                          <xs:restriction base="xs:string">
                                           <xs:minLength value="1"/>
                                           <xs:maxLength value="50"/>
                                          </xs:restriction>
                                         </xs:simpleType>
                                        </xs:element>
                                       <xs:element name="Obj1_Attr2">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:string">
                                           <xs:minLength value="1"/>
                                           <xs:maxLength value="50"/>
                                          </xs:restriction>
                                         </xs:simpleType>
                                        </xs:element>
                                        <xs:element name="Obj2_Attr1">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:string">
                                           <xs:minLength value="1"/>
                                           <xs:maxLength value="50"/>
                                          </xs:restriction>
                                         </xs:simpleType>
                                        </xs:element>
                                        <xs:element name="Obj2_Attr2">
                                        <xs:simpleType>
                                          <xs:restriction base="xs:string">
                                           <xs:minLength value="1"/>
                                           <xs:maxLength value="50"/>
                                          </xs:restriction>
                                         </xs:simpleType>
                                        </xs:element>
                                       </xs:sequence>
                                      </xs:complexType>
                                     </xs:element>
    In addiction I have to evaluate every single value because when I found some conditions (like if value=0000 output should be NULL).
    What would be the best way to do it? I'm thinking to develop a custom functoid but I'm not sure it would be the best way, probably it could be done even using XSLT inline transforms, can you point me in the best direction?
    Thank you

    Hi,
    You cannot directly map an array output to any single field in BizTalk mapper.
    Couple of options :
    1) create
    the Xslt or inline C# code
    Refer: 
    http://seroter.wordpress.com/2008/10/07/splitting-delimited-values-in-biztalk-maps/
    2) Shankycheil has
    provided a solution to similar requirement in the below link, u can also refer that.
    https://social.msdn.microsoft.com/Forums/en-US/55ec472d-4f34-4057-b1c6-0e50740f0f6e/how-to-itterate-string-array-values-in-biztalk-mapper?forum=biztalkgeneral
    Rachit
    Thank you, I already seen both posts, but I'm not sure they are what I need or I can't understand well how to use them.
    Speaking about the first solution, as I told before, in the example I should have an array already formed and delimited by a char (something like "obj1attr1-obj1attr2-ob2attr1-obj2attr2". In this situation probably this example could be a good
    point to start from, but how to transform my complex input object in a similar formatted string?
    About the second I don't understand well what is the working solution that they have adopted. Is the 4 steps solution suggested by  Shankycheil? If yes, how can I loop between all array elements and extract all their values?

  • Creating XLang Message using C#

    Hello all,
    I want to create a new XLangMessage using C# code to test one of the method which takes XLangMessage as input.
    Here is what i tried:
    Microsoft.XLANGs.BaseTypes.
    XLANGMessage sampleOutput;
    XmlDocument tempInput=new XmlDocument ();
    tempInput.Load (
    @"InputMessage.xml");
    sampleOutput[0].LoadFrom(tempInput.ToString());
    returnOutput = classObject.MethodName (sampleOutput
    In the method i implemented some logic.
    However am getting an error message : "Use of Unassigned valriable".
    I tried by initializing null. In that case, its throwing error, "Object Ref Not Set To An Instance" at [sampleOutput[0].LoadForm()] line.
    How to proceed further?
    Regards
    kumaraguru

    I don't know why you need to create XlangMessage (I do do this occasionally, but not very often), and I strongly suggest that you read Paolo Salvatori's excellent post - 
    http://blogs.msdn.com/b/appfabriccat/archive/2010/06/23/4-different-ways-to-process-an-xlangmessage-within-an-helper-component-invoked-by-an-orchestration.aspx
    It will be very useful for you (and any BizTalk developer!) in general, the last section about custom BTX message shows how you can create and return an XlangMessage if you have to.
    Well worth while looking at the second part of this post as well - http://blogs.msdn.com/b/paolos/archive/2009/09/21/4-different-ways-to-process-an-xlangmessage-within-an-helper-component-invoked-by-an-orchestration-part-2.aspx
    Yossi Dahan http://www.sabratech.co.uk/blogs/yossidahan [To help others please mark replies as answers if you found them helpful]

  • How to handle rpc/encoded style messages using BizTalk?

    I am integrating with a lot of services and one of our customers has a service with rpc/encoded style
    I could consume and generate schema from their wsdl file via BizTalk consume WCF wizard.
    Once I am trying to call the service with request message that generated from the schema, it is giving an error that can not desterilize the first element of the message. 
    No Deserializer found to deserialize a 'FieldName' using encoding style 'null'
    I compared the stub xml request message from SaopUI and I noticed that the xml expecting the data type with the element like this .
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsb="WSBanka">
    <soapenv:Header/>
    <soapenv:Body>
    <wsb:bnkBorcsorgulama soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <sozlesmeNo xsi:type="xsd:string">?</sozlesmeNo>
    <bankaKodu xsi:type="xsd:string">?</bankaKodu>
    <anahtar xsi:type="xsd:string">?</anahtar>
    </wsb:bnkBorcsorgulama>
    </soapenv:Body>
    </soapenv:Envelope>
    On the other hand, I got the request of the message from Fiddler using the BizTalk , and the generate xml of the BizTalk schema without the data type.
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsb="WSBanka">
    <soapenv:Header/>
    <soapenv:Body>
    <wsb:bnkBorcsorgulama>
    <sozlesmeNo>?</sozlesmeNo>
    <bankaKodu>?</bankaKodu>
    <anahtar>?</anahtar>
    </wsb:bnkBorcsorgulama>
    </soapenv:Body>
    </soapenv:Envelope>
    In SoapUi, if I remove a datatype from the message, I will get same error from the BizTalk request.
    I read some articles that rpc/encoded style are not supported but I am not sure and these articles are not clear.
    I also read that it was supported with Soap adapter but now it is deprecated.
    So, Is there any one has an experience in rpc/encoded style messages and how to handle these message in BizTalk or is there any work around to handle these messages?
    Your inputs really appreciate it.
    Thanks in advance,
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    Hi,
    Please refer to the document which might help you:
    #RPC/Encoded Style
    http://www.c-sharpcorner.com/UploadFile/martinkropp/DesigningInteroperableWebService11232005044847AM/DesigningInteroperableWebService.aspx

  • Extracting Base64 images embeded inside XML and Convert it into PDF using Biztalk

    Hi,
    I'm presently working in a scenario, where we will be getting huge XML Files containing Base64 encoded images. The scenario goes like this :-
    1) Client will dump the XML files with embedded Base64 images in a sFTP location.
    1) Firstly, we have to extract Base64 encoded images and the metadata from the XML file.
    3) Secondly, we need to convert the extracted Base64 encoded image into multiple pdf.
    4) Then merge the PDF's into a single file.
    5) Then the merge pdf will store to a particular location.
    5) It is presume that, the file will be of very big in size ~ 1 GB XML file, so we need to take care of the performance as well.
    The sample xml looks like:-
    <ns0:tran xmlns:ns0="http://Sample.Schemas.Record_XML">
      <tranheader>
      </tranheader>
      <item>
        <image>
          <frontimage>
            <frontimage> image 1 part 1</frontimage>
          </frontimage>
          <rearimage>
            <rearimage>image 1 part 2</rearimage>
          </rearimage>
          <frontimage>
            <frontimage> image 2 part 1</frontimage>
          </frontimage>
          <rearimage>
            <rearimage>image 2 part 2</rearimage>
          </rearimage>
          <frontimage>
            <frontimage> image 3 part 1</frontimage>
          </frontimage>
          <rearimage>
            <rearimage>image 3 part 2</rearimage>
          </rearimage>
        </image>
      </item>
      <trantrailer>
      </trantrailer>
    </ns0:tran>
    Thanks & Regards

    Do you really need to use BizTalk for this requirement? This can be done better with standard .NET code through a Windows service/schedule task/ if you want to poll,
    you can implement file watcher class and poll the file as when it arrive to SFTP folder and convert the image in base64 to PDFs.
    Another point, I don’t know why you want to “convert the extracted Base64 encoded
    image into multiple pdf” (Point-3) and “Then merge the PDF's into a single file”-
    point4. You can create a single PDF file (unless I don’t know the reason for creating separate PDF file and merge it again as single PDF file)
    Anyway, if you still need to use BizTalk, you have somes options in general:
    Option1:
    Receive the message using BizTalk receive location using passthrouhg pipeline at receive end
    Create a send port with filter for receive portname. In the send port use a custom send pipeline. In the send pipeline use a custom pipeline component which will extract the base64 content from
    the XML file, convert the base64 encoded image as PDF and send the PDF file in the send port level.
    Option 2 – this options works better if you have some process based on your
    <tranheader> record:
    Receive the message using BizTalk receive location using a custom pipeline strip off, decode and store the base64
    encoded document in a temporary store (file system). So when the message is published in message box db, the message doesn’t contain the heafty encoded64 data part, message will be light weight when its published into message box.
    Process the XML message (without bae64 encoded document) with or without orchestration where you will do processing based on your
    <tranheader> record.
    In send last moment –at send port level, retrieve the stored file from the
    temporary store (file system), convert the image to PDF (i,e, hefty processing like creation of PDFs/merging) can be done at the send pipeline level and send the PDF file
    to destination.
    Following are the guidelines you should keep in mind if you need to achieve this process in BizTalk:
    Try to avoid publishing the hefty message to message box.
    Conversion of base64 to PDF can be done only using a .NET code. So your options to do this conversion in BizTalk are either in Receive pipeline/send pipeline/ .NET helper in orchestration.
    Try not to use Orchestration as much as possible, because of heavy processing and message transmission is already involved.
    Following articles shall help you in this context:
    Dealing with base64 encoded XML documents in BizTalk
    To convert Base64 to PDF/JPEG using C# code:
    TechNet-Wiki Code: Converting Base64 strings
    to Bitmap images
    Convert Image to Base64 String and Base64
    String to Image
    Base64 encoding and decoding in .NET
    Regards,
    M.R.Ashwin Prabhu
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Create Support Message from external system

    HI experts,
    I would like to change the Create Support Message screen(Menu->Help->Create Support Message) and add three fields namely: Category, Subject and Solution Number because currently these fields are not populated in the Service desk if I create message in this way unlike in using NOTIF_CREATE tcode where there are selection fields for these.
    Also, I'm creating the support message from an external SAP system and the messsage is sent to the Solution Manager system. The NOTIF_CREATE tcode does not exist in the external system as well as the whole package DSWP.
    Please let me know you rthoughts on this.
    Thanks
    Eric

    Hi guys,
    Thanks for your answers... But is it possible to call transaction NOTIF_CREATE from an external system?
    I have done something already so that those 3 fields will be automatically populated for a message sent from an external system.
    I changed the screen and called FM BAPI_NOTIFICATION_CREATE(a remote enabled FM which is the one being used by transaction NOTIF_CREATE to create a message) inside FM BCOS_SEND_MSG.
    I populated the category, subject and solution in the FM export parameters as well as the solution number in the sap data table. I put a destination also..
    This FM calls another FM DNO_OW_CREATE_NOTIFICATION which is the one being used from the external system but do not cater the functionality to send the 3 fields that we need.
    As you will notice, there are lots of standard objects that I've changed. =)
    My problem now is that the system data sent is the same with the system data if you create the message using NOTIF_CREATE. Some system that were sent when a message is sent from an external system is missing but at least the sap system and client ID is sent. There is no external reference number also. But hopefullly, the users will accept it. Can't find any other solution to this.
    Thanks,
    Eric

  • Urgent SAP Help menu not showing option "Create Support Message"

    Hi all,
    We are running SAP 4.6c landscape (dev,qa,prd), and have solution manager installed .
    Now when i want to create a support messge from any system in my landscape i dont get the option "Create Support Message" in the SAP Help menu, and we create a support message using Help->Feedback option . Is this the correct was or is there any other settings or notes i need to make/apply on my landscape to get this option.
    Message was edited by: Kamran Ellahi

    Hi guys,
    Thanks for your answers... But is it possible to call transaction NOTIF_CREATE from an external system?
    I have done something already so that those 3 fields will be automatically populated for a message sent from an external system.
    I changed the screen and called FM BAPI_NOTIFICATION_CREATE(a remote enabled FM which is the one being used by transaction NOTIF_CREATE to create a message) inside FM BCOS_SEND_MSG.
    I populated the category, subject and solution in the FM export parameters as well as the solution number in the sap data table. I put a destination also..
    This FM calls another FM DNO_OW_CREATE_NOTIFICATION which is the one being used from the external system but do not cater the functionality to send the 3 fields that we need.
    As you will notice, there are lots of standard objects that I've changed. =)
    My problem now is that the system data sent is the same with the system data if you create the message using NOTIF_CREATE. Some system that were sent when a message is sent from an external system is missing but at least the sap system and client ID is sent. There is no external reference number also. But hopefullly, the users will accept it. Can't find any other solution to this.
    Thanks,
    Eric

  • Unable to capture error message while creating an SO using bapi

    Hi,
    Can anybody suggest how to capture the error message while creating a SO using BAPI.
    I have developed a customeized BAPI and using the BDC format to create the SO.
    Note: i am using a call transaction method for the BDC.
    I am sending the message into message1.
    but i am unable to send the same into an internal table
    shyam.

    Hi Shyam
    If my understanding is correct, you are performing BDC process within the customized BAPI...
    And you want to collect the messages from BDC to an internal table and pass to the output.
    Proceed as below:
    1. While calling BDC, use CALL TRANSACTION .... with addition: <b>MESSAGES INTO itab</b>. The structure of itab should be like <b>BDCMSGCOLL</b>.
    2. Now the messages will be collected in ita.
    3. Prepare the messages using FM: <b>FORMAT_MESSAGE</b>
    4. Collect to the returning table.
    Hope this helps...
    Though i could not understand the reason of creating a BDC within BAPI, you can opt for loading orders via BAPI's like: BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2.
    Kind Regards
    Eswar

  • Cannot send message using the server (null)

    i use mail 2.1.
    i have a .mac account and have three other email accounts attached to my mail account.
    lately, i cannot send any email.
    the switchiing ports fix hasn't helped either.
    this is the error message:
    CANNOT SEND MESSAGE USING THE SERVER (null)
    The server response was: 5.1.0 <email [email protected]>...
    From address does not match authentication.
    Use the pop-up menu below to try a different outgoing mail server. All messages will use this server until you quit Mail or change your network settings.
    Message from: email <[email protected]>
    Send message using: [there is a combo box here with all the four accounts servers listed]
    no matter which one i pick it doesn't work and no email is sent.
    anyone have this error before? or now how to fix it?
    i'd be appreciative.
    thanks
    1.67 GHz Power PC PowerBook G4   Mac OS X (10.4.6)   Sony HDR HC3 HD HandyCam MiniDV

    I was having a similar problem (don't feel like typing all the details)
    I was about to to delete my com.apple.mail.plist, when finally it hit me.
    I ran ethereal (again, I'm sorry, but learning how to use ethereal is a topic unto itself). Following the TCP stream (ie. looking at the smtp messages being sent back and forth) I came across two problems. For some reason my port number was set to 567 or something like that, when it's supposed to be 25, as I had originally set it to.
    Once I corrected the port number I started receiving an error message from the smtp server. It said the return email address could not be authenticated. (using xyz.com as an example) The correct return email address was supposed to be [email protected], but for some reason it was changed to john@xyz in the account settings.
    Anyway, to get to the point, another thing to check is that your return address has been set correctly, and if all else fails, make sure you have X11 installed and use fink to install and run ethereal. This will let you know if you are actually connecting to the server, and will show you any error messages.
    PS. I think this problem started occurring with the last update made to mail. I believe it somehow corrupted my settings. This would explain how my port number could have been changed to the default port number of .mac mail.

  • HT3529 Is there a way to create, store and use preset messages for use with "Messages"?

    Is there a way to create, store and use preset messages for use with "Messages". I often have a recurrinig message to send, after a repeating event, and need to enter the same short message each time. It would be nice to have this short message stored and selectable so that I do not need to enter each time.

    found an answer that seems to work:
    https://discussions.apple.com/message/17997300#17997300

  • Retrieving a message using XSLT

    Hi,
    I have XML file like the following
    <doc xmlns="http://schemas.soap.org/...."
    xmlns:ems="http://www.dummy.com/ems"
    xmlns:op="http://www.dummy.com/ems"
    >
    <Message>Hello<Message>
    </doc>
    Now using XSLT I want to extract the message 'Hello' from Message tag.
    The XSLT is
    <xsl:template match="doc">
    <xsl:value-of select="Message">
    </xsl:template>
    This XSLT is not returning me the message Hello. Had the XML been like
    <doc>
    <Message>Hello<Message>
    </doc>
    then this XSLT works fine.
    Can somebody please help me get the message??
    Thanks
    Prashant

    XML should be well formed.
    1.)In your XML document <Message>Hello<Message>,that is a serious error.
    I suggest you close the tag <Message>
    2.)In your XSLT, similar error :<xsl:value-of select="Message">
    I suggest u close that as well and change it to
    <xsl:value-of select="Message"/>. (Notice the " /" at the end of the tag.
    It works for me..i see no reason why it shouldnt work for u after u have introduced these changes

  • How do I create a message board/forum using forms in Dreamweaver?

    I want to create a forum or messageboard using the form in Dreamweaver but I don't know how to do it. Is there any guidance on how I could create a message board or forum on Dreamweaver?

    I don't think it can be done with just dreamweaver,
    You will have to download something like PHPBB,
    If you have a host with fantastico deluxe you can easily set up a forum
    with it.
    Daniel

  • How to create Object related messages using cl_bsp_wd_message_service?

    Hi Gurus,
    Can any ony explain how to create the object related messages using add_message method of cl_bsp_wd_message_service?
    Thanks,
    Murali.

    Hi Murali,
    Check the below code .. hope it helps..
      DATA lr_msg_service     TYPE REF TO cl_bsp_wd_message_service.
      DATA lr_exception       TYPE REF TO cx_root.
      DATA lr_rtti            TYPE REF TO cl_abap_objectdescr.
      DATA lv_msg_type        TYPE        symsgty.
      DATA lv_msg_id          TYPE        symsgid.
      DATA lv_msg_number      TYPE        symsgno.
      DATA lv_msg_v1          TYPE        symsgv.
      DATA lv_msg_v2          TYPE        symsgv.
      DATA lv_msg_v3          TYPE        symsgv.
      DATA lv_msg_v4          TYPE        symsgv.
      DATA lv_msg_level       TYPE        bsp_wd_message_level.
      DATA lr_verification    TYPE REF TO if_bsp_wd_message_handler."#EC NEEDED
      DATA lv_important_info  TYPE        abap_bool.
      DATA lv_exc_prog_name   TYPE        syrepid.
      DATA lv_exc_incl_name   TYPE        syrepid.
      DATA lv_exc_src_line    TYPE        i.
      lr_exception = ir_exception.
    drill down to first exception
      WHILE lr_exception->previous IS BOUND.
        lr_exception = lr_exception->previous.
      ENDWHILE.
      lr_rtti ?= cl_abap_typedescr=>describe_by_object_ref( p_object_ref = lr_exception ).
      lr_exception->get_source_position( IMPORTING program_name = lv_exc_prog_name
                                                   include_name = lv_exc_incl_name
                                                   source_line  = lv_exc_src_line ).
    prepare message
      lr_msg_service = cl_bsp_wd_message_service=>get_instance( ).
      lv_msg_type   = if_genil_message_container=>mt_warning.
      lv_msg_id     = 'CRM_IC_APPL'.
      lv_msg_number = '003'.
      lv_msg_v1     = lr_rtti->get_relative_name( ).
      lv_msg_v2     = ir_exception->get_text( ).
      lv_msg_v3     = lv_exc_incl_name.
      lv_msg_v4     = lv_exc_src_line.
      lv_msg_level  = '9'.
    add message to error log
      lr_msg_service->add_message(
          iv_msg_type       = lv_msg_type
          iv_msg_id         = lv_msg_id
          iv_msg_number     = lv_msg_number
          iv_msg_v1         = lv_msg_v1
          iv_msg_v2         = lv_msg_v2
          iv_msg_v3         = lv_msg_v3
          iv_msg_v4         = lv_msg_v4
          iv_msg_level      = lv_msg_level
          iv_verification   = lr_verification
          iv_important_info = lv_important_info ).
    Regards,
    Raghu

  • How to make a Struts message null after used in JSP?

    Hi,
    In the context of Struts/JSP,
    An action class might write error messages by
    ActionError msg = new ActionError("msg.request.something");
    ActionErrors msgs = new ActionErrors();
    msgs.add(ActionErrors.GLOBAL_ERROR,msg);
    saveErrors(request,msgs);
    This message will produce a popup modal window by the following JSP code:
    <logic:messagesPresent>
    <html:messages id="error">
    <!--<li class="infomsg"><bean:write name="error"/></li> -->
    <script>javascript:alert('<%=error%>')</script>
    </html:messages>
    </logic:messagesPresent>
    The problem is that this JSP page is shared by serveral actions: when another action invoke this page again, the previous error message will take effect again.
    So my question is how to make message null after used once by its author.
    Thx.
    PY

    msgs = null;

Maybe you are looking for

  • Database is slow

    Hi, we have migrated database from single instance to 2 node RAC recently and since then we have been observing degardation of perfromance.The mostly observed wait events on the database are buffer busy waits and db file sequential read.another obser

  • CreateSession Problem

    Hi, I'm connecting using PAPI, to connecto BPM Process in Winodows box from clients running in Unix weblogic. ProcessServiceSession session1 = service.createSession("test", "", "test"); This line of code takes 30min to create a session in ALBPM SA ed

  • No Target Disk Mode shown up

    Hi, When I open System - Preference - Startup Disk, there is no "Target Disk Mode" button as expected. What's going on with my Mac? OS: 10.10.1(14B25)

  • Problem Creating a query for a hierarchical tree. [using connect by prior]

    Hi all, I have 2 tables. box (box_id, box_name) item(item_id, item_name, box_id) In a box there are several items. I want to create a hierachical tree to display items that are present in each box. LIKE: |---BOX1 | |----ITEM 1 | |----ITEM 2 | |---BOX

  • Week 34 MacBook Pro, whine still there?

    I just got my replacement Week 34 MacBook Pro (week 32 one was physically damaged on arrival). I've been noticing a slight buzzing noise when the AC adapter is plugged in and it goes away when I open Photo Booth. However it is nowhere as loud as I re