Problem merging two files in BPM

Hi everybody,
I need to develop the following scenario:
I have File_A and File_B.
File_A:
xxx  0001 xxx xxx xxx ...
xxx  0002 xxx xxx xxx ...
xxx  0003 xxx xxx xxx ...
File_B:
xxx 0001 xxx xxx xxx ...
xxx 0001 xxx xxx xxx ...
xxx 0001 xxx xxx xxx ...
xxx .... xxx xxx xxx ...
xxx 0002 xxx xxx xxx ...
xxx 0002 xxx xxx xxx ...
xxx .... xxx xxx xxx ...
xxx 0003 xxx xxx xxx ...
xxx .... xxx xxx xxx ...
After reading these files I need to send several IDOCs (REMADV) as follow:
In this case it would be 3 IDOCs:
IDOC1: One line from File_A and every lines from File_B related by the Key field with the File_A. In this case key field = 0001
IDOC2: Key field = 0002.
IDOC3: Key field = 0003.
In conclusion, I need to send an IDOC for each correlation between one line in File_A and several lines in File_B.
I tried to develop a BPM correlation with the second file but it didn`t work as the second field of the File_B is not always the same.
Any idea?
Thanks in advance.
Regards,
Carlos

Hi,
This will help you
http://help.sap.com/saphelp_nw2004s/helpdata/en/0e/56373f7853494fe10000000a114084/frameset.htm
Error when trying to merge two files
/people/shabarish.vijayakumar/blog/2005/12/07/transformation-error-and-still-stuck
BPM: Messager Merge - Transformation Mapping Problem
Regards
Agasthuri Doss

Similar Messages

  • Problem in merging two files using BPM

    Hello Frens,
    I am doing a scenario for merging of two files N:1 using BPMu2026
    I have to merge two files into one file. The two input files are as below :
    File1 : Id, Name, Age, Place
    File2 : ID, Street, Adrress
    And output File is : ID, Name, Age,place, street, Address
    For this scenario I have defined three datatypes , message types and  the message interfaces as below :
    For File1:  Mi_file1_ob, Mi_file1_abs
    For File2: Mi_file2_ob, Mi_file2_abs
    For output : mi_output_ib, mi_ouput_abs
    In interface mapping I have selected two source interface and one targetu2026
    For Integration process I have selected two receives as two branches of fork and transformation to collect them and a send..
    In IR part I have defined three communication channels sender1, sender2 and a receiver . I have imported the integration from IP and rest is sameu2026
    I am facing a problem for getting the outputu2026
    When I checked in sxmb_moni  everything is fine  and sxi_cache and the return code is also 0 but I am not getting the outputu2026
    Can anyone help me in finding out the problem..
    Thanks in advance...

    Hi,
    Have a look into these blogs and links
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    you can design the ccBPM. To know more about Correlation -with e.g
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0e/56373f7853494fe10000000a114084/content.htm
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi
    Re: Correlation
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/64373f7853494fe10000000a114084/content.htm
    i hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • Issue with Merging two files in BPM

    Hi,
    I need to merge two files (Balance and transaction) with correlation is defined from ID, Date and Accountnumber..
    Sometimes, when there are no transaction records, then balanace file will come up number "0"
    Balance file:
    MDk;1728;175;02.09.11;781961.09;0.00;0.00;781961.09;;;;;;;;;0
    MDk;8574;175;02.09.11;4462;1112;104098800;104102150;;;;;;;;;2
    from the above file, two accounts..
    MDk;1728;  --- with zero transaction record
    MDk;8574;  --- with two transaction records
    Transaction file:
    MDk;8574;175;02.09.11;;DEBIT;;;;;-1112;;0;02.09.11;;;;20555;;;037;
    MDk;8574;175;02.09.11;;CREDIT;;;;;104098800;;0;02.09.11;;;;;;;099;
    We are using Correlation to merge the files by using the fields (MDk;8574;175;02.09.11)
    Now the issue is the BPM is not working as the correlation is not matching as the balance file consists of a row (with zero transaction record) which is not present in transaction file.
    I have to ignore the first record in balance file as it contains 0 transaction data which means there are no records for this account in transaction file.
    How can I delete those records before going to merge condition? Is there any thing i can do in balance file adapter?
    Any suggestions please?
    Thanks
    Deepthi

    Hi Ramesh,
    This is the problem at the first step of the BPM where we will receive the files.
    Start> FORK (Rec1 & Rec 2)>TransforMap( Merge_to_targetfile )-->SendtoReceiver  -->END
    It is failing at step1 (Fork), where the files are not matching according to correlation condition which we set.
    ie. ID, Date, Accountnumber.
    As the transaction file doesn't contain the record "MDk;1728;175;02.09.11" which is present in Balance file, the correlation is not  matching. Hence it is failed. It is not even reaching to map
    As correlation is mandatory to receive two matching files, it is failing here..

  • Merging two files using BPM

    Hello frens,
    I have to do a scenario which will merge to files into one file using BPM....
    Means for example :
    File 1 contains these fields:
    First Name
    Last Name
    File 2 :
    First Name
    Last Name
    The output File which I required is :
    First Name
    Last Name
    First Name
    Last Name
    Can anyone send me the step by step procedure fr this scenario?
    Thanks in advance

    HI go through these links,
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Many other examples can be found under the following link at help.sap.com
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    And some weblogs
    https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
    /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/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements *****
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    /people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement
    Also have a look at these seminars,
    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
    go through these links,
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Many other examples can be found under the following link at help.sap.com
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    And some weblogs
    https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
    /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/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements *****
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    /people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement
    Also have a look at these seminars,
    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
    go through these links,
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Many other examples can be found under the following link at help.sap.com
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    And some weblogs
    https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
    /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/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements *****
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    /people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement
    Also have a look at these seminars,
    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
    Note: reward points if solution found helpfull
    Regards
    Chandrakanth.k

  • About BPM merge two files

    In BPM merge of two files scenario based on the correlation we merge two files and send to target, but my requirement is if any message comes then that data goes to target.
    data types
    send1
        id
        name
        address
    send2
        marks
        university
        state
    receiver
        id
        name
        address
        marks
        university
        state

    t

  • Error when trying to merge two files

    Hi
    I am working with the scenario merging two file using Fork and join construct ie using bpm  I have struck with an error  I have mentioned the error below
    Unable to deliver event 'Received' of object
    Error handling for work item 000000001197
    Parsing error before mapping : unexpected Symbol; expected '<'. '</',entity reference character
    Work item 000000001197 : object CL_SWF_XI_MSG_BROKER Method
    Call Transformation cannot be executed
    Any suggestion how to resolve the error

    Hi
    Thanks for the valuable Suggestions
    The issue was solved by me itself
    Thank you

  • Problem: Merging same Files into 1 File using BPM, Receiver File empty.

    Hi All,
    I am trying a scenario where I need to merge two similar files into one single file (Append) using BPM
    I am following the same structure as defined in the predifined BASIS Namespace i.e.  http://sap.com/xi/XI/System/Patterns for Integration Process BpmPatternCollectPayloads. The only thing I changed is that inside my loop I am having a container dat counts till 2.
    Now when m testing d interface, the file @ reciver directory is generating, but without any data i.e an empty xml is generating. PI is also not showing any error anywhere.
    My Message mapping structure is as follows:
    Sender Side:
    <Message>    (1..1)
       <Message1>  (1..1)
           <MT_myMessageType>  (0..unbounded)
                    <Records>  (1..1)
                            <Id(Used for correlation)> (1..1)
                            <Name>   (1..1)
                            <Address>  (1..1)
    Receiver Side:
    <Message>    (1..1)
       <Message1>  (1..1)
           <MT_myMessageType>  (1..1)
                    <Records>  (0..Unsbounded)
                            <Id(Used for correlation)> (1..1)
                            <Name>   (1..1)
                            <Address>  (1..1)
    Can anyone plz help me.

    Inbound Message after PE, is empty, so the Request Message Mapping (Technical routing) step is also showing a Empty XML without any structure.
    So you mean to say The inbound Message for BPM -
    > File is empty?.....this clearly means that
    1) the transformation step in BPM is not producing the required XML
    2) some validation is imposed in the mapping...which if not satisfied is not creating the target structure.....
    Can you ensure that the transformation step outside the block is working properly....and that your BPM design is exactly same as in BpmPatternCollectPayload (except the number of times the loop is executed)......
    just few days back even i was stuck in a similar situation....the transformation step outside a Block was not producing a particular element in the target......i made some dummy changes in the mapping and then again included in the transformation step and then my BPM worked fine.......so the conclusion is either the data from block is not going into the transformation step or the transformation step is not creating the target.....
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Jun 30, 2009 12:10 PM

  • Problem in updating files in BPM

    Hi ,
    I have a question where I need to append two files and send them as one file at the receiver by using a coorelation.
    Lets Say we have two files -File A and File B both in delete mode .Both  are required to be appended and sent as one file ,say AB on the basis of a correlation on a unique value .(e.g division number ).
    Acc to the project requirement ,After sending a file A ,If once again a new file of A (e.g A(1)) is updated before the second file B reaches the BPM ; We should append the latest file( A(1) ) with B ,and send it across the receiver .(In this case the result file should become A(1)B  ).To achive this we are using a container operation in assign mode and hoping that every new message of same type is overwritten.
    But everytime we are updating the file A it opens a new instance of BPM although the coorelation Id is same .
    When we send file B with that coorelation ID as of file A,it closes both the instances and creates two file , AB and A(1)B.
    We wish that the BPM discards the old file(A) and uses the updated file( A(1) ) in the same instance and puts it on the receiver .
    I would like to know if XI behaves in this way only or we are missing something .
    Thanks and Regards ,
    Neha.

    Hi,
    Why do you need 300 sequence files for 300 requirements??? You can keep each requirement in a seperate sequence in a single/multiple sequence files.
    With regards to reading your variables, you can read from a file through activeX or easier still, doing it through a code module (say a LabVIEW VI or CVI module).
    .......^___________________^
    ....../ '---_BOT ____________ ]
    ...../_==O;;;;;;;;_______.:/

  • Testcase problem using two file adapter and a transformation

    We've got an input which looks like this :
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
    <row>
    <id>10</id>
    <naam>A</naam>
    </row>
    <row>
    <id>20</id>
    <naam>B</naam>
    </row>
    </rows>
    I've created an XSD for this message which looks like this ( straightforward ) :
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.test.nl/testschema" xmlns:test="http://www.test.nl/testschema" elementFormDefault="unqualified">
         <element name="row">
              <complexType>
                   <sequence>
                        <element ref="test:id"/>
                        <element ref="test:naam"/>
                   </sequence>
              </complexType>
         </element>
         <element name="rows">
              <complexType>
                   <sequence>
                        <element ref="test:row" maxOccurs="unbounded"/>
                   </sequence>
              </complexType>
         </element>
         <element name="naam">
              <simpleType>
                   <restriction base="string">
                   </restriction>
              </simpleType>
         </element>
         <element name="id">
              <simpleType>
                   <restriction base="byte">
                   </restriction>
              </simpleType>
         </element>
    </schema>
    I've imported this XSD in my ESB project and created a file adapter which reads this type op files.
    I've created another file adapter to write the files 1:1 to an output dir.
    In the routingservice I've created a very straightforward XSL mapping which maps everything 1:1.
    Now the problem
    When I use this input :
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
    <row>
    <id>10</id>
    <naam>Martin</naam>
    </row>
    <row>
    <id>20</id>
    <naam>Edward</naam>
    </row>
    </rows>
    my output result is:
    <?xml version="1.0" ?><imp1:rows xmlns:imp1="http://www.test.nl/testschema"/>
    I know this is a namespace issue. When I add the namespace
    <?xml version="1.0" encoding="UTF-8"?>
    <rows xmlns="http://www.test.nl/testschema">
    <row>
    <id>10</id>
    <naam>Martin</naam>
    </row>
    <row>
    <id>20</id>
    <naam>Edward</naam>
    </row>
    </rows>
    I get the correct ( and 1:1 output ).
    The problem is. In the scenario I'm about to build the input xml messages do not have an namespace. How can I alter my xsd file or anything within my ESB project that all files will be picked up correctly and processed without having an default namespace?
    Any help is appreciated!

    True,
    But its the other way around what is causing my problem.
    Because the input xml files contain no namespace at all the xml messages are transformed but result in an almost empty xml message. ( e.g. the root element is there and thats it ).
    This is because the XML transformation mapper in ESB ( as well as BPEL ) excplicitly needs a namespace.
    I solved it by editing the XSL by hand, removing the :imp1 namespace prefixes in the select="" tags. e.g.
    <xsl:for-each select="/imp1:rows/imp1:row"> is updated in
    <xsl:for-each select="/rows/row">
    As far as I know this is the only workaround at the moment that I could find.

  • Merging files using BPM-Prod Issue - JDBC to File.

    Hi all,
    We had a scenario in which data is available in two database tables and that data needs to be merged and dropped in a File system.
    To meet this requirement we have developed a BPM with constant correlation and it was working fine.
    But some days one file wont get generated as the JDBC adapters are polling the DB tables based on date.So there are chances that records wont be present in DB for that particular date and file may not be created.So if only one file is generated my entire business scenario fails as the fork step used to merge two files will not be completed.
    The records which is pulled from DB table is based on data an i have written UDF based on these dates.
    Could someone help me in finding a solution.
    Thanks & Regards,
    Lekshmi.

    Hi ,
    I have included a deadline and exception branch in my scenario and it seems to be working fine.Need to do some more testing in this regard.
    But i have one doubt regarding this issue.In the transformation step i have used multi message mapping where i have mentioned the occurrence of both input messages as 1. I was expecting this scenario to throw an error at transformation step (since only one message was given as input )once i have made the changes but surprisingly it didnt happen.Could you pls tell me why this didnt happen..
    Rgds,
    Lekshmi.

  • File to file using bpm

    Kindly help in this regards.. its a file to file Bpm collect message scenario
    1) my ? is i am having two sender data types i combined in message mapping and mapped to target structure but when i want to send file how can i send two diffrent files.
           1) wht i did is when i press test button i gave details of datatype1 and removed the other xml code   and paste it in notepad and anmed as file1 and i repeat the same thing for file 2 aslo.
    2) i did this scenario by seeing saptechnical (file to file using bpm)
    plz help me out how to achieve this probs.
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="BPE_ADAPTER">MESSAGE_NOT_USED</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Message is not used by any processes</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hi Raju,
    As per my understanding you want to merge two files and send it to the target. Then you can do it with and without BPM. But, since you are using BPM then you have to create Integration Process in IR and design it like:
    2 receiver step
    1  sender step and 1 transformation step
    Follow these steps:
    Create 2 Source DT, 1 Target DT
    Create 2 Source MT, 1 Target MT
    Create 2 Outbound MI, 2 Abstract MI for Source MT, create 1 Inbound MI and 1 Abstract MI for Target MT.
    Create Message Mapping. Insert 2 Outbound Source and One Inbound Target and MAp it whatever you want.
    Create Interface mapping in same way as Message mapping only difference will be use Abstract interface in both sides.
    Now go to BPM.
    Create BPM with steps like this
    Start -> Fork -> Two receive (define co relation)-> after fork Transformation step (Give IM) -> Receiver Dtrm -> Send -> end.
    Configure ID -
    Create 2 sender Agreement (2 communication channel (Bus Sys to IP )), 1 receiver agreement (1 CC, IP to Business System)
    I hope it will be helpful for you.
    Thanks
    Nutan

  • Ok, my problem....merging two unique files batch Process

    Ok, my problem....I have been deconstructing films, so I have thousands of picture files for batch processing in Photoshop (Resizing etc) What I would like to do is batch merge two or maybe three lots of deconstructed film footage image files from different sources, one as a background film image file and one as the forground film image file layer, thousands of images all at once, after they have been processed first in photoshop, so I have seperate folders with the image files in each folder, they need to be combined in sequence as I want the image/frame numbers to match up in each folder, then combined to non merged layers and saved into another folder, I want non merged layers, so I can use an action later to balance the overlay. I know premiere and After Effects could maybe do this, but I am looking for a different kind of effect.....thanks 

    This might help, but very probably one of the more experienced Scripters has a Script (possibly with a more comfortable interface or more features) for that, too:
    #target photoshop
    // dialog for folder-selection;
    var theFolderOne = Folder.selectDialog ("select a folder containing the backgoround images");
    var theFolderTwo = Folder.selectDialog ("select a folder containing the foreground images");
    var theFolderThree = Folder.selectDialog ("select a folder to save the combined images to");
    if (theFolderOne && theFolderTwo && theFolderThree) {
    var theFilesOne = theFolderOne.getFiles(checkFor);
    var theFilesTwo = theFolderTwo.getFiles(checkFor);
    // check if both folders contain the same number of files;
    if (theFilesOne.length != theFilesTwo.length) {
    alert ("the folders don’t contain the same number of images")
    // else do the stuff;
    else {
    // create the psd-options;
    psdOpts = new PhotoshopSaveOptions();
    psdOpts.embedColorProfile = true;
    psdOpts.alphaChannels = false;
    psdOpts.layers = true;
    psdOpts.spotColors = true;
    // run through the files;
    for (var a  = 0; a < theFilesOne.length; a++) {
    // open background-image;
    var theFile = app.open(File(theFilesOne[a]));
    theFile.activeLayer = theFile.layers[0];
    // place foreground-image;
    var idPlc = charIDToTypeID( "Plc " );
    var desc6 = new ActionDescriptor();
    var idAs = charIDToTypeID( "As  " );
    var desc7 = new ActionDescriptor();
    var idfsel = charIDToTypeID( "fsel" );
    var idpdfSelection = stringIDToTypeID( "pdfSelection" );
    var idpage = stringIDToTypeID( "page" );
    desc7.putEnumerated( idfsel, idpdfSelection, idpage );
    var idPgNm = charIDToTypeID( "PgNm" );
    desc7.putInteger( idPgNm, 1 );
    var idCrop = charIDToTypeID( "Crop" );
    var idcropTo = stringIDToTypeID( "cropTo" );
    var idboundingBox = stringIDToTypeID( "boundingBox" );
    desc7.putEnumerated( idCrop, idcropTo, idboundingBox );
    var idPDFG = charIDToTypeID( "PDFG" );
    desc6.putObject( idAs, idPDFG, desc7 );
    var idnull = charIDToTypeID( "null" );
    desc6.putPath( idnull, new File( theFilesTwo[a] ) );
    var idFTcs = charIDToTypeID( "FTcs" );
    var idQCSt = charIDToTypeID( "QCSt" );
    var idQcsa = charIDToTypeID( "Qcsa" );
    desc6.putEnumerated( idFTcs, idQCSt, idQcsa );
    var idOfst = charIDToTypeID( "Ofst" );
    var desc8 = new ActionDescriptor();
    var idHrzn = charIDToTypeID( "Hrzn" );
    var idRlt = charIDToTypeID( "#Rlt" );
    desc8.putUnitDouble( idHrzn, idRlt, 0.000000 );
    var idVrtc = charIDToTypeID( "Vrtc" );
    var idRlt = charIDToTypeID( "#Rlt" );
    desc8.putUnitDouble( idVrtc, idRlt, 0.000000 );
    var idOfst = charIDToTypeID( "Ofst" );
    desc6.putObject( idOfst, idOfst, desc8 );
    var idAntA = charIDToTypeID( "AntA" );
    desc6.putBoolean( idAntA, true );
    executeAction( idPlc, desc6, DialogModes.NO );
    // save the combined files;
    theFile.saveAs(new File (theFolderThree + "/file" + bufferNumberWithZeros((a + 1), 4) ), psdOpts)
    theFile.close(SaveOptions.DONOTSAVECHANGES)
    ////// check for psd, tif or jpg //////
    function checkFor (theFile) {
    if (theFile.name.slice(-4) == ".psd" || theFile.name.slice(-4) == ".tif" || theFile.name.slice(-4) == ".jpg") {return true}
    else {return false}
    ////// buffer number with zeros //////
    function bufferNumberWithZeros (number, places) {
    var theNumberString = String(number);
    for (var o = 0; o < (places - String(number).length); o++) {
    theNumberString = String("0" + theNumberString)
    return theNumberString

  • How to merge/append two files in sequence using BPM

    Hi All,
    My senario is to append two files data into a  new file on target system, only if the two files are available on source system. In case one file on the source system, no need to process file. Data in the new file should be in sequence means 1st file data then 2nd file data.
    Please suggest me how can i achieve this functionality using BPM.
    Thanks & Regards
    Sreeni

    For the first part (two files required) design as per Prateek's suggestion
    Data in the new file should be in sequence means 1st file data then 2nd file data.
    create a data structure which will be a combined structure of File1 and File2....target structure should have first reference for File1 and then for FIle2....than having two MTs (File1 and File2) at the source and the target MT at the receiver create your mapping......this will ensure that File1 data occures first and then File2 data.
    Regards,
    Abhishek.

  • BPM was Picking two files but it was not processing 2nd file data in target

    Hi all,
    I have designed scenario for picking two files and i want to merge this files into single structure and send it target.when i am try to testing my bpm was picking two files but it is processing only file it went target system.i have steructe for source like
    source1     target
    root        header
    a           item 0 to unbounded
    b            a
    c            b
                 c
    source2     item1 duplicated structure
    a            a
    b            b
    c            c
    i am getting two source files with the same structure but i have to map it one target structure and i want to map both source fileds to one target structre under item node so i was duplicated item node and mapped a b c fields from both(2 source structures).while testing BPM is picking two file bu in the target i am getting only first file data under item node,whatever i mapped with duplicate structure with second file i am not getting into target file(target is standard proxy structure so cant' create new one item node in that occurance is 0 to unbounded thats y i duplicated node while testing interface mapping its working fine).can anyone suggest solution for this problem.
    Thanks,
    Seshagiri.

    Hi,
    In BPM follow the below steps and hopefully your problem will be solved.
    1.     Configure one sender CC to get the files from your application server, once the files hit the BPM now you need to
                         configure your BPM accordingly.
    2.     Use the Receiver step in BPM to receive the messages. Use the correlation step to get the correct files.
    3.     Use container and append the files, so both the files will be append, this means the message content will
                         have 1header, body, footer, 2header, body, footer.
    4.     If you want to split the message to different receiver then use the fork step else leave it.
    5.     Use the transformation step, the transformation step will call the message mapping. Provide the correct message
                         mapping.
    6.     Now use the sender step to send the message to the receiver-target system. In this step use the split value for each
                          concept if you want to generate two different files.
    7.     Configure 1 receiver CC to generate both the files.
    Hope this helps.
    Cheers,
    Jay

  • Not merging the XML files  in single file using BPM file to file  payload

    Dear All,
    i am working on BPM N:1 Scenario my design and config looks correct . it is picking the file and appending into my defined  "ContainerList" but in receiver side .i mean Inbound side it is putting the data of one one file with the contents of first file . i am not getting any error in SXMB_MONI.
    this is e.g of my two file
    >>> first file  DATA1. XML
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:MT_INF xmlns:ns1="urn://collppayload">
      <ID>IND</ID>
      <Value>2</Value>
      <Name>shaym</Name>
      </ns1:MT_INF>
    >>>> second file DATA2.XML
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:MT_INF xmlns:ns1="urn://collppayload">
      <ID>IND</ID>
      <Value>2</Value>
      <Name>rakesh</Name>
      </ns1:MT_INF>
    But in Inbound side in target it is create the file with data
    >>>>  in.xml
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:MT_INF xmlns:ns1="urn://collppayload">
      <ID>IND</ID>
      <Value>2</Value>
      <Name>shaym</Name>
      </ns1:MT_INF>
    hope u will understand my issue i want the two outbound file should be merged . plz tell me how i will resolve it.

    Dear Raj,
    My scenario is N:1 BPM
    i have created one data type and one message type same using for source and target.
    Message interfaces.   outbound Asyn, outbound Asyn Abstract, Abstarct Asyn, and Inbound Asyn
    two message mapping :  outbound asyn --to ---outbound asyn abstract which is 1 to 0 unbound... and outbound asyn abst -- to --- Abstract asyn which is 0 unbound... to 1
    then two Interface mappings
    and Integration process
    Now ID i created
    1 recv agreemt.
    1 send agreemt.
    2 Interface detrm and two recv determ
    this was my IR and ID desg and congf respctvly.

Maybe you are looking for

  • Latest firmware update for 8 GB 2nd Gen nano bombs Alpine head unit...

    Is there a way to roll back one specific firmware w'update'? I accepted the new firmware update about 10 days ago..and I now have to 'reset / restart' my iPod 8 GB nano EVERY DAY...my Alpine head unit will just go into a 'searching' mode until I rest

  • HP Printer Wizard opens AMD Catalyst Install Manager to install HP Photosmart Basic Drivers

    I upgraded to Windows 8 and want to install HP print and scan drivers for my Photosmart 7515e. However when I try, the wizard always wants to open the Catalyst Install Manager and reinstall that software. I don't understand why that should happen or

  • Electric shocks from Macbook

    I don't know if anyone else has experienced this, and what you did about it. My macbook when charging gives small electric shocks through the body of the mac. I'v been on the phone to Apple and they have suggested using a 3 pronged plug, which i do.

  • Error (0:521)

    I get this message when I try to open a window, "There is a problem with Adobe Acrobat/Reader.  If it is running, please exit and try again.  (0:521)."  Why, and how do I fix it?

  • Trigger Firing in Form6i

    Hi all ill explain detail my situation In my forms my menu contain icons like new(+),save,e.t.c. when I click on new(+) icon one additional record comes for inserting But i don't want it. I tried to know the trigger fired for adding record to disabli