How to update an UDT with B1if ?

Hi every body,
I would like to synchronize a UDT between 2 company DBs.
Thanks to a gentleman, I succeed to export the content from the UDT (using a SAP Business One component and choosing the SQL object type) by a SQL query.
But unfortunately, I don't understand how to insert data in the UDT. I have chosen as outbound
SAP Business One
SQL
But I understand which nodes I have to put into the XSL file to run the update queries.
Does anyone know how to do that?
Thank you for your help! :o)

Hi Damien,
I selected the in the OutBound, Database and used the following code. Make sure your SLD is of JDBC type.
I am updating the SAP table ITM1, all you have to do is change the table name and sql select/insert/update statement.
<xsl:template name="transform">
<DBout xmlns="" type="sql">
<xsl:for-each select="$msg/row[position()&gt;0]">
<sql>UPDATE [ITM1] SET Price =  <xsl:value-of select="col[10]"/>, U_ORCFU_Date = CAST(&apos;<xsl:value-of select="col[8]"/>&apos; AS date), U_ORCFU_Time = REPLACE(&apos;<xsl:value-of select="col[9]"/>&apos;, &apos;:&apos;, &apos;&apos;) WHERE ItemCode = &apos;<xsl:value-of select="col[6]"/>&apos; AND PriceList = (SELECT ListNum FROM [OPLN] WHERE ListName = RTRIM(&apos;<xsl:value-of select="col[1]"/> &apos;) +  LTRIM(&apos; <xsl:value-of select="col[3]"/>&apos;))</sql>
</xsl:for-each>
</DBout>
</xsl:template>
Good Luck,
Mike
Edited by: Mike Hardwick on Feb 9, 2012 9:17 PM

Similar Messages

  • How to update two tables with trigger

    Hi:
    how to update two tables with trigger ?
    I have two tables :
    (1)ASIA
    MI number;
    (2)ASIA_P
    ID number;
    When I insert a new value into the asia.MI ,I also can
    insert the same value into the asia_p.id field.
    I have write a trigger as follows but it does't work.
    create or replace trigger MI_TRG
    before insert on asia
    for each row
    declare
    seq number;
    begin
    select MI_SEQ.Nextval into seq from dual;
    :new.MI:=seq;
    insert into ASIA_PRO(MI_ID)
    values
    (seq);
    end MI_TRG;
    How to realize it ?
    thanks
    zzm

    Why do you say it does not work?

  • HT4623 How to update ipod touch with software version 4.1????

    How to update ipod touch with software version 4.1????

    Open itunes on your computer, connect ipod.
    That's it.  It will prompt you to update to the latest available version.

  • How to update a column with default in a tabular form.

    We have a tabular form that has a submit button that does a multi row update. We would like to update a column with a defaut like APP_USER = updated user when the row is updated. Is this possible and how?

    used lovs and conditions.

  • How to update Nested tables with xsu

    Hello,
    I have three tables.
    1) DEPARTMENT_TAB
    2) EMPLOYEE_TYP
    3) ADDRESS_TYP
    ADDRESS_TYP is a collection and it is nested inside EMPLOYEE_TYP.
    EMPLOYEE_TYP is a collection and it is nested inside DEPARTMENT_TAB.
    created with below scropt
    CREATE TYPE ADDRESS_TYP AS OBJECT (CITY VARCHAR2(10), STATE VARCHAR2(2));
    CREATE TYPE ADDRESS_TYP_NT AS TABLE OF ADDRESS_TYP;
    CREATE TYPE EMPLOYEE_TYP AS OBJECT (EMPNO NUMBER(4), ENAME VARCHAR2(10), ADDRESS_VAR ADDRESS_TYP_NT);
    CREATE TYPE EMPLOYEE_TYP_NT AS TABLE OF EMPLOYEE_TYP;
    CREATE TABLE DEPARTMENT_TAB (DEPTNO NUMBER(4), DNAME VARCHAR2(10), EMPLOYEE_VAR EMPLOYEE_TYP_NT)
         NESTED TABLE EMPLOYEE_VAR STORE AS EMPLOYEE_TAB
         ( NESTED TABLE ADDRESS_VAR STORE AS ADDRESS_TAB);
    I inserted two rows in DEPARTMENT_TAB and their nested tables using normalsql. and i generated below xml content using XSU java API
    oracle.xml.sql.query.OracleXMLQuery
    My Question is How to UPDATE a row in ADDRESS_TAB using XSU java API
    oracle.xml.sql.dml.OracleXMLSave.
    (When i was trying to update address_tab nested table's row with xml input file. it is deleting other existing rows)
    Thanks.

    Why do you say it does not work?

  • HT4053 i want to know how to update my 4s with the ios7

    I need help upgrading my iPhone 4s to ios7.

    See the chart below to determine whether you can upgrade your device and what you can upgrade to. If you do not have a Software Update option present on your iDevice, then you are trying to upgrade to iOS 5 or higher. You will have to connect your device to your computer and open iTunes in order to upgrade.
    IPhone, iPod Touch, and iPad iOS Compatibility Chart
         Device                                       iOS Verson
    iPhone 1                                      iOS 3.1.3
    iPhone 3G                                   iOS 4.2.1
    iPhone 3GS                                 iOS 6.1.x
    iPhone 4                                      iOS 7.0.x
    iPhone 4S                                    iOS 7.0.x
    iPhone 5                                      iOS 7.0.x
    iPhone 5c                                     iOS 7.0.x
    iPhone 5s                                     iOS 7.0.x
    iPod Touch 1                               iOS 3.1.3
    iPod Touch 2                               iOS 4.2.1
    iPod Touch 3                               iOS 5.1.1
    iPod Touch 4                               iOS 6.1.x
    iPod Touch 5                               iOS 7.0.x
    iPad 1                                          iOS 5.1.1
    iPad 2                                          iOS 7.0.x
    iPad 3                                          iOS 7.0.x
    iPad 4                                          iOS 7.0.x
    iPad Mini                                      iOS 7.0.x
    iPad Air                                        iOS 7.0.x
    =====================================
    Select the method most appropriate for your situation.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • How to update old instances with values

    Hi,
    i am using albpm 5.7 version.
    i have a requirement i need to update the oldinstances with updated data.
    suppose i have added new external variable to process how it will update the old instances.
    plz suggest how to solve this problem.
    Regards,
    Srinivas.

    Hi,
    The standard behaviour is that new instances of the process will use the most recent version of the process that has been deployed to the database. This allows you to deploy new versions of the processes without impacting on processes which are already in progress.
    When the workflow engine determines what activity to run next in the process, the engine checks what the start date of the process instance was, so that it can check what version of the process was active at that time. If you update the start date for each running process, so that it reflects the date that you saved the most recent version of the flow, then the workflow engine will use the latest version instead of the version that it was running.
    This is not supported. I would never suggest that you do this in a production environment - it does not make sense to be making frequent changes to the process in a production environment, since there is no supported mechanism for forcing existing flows to use the new definition. The engine is designed specifically to run the same version of the process for the duration of the process instance - what you want to do is to blow this out of the water completely. If you do change this, then all timing that is recorded against the activities becomes useless, and the other impact on the workflow process us something that you would need to consider incredibly carefully before deciding whether you want to take the risk.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • HT4623 How to update an iPhone with iOS 4

    I have already got an iPhone 4 that has been recently updated but I have now got my sisters old iPhone 4 as I smashed mine and she has never updated it how do you update it from iOS 4? Thanks

    UPDATING iOS
    Over the air updating of iOS needs iOS 5 or later
    The following link explains how to update
    This link explains  how to update using itunes
    This explains how to transfer purchases to your computer

  • How to Update Absence Quota with Time Evaluation

    Dear Friends,
    I would like to know how do we update absence quota within time evaluation. Currently i'm using UPDTQAXX, it works but when i search this forum everybody was using this simple code:
    HRS=something
    ADDDBxxxx
    and the quota is updated. I just dont get it, with adddb its only update the daily balance table, how does that enable us to updated the 2006 infotype? Many Thanks

    ADDDBxxxx adds the value of the number of hours field to the specified time type in the table of day balances (TES), it does not update the quota.
    You can use function QUOTA  to accrue absence entitlements periodically based on this customizing: Personnel Time Management>Time Data Recording and Administration>Managing Time
    Accounts Using Attendance/Absence Quotas>Calculating Absence Entitlements>Rules for
    Generating Absence Quotas>Define Generation Rules for Quota Selection.  
    You can use a time type to prorate that accrual

  • HERE'S HOW TO UPDATE 5G IPOD WITH ITUNES 7:

    ok, i will tell u how to manualy update your 5G ipod with the new itunes 7.
    after you have your ipod plugged into your PC and you have itunes running, click on your ipod in the list. look half-way down the screen. there should be a box that says, "manualy update songs and....." check the box. after then start to procede adding the songs MANUALY by dragging and dropping them from your music library into either the music folder in the list, or one of your playlists. after the first song is dragged and dropped, itunes will do a long update to your ipod. this shouldn't take more than 3 minutes to complete though. and dont worry, it's safe that it's doing this, it's just checking your songs if they have digital playback. after the update is done, proceed to drag and drop all of the songs that you want on your ipod in the step i have mentioned earlier. it should do a split second update after every song dropped. when you are done with this, click the eject button and disconnect your ipod unless you still wanna charge it.
    Good Luck
    old 5G 30GB   Windows XP  

    I've managed to get the iPod updater to start installing the new 1.2 firmware on my 5G, but it's taking forever! Currently the iPod screen displays the flashing "Do nod disconnect," and iTunes says it's still updating my iPod.....but it's been something like 15-20 minutes (and I have broadband connection). Surely it shouldn't take this much time?? I'm afraid to disconnect it while it's in the middle of an update. Anyone else have this problem?? Help!
    5G-   Windows XP  

  • How to update a column with different values but all other row values r sam

    Hi,
    I have a table like this.
    Col1 col2 col3 col4
    10 20 30
    10 20 30
    10 20 30
    i need to update col4 with different values coming from other table like this
    Col1 col2 col3 col4
    10 20 30 xxxx
    10 20 30 yyyy
    10 20 30 zzzz
    how can i update the table. pls let me know how to use the where condition in the update stmt.
    thanks,
    jay
    Edited by: user2558790 on Nov 20, 2009 12:26 PM

    what is the logic for this kind of update...????
    Greetings,
    Sim

  • How to update a table with strin that contains &

    Hi,
    I would like to update ename col of emp table with a string that contains &
    update emp set ename = 'tom&jerry' where empno = 7369But this gives an error.Please advice.
    Regards,

    Consult the sql*plus reference manual on how to disable the &
    Software engineers should be capable of doing research themselves, please stop abusing this forum to increase your salary by being spoon fed for free.
    Sybrand Bakker
    Senior Oracle DBA

  • How to Update ESTMJ table with appended fields

    Attempting to do a mass load of data to table ESTMJ. Tried using an LSMW, but took a very long time...days in fact. Added a couple Z fields to this table in an append structure. Attempting to run BAPI_BUS1077_CREATE to add records, but how do I update the new Z fields using this BAPI?

    Hi,
    the af:column allows you to group columns
    <af:column>
    <af:column> </af:column>
    <af:column> </af:column>
    </af:clomn>
    Also, in HTML it is easy to assign a background color to cell, e.g. cell with Label 1 is red, Label 2 is green.
    Is there something like this in JSF?
    You can use CSS on the inlineStyl or contentStyle property to dynamically set CSS using EL. You can reference e.g. a managed bean , access the #{row} variable within the managed bean method and return the color based on the value you read for the each row
    Frank

  • How to update database table with this new internal table

    hi
    i have a internal table having 8 records and it contains one record which was modified by user
    not i want this new record to be updated to the database table which was modified by the user
    how to do it pls suggest?
    i want to use index for comarision as using index will not have any problems like promary key etc
    like i want to capture the index for this table which was modified thr recoed index and use thi record indext to modify the database table
    or any other suggestion
    regards
    nishant

    Hi Nishant,
    Have an additional field in a table to indicate a change with which you avoid in updating the record modified by user.
    Regards,
    Madhu.

  • How to Update Acrobat X with error 1635?  (Microsoft Fix It and repeated uninstalls unsuccessful)

    Hello,
    I recently replaced Acrobat 9 Professional with Acrobat X (standard).  One of the reasons I did so was because I always received an error 1635 message when attempting to update Acrobat 9 Professional, which annoyed me, and which I thought I could eliminate with a fresh install (not an update) of the new Acrobat X Standard program.  However, I find that I cannot update Acrobat X either, as I still get the same "error 1635" message when attempting an update.
    I have uninstalled and reinstalled the program several times, but receive the same error message when attempting to update.  I then used Revo Uninstaller, no difference.  I have run the Microsoft fix it tool, again, no difference.  Despite everything I've done, I continue to receive the "error 1635" message every time I attempt to update the Acrobat X program.  Very frustrating!
    Can anyone help identify the issue and suggest a fix?  I imagine this issue is the result of a bad registry key but I have no way of identifying which key (or keys) to delete.
    Thanks in advance for any help!
    Bob Woods

    Assuming you have tried everything including using the uninstaller tool then it looks like you will need to take a risk by either deleting the registry key ending with 50 or try to use CCleaner which will match the product and remove the registry key for you automatically.
    With CCleaner you have the option to delete only the Adobe Key rather than other redundant keys that are always there because of the way how Windows works.  I use Ccleaner regularly but I consider myself quite good at PC Maintenance and Repair so it is up to you to take the risk.
    Do you know anybody whose hobby is to fix PCs?  Perhaps they can remove the necessary keys from the registry.

Maybe you are looking for