Idoc-bpm-file scenario

Hi gurus,
I am trying to send IORDER01(pm order) from an R/3 system to a file, which works fine.
but when i try to use some business logic like if order type = 'PM01' then only i have to write to the file, using ccBPM, it fails...
this is my first BPM scenario and am having trouble....have read lot of blogs etc...can u please tell me where i am going wrong...
I have a data type DT_FILE for writing to the file.
I have interfaces:
si_oa_iorder(outbound asynchronous interface for file)
si_aa_iorder(abstract asynchronous interface for idoc)
si_aa_file( abstract asynchronous interface for file)
si_ia_file (inbound asynchronous interface for file)
I have message mapping MM_IORDER2FILE mapping IDoc to flat file structure
I have operation mapping OM_IORDER2FILE where I have mapped si_aa_iorder and si_aa_file
(( Is this right? are both abstract interfaces to be mapped? or do i need to create more mappings like si_oa_iorder to si_aa_iorder etc? please clarify...))
My IP is very simple with just a 'recv step' having container element of  type si_aa_iorder and 'send step' having container element of  type si_aa_file to start with..i haven't yet put the switch control etc...even such simple IP fails....
I have created Configuration objects like
Business System for file receiver
Business component for Idoc sender with adapter specific details set
Communication channels for Idoc and file adapters
No sender agreement as it is Idoc communication
Receiver agreement between the Integration Process(IP_IORDER2FILE) and the file server
2 Receiver determinations between BC_idoc_send to IP and other from IP to FileRecv system
2 interface determinations , one from si_oa_iorder of  BC_idoc_send  to IP and other from si_aa_file  of IP to file recv system.
This is my setup and this fails....
My question is..is my message mapping and operation mappings correct? and can u see any obvious blunders i am doing?
please bear in mind that with same interfaces and sending and recv components, it runs fine without BPM....so please look at the BPM bit of mappings/config that i might have missed and please advice asap..
Thanks in advance and i am sure there would be lot of gurus for whome it is just a peanut...so please reply...
Regards
Jhansi

Firstly, you said you are not using any Switch, then how are you specifying the condition ?
Secondly, your interface is not dependent on the BPM, its dependent on the configuration. BPM is a representation on how the interface works in step-by-step manner.
So, while checking the condition order type = 'PM01', you must be using the Switch, i believe, which has to options Branch1 and Branch Oherwise. Branch1 means when the condition is TRUE and BranchOtherwise is when condition is FALSE.
If you can let me know the condition statement that you have given in the Switch, I can try to tell you more.
-Sid

Similar Messages

  • IDOC-BPM-FILE scenario ERRORS

    Hi gurus,
    I am trying to send IORDER01(pm order) from an R/3 system to a file, which works fine.
    but when i try to use some business logic like if order type = 'PM01' then only i have to write to the file, using ccBPM, it fails...
    this is my first BPM scenario and am having trouble....have read lot of blogs etc...can u please tell me where i am going wrong...
    I have a data type DT_FILE for writing to the file.
    I have interfaces:
    si_oa_iorder(outbound asynchronous interface for file)
    si_aa_iorder(abstract asynchronous interface for idoc)
    si_aa_file( abstract asynchronous interface for file)
    si_ia_file (inbound asynchronous interface for file)
    I have message mapping MM_IORDER2FILE mapping IDoc to flat file structure
    I have operation mapping OM_IORDER2FILE where I have mapped si_aa_iorder and si_aa_file
    (( Is this right? are both abstract interfaces to be mapped? or do i need to create more mappings like si_oa_iorder to si_aa_iorder etc? please clarify...))
    My IP is very simple with just a 'recv step' having container element of  type si_aa_iorder and 'send step' having container element of  type si_aa_file to start with..i haven't yet put the switch control etc...even such simple IP fails....
    I have created Configuration objects like
    Business System for file receiver
    Business component for Idoc sender with adapter specific details set
    Communication channels for Idoc and file adapters
    No sender agreement as it is Idoc communication
    Receiver agreement between the Integration Process(IP_IORDER2FILE) and the file server
    2 Receiver determinations between BC_idoc_send to IP and other from IP to FileRecv system
    2 interface determinations , one from si_oa_iorder of  BC_idoc_send  to IP and other from si_aa_file  of IP to file recv system.
    This is my setup and this fails....
    My question is..is my message mapping and operation mappings correct? and can u see any obvious blunders i am doing?
    please bear in mind that with same interfaces and sending and recv components, it runs fine without BPM....so please look at the BPM bit of mappings/config that i might have missed and please advice asap..
    Thanks in advance and i am sure there would be lot of gurus for whome it is just a peanut...so please reply...
    Regards
    Jhansi

    Hello,
    I am trying to implement one pi scenario :
    File -> file adapter -> ccBPM -> soap receiver adapter -> web service request -> web service response -> ccBPM -> output file adapter.
    The web service that I call works file from wsnavigator. I have created all the design and configuration objects
    needed for the scenario.
    I place a file with following contents:
    <?xml version="1.0" encoding="utf-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <SOAP-ENV:Body>
        <pns:GetSetNameWS xmlns:pns="urn:file2soap2fileWSVi">
         <pns:name1>ajeet</pns:name1>
          <pns:name2>phadnis</pns:name2>
        </pns:GetSetNameWS>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    When I look at the process monitor I get this:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Determination
      -->
    - <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">CX_RD_PLSRV</SAP:Code>
      <SAP:P1>Problem while determining receivers using interface mapping: No operation with XML root tag http://schemas.xmlsoap.org/soap/envelope/.Envelope exists.</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error when determining the receiver: Problem while determining receivers using interface mapping: No operation with XML root tag http://schemas.xmlsoap.org/soap/envelope/.Envelope exists. Problem while determining receivers using interface mapping: No operation with XML root tag http://schemas.xmlsoap.org/soap/envelope/.Envelope exists. No operation with XML root tag http://schemas.xmlsoap.org/soap/envelope/.Envelope exists.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I have no clue about this error. Can you help me with this ?
    If yes I can send you more details, if you liked 
    Hoping to get help from you,
    Cheers,
    Ajeet Phadnis

  • Why we dont need sender agreement and comm channel in IDOC to file scenario

    Hi,
    there are 2 queries:
    first query :
    Scenario is "Idoc to file transfer"
    why we dont need sender agreement and communication channel for IDOC to file ,while we do need
    both of these for "File to RFC "
    Answer : which i got is because IDOC sits at ABAP stack but same is valid for RFC also.
    Then why For "IDOC to file" we dont need that.
    Second query:
    Also when i did scenario for File1-RFC-File2 scenario using BPM i have created a interface
    between XI-RFC synchronous to send data which we got from file1 in XI to RFC importing parameter
    and getting data from RFC back to File2.
    Here in IDOC to file scenario why we dont need any interfface for IDOC-XI Asynchronous.
    Regards,
    Mayank
    Edited by: mayank verdia on Jan 13, 2009 11:49 AM
    Edited by: mayank verdia on Jan 13, 2009 11:50 AM

    Dear All,
    For file to idoc scenario is there any possibility to get line items details or xml details i.e the segments and its related field details using reference id, transaction id or interface name or message id in SAP PI 7.0. I know we need to click each and every message in sxi_monitor and look for details.
    For SAP(R3 System) I can create a report and set the job for specific time period so automatically it throws the details(like reference no, document date, invoice no from) in ftp path as .csv file. The same ftp path is maintained in program.
    I wanted to check FTP--->PI postings and I have set the job at r3 system it is working fine and Im monitoring it too.
    Now the end to end scenario is FTP--->PI--->ECC(R3 system). Please help.Many Thanks.

  • ALEAUD in IDOC to File Scenario

    Hi,
    I have a IDOC to file scenario in which im sending the PAYEXT IDOC from SAP to a bank as the IDOC-XML.
    ie the user will create a payment in the SAP system , this shoud trigger an IDOC to XI. XI puts the IDOC-XML sturcture into a FTP folder path from which the bank will pick it up. Now the bank has to send an acknowledgement(asynchronously) that the payment was processed. And this response should be captured and returned to the user.
    can we use ALEAUD as the acknowledgement or does using ALEAUD make no sense here?

    Hi,
    Assuming that the bank will send you a file to the FTP server you can simply pick up this file and mapi it to the Systat IDoc. I would assumt that the IDoc status's would not be in the file so you would have to do some value mapping or other logic to determine the IDoc status codes that you want.
    The IDoc is very simple with few fields so the mapping should not be a problem.
    Please note you do not use BPM for this scenario. In essence this would be a new flow of File --> PI --> IDoc
    Import the STATUS.SYSTAT IDoc into the Design and play from there, you can make a POC now and test the functionality which would probably be best for you at this point.
    Let me know if you need more details
    Edited by: Alexander Ong on Jul 14, 2009 4:57 PM

  • Alerts when the acknowledgement fails in IDOC to File Scenario

    Hi All,
    could you let me know how to handle Alerts for Idoc to File scenario.
    My Scenario uses BPM as well.
    Thanks,
    Srini

    Dear All,
    For file to idoc scenario is there any possibility to get line items details or xml details i.e the segments and its related field details using reference id, transaction id or interface name or message id in SAP PI 7.0. I know we need to click each and every message in sxi_monitor and look for details.
    For SAP(R3 System) I can create a report and set the job for specific time period so automatically it throws the details(like reference no, document date, invoice no from) in ftp path as .csv file. The same ftp path is maintained in program.
    I wanted to check FTP--->PI postings and I have set the job at r3 system it is working fine and Im monitoring it too.
    Now the end to end scenario is FTP--->PI--->ECC(R3 system). Please help.Many Thanks.

  • Need an alert to be sent after succesful completion idoc to file scenario.

    Hi ,
    we have an idoc to file scenario, the user wants a email confirmation after the file is generated, can any body help how i can trigger an alert once  file is generated by xi(in a idoc to file scenario).
    regards
    sandeep

    Hi Sandeep,
    we have an idoc to file scenario, the user wants a email confirmation after the file is generated, can any body help how i can trigger an alert once  file is generated by xi(in a idoc to file scenario).
    Well, you can generate an email after your file has been sent (use BPM for this).
    But I believe your Client wants a confirmation of file delivery through email, which might be a problem. By using the above step, you will be able to send the email after file is sent, but it won't confirm whether the file has been successfully delivered.
    You need a synch message which file won't be supporting. So, the other way is to ask your Client if it is possible for them to send an acknowledgment to PI after receiving the file, and then you can trigger the email.
    Unfortunately, there is no straight way out for your problem.
    Hope this helps.
    Regards,
    Neetesh

  • Problem IDOC to File scenario:  No service for system SAPIDC, clnt in ID

    in IDOC to File scenario, when IDOCis triggered from R/3 to XI, it gives error in SM58 transaction 
    "No service for system SAPIDC, client 800 in Integration Directory"

    In a scenario, i have a BPM which has a transformation step which contains a mutimapping ...means 2 messages mapped to 1 messgaes, here in the mapping i m using an UDF and written code to extract the file name from dynamic configuration.....
    the problem is ...the same BPM contains another transformation step which contains a message mapping (which is not multi mapping), and here the code (UDF) works to fetch the file name...
    the code is all correct....and it looks like
    DynamicConfiguration conf = (DynamicConfiguration)
    container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String sourceFileName = conf.get(key);
    if (sourceFileName == null ){
         sourceFileName = "ErrorFile.xml";}
    return  sourceFileName;

  • Idoc ---- BPM ------ file

    hello experts,
    I have Idoc to file scenario by using BPM,
    I have generated IDoc and it generated successfully
    Idoc reached from SAP to XI. but, it is not entering into BPM.
    i have checked the queue, refreshed chache and restarted the BPM.
    i was not able to reactivate BPM becuase it in Quality(4 days back only i have trasported from DEV to QA)
    can anybody provide some idea to resolve this issue ASAP.
    Thanks in Advance.
    Radhika

    Hi,
    I hope you might have already confirm with the Receiver step parameters.
    Is it working fine in your development system. Have you tested over there.
    Check if all objects have properly transported to Q.
    Thanks
    Swarup

  • IDOC to File scenario info

    Hi Experts,
    What all the important information we have to gather from client to do the IDOC to File(SML) scenario?
    Thanks & Regards
    Sara

    Hii
    Check this blog on IDOC to File. It states step by steps procedure for IDOC-File scenario:
    Introduction to IDoc-XI-File scenario and complete walk through for starters.
    In this blog u ll get information.
    For troubleshooting of IDOC-File check this blog:
    Troubleshooting  File-to-IDOC Scenario in XI.
    also for sending Collection of IDoc to Single File
    IDOCs (Multiple Types) Collection in BPM
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539
    Regards

  • Idoc to file scenario doc

    Hi,
    Can anybody share the document of IDOC to File Scenario for Vendor Master.
    Regards,
    Balaji

    Hi Balaji Permi ,
    Check these websites which wil answer u'r question:
    A Step-by-Step Guide on IDoc-to-File Using Business Service in the XI Integration Directory
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539
    How to convert an IDoc-XML structure to a flat file and vice-versa in XI 3.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    Introduction to IDoc-XI-File scenario and complete walk through for starters.
    Introduction to IDoc-XI-File scenario and complete walk through for starters.
    IDOCs (Multiple Types) Collection in BPM
    IDOCs (Multiple Types) Collection in BPM
    cheers!
    gyanaraj
    <removed by moderator>
    Edited by: Mike Pokraka on Aug 12, 2008 3:07 PM

  • IDOC to File Scenario: Locking/Packets

    hi,
    I have an IDOC to File Scenario.
    I would like to know if there are some best practices/solutions to the following approach:
    1. IDOC is sent to XI and XI transfers the file to Legacy System(Mainframe)
    2. Mainframe processess the file based on the filename.
    Question
    SAP Keeps writing the to the file and there will be changes to the file with addition of records.
    Is there a process from SAP XI to tell that it has processed the file successfully, Legacy would process the file even if the File has been processed/processing records.?
    What are the different ways SAP XI can tell that it has processed the file successfully.
    Thanks,
    Tirumal

    Hi,
    Application acknowledgement is not possible with file system. (i.e, XI has no way of knowing if the message sent to the file has been succesfully processed.)
    It can support only system acknowledgements, (i.e, XI will get a response saying, the message has reached the destination.)
    In order to receive acks, you would have to configure a BPM in this scenario.
    Regards,
    Smitha.

  • Which all configurations you need to do in R/3 for an Idoc to file scenario

    which all configurations you need to do in R/3 for an Idoc to file scenario?
    Rgds
    Ruchitha

    Hi ruchitha thakur  ,
    A Summary of the Steps to be carried out to enable a SAP R/3 System send Idocs to SAP Exchange Infrastructure.
    First - Maintain the Sender R/3 System:
    SM59 : Create a RFC destination to XI
    WE21 : Create a TRFC Port ->Specify the RFC Destination Created
    BD54 : Create a Logical System for the Idoc Receiver
    WE20 : Create Partner Profile ->Maintain Outbound and the Inbound Parameters
    Second - Log on to XI System:
    SM59 : RFC Destination for Sender System
    IDX1 : Create the port to get Idoc Metadata from Sender System ( The Port Name must match the port name in the idoc header - Usually in format SAP<System ID>. eg. SAPID1 [Optional Step. Not mandatory]
    IDX2 : Maintain the Idoc Metadata. This is needed only by XI, and not by other SAP systems. IDX2 is needed because XI needs to construct IDoc-XML from the IDoc. No other SAP system needs to do that.
    To Enable Acknowledgement:
    SXMB_ADM ->Integration Engine Configuration ->Specific Configuration ->Add New entry -> Select parameters as:
    Category: RUNTIME
    Parameters: ACK_SYSTEM_FAILURE
    Current Value: 1
    GO TO SLD:
    Create Technical System: Choose WEB AS ABAP if the system is R/3 -> Define SAP SID, Installation Number and Database Host Name a Maintain message Server Details according to Sender System -> Maintain Client Details of Sender System ->Select a Installed Product for Sender System
    Create Business System: Choose WEB AS ABAP if the system is R/3 -> Choose the Technical System and the client Created Before -> Choose the Installed Product -> Set:
    Business System Role: Application System
    Related Integration Server: Integration Server
    Integration Builder
    Integration Directory:
    Add Business System:  Adapter Specific Identifiers -> 'Logical System' identical to the 'Logical System Name' in the SLD Business System  
    IDoc Receiver Communication Channel: port the same as XI System IDX1
    The following web-sites give u step-by-step solution to configure R/3 :
    ALE configuration for pushing idocs from SAP to XI
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    How to convert an IDoc-XML structure to a flat file and vice-versa in XI 3.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    Introduction to IDoc-XI-File scenario and complete walk through for starters.
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    IDOCs (Multiple Types) Collection in BPM
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    Step by Step Procedure of IDOC to File Scenario using BPM
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/main&
    cheers!
    gyanaraj
    ****Pls reward points if u find this useful

  • Reg: IDOC to File Scenario Acknowledgments

    Hi All,
    I have created a Asynchronous IDOC to FILE Scenario. It is working perfectly fine, files are getting generated as expected and FTPed.
    But I am receiveing Acknowledgments back to ECC system from PI. I dont want any acknowledgments back to ECC.
    Please advice.
    Thanks & Regards,
    Navneeth K.

    HI Navneeth,
    Generally, you would not get any acknowledgement. Can u please explain abt the scenario? Have u done this woth BPM?
    Thanks,

  • Idoc-xi-file scenario.  how to display file in html format

    I am not sure whether this is a valid question.........but want to confirm as it was asked by somebody
    In idoc-xi-file scenario.......  how to display file in html format ??
    Thanks in advance
    Kumar

    Hi Vijayakumar,
    Thanks for your reply !! You mean to say I got to use XSLT mapping and also .htm and .html extension together to produce the html file ?? or it is sufficient to use any one of them to produce the html file ??
    Regards
    Kumar

  • In idoc to file scenario, if XI system is down where do idocs pile up?

    In idoc to file scenario, if XI system is down where do idocs pile up (get stuck)
    what tcode can I use to reprocess it?

    Sender System ,Check  BD87 .. you will see alll the IDOCs in Yellow state ..
    You can reprocess all the IDOCs in go from there .. if only they are in yellow state ...
    regards
    PS

Maybe you are looking for

  • Dual boot CentOS and Windows 7

    Hello, I am looking for such solutions wherein I can have CentOS as a dual boot along with WIndows 7. I tried searching for resources and found the following link very helpful. http://www.techotopia.com/index.php/Installing_CentOS_6_with_Windows_in_a

  • Does body temperature in health app really works in iPhone 6

    unable to get any data in blood pressure and body temperature widget iphone 6 version: 8.1.2

  • IMac CRT Help please!

    I was using my iMac just last night when suddenly it losta ll of my files can anybody identyfy my problem i really need to get them back please help thank you

  • How can we make screen fields obligatory?

    hi, guru's          how can we make screen fields obligatory while desiging a screen in screen painter (se51)? regards,      satheesh.

  • Failed Build - Copy of Transcodes

    I have a project that keeps giving me errors when trying to build. I have transcoded the files in that project already and I am wondering if I create a new project, can I bring over the transcodes from the failed project? Will it work? Do I only need