How to insert/update ProductTree_Lines per B1if

Hi everybody,
I´m using SAP Business One 8.82 and the B1if 1.11.2.
My Scenario should insert ProductTree und ProductTree_Lines for an item. But I can´t find a object-Id (structure) for ProductTree_Lines. Per DTW (data transfer workbench) I learned, that ProductTree ist the master (object-Id 66 in B1if) and ProductTree_Lines are the details (object-Id ??).
I tried to learn more by getting an test-item with a test-scenario by B1Object-atom-GetList() for object-Id 66 but I only get the master structure and no details.
Any suggestions how to insert/update ProductTree_Lines per B1if?
greetings Benjamin

Hello Benjamin,
the Schema look like this:
<BOM xmlns="">
    <!--DB Table Name: -->
    <BO>
        <!--multiple such elements are allowed-->
        <AdmInfo>
            <Object>long</Object><!--66-->
            <Version>long</Version>
        </AdmInfo>
        <QueryParams>
            <TreeCode>string</TreeCode>
        </QueryParams>
        <ProductTrees>
            <row>
                <!--multiple such elements are allowed-->
                <TreeCode>string</TreeCode>
                <TreeType>string</TreeType>
                <Quantity>double</Quantity>
                <DistributionRule>string</DistributionRule>
                <Project>string</Project>
                <DistributionRule2>string</DistributionRule2>
                <DistributionRule3>string</DistributionRule3>
                <DistributionRule4>string</DistributionRule4>
                <DistributionRule5>string</DistributionRule5>
                <PriceList>long</PriceList>
                <Warehouse>string</Warehouse>
            </row>
        </ProductTrees>
        <ProductTrees_Lines>
            <row>
                <!--multiple such elements are allowed-->
                <ItemCode>string</ItemCode>
                <Quantity>double</Quantity>
                <Warehouse>string</Warehouse>
                <Price>double</Price>
                <Currency>string</Currency>
                <IssueMethod>string</IssueMethod>
                <Comment>string</Comment>
                <ParentItem>string</ParentItem>
                <PriceList>long</PriceList>
                <DistributionRule>string</DistributionRule>
                <Project>string</Project>
                <DistributionRule2>string</DistributionRule2>
                <DistributionRule3>string</DistributionRule3>
                <DistributionRule4>string</DistributionRule4>
                <DistributionRule5>string</DistributionRule5>
                <WipAccount>string</WipAccount>
                <ItemType>long</ItemType>
                <LineText>string</LineText>
                <AdditionalQuantity>double</AdditionalQuantity>
            </row>
        </ProductTrees_Lines>
    </BO>
</BOM>

Similar Messages

  • How to insert/update Date field in Oracle with java code

    Dear All
    I have to insert/update a date column while creating a new item, but the problem is i am able to insert/update only date but i need both date and time along with AM/PM.
    By using these 3 lines i am able to insert/update only date.
    java.util.Date date = new java.util.Date();
    long dateLong = date.getTime();
    stmtPrep.setDate(33, new java.sql.Date(dateLong));
    Below code retrives the date exactly what i need but unable to pass in the statement:
    DateFormat formatter = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss a");
    java.util.Date d = (Date) new java.util.Date();
    String stringdate = formatter.format(d);
    String tmpdate = dateFormat();
    stmtPrep.setString(33, tmpdate); -- I tried with setObject as well but same error coming.
    Error is:
    ORA-01830: date format picture ends before converting entire input string
    Can u guide me how to get full date time with AM/PM?

    sasikrishna wrote:
    Dear All
    I have to insert/update a date column while creating a new item, but the problem is i am able to insert/update only date but i need both date and time along with AM/PM.
    By using these 3 lines i am able to insert/update only date.
    java.util.Date date = new java.util.Date();
    long dateLong = date.getTime();
    stmtPrep.setDate(33, new java.sql.Date(dateLong));That's by design. A java.sql.Date object matches an SQL DATE column (which doesn't include a time component). If you want something which matches an SQL TIMESTAMP colum (which includes both date and time components) then you should use a java.sql.Timestamp object.

  • How to insert / Update value for PFAKT in BP Relationship

    Hi Friends / Experts,
    How to insert the value for PFAKT ( Function value ) in BP Relationship in BP tcode , in SAP CRM.
    I have tried it but it BAPI_BUPR_CONTP_CREATE. But I need it with BAPI_BUPR_RELATIONSHIP_CREATE Function Module.
    Please help me out.
    Any Enhancement points in BAPI_BUPR_RELATIONSHIP_CREATE or any user exists. Please let me know.
    Regards,
    KMF.

    you can also acheive this using MERGE( available in sql 2008 and above).
    also, you are referring to DTS. DTS is legacy solution now..are you using sql 2000,  you can use ssis, if you want and it available in sql 2005. as said, there are multiple ways you can do this.. it find the below one a easy solution, since your are
    talking about only one table.. 
    try this example..
    create table test1(sno int primary key,sname varchar(20),scity varchar(20))
    go
    create table test2(sno int primary key,sname varchar(20),scity varchar(20))
    go
    insert into test1
    values(1,'stan','atlanta'),(2,'william','newyork')
    go
    insert into test2
    values(1,'robin','orlando')
    go
    --set this in you sql job and let it run for every half an hour
    MERGE test2 t2
    USING test1 t1
    ON t2.sno = t1.sno
    WHEN MATCHED THEN
    UPDATE
    SET t2.sname = t1.sname,t2.scity=t1.scity
    WHEN NOT MATCHED by target THEN
    Insert(sno,sname,scity)
    values (sno,sname,scity);
    go
    --check this table and clean up
    select * from test2
    go
    drop table test1
    go
    drop table test2
    Hope it Helps!!

  • How do we track how many records INSERT/UPDATE/DELETE per day

    Hi All,
    We have around 150 tables in database. so many members/persons can access these table and every one can have rights to do INSERT,DELETE,UPDATE the records. I wanted to know How many records are UPDATED,INSERTED,DELETED for a day. is it possible to find out.
    I have some questions please clarify the doubts.
    1> If we create any table, this table gets store in All_OBJECTS/USER_OBJECTS, tabs/tab/user_tables...... we can find out table name,columns what tables were created in database.
    2> if we enter records/ delete records / update records in a table. we can able to find corresponding table. Apart from corresponding table . is there any way to find out records.
    above i said that if i create any table it will store in objects table.

    Schedule a periodic DBMS_STATS.FLUSH_DATABASE_MONITORING_INFO and query USER_TAB_MODIFICATIONS. This view shows DML activity against each table and is updated when database monitoring info is flushed. The flush is automatic but if you need control over the frequency of updates, you can explicitly call the FLUSH.
    In 9i you have to "ALTER TABLE table_name MONITORING ;" before you can use this method.
    In 10g, this is enabled by default unless STATISTICS_LEVEL is set to BASIC.
    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_4465.htm#sthref2375
    and
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#ADMIN01508
    Another useful view is V$SEGMENT_STATISTICS (or the faster view V$SEGSTAT) which provides information in the same manner as in the V$SYSTAT / V$SESSTAT views.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • How to insert/Update date into Dictionary Table?

    Dear Experts,
    I have created a Dictionary Project and Deployed.I think the table had created in portal database.
    now i want to insert some data into that table?
    Can you plz tell me how to access the table using Abstract Portal Component using DynPage.
    Waiting for ur replies...
    Thanks and Regards,
    Visweswar.

    Hi
    Can u share the Logic???

  • Stats on Inserts/Updates/Deletes

    What's the best way to figure out how many insert/update/delete transactions my 10g Grid is processing over a given period (e.g. an hour) of time?
    I want to come up with an automated procedure for collecting these stats (and possibly logging them
    to a file).
    I have Grid Control running, but in poking around under 'Performance' I don't see any metrics like this.

    http://hostname:port/em
    (Check $ORACLE_HOME/install/portlist.ini for the port of
    Enterprise Manager Console HTTP Port (xadv2) = <port number>)
    OEM Database Control:
    Database: <DB instance name>.oracle.com->All Metrics->Throughput->Number of Transactions (per second)
    View Data:
    Last 24 hours
    Last 7 days
    Last 31 days

  • What's the best way to insert/update thousands records in multiple tables

    Can anyone give an example of how to insert/update thousands records in multiple tables on performance wise? or what should I do to improve the performance?
    Thanks
    jim

    You can see a set of sample applications in various scenarious available at
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/content.html

  • How to Insert Data in Database using BCS with out External List

    Hi,
    How to Insert,Update and Delete User Interface  data using business connectivity service with out External List.Please suggest me solution.
    Regards,
    khadar

    Once you've configured the external content type, you can interact with it using the BDC Object Models available to you.  You can use server side or client side and interact with the database without an external list.
    Check these links:
    Server side:
    http://msdn.microsoft.com/en-us/library/office/ff464357(v=office.14).aspx#sectionSection3
    Client Side: http://msdn.microsoft.com/library/jj164116.aspx
    Brandon Atkinson
    Blog: http://sharepointbrandon.com

  • How to find out who made inserts/updates/deletes made to a SQL Table

    I want to know WHO MAKES INSERTS/UPDATES/DELETES TO a particular SQL Table. Bascially I want to AUDIT ANY Edites made to a SQL 2008 TABLE. I need info such as WHO AMDE THE Updates i.e. the user first/lastname, When update was made, what row was updated etc...How
    can I do that with SQL 2008?

    One way to achieve that would be to use triggers to detect when a change is made to the table, and then insert a record into another table/database detailing what changed and who by.
    You'd need three triggers, one for insert, update and delete respectively, and for each of those you use the "inserted" and "deleted" tables (system tables maintained by SQL) to retrieve what has been done. To retrieve who made the change you can query IDENT_CURRENT
    which returns the last identity value for a specific table.
    See :
    Triggers -
    http://msdn.microsoft.com/en-gb/library/ms189799(v=sql.100).aspx
    Inserted & deleted tables -
    http://technet.microsoft.com/en-us/library/ms191300(v=sql.100).aspx
    INDENT_CURRENT -
    http://technet.microsoft.com/en-us/library/ms175098(v=sql.100).aspx
    There may be better / more up to date ways to do this, but I've used this method successfully in the past, albeit a long time ago (on a SQL 2000 box I think!).

  • How to display the result of  excutions(insert/update/delete rows)

    Hello.
    Does anyone know how to display the result of scenario executions just like a scenario executions tab of package (insert/update/delete rows) in other screen (in the intergated operating platform for operators using http)
    In additional, I also like to show the hierarchy of scenario in the same view.
    So, I need the query using the information of the ODI repository.
    If it is possible, I also like to have the decription of the tables in the ODI repository.
    Can anyone tell me how can I get the information of the counts of excution?
    Thanks in advance.

    Hi,
    You can get that information from the API getPrevStepLog. Does it work for you?
    Download the last API reference manual from:
    http://www.oracle.com/technology/products/oracle-data-integrator/10.1.3/htdocs/1013_support.html#docs

  • As i am fresher Please share the doc of ECMA script using java script in SharePoint 2013 also how we can insert,update,delete records in list using ECMA script.

    As i am fresher Please share the doc of ECMA script using java script in SharePoint 2013 step by step also how we can insert,update,delete records in list using ECMA script.
    Thanks and Regards, Rangnath Mali

    Hi,
    According to your post, my understanding is that you want to use JavaScript to work with SharePoint list.
    To create list items, we can create a ListItemCreationInformation object, set its properties, and pass it as parameter to the addItem(parameters) function
    of the List object.
    To set list item properties, we can use a column indexer to make an assignment, and call the update() function so that changes will take effect when you callexecuteQueryAsync(succeededCallback,
    failedCallback). 
    And to delete a list item, call the deleteObject() function on the object. 
    There is an MSDN article about the details steps of this topic, you can have a look at it.
    How to: Create, Update, and Delete List Items Using JavaScript
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to find insert,update on schema

    Hi,
    I want to monitor insert,update or delete perform onparticular schema of the database .
    your early repsone is appriciated.
    Thanks in advance.

    user647572 wrote:
    Thanks for your kind response .. it is very useful to me ...
    sorry but i am using below query and
    EXTENDED_TIMESTAMP as timestamp with timezone data type...
    SELECT SQL_TEXT
    FROM
    DBA_COMMON_AUDIT_TRAIL
    where EXTENDED_TIMESTAMP between to_date('20101016 10:30', 'yyyymmdd hh24:mi')
    and to_date('20101016 11:00', 'yyyymmdd hh24:mi')
    AND OBJECT_SCHEMA = 'JISPBILCORBILLINGPRD501'
    AND UPPER(SQL_TEXT) LIKE UPPER('INSERT%')
    it is taking more time to display result.
    This is normal situation.Check sys.aud$ table,how much record contain this table?
    You can delete old audit records as
    DELETE FROM sys.aud$ WHERE timestamp# < SYSDATE -40;>
    Please give me suggestion on it..

  • How to Invoke a BPEL process when Insert/Update/Delete happens

    Hi
    As client requirement is we want to execute a BPEL process when there is a DML Operation (Insert/Update/Delete) on a particular table.
    How do we handle this situation. Is there any alternatives if it is not possible.
    Please point me if any documentaion is available.
    Regards
    Kiran

    Hi Kiran,
    What integration tool you are using.
    In Oracle BPEL PM, you can create an empty BPEL process with a "receive" activity and a database adapter partnerlink which polls for change in table records every specified time interval.
    After receiving the table change, you can fire the appropriate BPEL process through "invoke" activity.
    thanks
    Saurabh

  • How to insert date into updated record (MySql, PHP)

    I want to be able to update an existing record and automatically include the date the change was made when I submit the data back to the MySql database.
    I saw this thread on how to insert the date on a new record using NOW()
    http://forums.adobe.com/thread/855152?decorator=print&displayFullThread=true#855152
    After reading it I successfully amended my insert.php page.
    Here's the code from my insert.php page which works nicely:
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO standardsclient_tbl (client_name, pantone_ref1, pantone_ref1_image, font_ref1, font_ref1_image, `date`) VALUES (%s, %s, %s, %s, %s, NOW())",
                           GetSQLValueString($_POST['client_name'], "text"),
                           GetSQLValueString($_POST['pantone_ref1'], "text"),
                           GetSQLValueString($_POST['pantone_ref1_image'], "text"),
                           GetSQLValueString($_POST['font_ref1'], "text"),
                           GetSQLValueString($_POST['font_ref1_image'], "text"),
                           GetSQLValueString($_POST['date'], "date"));
    This is the update.php page, I changed `date`=%s to `date`=NOW() but all this did was stop me from updating the record at all.
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE standardsclient_tbl SET client_name=%s, pantone_ref1=%s, pantone_ref1_image=%s, font_ref1=%s, font_ref1_image=%s, `date`=NOW() WHERE client_ID=%s",
                           GetSQLValueString($_POST['client_name'], "text"),
                           GetSQLValueString($_POST['pantone_ref1'], "text"),
                           GetSQLValueString($_POST['pantone_ref1_image'], "text"),
                           GetSQLValueString($_POST['font_ref1'], "text"),
                           GetSQLValueString($_POST['font_ref1_image'], "text"),
                           GetSQLValueString($_POST['date'], "date"),
                           GetSQLValueString($_POST['client_ID'], "int"));
    Can anyone see where I've gone wrong?
    Thanks

    In update query you have 6 %s but 7 GetSQLValueString. That's your problem.

  • How do I update Adobe as per my previous question. I have followed the 3 step process. Step one and Two fine but step 3 just directs me to purchase and application. I want the "Free" upgrade. How do I get It. ????????

    How do I update Adobe as per my previous question. I have followed the 3 step process. Step one and Two fine but step 3 just directs me to purchase and application. I want the "Free" upgrade. How do I get It. ????????

    YouTube does not use Adobe Reader. Videos do not use Adobe Reader.
    Adobe Reader is used only to show files in a special format called "PDF".
    What you are having problems with is probably Adobe Flash Player.
    So, if you are trying to solve problems with Adobe Flash Player by downloading Adobe Reader, or even Adobe Acrobat, it isn't going to help you in the end. Is that what is happening (we can't really tell without screen pictures, but it seems a likely guess).

Maybe you are looking for

  • Is there a way to create an e-mail template to send over and over again to different people?

    Can I create a template and use it over and over again? I found where I was able to save an e-mail as a template but I cannot find where to access it to be able to send it.

  • ITunes graphical problems

    I'm having a lot of graphic issues with iTunes since I built my Windows 7 64 bit PC. On XP I had no issues with this though, what is occoring is a smear of albums under music when scrolling and even text if I display in list mode. Here is a picture o

  • BAPI needed for KP06

    Hi, I need a BAPI for posting planned costs in transaction KP06. The BAPI-s BAPI_COSTELEM_CREATEMULTIPLE BAPI_COSTELEMENTGRP_CREATE BAPI_COSTELEMENTGRP_ADDNODE are not working as per requirement. Please suggest a BAPI for this transaction. Thanks&Reg

  • .ics calendar to iCloud

    How/Can I put an .ics file in m calendar on iCloud? never mind-just figured it out

  • LSO_EVENT_BENCH perform initialization timing out

    when running several transaction like lso_psv1, lso_psv1 for the first time user of sap gui, the system times out. DUMP: Category               ABAP Programming Error Runtime Errors         TIME_OUT ABAP Program           SAPLHRTEM00USERSETTINGS Appl