Generic message nesting.

Hello,
I am working on a mapping scenario from xml files to idoc.
The xsd of the source file I am receiving consists of an enclosing type, with a generic placeholder where in actual files there are several types of sub messages which are represented by separate xsds.
My question is, how can I parse this type of file, except for using java or xslt mapping program?
For example this may represent my message:
<ENCLOSING_MESSAGE>
  <ENCLOSING_DATA>
  </ENCLOSING_DATA>
  <CONTENT>
    Here, in the xsd, there is a generic parameter, but in files it can go like this:
   <MESSAGE>
   </MESSAGE>
   <ATTACHMENT>
   </ATTACHMENT>
  </CONTENT>
</ENCLOSING_MESSAGE>
Thanks in advance, Gershon.

I tried to edit the xsd to comply with xi requirement, but didn't make it to work,
so i decided to use a java mapping program.

Similar Messages

  • Generic Message Bundle Property Files

    Hi
    I am using a generic message properties file, which is contained in a seperate java project too the model and view controller projects. In our custom validations on the entities I am referencing the custom messages from the resources project. When running the application module the correct error messages are displayed. However the error messages are not correctley displayed in the UI and the following error message is displayed,
    Error: STRINGMANAGER: Message file: 'java.util.ResourceBundle.msg_en_ZA' not found. (Looking for 'InvalidJobId').
    I have tried including the resource bundle in the view controller project, firstly in the project properties as a Resource Bundle and as a jar file without succes.
    Any help in resolving this would be appreciated.
    Regards.
    Leon.

    Leond wrote:
    Error: STRINGMANAGER: Message file: 'java.util.ResourceBundle.msg_en_ZA' not found. (Looking for 'InvalidJobId').
    I suggest that you verify your browser locale. It seems that it is set to ZA and you don't have a property file (ResourceBundle.msg_en_ZA) for that locale.
    Alternatively, rename to or create the file ResourceBundle.msg_en_ZA.

  • How to define document protocol for Custom/Generic message of ASCII types

    We need define for B2B document protocol for Custom over Generic message type to receive/process ASCII message (either fixed or indefinite length) from Trading Partner, can anybody tell us if you have done it with detailed example and instruction:
    1) In creating protocol revision/document definitions, do I need an Edifecs .ecs file? if yes, how to create the format for indefinite string? if not what I should put in document
    definition for 'IDoc ecs File' ? (we actually we may have two different types
    of ASCII message, not sure how to differentiate them)
    2) Does Identifying expression need message/document translated into XML first ? since it's for
    'Identifying XPath Expression' which implied existence of XSD
    3) Please provide detailed example you accomplished this in B2B
    Thanks in advance for any help!

    Yes its something on the similar lines but looks like this comparator needs to be at some specific place.
    I tried to implement comparator interface in the custom domain data type class but it still throws the same exception.
    Looks like RowComparator needs to be defined somewhere. any idea where?
    The complete exception is below:
    Caused by: oracle.jbo.JboException: Cannot find compare routines for test.MyString
         at oracle.jbo.RowComparator.compareValues(RowComparator.java:108)
         at oracle.jbo.RowComparator.compareRows(RowComparator.java:146)
         at oracle.jbo.RowComparator.compare(RowComparator.java:158)
         at java.util.Arrays.mergeSort(Arrays.java:1270)
         at java.util.Arrays.mergeSort(Arrays.java:1281)
         at java.util.Arrays.mergeSort(Arrays.java:1281)
         at java.util.Arrays.sort(Arrays.java:1210)
         at oracle.jbo.server.ViewObjectImpl.sortRows(ViewObjectImpl.java:6752)
         at oracle.jbo.server.QueryCollection.sortRows(QueryCollection.java:995)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1177)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1331)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1249)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1243)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:6715)
         at org.calwin.view.bean.Table.tableSorting(Table.java:46)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)

  • JMS Patterns - Generic Message Handler

    Hi,
    For those interested in Java EE patterns, I've created a [blog post|http://jonathanjwright.wordpress.com/2009/08/12/jms-patterns-generic-message-handler/] outlining the use of a generic message handler to simplify MDB message type checking and payload extraction.
    Regards,
    Jonathan

    This requirement has now gone away after implementing SP21

  • JDBC response generic message format

    Hello experts
    I have a proxy to JDBC scenario,In the Receiver end , i have to call 3 SQL statements.The Format is as follows
    <Statement1>
    Delete Query
    </<Statement1>
    <Statement2>
    Insert Query
    </Statement2>
    <Statement3>
    Stored Procedure
    </Statement3>
    I want a response in the stored procedure.So i have to make the inbound message type synchronous.Will i be getting the response for all the statements .What would be the exact generic format of the response message.Unless i know the response message type i will not be able to design the exact receiver message type.plz throw some light on this

    <root>
      <StatementName1>
    <dbTableName action=u201DUPDATEu201D | u201CUPDATE_INSERTu201D>
      </StatementName1>
      <StatementName2>
    <dbTableName action=u201DINSERTu201D>
      </StatementName2>
      <StatementName3>
    <dbTableName action=u201DDELETEu201D>
      </StatementName3>
      <StatementName4>
    <dbTableName action=u201DSELECTu201D>
      </StatementName4>
      <StatementName5>
    <storedProcedureName action=u201D EXECUTEu201D>
      </StatementName5>
    </root>
    The response is put in a separate element <StatementName_response> for each statement element.
    like here in this root i am getting response for  <StatementName5>
    So response Structure would be like ....
    <root_response>
                              <StatementName4_response>
                                        <row>
                                         row structure from select query
                                        </row>
                              </StatementName4_response>
                              <StatementName5_response>
                                        <row>
                                         out element of stored procedure.
                                        </row>
                              </StatementName5_response>
    </root_response>
    Hope this Helps.
    Regards
    Dragon.
    Edited by: KOMODO DRAGON on Jun 28, 2010 12:47 PM

  • Generic Dump Nested Collection Procedure?

    Greetings,
    Anyone have a proc which when passed a (possibly deeply) nested collection will dump a pretty-printed representation via dbms_output?
    I know this is a mostly just a typing exercise using recursion, but
    1. my PL/SQL skills apparently aren't up to the task
    2. I don't see any kind of get_type() function for the dump proc to use to decide how to loop through sub-collections
    so I'd like to see how the experts do it.
    Am using 10g.
    Thanks,
    --jim
    example:
    DECLARE
      TYPE numset_t IS TABLE OF NUMBER;
      TYPE numset_t_aa IS TABLE OF numset_t INDEX BY VARCHAR2(16);
      TYPE numset_t_aa_v IS VARRAY(2) OF numset_t_aa;
      n_aa numset_t_aa;
      n_t_aa_v numset_t_aa_v;
    BEGIN
      n_aa('tens') := numset_t(10,11,12);
      n_aa('ones') := numset_t(1,2,3);
      n_t_aa_v(1) := n_aa;
      n_aa.DELETE('ones');
      SELECT * BULK COLLECT INTO n_aa('hundreds') FROM table(numset_t(103,102,101));
      n_t_aa_v(2) := n_aa;
      dbms_output('dumping n_t_aa_v:');
      dump_collection(n_t_aa_v);
    END;expected output:
    dumping dumping n_t_aa_v:
    1:
      tens:
        1: 10
        2: 11
        3: 12
      ones:
        1: 1
        2: 2
        3: 3
    2:
      tens:
        1: 10
        2: 11
        3: 12
      hundreds:
        1: 103
        2: 102
        3: 101

    Hi,
    Why are you using collections in the first place?
    If the sole purpose here is to generate XML, then you don't need collection at all, just query your base tables with SQL/XML functions.
    If these collections are part of a larger process (besides generating XML), then you'll need to use at least SQL types instead of local PL/SQL types if you want to efficiently generate XML out of them.
    For example, using the XMLType constructor over the topmost object : {message:id=10012696}

  • Processing a generic message

    Hello.
    I am trying to create a BPEL flow that will process any message recieved by it.
    It should add a header and send back, otherwise untouched.
    I'm having the following problems :
    1. I need to get all the headers and send them back, without knowing which and how many headers I may recieve, which seems impossible with the header variables extension (I didn't tackle this problem yet).
    2. I need to send the entire body of the message back without modifying it.
    I tried to solve problem 2 by creating a message which contains one part with type xsd:anyType (xsd:any won't compile). I could recieve the message with no problems, but it was sent back wrapped with a new element (named after the part name).
    Does anyone has an idea?

    1. I falsely expected that you are talking about JMS queues and you want to listen by JMS adapter to JMS messages and get header properties from JMS message. Because this was my recommendation. Now I know that you are talking about SOAP messages.
    2. second one was also related to JMS adapter. But it might work with your SOAP message body.
    in your WSDL you have to define following type:
    define this namespace xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns="http://www.w3.org/2001/XMLSchema" >
    <element name="opaqueElement" type="base64Binary" />
    </schema>
    and then your message type should be following:
    <message name="Read_msg">
    <part name="opaque" element="opaque:opaqueElement"/>
    </message>
    Now you are getting content as encoded string. And in same way you can pass it to receiver. But I don't know if this works with SOAP body messages. Theoreticaly it should.
    For point #1 I have one little question. Are you aware of following feature of BPEL?
    in wsdl you can define something like this:
    <message name="MessageIDHeader">
    <part name="MessageID" element="wsa:MessageID"/>
    </message>
    <message name="ReplyToHeader">
    <part name="ReplyTo" element="wsa:ReplyTo"/>
    </message>
    <!-- custom header -->
    <message name="CustomHeaderMessage">
    <part name="header1" element="tns:header1"/>
    <part name="header2" element="tns:header2"/>
    </message>
    <binding name="HeaderServiceBinding" type="tns:HeaderService">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="initiate">
    <soap:operation style="document" soapAction="initiate"/>
    <input>
    <soap:header message="tns:ReplyToHeader" part="ReplyTo"
    use="literal"/>
    <soap:header message="tns:MessageIDHeader" part="MessageID"
    use="literal"/>
    <soap:header message="tns:CustomHeaderMessage"
    part="header1" use="literal"/>
    <soap:header message="tns:CustomHeaderMessage"
    part="header2" use="literal"/>
    <soap:body use="literal"/>
    </input>
    </operation>
    </binding>
    and then in receive you can get them in following way:
    <variables>
    <variable name="input"
    messageType="tns:HeaderServiceRequestMessage"/>
    <variable name="event"
    messageType="tns:HeaderServiceEventMessage"/>
    <variable name="output"
    messageType="tns:HeaderServiceResultMessage"/>
    <variable name="customHeader"
    messageType="tns:CustomHeaderMessage"/>
    <variable name="messageID"
    messageType="tns:MessageIDHeader"/>
    <variable name="replyTo"
    messageType="tns:ReplyToHeader"/>
    </variables>
    <sequence>
    <!-- receive input from requestor -->
    <receive name="receiveInput" partnerLink="client"
    portType="tns:HeaderService" operation="initiate"
    variable="input"
    bpelx:headerVariable="customHeader messageID replyTo" createInstance="yes"/>
    But as you see you must enumerate all SOAP header properties :-(
    And now oposite way for sending SOAP properties is following:
    <variables>
    <variable name="input" messageType="tns:HeaderTestRequestMessage"/>
    <variable name="output" messageType="tns:HeaderTestResultMessage"/>
    <variable name="request" messageType="services:HeaderServiceRequestMessage"/>
    <variable name="response" messageType="services:HeaderServiceResultMessage"/>
    <variable name="customHeader" messageType="services:CustomHeaderMessage"/>
    </variables>
    <!-- initiate the remote process -->
    <invoke name="invokeAsyncService" partnerLink="HeaderService"
    portType="services:HeaderService"
    bpelx:inputHeaderVariable="customHeader"
    operation="initiate" inputVariable="request"/>
    HTH
    Peter

  • Email folders do not appear for each new account - only generic message folder available

    I would like to know if there is any way to get the new accounts I created to appear in a unique folder to each account.
    With my first work Blackberry Curve (new) I was able to set up my personal account via BIS website and it automatically created a unique folder for that account. I was on the Rogers network in Canada.
    At my new job I was give a BB used by a previous employee. I have set up two other accounts using the BIS website rather than the BB and this time no new folders were created. My email all comes to the main Messages folder. I am using a Verizon BB this time.
    Of note, I tried to add another account via the BB Setup Wizard and when I choose to set up a new account I get the message: "Browser is disabled by IT Policy" - I assume that is my company policy and not BB or Verizon. However, I was able to set up other accounts via the BIS site...
    Thanks for any help you can provide.
    BW
    Solved!
    Go to Solution.

    Since JSanders is offline, I'll jump in.
    From all of this information, I deduce that your BB did not get cleansed of it's IT Policy when it was given to you. And the IT Policy is doing things that are preventing you from doing as you desire (including possibly hiding the email icons). If, as you say, you are not going to be on their BES, then I suggest you go back to those admins and have them cleanse the BB properly to remove the IT Policy. Then, you will want to wipe it totally clean and start completely over.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • ALSB / ESB generic message persistance support

    If ALSB is processing a request / message and in between its transformation if the ALSB machine goes down, what happens to the message being processed? Is there some where it will get stored or what mechanism can be used to revive it?
    This is apart from the JMS / MQ persistance, and in between the ALSB processing.
    Regards,
    Feby

    Hi Feby,
    ALSB is stateless, the message that is being processed will be lost in case ALSB machine goes down, if you donot provide a mechanism to persist the message.
    Thanks
    Ashok

  • I cannot access the App Store,  iTunes on the iPhone. I get a generic message "Cannot Connect to iTunes Store", etc.  Both Safari and my e-mail work fine, as well as all of my other internet-using apps.

    Kindly repy for the above from Apple Experts......
    Thanking you in advance...

    are you signed in to those stores? do you have them restricted in settings, restrictions?

  • Accessing message out of scope

    Hi all,
    I have a message "Message_A" constructed inside the scope shape and being sent to the send port. Now when any exception occurs i need to log the details to the database. I have an exception handler with the expression in the construct message as
    below
    Excep_message(FILE.ReceivedFileName)=Message_A(FILE.ReceivedFileName);
    I received the error "use of unconstructed message 'Message_A'" when compiling the project. For this error i constructed the message "Message_A" before the scope shape as below.
    Message_A=null;
    Message_A(BTS.Operation)="Operation";
    Then i was able to compile the project without any error. When i deployed and the application exectued i got the below error.
    xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'Ibox.UNEDIFACT.COPARN.Orchestration.CoparnOrchestration_AEJEA(3f2f8342-08cd-6b69-c647-d13dc48b24ad)'.
    The service instance will remain suspended until administratively resumed or terminated.
    If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
    InstanceId: 5bbb4a82-19ae-48bc-8bc0-b8c992088c68
    Shape name: ConstructMessage_1
    ShapeId: a849f763-3f7f-4bc3-bea2-9887fc3c7415
    Exception thrown from: segment 1, progress 10
    Inner exception: The part 'part' of message 'Message_A' contained a null value at the end of the construct block.
    Exception type: NullPartException
    Source: Microsoft.XLANGs.Engine
    Target Site: Void ConstructionCompleteEvent(Boolean)
    The following is a stack trace that identifies the location where the exception occured
       at Microsoft.XLANGs.Core.Part.ConstructionCompleteEvent(Boolean fKillUnderlyingPart)
       at Microsoft.XLANGs.Core.XMessage.ConstructionCompleteEvent(Boolean killUnderlyingPartWhenDirty)
       at Ibox.UNEDIFACT.COPARN.Orchestration.CoparnOrchestration_AEJEA.segment1(StopConditions stopOn)
       at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
    Kindly assist why the null error is being raised even when i have assigned the Message_A with a value.
    Regards, Vivin.

    You assigned Message_A with a null value, that's where the null error is raised! 
    To assign Message_A with a value you will need to execute a mapping or assign it with a variable that contains a xmlDocument if your Message_A is a generic message.
    Another question: why do you want a null Message_A on your messagebox? Is that the required behavior?
    Be sure to also check following blog by Paole, it contains everything you need to know about processing and creating xlangmessages:
    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
    Glenn Colpaert - Microsoft Integration MVP - Blog : http://blog.codit.eu

  • How do I add text message to this email with PDF attachment?

    Good day, everyone!
    Okay, we have a "z"-version of program RFFOUS_T and some of its include codes.  One include code, RFFORIO6, has a form called MAIL_PDF_ADVICE.  It is in this form that we are emailing a remittance advice form.  The actual form is attached as a PDF file.
    Unfortunately, there's no text in the body of the email -- it's just the attachment -- so the users would like us to add a couple basic lines in the body of the email that explain the attachment.  I'm pretty new to using this particular FM and emailing the PDF attachment, and I've gotten stuck in my research trying to find out exactly how to do this.  I'm guessing this shouldn't be all that difficult, but I'm not finding the right solution.  Here's the form:
    *&      Form  mail_pdf_advice
          E-mail PDF advice
         -->IT_ADVICE     PDF form (output from Adobe server)
         -->I_PDF_LEN     length of PDF advice in bytes
    FORM mail_pdf_advice USING it_advice   TYPE solix_tab
                               i_pdf_len   TYPE i.
      DATA:
        lt_receivers       TYPE TABLE OF somlreci1 WITH HEADER LINE,
        l_user             LIKE soextreci1-receiver,
        ls_send_doc        LIKE sodocchgi1,
        lt_pdf_attach      TYPE TABLE OF sopcklsti1 WITH HEADER LINE.
      CHECK NOT finaa-intad IS INITIAL.
      CHECK finaa-nacha EQ 'I'.
    *--- determine E-Mail sender and recipient
      IF fsabe-usrnam EQ space.
        l_user = sy-uname.
      ELSE.
        l_user = fsabe-usrnam.         "Office-User des Sachbearb.
      ENDIF.
      lt_receivers-receiver = finaa-intad.
      lt_receivers-rec_type = 'U'.      "E-mail address
      APPEND lt_receivers.
      ls_send_doc-obj_descr =  itcpo-tdtitle.
      lt_pdf_attach-transf_bin = 'X'.
      lt_pdf_attach-doc_type   = 'PDF'.
      lt_pdf_attach-obj_langu  = reguh-zspra.
      lt_pdf_attach-body_start = 1.
      lt_pdf_attach-doc_size   = i_pdf_len.
      DESCRIBE TABLE it_advice LINES lt_pdf_attach-body_num.
      APPEND lt_pdf_attach.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = ls_send_doc
          sender_address             = l_user
        TABLES
          packing_list               = lt_pdf_attach
          contents_hex               = it_advice
          receivers                  = lt_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    <error checking code snipped>
    Does someone know how to do this?  <b><REMOVED BY MODERATOR></b>  Thanks so much in advance!
    Dave
    Message was edited by:
            Alvaro Tejada Galindo

    Hi Dave,
    Table <b>contents_bin</b> is used to pass attachment file and <b>contents_txt</b> is used to pass mail body contents. You need to declare one more int table to give contents for mail body.
    For reference check the code below
    ut_message is for message body
    and ut_attach is having attachement file.
      FORM send_file_as_email_attachment TABLES ut_message
                                              ut_attach
                                        USING uv_email
                                              uv_mtitle
                                              uv_format
                                              uv_filename
                                              uv_attdescription
                                              uv_sender_address
                                              uv_sender_addres_type
                                     CHANGING uc_error
                                              uc_reciever.
      DATA:  l_error                TYPE  sy-subrc,
             l_reciever             TYPE  sy-subrc,
             l_mtitle               LIKE  sodocchgi1-obj_descr,
             l_email                LIKE  somlreci1-receiver,
             l_format               TYPE  so_obj_tp ,
             l_attdescription       TYPE  so_obj_nam ,
             l_attfilename          TYPE  so_obj_des ,
             l_sender_address       LIKE  soextreci1-receiver,
             l_sender_address_type  LIKE  soextreci1-adr_typ,
             l_receiver             LIKE  sy-subrc.
      DATA:   lt_packing_list    LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
              lt_contents        LIKE solisti1   OCCURS 0 WITH HEADER LINE,
              lt_receivers       LIKE somlreci1  OCCURS 0 WITH HEADER LINE,
              lt_attachment      LIKE solisti1   OCCURS 0 WITH HEADER LINE,
              lt_object_header   LIKE solisti1   OCCURS 0 WITH HEADER LINE,
              l_cnt TYPE i,
              l_sent_all(1) TYPE c,
              lw_doc_data LIKE sodocchgi1.
      l_email               = uv_email.
      l_mtitle              = uv_mtitle.
      l_format              = uv_format.
      l_attdescription      = uv_attdescription.
      l_attfilename         = uv_filename.
      l_sender_address      = uv_sender_address.
      l_sender_address_type = uv_sender_addres_type.
    Fill the document data.
      lw_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      lw_doc_data-obj_langu = sy-langu.
      lw_doc_data-obj_name  = 'SAPRPT'.
      lw_doc_data-obj_descr = l_mtitle.
      lw_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR lw_doc_data.
      READ TABLE ut_attach INDEX l_cnt.
      lw_doc_data-doc_size =
         ( l_cnt - 1 ) * 255 + STRLEN( ut_attach ).
      lw_doc_data-obj_langu  = sy-langu.
      lw_doc_data-obj_name   = 'SAPRPT'.
      lw_doc_data-obj_descr  = l_mtitle.
      lw_doc_data-sensitivty = 'F'.
      CLEAR lt_attachment.
      REFRESH lt_attachment.
      lt_attachment[] = ut_attach[].
    Describe the body of the message
      CLEAR lt_packing_list.
      REFRESH lt_packing_list.
      lt_packing_list-transf_bin = space.
      lt_packing_list-head_start = 1.
      lt_packing_list-head_num = 0.
      lt_packing_list-body_start = 1.
      DESCRIBE TABLE ut_message LINES lt_packing_list-body_num.
      lt_packing_list-doc_type = 'RAW'.
      APPEND lt_packing_list.
    Create attachment notification
      lt_packing_list-transf_bin = 'X'.
      lt_packing_list-head_start = 1.
      lt_packing_list-head_num   = 1.
      lt_packing_list-body_start = 1.
      DESCRIBE TABLE lt_attachment LINES lt_packing_list-body_num.
      lt_packing_list-doc_type   =  l_format.
      lt_packing_list-obj_descr  =  l_attdescription.
      lt_packing_list-obj_name   =  l_attfilename.
      lt_packing_list-doc_size   =  lt_packing_list-body_num * 255.
      APPEND lt_packing_list.
    Add the recipients email address
      CLEAR lt_receivers.
      REFRESH lt_receivers.
      lt_receivers-receiver = l_email.
      lt_receivers-rec_type = 'U'.
      lt_receivers-com_type = 'INT'.
      lt_receivers-notif_del = 'X'.
      lt_receivers-notif_ndel = 'X'.
      APPEND lt_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = lw_doc_data
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = l_sent_all
        TABLES
          packing_list               = lt_packing_list
          contents_bin               = lt_attachment
          contents_txt               = ut_message
          receivers                  = lt_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    Message was edited by:
            Amit Kumar

  • Error messages when calling RSDRI_INFOPROV_READ for more than one time

    Hello all,
    I need to write a cube, however, before I do this I need to check whether there are already data in the target cube for a certain accounting period. This I do by reading the cube via FM RSDRI_INFOPROV_READ. The following coding is called from a running program after pushing a button on the screen.
    <i>* clear internal tables.
          CLEAR gt_range.
          CLEAR gt_sfc.
    *fill internal tables
          CLEAR ls_sfc.
          ls_sfc-chanm    = '0FISCPER'.
          ls_sfc-chaalias = '0FISCPER'.
          ls_sfc-orderby  = 0.
          INSERT ls_sfc INTO TABLE gt_sfc.
          CLEAR ls_range.
          ls_range-chanm    = '0FISCPER'.
          ls_range-sign     = rs_c_range_sign-including.
          ls_range-compop   = rs_c_range_opt-equal.
          ls_range-low      = '2007001'.
          APPEND ls_range TO gt_range.
    here I do not know what exactly to do with this flag
          lf_first_call = abap_true.
          CALL FUNCTION 'RSDRI_INFOPROV_READ'
            EXPORTING
              i_infoprov             = 'T01'
              i_th_sfc               = gt_sfc
              i_th_sfk               = gt_sfk
              i_t_range              = gt_range
              i_packagesize          = 1
            IMPORTING
              e_t_data               = lt_rd_cube
              e_end_of_data          = lf_eod
            CHANGING
              c_first_call           = lf_first_call
            EXCEPTIONS
              illegal_input          = 1
              illegal_input_sfc      = 2
              illegal_input_sfk      = 3
              illegal_input_range    = 4
              illegal_input_tablesel = 5
              no_authorization       = 6
              illegal_download       = 7
              illegal_tablename      = 8
              trans_no_write_mode    = 9
              inherited_error        = 10
              x_message              = 11
              OTHERS                 = 12.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          lf_eod = abap_false.
          IF NOT lt_rd_cube IS INITIAL.
            RAISE target_data_found.
            EXIT.
          ENDIF.</i>
    When testing with a period for which data already exists, it runs through quite perfectly. The return table is filled and I know that data exists and I EXIT.
    However, if I press the button again (program is still running) I get an error message 'Nested call of RSDRI_INFOPROV_READ'. And this for each time I press the button.
    So I thought I should clear the flag lf_first_call. After having done so I get an error message 'SQL Error'. Funny is that I get this error only every second time the Function Module is processed. Every other time it works perfectly.
    How can I get rid of those error messages?
    PLEASE - can anybody help me?
    Many thanks in advance,
    Thomas

    Hi,
    you have something like:
    end_of_data = ' '.
    first_call  = 'X'.
      WHILE end_of_data = ' '.
            CALL FUNCTION 'RSDRI_INFOPROV_READ'
              EXPORTING  i_infoprov             = ....
                         i_th_sfc               = ...
                         i_th_sfk               = ...
                         i_t_range              = ...
                         i_reference_date       = ...
                         i_save_in_table        = ....
                         i_save_in_file         = ....
                         I_USE_DB_AGGREGATION   = ...
                         i_packagesize          = 100000
                         i_authority_check      = ...
              IMPORTING  e_t_data               = .....
                         e_end_of_data          = end_of_data
              CHANGING   c_first_call           = first_call
              EXCEPTIONS illegal_input          = 1
                         illegal_input_sfc      = 2
                         illegal_input_sfk      = 3
                         illegal_input_range    = 4
                         illegal_input_tablesel = 5
                         no_authorization       = 6
                         ncum_not_supported     = 7
                         illegal_download       = 8
                         illegal_tablename      = 9
                         OTHERS                 = 11.
      ENDWHILE.
    hope this helps...
    Olivier.

  • SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP

    Hi,
    At present i am using JCAPS version 5.1.1
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-
    Type:text/html. Is this an error message instead of a SOAP response?
    I got above error message while invoking the webservice.
    My intention is to get HttpRequest from user and based on the input from user, a web service should be invoked. For this i am using BusinessProcess[einsight]
    In my BusinessProcess, i have HttpServer processRequest service,
    to receive HTTP requests and then i am passing the value of parameter received from http[As String] to next partner which is responsible for invoking a webservice.[Used a wsdl in client mode]
    I am able to get http request successfully , but i got error while invoking web service.
    Please let me know, what to do for rectifying error.

    Although this is an aged topic, this is plaguing our development efforts currently. I have successfully created a webservice that can be executed externally using the generated wsdl but I am unable to get a JCD to execute the WS without getting the following error:
    [#|2007-10-09T19:51:02.700-0700|SEVERE|IS5.1.2|javax.xml.messaging.saaj.soap|_ThreadID=32606; ThreadName=Worker: 34758;|SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.java:296)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:146)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:32)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.rpc.client.http.HttpClientTransport.readResponse(HttpClientTransport.java:169)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:83)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:69)|#]
    [#|2007-10-09T19:51:02.701-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at tp6.ExecutePortType_Stub.opGetControl(ExecutePortType_Stub.java:66)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at tp6.ExecutePortType_opGetControl.invoke(ExecutePortType_opGetControl.java:188)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.stc.wsclient.runtime.impl.WSDLOtdDelegateImpl.invoke(WSDLOtdDelegateImpl.java:78)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at urn_stc_egate_jce_AI_WebServices_GetControl_jcdGetControl.OpGetControl.invoke(urn_stc_egate_jce_AI_WebServices_GetControl_jcdGetControl.OpGetControl:113)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at AIWebServicesTEST_GetControl_WS.jcdTEST_GetControl_WS.start(jcdTEST_GetControl_WS.java:21)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at TEST_GetControl_WS.cmTEST_GetControl_WS_jcdTEST_GetControl_WS1.jcdTEST_GetControl_WS_Runtime_Handler.handleRequest(jcdTEST_GetControl_WS_Runtime_Handler.java:369)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at sun.reflect.GeneratedMethodAccessor4463.invoke(Unknown Source)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at java.lang.reflect.Method.invoke(Method.java:615)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:140)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:135)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at $Proxy108.handleRequest(Unknown Source)|#]
    [#|2007-10-09T19:51:02.702-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at STC_MDB__eaJCAP_Scheduler_cmTEST_GetControl_WS_jc1527518542.sendMessage(STC_MDB__eaJCAP_Scheduler_cmTEST_GetControl_WS_jc1527518542.java:213)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at STC_MDB__eaJCAP_Scheduler_cmTEST_GetControl_WS_jc1527518542.onContents(STC_MDB__eaJCAP_Scheduler_cmTEST_GetControl_WS_jc1527518542.java:100)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at sun.reflect.GeneratedMethodAccessor4462.invoke(Unknown Source)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at java.lang.reflect.Method.invoke(Method.java:615)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at java.security.AccessController.doPrivileged(AccessController.java:275)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:940)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:948)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:42)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:136)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at $Proxy111.onContents(Unknown Source)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.stc.schedulerotd.scheduleradapter.FileReaderWork.run(FileReaderWork.java:77)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:54)|#]
    [#|2007-10-09T19:51:02.703-0700|WARNING|IS5.1.2|javax.enterprise.system.stream.err|_ThreadID=32606; ThreadName=Worker: 34758;|
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)|#]
    [#|2007-10-09T19:51:02.704-0700|SEVERE|IS5.1.2|javax.xml.messaging.saaj.soap|_ThreadID=32606; ThreadName=Worker: 34758;|SAAJ0535: Unable to internalize message|#]
    [#|2007-10-09T19:51:02.704-0700|INFO|IS5.1.2|STC.eGate.CMap.Collabs.TEST_GetControl_WS.cmTEST_GetControl_WS_jcdTEST_GetControl_WS1.AIWebServicesTEST_GetControl_WS.jcdTEST_GetControl_WS|_ThreadID=32606; ThreadName=Worker: 34758;|+++EXCEPTION = HTTP transport error: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message; nested exception is:
         HTTP transport error: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message|#]
    [#|2007-10-09T19:51:02.704-0700|INFO|IS5.1.2|STC.eGate.CMap.Collabs.TEST_GetControl_WS.cmTEST_GetControl_WS_jcdTEST_GetControl_WS1.AIWebServicesTEST_GetControl_WS.jcdTEST_GetControl_WS|_ThreadID=32606; ThreadName=Worker: 34758;|+++STACK     = [Ljava.lang.StackTraceElement;@31de31de|#]
    [#|2007-10-09T19:51:02.705-0700|INFO|IS5.1.2|com.stc.codegen.OTDImpl.runtime.ejb.OTDService|_ThreadID=32606; ThreadName=Worker: 34758;|terminate each service|#]
    Is anybody else having this same error and how was it resolved? Both my client and server settings seems to be in sync. My only iffy piece is the servlet context. For both client and server external components, host, port, servlet context match. What am I missing??

  • Diplay logs in SLG1 with messages dont have msgid , msgno etc.

    Hi all ,
    I want to display logs in SLG1 transaction and created object and subobject for this and i am using FM 'APPL_LOG_WRITE_HEADER' , BAL_DB_LOGNUMBER_GET , APPL_LOG_WRITE_MESSAGES  and APPL_LOG_WRITE_DB .
    In my case am getting all these error messages from a table  PTRV_CCC after executing PRCC . I want to display all these error messages in SLG1 but i can not  use APPL_LOG_WRITE_MESSAGES  because  we do not have  MSG ID , MSG NO etc  for these error messages .
    Is there any way toi display these error messages in SLG1 ??
    Thanks in advance ..
    Regards,
    Sijin K P.

    You could create a generic message in a customer class with a short text of "& & & &" (or use a standard one, look at table T100 and self-explanatory flag set (no long text). then  use this message id splitting the field E_DESCRIPTION field at spaces to MSGVn subfield of MESSAGES parameter of APPL_LOG_WRITE_MESSAGES. (their length is 50 charcaters when length of E_DESCRIPTION is 132) (try FM TEXT_SPLIT)
    Regards,
    Raymonde

Maybe you are looking for

  • How do I become a Creative Cloud for Teams admin?

    I am attempting to use the Creative Cloud Packager to ease the deployment of InDesign for two users, but I get error message "Your Adobe ID is not listed as an Admin for Creative Cloud for Team or Enterprise" when I attempt to login.  How do I become

  • Ipod Touch-WIFI Problems-Can't Connect More than One at Same time

    I'm not an Ipod Touch user yet, but three family members are. Unfortunately, only one will connect to the Internet on our home wifi at a time. Each one works just fine on its own and will make the connection, but if one is already turned on it blocks

  • Table for Plant , Purchase organisation

    Dear all , can you please let me know in which Table i can see the list of all operational Plants and Purchase organisation available. Sagar.

  • Permitted extra characters in BW

    Hi, we are loading material master data and get an error message: Charachter µ (lower case Mu) is not permitted. We are on BW 7.0. We didn't have any problem with BW 3.5 as we have maintained it in permitted extra characters in RSKC. I tried to copy

  • [SOLVED] checkgmail stopped working

    Anyone seen this? CheckGmail has stopped working.  No tray icon (checkgmail is in startup programs), and when I start from command line, I get the following output.  I'm used to the warnings about packages not found, but the "Possible unintended inte