IDoc in multimapping and BPM

Hi all,
I am doing one IDoc to JMS interface, I am getting 5 IDocs to BPM, all five IDocs are different, there is no interdependency between them. Once IDoc will come to BPM multi mapping will execute in which i am creating multiple JMS messages from IDoc line items(i.e if IDoc contains 5 Line items then i am creating 5 JMS messages in multimapping). Initially i used IDoc in abstract interface, but all my messages are stuck in SMQ2 ( error is: Permanent Error in BPE inbound processing). After that i used External definition(XSD imported from IDoc) in Abstract Interface, but still i am getting the same error.
                              i am doing below steps in BPM,
fork(5 receive steps) i made fork necessary steps to 1 and correlation as constant "abcde".
5 transformation steps in every fork branch immediately after receive steps ( multimapping used in transformation and receiver is multiline cotainer variable)
after this block withh ParForEach to repeat the multiline cotainer variable to send to receiver JMS.
is there any thing wrong in above steps??
still i am in dilamma on below points,
can i use IDoc in Multimapping directly???????????.
can any body give step by step procedure how to achieve this.
Note:- I know that i can achieve this with out BPM, there are some other special reasons to use BPM for this.
Thanks & Regards,
Madhu.

Hi Madhu,
  Normally this error occurs for incorrect interfaces selection
   1. please check the all configuration done correclty..
   2. Go to SXI_CACHE.. refresh the cache.. check the status Code that sould be 0..
   3. go to swwl tcode and delete all the error transactions..
then try to excute the scenario.. still if you have the problem then check the box " Create New transaction " for  First Transformation step.
Let me know if this works..
Regards,
Sandeep

Similar Messages

  • Idoc Acknowledgements and BPM.

    All,
    My current requirement is to post an Idoc from my BPM, and get back the Idoc Acknowledgement. On the basis of the status field in the ALEAUDIT Idoc I need to determine the further course in my BPM.
    <u><b>Option 1:</b></u>
    1. In the Send Step of my BPM , I can request for Application Acknowledgement. I have done this and am able to receive the Acknowledgement and see the same against the Acknowledgement Msg ID in MONI. I am able to see the ALEAUDIT idoc triggered for my Send Step back to my BPM .
    The question in case we are to use this Option is , how do I access this AleAudit Idoc message in my BPM. As I want to have a switch, I need this to be populated in a container element of my BPM. Is this possible? Is this approach a correct one? Any Ideas?
    <u><b>Option 2</b></u>
    I can have a Send Step in my BPM to send the Idoc from XI to R3. this will be a normal Send Step with no Acknowledgements. I can also use a Receive Step in the BPM to receive the ALEAUDIT Idoc back to the BPM.
    This I guess can be done with a Receive determination where R3 is the sender and the AleAudit Idoc is the receive etc.
    Issues with this approach, I need to use a Correlation against the Send and Receive Step to send the Idoc and receive the AleAudit.
    1. What is the Correaltion that can be used?  Is there a standard correaltion. for such cases?I looked into the Idoc and the AleAudit but could' nt find a suitable Correlation Field.
    Do both these solutuons make sense? has anyone got a better approach?
    Any comments are appreciated.
    Regards
    Bhavesh
    PS: Have gone through the How to guide on Idoc Ack's and the blogs on SDN as well. But if still someone feels that there is a blog that is relevant to this issue, please do let me know if I have missed anything.

    Ha, now that was interesting question. Brains were rusty, relooked into that lookup and these are the fields of the IDXRRCVPOR we use,
    Used the RFC - RFC read table
    XI's Idoc Number is in Field IDOCNUMBER
    Original SAP IDoc Number is in Field SNDLAD.
    Code excerpt attached below.
    @ Henrique : Work's been crazy past few months. The blog is on my to do list, hopefully someday soon it should be out. My Apologies guys!
    Channel rfcChannel =     LookupService.getChannel(BusinessService, CommChannel);
    //As the call is being made to RFC, RFCAccessor is obtained.
    rfcAccessor = LookupService.getSystemAccessor(rfcChannel);
    rfcXML =
                        "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns0:RFC_READ_TABLE xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\"><DELIMITER/><NO_DATA/><QUERY_TABLE>IDXRCVPOR</QUERY_TABLE><ROWCOUNT/><ROWSKIPS/><DATA><item><WA/></item></DATA><FIELDS><item><FIELDNAME>SNDLAD</FIELDNAME><OFFSET/><LENGTH/><TYPE/><FIELDTEXT/></item></FIELDS><OPTIONS><item><TEXT>IDOCNUMBER EQ &apos;"
                             + SourceDocNum
                             + "&apos;</TEXT></item></OPTIONS></ns0:RFC_READ_TABLE>";
    inputStream = new ByteArrayInputStream(rfcXML.getBytes());
    XmlPayload inPayload = LookupService.getXmlPayload(inputStream);
    Payload outPayload = rfcAccessor.call(inPayload);
    responseStream = outPayload.getContent();
    DocumentBuilderFactory factory =DocumentBuilderFactory.newInstance();
    /* Create DOM structure from input XML */
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse(responseStream);
    NodeList list = document.getElementsByTagName("WA");
    for (int k = 0; k < list.getLength(); k++) {
        Node node = list.item(k);
       if (node != null) {
         node = node.getFirstChild();
                    if (node != null) {
              if (!node.getNodeValue().equals("")) {
                   OutputDocNum = node.getNodeValue();
    Regards
    Bhavesh

  • How to send two different IDocs to SAP without BPM

    Hi Experts,
    I am working on jms to IDoc scneario,my requirement is to convert one JMS messge in to 2 IDocs(DELVRY,MATMAS) to ECC , i searched in SDN to achieve this requirement without BPM, i found one blog,but its saying its not possible to use multi mapping scenarios with out BPM in IDoc
    what is the best approch to achieve my requirement without BPM.
    Regards,
    James

    is it true that multi mapping not going to support IDoc scenarios??
    Yes it is true that IDOC does not support multi-mapping....this can be proved if you look into the help section which shows the list of adapters supporting multimapping....IDOC is missing from that list....do not get confused between Idoc Multimapping and IDOC Bundling.....IDOC bundling means bundling IDOCs of same type...however you are looking for IDOCs of different types.
    Regards,
    Abhishek.

  • Idoc to flatfile and mail

    Hello,
                 I have a scenario  where i am converting the idoc to file and mailing the same after converting it to flatfile .I have used TransformMessageBean for doing so.Now I need to implement the TO Field (mail )dynamically based on the payload.
    I tried to use the MultiMapping by using mail definition provided by XI ,but it results in mapping error.\
    Can somebody guide me on this.
    Thanks in Advance
    Rajesh

    Hello,
               I  have tried to do the same with the MessageTransformBean and two features are working fine independently.
    1. Converted the file into Flatfile and mail
    2. Execute the XSL Mapping for dynamic receiver.
    Now i want to combine both above features i.e after transforming the content to flatfile ,i need to sent this file to  recipient based on payload field.
    I tried to execute the same but i am stuck at XSLT error ,saying
    com.sap.aii.af.ra.ms.api.RecoverableException: Error in XSLT Conversion: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 48, 44, 52(:main:, row:1, col:3):
    Awaiting for replies
    Rajesh

  • Multiple idoc with condition in BPM

    please let me know whether i need to go for BPM or not BPM
    The actual scenario is
    I will be receiving n no. of idocs including both idoc type PEXR2001 and IDCREF01(control idoc).
    Then I need to collected all payment idoc PEXR2001 which will be having one control idoc
    IDCREF01.  This will be grouped by checking
    if IDCREF01-E1IDRH1-PAYRUNID equals to PEXR2001-E1IDRH1-PAYRUNID and
    IDCREF01-E1IDRH1-PAYRUNDT equals to PEXR2001-E1IDRH1-PAYRUNDT
    so for example I will be having 5 payment idoc and 1 control.  in this I need to sum the
    value of field MOABETR which is in payment idoc. after this i need to check
    if IDCREF01-E1IDRS1-SUM01 equals to PEXR2001-E1IDKU5-MOABETR.
    if this condition is satisfied then i will be sending the file to both email adapter and
    file adapter otherwise failed file will be sending only to email adaper.
    I request to give detailed step in BPM if possible.

    Hi Mughda,
    How would i validate using createif node function as i also need to validate fields of all the segments of the same Idoc. ?
    Thanks,
    Amit

  • Problem with multimapping in BPM

    Hy,
    I still have a problem with a multimapping in BPM. I add a new message into the input message of the mapping definition. I have now 10 input message mapped to a Idoc. I have the problem that yet the last message is no more treated by the mapping step.
    Anyone can help me.
    Thanks

    Hi,
    After adding the new input file, the cache may not be refreshed properly.
    Please refer to this for Cache Refresh:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1a69ea11-0d01-0010-fa80-b47a79301290">How to Handle Caches in SAP XI 3.0</a>
    JE

  • Idoc to soap using BPM

    Hi,
    Plz give inputs/blogs link to do this scenario.
    i want to send idoc from R3 to web service(SOAP) using BPM bec i want to get the response.
    how many Message Interface i need to develop for this?
    Edited by: ruban R on Apr 1, 2008 12:29 AM
    Edited by: ruban R on Apr 1, 2008 12:39 AM

    Hi,
    These Steps may help you
    Design objects:
    Data type & Message Type
    1) Import the IDOC and Later you import the Idoc, doble click on it a export it to your driver, next import it as External Definition for reason becouse if not, you wont be able to create a MI type synch with IDOC and genericResponse structure
    2) Create data type for your Response Type of IDOC
    3) Import the WSDL File For Request and the Response Type
    4) Create the Message types according to the Data types which we created
    Messgae Interface:
    1) Outbound synchronous:
        output message will be ur idoc external definition file
        input message will be ur message type that u have created.
    2) Abstract Outbound Synchronous:
        use the same as in Outbound Synchronous
    3) Inbound Synchronous:
        input message will be ur request message of RFC/WebService
        output message will be ur response message of RFC/Webservice
    4)Abstract Inbound Sunchronous:
        input message will be ur request message of RFC/WebService
        output message will be ur response message of RFC/Webservice
    Mapping
    Request Message Mapping:
    b/w ur idoc external definiton and request message of RFC/WS
    response Message Mapping:
    b/w ur Response message of RFC/WS and ur message type
    Interface Mapping
    Import MI(abstract) of IDOC
    Import MI of WS
    select the mapping for request and response Tab
    BPM
    1) In container window define a variable named IDoc_ABS with category abstract interface and   
        type (select the MI of IDOC alone)
       define a variable named GenericRespnse_abs with category abstract interface and type (select         
       MI of genericResponse alone)
    2) Create a Recieve Step --> in property message select the container you define before of idoc.
    3) Define a Send Step--> mode synchronous
        select MI type abstract and sync (idoc and genericResponse)
        for property request message selects container Idoc_ABS
        for property response message selects container GenericRespnse_abs.
    Save your Changes and thats all for BPM
    Configuration
    1) Create scenario
        Assign BS and create comunication channels with QoS (quality of service) type BE
    2) Import your BPM
       Create a Receiver Determination
    -->in the target service select the BPM. Save
    -->In overview windown at foot windowns select MI IDoc_abs only. nothing else
    Create a Receiver Determination
    -->here the system who send data is BPM
    -->in the target service select the BS of receiver system.Save
    -->In overview windown at foot windowns select interface mapping and assing communication channel
    what we do here. the flow is next
    1) Receive data from sender system and send it to BPM
    2) BPM call bs of target system (WS). how? because in interface determination you selected    
       before the interface mapping
    Regards
    Seshagiri

  • Multiple IDocs to File using BPM

    Hi All,
    I have configured a scenario of multiple IDocs to file using BPM.  In this scenario while I am triggering IDoc from R/3 system it is sent to the external program.    I am getting in the status record of WE05 as IDoc is sent to an external system with status code 03. But I am unable to view the same message in moni of the XI system.
    Also I have checked the ALE settings on both the sender and receiver side and it is fine.
    Also in SM58 nothing is there in queue.
    Can anyone solve this issue of mine?
    Cheers,
    Neethu.

    Hi,
    in many cases it's a problem with the RFC connection. You should try an authorization test in SM59 of the R/3 system.
    This might also be useful:
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/e6194119d8f323e10000000a155106/frameset.htm
    Regards
    Patrick

  • IDoc to webservice and get the response back into another IDoc.

    Hi guys
    We have a scenario where we need to send an IDoc to webservice and get the response back into another IDoc.
    Questions:
    1. Is this scenario possible without a BPM? or do we need to use BPM (Sync-Async bridge).
    2. Is there a Async to Sync bridge in BPM?
    3. How do I use this bridge in my scenario and customize it?
    4. If not possible, provide me the related docs using BPM for the same scenario.
    Appreciate your quick response
    Regards
    Naidu

    Hi,
    this link may help u............,
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1134. [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403. [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Azeez khan.

  • IDoc to Soap, with BPM - Permanent error in BPE inbound processing

    Hi Experts,
    IDoc to Soap, with BPM - > Permanent error in BPE inbound processing
    How to rectify this any issue???
    Thanks-
    sk

    Hi,
    The inbound processing encountered a permanent error and the queue therefore stopped.
    The error message "Permanent error in BPE inbound processing" may be caused by the following:
    - At the start or when you process a process instance, the inbound processing encounters an exception that was not handled. This exception is triggered, for example, by a transformation step, a synchronous send step or a control step but it was not caught in an exception handler branch. If the exception that was not handled occurs in the first transaction of the started process instance, the system does not write the process instance to the database but it sets the queue that has this error message to the error status.
    Refer to the help in Note 1082099
    - The inbound processing triggers this error if the correlation evaluation shows that a message should be delivered to a process instance that has the status "error". Since delivery to process instances that contain errors is not permitted, the queue is stopped.
    Use the simulation of the message delivery in the detail view of the relevant queue LUW to determine the relevant process instance for the affected message and use transaction SXMB_MONI_BPE "Continue Process Following Error" (or transaction SWF_XI_SWPR) to continue. If you cannot continue the process instance, check whether you can logically delete the instance. In this case, use the method that is described in Note 807906 to logically delete a process instance.
    Check whether your system contains other process instances that have errors in order to detect similar problems. Use transaction SXMB_MONI_BPE "Continue Process Following Error" or transaction SWF_XI_SWPR.
    Use the report RSWF_CRL_MAINTAIN to check all of the correlation instances in question or the relevant process instances that you can reach using "Display Work Item".
    - Messages that cannot be delivered because no correlation instance can be found may lead to the error that is mentioned here. Check whether the causes that are outlined in Note 1094028 affect your case.
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful.

  • Idoc Bundelling with out BPM

    I have taken below Micheals BLOG as reference to do this. But still am ending up with lot of confusions and errors.
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    My scenario:
    Sender : ECC 6.0 (Idocs)
    Receiver : MDM system (as a file)
    I have all the DT, MT, MM etc imported from MDM system into XI under a separate SCV.
    Please advise me a step by step procedure on doing this scenario using the above MDM structures available in XI.
    Thanks
    Siva

    Hi
    if u want to do the idoc bundeling without the BPM then u can collect all the idoc a file from the R/3 system and the u can do the simple file to file scenario.
    to collect idoc in the R/3 system do the followin steps.
    1.Use transaction WE21 and create an XML file port in the R/3 system. Apply here function module for creating the file name. You can use a standard module to do the same.
    2.Using  WE20 to create the partner profile and  assign the outbound IDOC message  type in the outbound parameters.. This partner will be the R/3 server itself since the xml file will be uploaded on the R/3 Server . For this message type give the XML port created in the above step as the receiver port and select the option collect IDOCs as output mode. Give the basic IDOC type.
    3. trigger the idoc using the transaction we19 and process the idoc.
    4. the file  will be craeted in the R/3 system. now u can download the file of multiple idocs.
    Thanks
    Rinku

  • MessageID for Multimapping in BPM

    Hi all, first of all thank you very much for the support they can provide. The problem I have is this: I have a ccBPM which receives information from a JDBC Adapter and make a Multimapping and each performs a foreach message to invoke an RFC. The problem is that for every foreach need to get messageId. I tried making a UDF but when I use the ccBPM function fails to run. I read online that you can not get the context variable MESSAGE_ID in a Transformation on ccBPM. Thank you very much for the support.

    Hi, the solution in link Re: Retrieving a message id
    U need not write any java code to retrieve your MessageID.
    U have a direct way to retrieve your MessageID.
    1) Go to your BPM. Create a new Containervariable (simple type)
    2) Insert a new Container Operation in your BPM.
    3) In target: select your container variable (simple type) that u have created in step1.
    Operation: Assign
    Expression : In the expression editor, choose interface variable (radio button)--> then choose context object (radio button)--> then the 6th Value in the drop down combo is your MessageID.
    Thanks for all.

  • Multimapping Without BPM?

    Hi @ ,
    I need some help regarding my multimapping without BPM .
    I have configured the scenarion but the problem is that I am not getting the output files with data and are coming empty though the scenarion is gettig executed successfully.
    Also in the trace I have observed that there is not step like maping called in the pipeline steps dont know where is the error .Please help
    Thanks in advance

    Hi Raj,
    I have defined the interface mapping as Enhanced where I ahve given the mapping defined as Multimapping and after saving I am getting 3 interfaces belonging to each message also and I have defined the Message interfaces also for each .
    I am doing File2 File Scenarion I am able to execute the scenarion and the file was deleted from the location and 3 files were craeted in the destination folder but they only contain header data and there is not other message.
    I have tried putting the same input message in Mapping and Interface mapping to verify but there it is creating the messages
    Regards

  • Idoc for materials and service for same contract.

    Dear All
       I have an scope where i have to migrate the data for material and services for the same contract.Is there an Idoc which does it so or otherwise ?Earlier in scope materials contracts have been loaded with the help of idoc type :- PURCONTRACT_CREATE01  and that of Service Contract using Idoc type :- BLAORD03.No customization is however permitted .Tcode for the same is ME32K.
    Regards
    Somnath

    Hi,
    It is not clear to me if you are working with sapscript or smartforms.
    You have only to find a variable which identifies the kind of invoice
    I do not know that variable so i use an example variable
    for sapscript:
    /: IF &VBDKR-FKTYP& = '1'
    /  INVOICE
    /: ELSE
    /  SERVICE ORDER
    /: ENDIF.
    In a smartform you can also do something like that.
    but There you work with conditions (eq, BOOLEAN)
    You have only to find the right variable
    success,
    Gr., Frank

  • IDocs for Invioce and Delivery

    Hi all,
    I have to send the customer the Invoice and Delivery confirmation for that order placed by him through an IDoc in background job.
    We are going for a standard IDoc for invoice and Delivery also but how to fill the data into that standard IDoc.
    1.Do we have standard report like (BD12, BD14, BD10 etc.)
    2.Should we develop a report to fill the data into that Idoc.
    Please help me to find standard report or please help me to write code for that standard IDoc.
    Thank you all in advance,
    Regards,
    Shalem.

    Hi Shalem,
    You need to do the following activities.
    - Setup condition record (t/code <b>NACE</b>) for shipping (V2) and billing (V3).
    - Setup output type (t/code <b>NACT</b>) for shipping (V2) and billing (V3) with transmission medium <b>A</b> (ALE).
    - Setup procedures (t/code <b>NACZ</b>) for shipping (V2) and billing (V3) if required.
    - Once the above setup are done, for any creation of billing and shipping will create entries into table <b>NAST</b> (Message Status).
    - Then you can create IDoc using this standard program <b>RSNAST00</b>. Please ensure your ALE and IDoc configuration have been done such as BD64, WE20, WE21 and etc.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

Maybe you are looking for

  • Black video thumbnails in iPhoto (Mavericks)

    Hello everyone. I have Mavericks on a late 2012 Macbook Pro running iPhoto 9.5.1. I recently noticed that rough a third of my videos were displaying thumbnails that are just black.  I freaked for a second, thinking the movie files were gone or someth

  • A namespace problem when doing Create InfoArea in bw system

    Dear all, we met a problem when excute a process in our bw system: our process as follow: rsa1(Data Warehousing Workbench:Modeling) --> InfoProvider --> Create InfoArea then a error message window came out as below. error in object editing No valid c

  • *****Can we make charcterstics as a Input ready in the input ready query.**

    Hi experts, Our business requirement as follows. the existing business scenerio is, Master data ( say Product list ) )will comes from CRM , By using the input ready query , we will plan against to that master data by using IP. But my requiment is " t

  • [SOLVED] ArchIso increase max size root-image.fs

    So I'm trying to generate an ISO using ArchIso, and I have to put a large amount of packages into it. However, it seems as if I've hit some sort of limit as to how many packages I can add. After the scripts install all the packages and they begin to

  • How to delete inactive email account on iPhone5?

    How can I delete and inactive email account form my iPhone 5? When I go through the Mail, contacts, calendars tab and select the account I want to delete, I do not receive a red "delete this account" button. Any help would be appreciated. The account