File 2 Proxy Sync - BPM - Mapping

Hi Guys,
I am doing file 2 proxy sync interface. I am getting 2 files from 2 locations. First file contains group of records and second file contains the total records in the file 1.
File 1:
File :1
GroupNo    InvoiceNo     InvoiceDate   InvoiceAmount
GD2000      XXX            XXXXX         XXXXXX
GD3000      XXX            XXXXX         XXXXXX
GD4000      XXX            XXXXX         XXXXXX
GD2000      XXX            XXXXX         XXXXXX
GD3000      XXX            XXXXX         XXXXXX
GD4000      XXX            XXXXX         XXXXXX
GD5000      XXX            XXXXX         XXXXXX
GD5000      XXX            XXXXX         XXXXXX
GD3000      XXX            XXXXX         XXXXXX
GD2000      XXX            XXXXX         XXXXXX
GD4000      XXX            XXXXX         XXXXXX
File 2:
GroupNo     TotalRecords         TotalAmount
GD2000       3                            XXXX
GD3000       3                            XXXX
GD4000       3                            XXXX
GD5000       2                            XXXX
Here, in file 1 GD2000 group having 3 records and in file 2, total records mentioned as 3. If in file 2, GD2000 total records mentioned as 2 then it should stop the process.
I have collected these two files by using BPM, i need help in designing the mapping for this condition.
Also advise me, whether i need to write a udf or not.
Thanks in Advance
Regards
Bala

Here, in file 1 GD2000 group having 3 records and in file 2, total records mentioned as 3. If in file 2,
GD2000 total records mentioned as 2 then it should stop the process.
I have collected these two files by using BPM, i need help in designing the mapping for this condition.
Also advise me, whether i need to write a udf or not.
No need of UDF...
Since you have collected the files in BPM....now put a Switsh step in your BPM just after you have collected your Files.
Put a condition in your Switch Step to check if GD2000TotalRecords = 2......this should be in the condition branch of your BPM and the message included here should be that of File2.....and in this branch put a Control Step with action as Cancel Process....this condition will check if GD2000-TotalRecords is 2 and if yes then then the process will be cancelled...if not 2 then BPM will continue..
Check this out and let me know.
Regards,
Abhishek.

Similar Messages

  • Build delay in messages to abap proxy without BPM / mapping

    Hi everyone,
    The abap proxy is receiving messages from PI, is having errors when receiving big loads of messages via PI.
    The proxy lock's a table causing the next message to run in error.
    The interface is not using BPM or a mapping.
    My question is:
    What are the possibilities to configure a delay in PI ? (not using a mapping or BPM process)
    The abap proxy need some time to process a message before it receives the next one.
    Br,
    Roy

    Hi,
    >>>The proxy lock's a table causing the next message to run in error.
    if you use async messages with fault messages correcty you can
    restart those abap proxies just like IDOCs - and you can schedulerestarting that too
    so this is nothing bad - just schedule the restarting and they will get processed
    Regards,
    Michal Krawczyk

  • Call sync BPM from Async BPM - issue

    Hi,
    Outline: I'm trying to call a synchronous BPM from an asynchronous BPM in a PI 7.0 SP 14 system.
    When doing so i get the following error: Object CL_SWF_XI_MSG_BROKER method SEND_SYNCHRON cannot be executed.
    Now this is an oldie when searching the forums for this error message. I do however fail to see a solution to the problem.
    Note that the following notes (referred to in similar posts)
    - 710445
    - 718734
    - 830803
    are implemented since theese refer to older versions of PI.
    My scenario is very simple at present since i've startet from scratch again after getting the error. So what i do is:
    1) send async message to async BPM
    2) async BPM receives request
    3) async bpm transform request til sync_request.
    4) async BPM calls synchronous BPM
    5) sync BPM receives request and opens a async/sync bridge
    6) sync BPM maps request to response
    7) sync BPM sends response and closes async/sync bridge
    8) async BPM reveices sync_response
    9) async BPM sends sync_response to some application
    Now step 8 i never succesfully executed. Instead the error earlier described is triggered.
    For simplicity i use 1 and only 1 message type in all message interfaces. I have mapping between my synchronous interfaces outside of BPM.
    The synchronus BPM is executed just fine. The only issue is getting the reponse back to the asynchronous BPM.
    I am familiar with the following similar posts:
    - Object CL_SWF_XI_MSG_BROKER method SEND_SYNCHRON cannot be executed
    - Problem in posting the data in the syncronous mode
    but find them to be of no use.
    Hope someone can help.
    Best Regards,
    Daniel

    Daniel Hans Engsig-Karup wrote:First you do not need any bridges if it is asyn/sync kind of a scenario in the second BPM. You need a bridge when the bpm has to wait with a sync call coming in and response in an async call. Essentially your BPMs (I donno why you need 2.. but let us go with 2)
    >
    >
    > 1) send async message to async BPM
    > 2) async BPM receives request
    > 3) async bpm transform request til sync_request.
    > 4) async BPM calls synchronous BPM
    > 5) sync BPM receives request                        
    (Remove this if you are calling a sync system here) and opens a async/sync bridge
    > 6) sync BPM maps request to response
    > 7) sync BPM sends response
    Remove this and closes async/sync bridge
    > 8) async BPM reveices sync_response
    > 9) async BPM sends sync_response to some application
    >
    VJ

  • File to sync bapi_multimapping_without bpm

    Hi All,
    I have done a file ->bapi -> response to file testing interface using the adapter modules.
    My actual scenario is :
    Source file has multiple lines and for each line i have to call a bapi. The response of the BAPI needs to be appended in a file.
    My question is:
    Should i use a BPM to call the bapi as many times as the lines present in the source file?
    I read the sap documentation for multimapping and i suppose we cannot use multimapping for synchronous interfaces?
    Is there any way i can do my scenario without using a BPM?
    Regards,
    Balaji.M

    Bhavesh,
    If you need to avoid BPM, then you have to change the BAPI / RFC to be able to take multiple records in one call.
    How can i do this? Can you please explain?
    I searched for blogs, but all of them i saw, have one rfc call. Is there any blog that does this without a bpm:
    a) Source file comes in with multiple lines
    b) For each line a sync bapi or rfc needs to be called
    c) Reponse needs to be written to a file
    I did my scenario using a BPM and the performance is very bad (the size of the box is small, but would not make a great deal of difference if it were a bigger box). Here is what i do in a BPM
    1) get the source file
    2) call bpm
      2.1) inside bpm, transformation1 - does a multimapping
      2.2) block start(For Each)
      2.3) Sync Send to bapi. Mapping called outside bpm in interface determination
      2.4) Async Send - to write response - done in the response mapping of the Interface Mapping.
    Please let me know if i can do how i can do steps a, b, c (in bold above) without bpm
    Thanks,
    Balaji

  • Map File name in BPM to email response

    I have a scenario I am working:
    File FTP -> FTP -> RFC
    The file is deleted off initial server and pulled into our landscape to Processing server, then processed into SAP via RFC.  I wish for an email response to send on pass/fail of interface.
    This is all done and executing as expected with pass/fail message in body of email, received in inbox - no problem.
    However, one thing is missing....
    When the file is first processed, the File name is deleted and renamed with a time and date stamp (not ideal, but I got this working) is added when the file is created on receiving server.  I am using a BPM to do the file send mapping and email response.
    I wish to map the initial file name to the new file name, and then process then add time/date stamp when placed into Archive folder.  I would like the email to have the original name oif the file in the Subject line of the email, if possible....
    Has anyone done something similar?  Can you point me in the right direction?

    Hi,
    You can do this using Adapter specific identifiers in receiver CC. You can get the same filename as your source file.
    Blog: /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Go thro this thread as well for more details: Target file of the same name as source file
    Then in BPM, add one more send step for a file receiver CC and place the file in the archive directory with timestamp.
    Regards,
    P.Venkat.
    Message was edited by:
            Venkataramanan

  • File to Sync Webservice using BPM

    Hi all,
    My scenarios is File to Webservice and again the output of this web service to some other file...
    I an refering a document in which its written as
    *In the Integration Directory Create Configuration Scenario, Then create three communication channels, one for sending the xml file to the BPM, one for sending the request to Web Service from BPM and one for sending the response as xml file to the desired location.*
    My doubt is do I need a communication chaneel for BPM also?
    and if yes then what will be my receiver adapter in case of BPM.
    Thanks in advance

    Hi,
    No need for 3 Communication channels.
    you define a CC for Sender and another CC fro receiver(webservice)
    In BPM we'll define the IM(this is between the two abstract interfaces)
    Reward points if this is helpful
    Thanks,
    Madhu

  • Async/Sync BPM passing a ID from the Req msg to Rsp MSg

    Hi,
    I have a File to SAP Standard proxy scenario. The file go though a Async/Sync BPM which sends a SAP standard message post a document to SAP and SAP sends a success or error response back. I then send this response back as a mail message. The problem is that in the response message there is nothing that ties it to the request message. What I need to do is to pass an ID in the request message to the Response message when the Response message comes back from the SAP Proxy.
    This will enable us to determine which file was successful and which not.
    Your assistance in this matter will be greatly appreciated.
    Regards
    Willie Hugo

    >
    Hugo Willie wrote:
    > Thank you Shabarish, but the Id I refer to is a uniue id in the request message payload that I would like to pass to response message payload.
    there are two ways;
    1. Pass the id into sap and let sap pass it back to you
    2. do a transformation in your BPM once you get the response from SAP - in this transformation you can add the request message also as source (i.e response from SAP and request message). thus you can map the required value to the final response. In BPM, the data is always persisted so the id will be available always until the BPM execution is ended
    my preference will be option 1

  • Dynamic Archiving in File-Proxy Interface

    Hi Experts,
    My scenario is File -> Proxy which updates certain data in the target SAP system. The logic in the receiver side is that, if the update fails, then the input file must be placed in Folder A. Else if the update is successful, then the file must be archived to Folder B.
    Has anyone done this before? I know File interface is asynchronous so I'm not sure how to handle such kind of requirement.
    Appreciate any inputs. Thanks!
    Mark

    Hi Mark,
    If  i was you i would use a Async/Sync bridge, in other words a File - Proxy - File scenario (without ccBPM). Check a similar scenario here File-RFC-File(Without BPM) - Process Integration - SCN Wiki
    Im not so sure if the proxy interface supports this bridge, also you can do two scenarios, File - Proxy and Proxy - File, then inside the ECC  the ABAPers should call the second scenario after the update-
    Regards.
    Message was edited by: Iñaki Vila

  • ABAP Proxy and BPM with message maping

    Hi all,
    I have a scenario like :
    ABAP Client Proxy ( synch )
    ->    BPM  ( to retriggr SOAP call and raise alerts with error and reponse back to Abap client )              
    -> message mapping
    -> SOAP ( synch )
    1. What can be the issues with this scenario ?
    2. How can I return response and excetion back to ABAP client from BPM ?

    >
    > As per design guidelines for consistent processes -
    > we need to do all the error handling and alerts in
    > BPM.
    You mean you are planning to use a BPM for all Interfaces just because someone told so? Why use a BPM when there is no need for it. If you have a Business Process that demands a BPm then yes use it, but for this sceanrio, you can use Fault messages to propaggate the error back to the R3 system, and use the Xi alerts ( without BPM ) if a runtime error occurs etc.
    Is there some Business Process Involved here? What is the exact requirement?
    Regards
    Bhavesh

  • ** Is it possible to call a Proxy from BPM ?

    Hi friends,
    Our requirment is to take the thru JDBC (data required to create Sales Order) and call the Standarad BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'. Since BAPI is not able to handle multiple sales order, we want to use this BAPI in inbound proxy and want to call from BPM.
    Since we want to call continuous BAPIs one by one, (Sales Order, Delivery, Invoice) we want to design this scenario using BPM.
    I understand that we are not able to create proxy for Abstract Interfaces. BPM only understands abstract interface. In this case, how do we call proxy from BPM? Is there any other possibility?
    Kindly reply friends.
    Kind Regards,
    Jegatheeswaran P.

    hey,
    yeah its possible..
    Check this.
    /people/vanita.thareja2/blog/2006/05/23/bpm-sending-message-asynchronously-and-getting-the-response-from-synchronous-system-using-abap-proxies
    These replies too..
    Proxy in BPM
    BPM file to ABAP proxy
    Thanks,
    Vijaya.
    Edited by: Vijaya Lakshmi Palla on Jun 4, 2008 5:32 AM

  • Sync to Sync BPM scenario

    Hi Experts,
    How to do Sync to Sync BPM scenario without using Sync/Async bridge?
    Could you please give the BPM steps for SOAP to JDBC scenario?
    Regards
    Sara
    Edited by: Sara D on Jan 17, 2008 7:59 AM

    Hi,
    Check below links for BPM scenarios.
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
    Regards,
    Phani

  • Sync BPM , SOAP

    Hello,
    I've got another problem and hope someone could give me a hint, because reading some blogs concerning BPM and trying to adapt the things to my problem did not really help me.
    The last days I created a sync process that gets information via http adapter, does some mappings and sends a soap message to a receiver, then gets the response and evaluates it. Everything ok...
    Then I tried to implement the same with a sync BPM and it drives me mad...
    message interfaces I created (status quo):
    outbound async "message" that is sent via http adapter
    abstract async "message" for integration process
    abstract asynch     "soap"   for integration process
    inbound synch     "soap"      to send via soap adapter
    I also built an interface mapping between abstract async "message" and abstract async "soap", but there I could not enter a response mapping, of course.
    Maybe I should use an outbound synch "message" and change the message interfaces in the mapping to synch types?
    My process contains a receive step (async) that receives the abstract async "message", after that the message is transformed via transformation step to abstract async "soap".
    At last there is a send step (sync) to send the soap and get the response.
    Leaving the transformation step out and putting the mapping into the interface determination did not work either.
    I always have problems with creating sender/receiver agreement and interface determination:
    There is one sender and receiver agreement, two sender determinations and also two interface determinations.
    What do I have to change?
    Thanks a lot for your help,
    Julia
    Message was edited by:
            Julia Poplawski

    This is a standard requirement . This is what you need,
    <b>Message Interfaces</b>
    1. Outbound Synch ( for HTTP )
    2. Abstract Synch ( for HTTP)
    3. Inbound Synch ( for SOAP )
    4. Abstract Synch (for SOAP)
    5. Abstract Asynch ( one each for HTTP request and HTTP response)
    6. Abstract Asynch ( one each for SOAP request and SOAP response).
    <b>BPM Design</b>
    1. Receive --> Mode --> Open Synch Asynch Bridge
    2. Transform --> Map HTTP request to SOAP request
    3. Send --> Mode --> Synchronous
    4. Transform --> SOAP response to HTTP response
    5. . Send --> Mode Closes Synch Asynch Bridge.
    <b>InterfaceMapping</b>
    1. Between Abs HTTP request and Abs Asynch SOAP request
    2. Between Asynch Abs SOAP response and Asynch ABs HTTP response
    <b>
    Receiver Determination</b>
    1. Between Outbound Synch HTTP and Abstract Synch HTTP
    2. Between Abstract Synch SOAP and Inbound SOAP
    Regards
    Bhavesh

  • Sync BPM queue

    Hi,
    I have a sync BPM scenario with post a PO using webservices and then respond back to soap client and also a text file to ther receiver server. My problem is there was only a queue for the BPM but there will be many user will use this services to post PO. How can i increase the queue? Is that by select multiple queue? How can i solve this waiting queue problem?
    Thanks
    Edited by: fcgan on Dec 15, 2008 8:15 AM

    Hi,
    As explianed in the link by Prateek ,you can try with the option u201CMultiple Queues (Content-Specific)u201D.
    What you mean correlation not work properly?
    correlation will not work properly because messages handled by different queues(Multiple Queues) might start new process instances instead of being correlated to a running instance. and hence correlation will be affected.
    Thanks!

  • File to file error using BPM

    Hi...
         I am doing File to File scenario using BPM. I am getting the below error. Could  you please help me out in this.
    Runtime error
    Unable to read payload from the message object

    Check the mapping indepently i.e go to Interface Mapping and give the input xml from the SXMB_MONI and test it.
    Probably problem with some tranformations ,format.
    if problem persists
    There seems to be an issue with the XML files.
    Correct them and try to open the XML file in IE.
    During the testing of the mapping, please set the trace level to all and test the mapping once again.
    reward points if found helpfull
    regards
    chandra.k

  • Flat File Active Sync Target Resource not working

    Hi there,
    I've been trying now for several days to get user data from a csv-file into a target resource (mysql table in this case), but I don't get it working.
    I created MySQL resource with correct schema mapping, then I created FFAS adapter for the csv file with correct schema mapping and added MySQL table as target resource (I chose "wizard generated input from" and basic configuration mode in active sync wizard). I also configured meta view (or identity attributes in IDM 6.0) with FFAS as source and MySQL as target for several attributes.
    Accounts can be loaded from the csv (lighthouse users are created) and MySQL-resource can be assigned to users, but it would be pretty nice to have this done automatically. So what I want is load accounts from csv and add mysql resource without any user action required (manually assign resource).
    Thanks for your help!

    Right. Roles are a great way to assign Resources to users. They have the added value of being able to re-define the Role at a later time (e.g. users having Role X get an account in MySQL and AD, for example) through Bulk Action.
    I typically do my ActiveSync processing through an ActiveSync input Form. I realize MetaView is available too, but I was "brought up" on the Form model and it still works for me.
    If you go the ActiveSync Form route, you basically have to understand the Form as a tool to help you build the user View and extend the handful of attributes from your CSV file into a larger representation of the user. In other words, the Form is often used to create an Email Address (either in the Form or through Rule invocation), assign Roles/Resources, assign a Manager (IdM 7.0 and later), etc.

Maybe you are looking for

  • Scheduled report fails when set to print

    Error Message: Invalid printer specified. ~ce1b6881fc74f0d52.rpt There is, indeed a default printer on the server and I can print to it manually from the BOE server.  It shows in the choices of printers in the default settings.  It does reside in the

  • Running Windows 7 [64 bit]-Do I need to install Quicktime?

    Hello all, This is my first Post. I'm a Premier Elements 9 Newbee and want to know if Apple Quicktime is needed with Windows 7? If so, do I download the 64 Bit version? My Premier Elements 9 software is working fine without it. I'm using a Canon Vixi

  • Creating Prodcution order using workflows

    Hi all, Iam new to workflows. I have been reading the documents on Workflows on SDN and few  other sites. I want to know whether we can create a production order using Workflows. If so, How we need to pass necessary data like Material, Plant, Order t

  • Non interactive zlogin eats up all CPU on Solaris 10 u4

    Hi, We are having trouble with a zlogin command that is started via a script from inittab on a Solaris 10 u4 system. When a zlogin command is started from the script this zlogin will within 10-15 seconds start spinning and consume 97-98% of the CPU.

  • Managed Processed files, where did it go?

    If I have Aperture managing raw files & I process the this raw file & run it through Photoshop retouch etc..press Save, where does it save this processed image, in the Library? If it does then is there a way to save it to my Managed original folder?