Odi-row wise insertion of single source into multiple interfaces in package

hi,
i have an issue.My source table is emp(empno(pk),name,job,mgr,sal,deptno,comm).And my target tables are
emp1(name,empnoa(pk),deptno),emp2(empnob(pk),job,sal).
i have two interfaces: interface1----emp to emp1
interface2-----emp to emp2.
I have 100 rows in my source table.
Requirement is :in my package i put interface 1 after interface 2.
For each row of the sorce emp.The data should go into targets emp1,emp2.If a particular row isnt getting into either emp1 or emp2.That particular should rollback[i.e it should enter into either emp1 or emp2].
The insertion should be row wise and not the whole of source data.
How do i go about this?

Perhaps this will work:
Keep interface 1 as is - run it first in the package.
for interface 2, join emp to emp1, only update/insert into target (emp2) if: emp.empno = emp1.empnoa - this way, you will not add anything to emp2 that is not in emp1.
then, create a simple procedure to
delete *
from emp1
where not empnoa in (select empnob from emp2)
They may be a better solution, but this is easy and should work just fine.

Similar Messages

  • How to use Power Query to load data from a single source into multiple tables

    Hi all,
    I have a requirement to load my data into three different data models using Power Query. Is that possible?
    My source is a SharePoint survey list, with similar questions like:
    1) Course lecturer - John Doe
    1a) The course was useful (rate 1 to 5)
    1b) The lecturer displayed good knowledge of topic (rate 1 to 5)
    2) Course Lecturer - Mary Brown
    2a) The course was useful (rate 1 to 5)
    2b) The lecturer displayed good knowledge of topic (rate 1 to 5)
    I would like to split the data into separate data models (one for John Doe; another for Mary Brown), so that I can compare the different lecturers. Other than running separate surveys for each of them, I thought of using Power Query to transform the data.
    Is it possible?
    Thanks.
    Regards
    GM

    Yes, this is possible.
    Start with a single query that returns you the data for all lecturers.
    Right-click on the "all lecturers" query in the queries pane, and choose Reference, once for each lecturer. This will create a query for each lecturer.
    Open the query for each lecturer and filter the data so that only that lecturer's results are visible.
    Click "Close & Load To..." for each lecturer's query  to load the data into the data model. This will create a data model table for each lecturer.
    If your question is more about how to transform such a survey list into a table that can be easily filtered, please provide an example of how the list shows up in Power Query.
    Ehren

  • Splitting single video into multiple files - workflow improvements?

    I regularly need to split a single video into multiple separate files that are used by other programs.  I'm using Premiere Pro CS4 for a number of reasons including the ability to easily and accurately select a scene by individual frames, native audio and video effects/filters, and the ability to import and export various video types.  I'm open to using other tools, but I haven't yet found one that is even close to Premiere Pro when it comes to accurately selecting split points.
    I'm not a Premiere Pro expert.  I have been doing this for about four months and have read many resources (books, forum posts, help guides) to refine the workflow I'm currently using.  My question:  does anyone know any improvements that might save me time/keystrokes.
    Current workflow:
    I've bound F8 to File > Export > Media
    Import video file
    Open in source monitor
    Set In and Out points for scene in source monitor
    Ctrl-drag from source monitor to Project Panel (creates a subclip)
    Repeat 3 and 4 for all scenes/subclips
    Select all subclips from Project Panel and drag to timeline
    Set work area bar to first subclip in timeline by the following four keystrokes:  Home, Alt-[, PageDown, Alt-]
    Type F8 (File > Export > Media shortcut).  Type output file name, click OK and the first subclip is put in the AME queue
    For the remaining subclips, type: Alt-[, PageDown, Alt-], F8, output file name, OK and repeat until done
    Any thoughts/ideas on workflow improvements?
    Thank you!

    Thank you Hunt.
    For the sake of brevity, I didn't include all of the details about the various aspects of the projects.
    Early on I was doing what you suggested and yes, it is a little quicker.  I learned (painfully) a couple of months later that I sometimes have to go back and adjust the clips and this method (trim to timeline with no subclips) resulted in quite a bit of duplicate effort (to reobtain start/stop points).  I've since learned that managing the "scenes" as subclips in topical bins allows me to go back and make adjustments, long after I've totally forgotten about the project content, without a lot of unnecessary reworking.

  • Split Single IDOC into Multiple IDOC's Based on Segment Type

    Hi Experts,
    I have a scenario IDOC to FILE ,  Split Single IDOC into Multiple IDOC's based on Segment Type
    Outbound:
    ZIdocName
    Control Record
    Data Record
    Segment 1
    Segment 2
    Segment 3
    Status Record
    I should get output like below
    Inbound:
    ZIdocName
    Control Record
    Data Record
    Segment 1
    Status Record
    ZIdocName
    Control Record
    Data Record
    Segment 2
    Status Record
    ZIdocName
    Control Record
    Data Record
    Segment 3
    Status Record
    Please suggest me step by step process to achieve this task.
    Thanks.

    Thanks a lot Harish for reply.
    I have small doubt. According to your reply , If we have N number of segments in single IDOC with same fields in all segments then for splitting Single IDOC into Multiple IDOC's based on Segment Type we need to duplicate N number of target IDOC tree structure.
    Is that possible to Split single IDOC into Multiple IDOC's based on Segment Type using only one Target IDOC structure without duplicating the Target IDOC structure tree.

  • How to insert one table data into multiple tables by using procedure?

    How to insert one table data into multiple tables by using procedure?

    Below is the simple procedure. Try the below
    CREATE OR REPLACE PROCEDURE test_proc
    AS
    BEGIN
    INSERT ALL
      INTO emp_test1
      INTO emp_test2
      SELECT * FROM emp;
    END;
    If you want more examples you can refer below link
    multi-table inserts in oracle 9i
    Message was edited by: 000000

  • Insert a single space into a NOT NULL column defined as CHAR(1)

    Hi,
    I am trying to run a C program in which I am inserting a space character into a database table, where the column has been defined as CHAR(1) NOT NULL.
    I am initialising a variable defined in C as: char, with a blank but after running the insert statement I get an error: ORA-01400: cannot insert NULL into �. .
    create table nullTest ( col1 char(1) NOT NULL );
    Sample code:
    EXEC SQL BEGIN DECLARE SECTION;
    char dbo_cValue;
    EXEC SQL END DECLARE SECTION;
    dbo_cValue = � �;
    EXEC SQL
    INSERT
    INTO nullTest
    col1
    VALUES
    :dbo_cValue
    My options are: char_map=charz, code=ANSI_C, mode=ANSI.
    I understand that if I was using char_map = VARCHA2, on input - if the input value contains nothing but blanks Oracle treats it like a null, but I am not using VARCHAR2 option, but CHARZ.
    I tried STRING and other options and I cannot get this to work.
    Is there a way where I can insert a space character into a table (using a C program), which has a constraint of �not null� while using C type variables?
    I would appreciated any help on this.
    Thank you.

    Since you did not post a sample of the code that produces an error, its hard to speculate what might be wrong with it.
    But, the following sample works, and successfully inserts a space into the table.
    #include <sys/types.h>
    #include <stdio.h>
    EXEC SQL INCLUDE SQLCA ;
    EXEC SQL BEGIN DECLARE SECTION ;
            VARCHAR col[10] ;
            char * uid ;
    EXEC SQL END DECLARE SECTION ;
    int main(void)
            uid = (char *)"/" ;
            EXEC SQL connect :uid ;
            printf("Connected to Oracle!\n") ;
            strcpy(col.arr, " ") ;
            col.len = strlen(col.arr) ;
            EXEC SQL insert into ins_null values (:col) ;
            EXEC SQL COMMIT WORK RELEASE ;
    }And, here is the table definition, and a select after running the above program once.
    SQL> create table ins_null(col varchar2(10) not null) ;
    Table created.
    SQL> select ':'||col||':' from ins_null ;
    ':'||COL||':
    1 row selected.
    SQL>

  • Splitting the single record into multiple records based on validity

    Hi Guru's,
    basically i am an BI consultant with less knowledge on ABAP, can i request your help on the ABAP task.
    I am working on HR module which is integrated with SAP BI,  the reports will be executed based on calendar month the requirement is i should split the single record into a multiple records based on validity of the record.  basically the HR data would be in data from and date to. 
    below is the logic
    Check whether the start and end date of the record are in the same month and year.
    If yes  nothing changes
    If no  create multiple records
    1st record  original start date of the record u2018till end of that month
    Following record  1st of the next month  u2018till last day of the month
    u2026
    Last record  1st of the month u2018till original end date.
    All fields will have the same values, only the datefrom and dateto fields change.
    Can any one please provide me the same code to proceed on my task.
    Thanks and Regards,
    Venkat

    Hi,
    Using Rule group we can split it.
    Using Rule Group in SAP-BI  Part - 1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/s-u/using%20rule%20group%20in%20sap-bi%20%20part%20-%201.pdf
    Thanks
    Reddy

  • 8500 adf scan Breaking a single page into multiple pages

    I have a 8500A Premium. Lately when I am scanning multiple sheets via the ADF, the scan will take each sheet and break it into multiple sheets on the scan.  i.e., if I am scanning 5 sheets, I may end up with 20 partial sheets in my scan. 

    Hello there @coolhandluke2 ,
    I read about the unusual scanning issue you are facing when you scan with your Officejet 8500A. I would suggest trying a multiple copy for starters to see the copies will also show irregularities.
    If the copies work fine, the issue is most likely within the software.
    Here are some steps to try!
    Power reset:
    Press the Power button to turn on the product.
    With the product turned on, disconnect the power cord from the rear of the product.
    Unplug the power cord from the wall outlet.
    Wait at least 15 seconds.
    Plug the power cord back into the wall outlet.
    Reconnect the power cord to the rear of the product.
    If the product does not turn on by itself, press the Power button to turn it on.
    Uninstalling the Printer Software, restarting the computer and reinstall the printer HP Officejet Pro 8500A Premium e-All-in-One Printer - A910n Drivers
    Let me know the results, good luck!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Can I export a single file into multiple files?

    Is there an option or a plugin that would allow me to set markers in the audio, and then have Soundbooth export the audio into multiple files?
    As an example, let's say I have a 1 minute audio file. I place a marker at 0:00 and another marker at 0:10 and a third marker at 0:30. I then would select Export Multiple and I would end up with three seperate wav files, one 10 seconds long, the second 20 seconds long and the last one 30 seconds long.
    Thanks

    Hi laforcej
    Open the PDF In Acrobat ...
    Go to Tools -> Pages -> Extract
    Now Select the Page Number you Want to Extract and Save them

  • Single IDOC to Multiple Interface Mapping

    We have a requirement in our project where one masterdata IDOC will be sent from a SAP MDM box and will be transformed to a target IDOC and be sent to an SAP SNC box. However, the scenario is that depending on the contents of the IDOC, there can be multiple IDOCs that need to be created. For example, the single MDM IDOC has V1, V2 and V3 values then the IDOCS that should be sent to the SAP SNC box should be three.
    The IT head of the customer decided against using Enhanced Interface Determination (since the problem can be easily solved using a 1:n mapping) due to the complexity especially when the solution is rolled out to other regions as each region has it's own logic (currently, the other implementation has only 1:1 mapping so there is no problem). I had developed a 1:n mapping but the resulting map is too big and very complex.
    What I tried to do is to create separate mappings for each scenario that an IDOC needs to be generated out of the values from the received IDOC in XI and then define rules in the Interface Determination. Problem is that XI throws an error stating that multiple interfaces are found. So I cannot use Interface Determination to trigger creation of multiple IDOCS of the same type with different values from a single IDOC sent by the same SAP box.
    Question is, is there any way to solve this requirement without using Enhanced Receiver Determination. I was thinking of BPM but not really sure how to do it.
    Thanks in advance!
    Best Regards,
    Rommel Mendoza
    Hewlett Packard Asia-Pacific, Ltd.

    Thanks a lot for that.
    For example, We have this input Message:
    <ZMATMA>
      <IDOC>
        <E1MARAM>
           <E1MARMM>
               <MEINH>IT</MEINH>
           </E1MARMM>
           <E1MARMM>
               <MEINH>CS</MEINH>
           </E1MARMM>
           <E1MARMM>
               <MEINH>SW</MEINH>
           </E1MARMM>
        </E1MARAM>
      </IDOC>
    </ZMATMA>
    then there should be an output of:
    <SAVEMULTIPLE204>
      <IDOC>
        <BUOM>IT</BUOM>
      </IDOC>
    </SAVEMULTIPLE204>
    <SAVEMULTIPLE204>
      <IDOC>
        <BUOM>CS</BUOM>
      </IDOC>
    </SAVEMULTIPLE204>
    <SAVEMULTIPLE204>
      <IDOC>
        <BUOM>SW</BUOM>
      </IDOC>
    </SAVEMULTIPLE204>
    The logic is when the MEINH field of the ZMATMA02 IDOC has the values: IT, CS and SW, create one IDOC for each.
    Thanks in advance!
    Edited by: Rommel Mendoza on Nov 6, 2008 7:30 PM

  • Row wise insertion of Master - Child Record

    Hi,
    Please help me with below scenario:
    I have two tables Master - M and child - C
    M Contains M1, M2,
    C Contains M1 C1, M1 C2, M2 C3
    Currently the ODI inserts data of Table M and then it inserts data of C
    But I want the data to be inserted in the below given format
    1. M1 should be inserted
    2. Then C1, C2 to be inserted, if there is any error while inserting C2, ODI should rollback C2, C1 and also M1.
    3. Then it should start with next row of the Master table, and if there is no error while inserting the master and child record, then records M2 and C3 should be commited.
    Thanks in advance.
    Varma

    Hi Varma,
    I also need the steps for the same scenario. Cezar have given me some work arounds, which is working fine(row by row transformation) but we are facing some problem in commit and rollback. The steps are given in the below link.
    Commit Rollback for Parent & Child table
    Thanks in Advance,
    Ram Mohan T

  • Splitting Java source into multiple WSDLs using ANT

    Hi,
    I have seven of webservice operations defined in a single webservice class. But, I want those split into different WSDLs as different services (with different service names) using ANT. I cannot find a easy way of doing that.
    The problem is that when I use servicegen, I can give the same webservice class as different services which would split it into different services. But, I would have all the operations in the overall webservice into every single service. That is not acceptable. Each service can have only one operation.
    Is this possible at all? I am using WLS 813?
    Thanks,
    Sridhar

    If you are asking if there a way to tell servicegen to put different operations from the same Java source in different WSDL, the answer is no.
    You can use the source2wsdd Ant task (http://edocs.bea.com/wls/docs81/webserv/wlws_tags.html#1095437) and the @wlws:exclude tag to exclude methods from the WSDL, but that's about it. Here, you would have multiple copies of the Java source, with each having the @wlws:exclude tag on all but one method. The names of these file copies would be something like <real-file>1.java, <real-file>2.java, etc. You won't ever compile these files, you'll just us them to copy over <real-file>.java, before you run source2wsdd. You'll be running source2wsdd on xxx.java, as many times as you have <real-file>n.java files.
    source2wsdd will then produce a seperate web-services.xml (i.e. web service) for each copy over of <real-file>.java. Each of these web services will need to have a different context root, because the endpoint for a WLS web service is exposed as a servlet.
    HTH,
    Mike Wooten

  • Single File into multiple files

    Hi,
    I am working on scenario where I will be getting Header,Trailer and in between plant records.
    I will be picking file and need to create a new file for each plant.
    Do we require BPM for this? Can it be achieved in Message mapping only?
    If so how?
    Would appreciate your help.
    Regards,
    Chandra

    Chandra,
    Are u getting Header, Trailer, Plant records as different files from the source or in single file itself? If you are getting from different source then you need BPM. If you are getting single file and need to generate multiple output file then no need for BPM.
    To be more simple  N:1 or N:M then you need BPM.
    1:M then no need for BPM.
    Everything you have to do in the mapping part.
    raj.

  • How to import a single schema into multiple target schema?

    Hi,
    I want to import a schema named sd from my source database to my target database in  schema sd1 and sd2.
    I have tried using the following impdp parameter which is throwing error :-
    impdp system/system schemas=sd remap_schema=sd:sd1,sd:sd2 directory=backup dumpfile=8.12.13.dmp logfile=8.12.13.log
    Please help me.

    If you look up the syntax in the docs, you will see that while you can remap many schemas into one, you cannot remap one schema into many.

  • Inserting Lots of fields into multiple tables

    Hi, i would like to enter lots of fields into mutiple tables
    in my access database. I have 6 pages which in turn have a
    different set of forms which must be inserted into its own table. I
    tried to insert some information into the table but because my
    database is a relational db i get an error message "You cannot add
    or change a record because a related record is required in table
    'Hosting'. Im not entirely sure what this error means but it is
    quite urgent that this is sorted. Another way in which i tried it
    was to carry all the form values over each page and recarry them
    onto the final 'insert' page but i cannot insert more than one
    insert record behavior and if i do i get a dim error message.
    Can somebody please help me this is very urgent.
    Thanks in advance,
    Adam

    Adam
    The error means that you are trying to insert a record into a
    table that is
    dependent upon some of the information being in a higher
    table, so you need
    to do the inserts in the correct order.
    There is an old tutorial on the MM site on how to handle
    multiple tabel
    inserts, which you may find useful.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "muzicmistro" <[email protected]> wrote in
    message
    news:e3fej1$8gp$[email protected]..
    > Hi, i would like to enter lots of fields into mutiple
    tables in my access
    > database. I have 6 pages which in turn have a different
    set of forms which
    > must
    > be inserted into its own table. I tried to insert some
    information into
    > the
    > table but because my database is a relational db i get
    an error message
    > "You
    > cannot add or change a record because a related record
    is required in
    > table
    > 'Hosting'. Im not entirely sure what this error means
    but it is quite
    > urgent
    > that this is sorted. Another way in which i tried it was
    to carry all the
    > form
    > values over each page and recarry them onto the final
    'insert' page but i
    > cannot insert more than one insert record behavior and
    if i do i get a dim
    > error message.
    >
    > Can somebody please help me this is very urgent.
    >
    > Thanks in advance,
    >
    > Adam
    >

Maybe you are looking for