Can we  update The extended VBPA database table using BAPI

Hi,
  We have a table VBPA appended with two fields start date and end date. Our scenario is to when modifying the sales order using the bapi BAPI_SALESORDER_CHANGE we need to update the two fields star_date and end_date of VBPA table for the corresponding Ship to or Sold to partner for the Given Sales Order.
Thanks,
Venkat.

Hi,
YES You can, You should be updating this to fields using a BAPI - "BAPI_SALESORDER_CHANGE" and use table user this BAPI "EXTENSIONIN" to update this fields. Refer to BAPI documentation for more reference. Please check below code which was done for VBAK (2 date fields).
Regards,
Tim
DATA:
    ZBAPISDH1     TYPE BAPISDH1,
    ZBAPISDH1X    TYPE BAPISDH1X,
    ZEXTENSIONIN  TYPE  TABLE OF BAPIPAREX WITH HEADER LINE,
    BAPE_VBAK      TYPE  BAPE_VBAK,
    BAPE_VBAKX     TYPE  BAPE_VBAKX.
  ZBAPISDH1X-UPDATEFLAG  = 'U'.
  BAPE_VBAK-VBELN     = P_VBELN.
  BAPE_VBAK-ZZSD_FROM = P_START.
  BAPE_VBAK-ZZSD_TO   = P_END.
  BAPE_VBAKX-VBELN     = P_VBELN.
  BAPE_VBAKX-ZZSD_FROM = CO_X.
  BAPE_VBAKX-ZZSD_TO   = CO_X.
  ZEXTENSIONIN-STRUCTURE  = 'BAPE_VBAK'.
  ZEXTENSIONIN-VALUEPART1 = BAPE_VBAK.
  APPEND ZEXTENSIONIN.
  CALL FUNCTION 'BAPI_SALESORDER_CHANGE'.

Similar Messages

  • Can we update the data of ztable by using the BAPI FM

    Hi Experts,
    Can we update the data of ztable by using BAPI FM  'BAPI_CUSTOMERCONTRACT_CHANGE'.
    Can anyone help this issue.
    regs
    rams

    Hi Ramesh,
    After the BAPI 'BAPI_CUSTOMERCONTRACT_CHANGE' is called, check the return message and use UPDATE <DBTABLE_NAME> command to update the ZTABLE.
    Use COMMIT WORK after the call. If the BAPI is standard BAPI and not a customized BAPI, then it wont update Z Table direclty. You need to build the logic in program to update Z Table.
    Best regards,
    Prashant
    PS : Please reward all helpful answers

  • How to update the data in sqlserver table using procedure in biztalkserver

    Hi,
    Please can any one answer this below question
    how to update the data in sqlserver table using procedure in biztalkserver
    while am using executescalar,typedprocedure getting some warning
    Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
    Please send me asap....
    Thanks...

    Hi Messip,
    A detailed error would have helped us to answer you more appropriately but
    You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
    http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

  • Question on Updating the rows of a table using a SELECT Statement

    Hi,
    I am trying to set all of the R_IDs in one table to the ID from another table using a join.
    Here is the SQL I came up with. I don't this is correct though.
    UPDATE TABLEA A
    SET R_ID=(Select Id from TABLEB B
    WHERE A.DEE=B.DEE AND
    B.RNUM=1);
    Does this make sense?

    You can try the join view.
    UPDATE ( SELECT table_a.id   AS a_id,
                    table_b.id   AS b_id,
                    table_a.col1 AS a_col1,
                    table_b.col1 AS b_col1,
                    table_a.col2 AS a_col2,
                    table_b.col2 AS b_col2,
                    table_a.col3 AS a_col3,
                    table_b.col3 AS b_col3
               FROM table_a,
                    table_b
              WHERE table_a.id = table_b.id)
       SET a_col1 = b_col1,
           a_col2 = b_col2,
           a_col3 = b_col3;
    However it may result in
    ORA-01779: cannot modify a column which maps to a non key-preserved tableThis is because the key-preserving property of a table does not depend on the actual data in the table. It is, rather, a property of its schema. For example, if in table_b there was at most one record for each id value, then table_a.id would be unique in the result of a join of table_a and table_b, but table_a would still not be a key-preserved table. By adding the unique/primary key on the id column of table_b we can assure that if table_b.id were part of the result set of the join view then it would be unique. This makes table_a key preserved.
    Thus, in order to update a join view we must assure that the columns involved in the join view from the source table are unique. We do this by creating a unique or primary key on those columns.
    However, if you do not mind taking responsibility for making sure that there is one-to-one cardinality between the source and destination rows, then you might try the correlated subquery
    UPDATE table_a
       SET (col1, col2, col3 ) =
              ( SELECT col1, col2, col3
                  FROM table_b
                 WHERE table_b.id = table_a.id )
           WHERE EXISTS
               ( SELECT col1, col2, col3
                   FROM table_b
                   WHERE table_b.id = table_a.id )

  • Is there any way I can just update the apps on my iPhone using iTunes on my PC?, Is there any way I can just update the apps on my iPhone using iTunes on my PC?

    I have more than a 100 apps which I do not use but are there in my iTunes library! My iPhone has only a few (40) updates. As I am not allowed to use office wi-fi to download or update my phone apps, I want to use iTunes on my PC for the same. But I do not want to waste time searching for the apps on my phone and then update it using iTunes. Also, I do not want to update all the apps in my iTunes Library as there are more gthan 100. Can anyone suggest me a method where I can just update the apps that are on my phone using iTunes??
    I have the latest iTunes installed.

    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself independently backed up against loss.  To use a device with a different setup you transfer the old library from a computer or a backup directly to the new setup, not the device to the library. Media syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software.  See this document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991

  • How to updated the data into Database table

    Hi Guy's,
    Please help me Using Tabstrip control how to updated the related infotype records into related database table.
    Thanks and Regards,
    Sai.

    Hi Guy's,
    Please help me Using Tabstrip control how to updated the related infotype records into related database table.
    Thanks and Regards,
    Sai.

  • I can't download the extended instruments for Garageband using the money on my iTunes account

    I cannot seem to download the extended instruments in garageband despite having suffiecient funds on my itunes account to pay for it.

    Make sure your payment method is accepted >  iTunes Store / Mac App Store:  Accepted forms of payment
    Keep in mind, purchases are subject to any applicable taxes or fees that would be added to the purchase price so make sure there are sufficient funds available >  iTUNES STORE / MAC APP STORE:  TERMS AND CONDITIONS

  • How to update the data  in database in webdynpro

    I have to update the data in databse table using adaptive rfc in WebDynPro

    Hi,
    You can refer to these links:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
    Update data into SAP Table
    http://help.sap.com/saphelp_nw70/helpdata/en/41/38bc8f813719488ddc9d9b21251ec3/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/d5/1558bfa6aa80499113983e738b1b21/frameset.htm
    Regards
    Inder

  • How can i update the REMARK field in ADRT database table

    Hi all,
    How can i update the REMARK field in ADRT database table
    By using Function modules or BAPI’s
    Please reply me fast

    Hi,
    you can try this code:
        SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
        IF sy-subrc = 0.
          CLEAR adrct.
          SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
          IF sy-subrc = 0.
            adrct-remark = wa_remark.
            MODIFY adrct.
          ENDIF.
        ENDIF
    best regards,
    Thangesh

  • How can i convert the data from mutiple-table to the other database(MSSQL)?

    Dears,
    How can i convert the data from mutiple-table to the other database such as MS-SQL?
    I have a third party system based on MS-SQL 2000.
    Now we want to make a integration between SAP R/3(Oracle) and SQL server.
    When my user releases the purchase order in R/3, the application we coded will convert the releated data to the temp database on the SQL server.
    But i don't know which tools will help me reach the purpose.  BAPI, LSMW, IDoc... ???
    Would anybody tell me which way is better and how to do?
    Thanks a lot!
    Kevin Wang

    Hello Kevin,
    The question to use which method depend on your detail requirements. If you use BAPI, you need to find which Bapi can provide the data you want. Bapi normally use as a function called by external system. So you need to develop an external program like VB/Java to call this Bapi and move it to SQL. LSMW is use when you want to upload data from an external system to SAP. So it does not serve your requirement. Idoc can be use to export data to an external system. Again like Bapi, you need to find what Idoc can provide the data you want. However, it does not any programming from the external system. If I were you, based on your requirements, I think writing an Abap program that read the data you want and download it to NT/SQL server will be faster and easier.

  • I have a laptop mac 3 years old i did not pay the extend warranty plan, so know i can't update the iPhone 5 because thai do not accepted a update for iTunes the new version what i have to do call to apple or make repair

    i have a laptop mac 3 years old i did not pay the extend warranty plan, so know i can't update the iPhone 5 because thai do not accepted a update for iTunes the new version what i have to do call to apple or make repair

    You need to be running Mac OS X 10.6.8 or newer to sync the iPhone 5; this may require buying a Mac OS X 10.6 DVD from the online Apple Store. OS upgrades aren't covered by the warranty.
    (77198)

  • Can we update the data from SSRS report to any database ?

    Hi Team,
    Greetings !!!!
    Can we update the data from SSRS report to any database ?
    Thanks,
    Anand Gavle.

    Nope SSRS doesnt have write back options. Its just a reporting tool
    However one thing you can do is to link a webpage from SSRS report and do the changes through it
    SSRS has the ability to navigate to web page through which you can capture any data inputs from users and save it to your db.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How can I update the trigger table?

    I need a insert trigger on a table and also wants to insert the result value in one of its field.
    it gives mutating error........
    so wots the way of updating it? how can i update the same table.

    For example like this (inside the BEGIN/END section of the trigger):
    :NEW.Col2 := :NEW.Col1;
    C.

  • How can i update the ADRT table REMARK field

    How can i update the ADRT table REMARK field
    by using only function modules or BAPI's not by direct update's
    please help me
    i need it urgently

    Hi,
    you can try this code:
        SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
        IF sy-subrc = 0.
          CLEAR adrct.
          SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
          IF sy-subrc = 0.
            adrct-remark = wa_remark.
            MODIFY adrct.
          ENDIF.
        ENDIF
    best regards,
    Thangesh

  • How can I update the project varibles  in OBPM 10.3

    Hi All,
    OBPM version : 10.3.2 (weblogic Enterprise version)
    How can I update the project variables from the External process?
    I per my knowledge we use termination wait activity and notify the same from the external process. I am successfully do this but I am facing the performance issue with this and sometimes even data sources pool is getting exhausted.
    Could you please tell me is there any other way to update the project variables?
    Thanks in advance.
    Narasimha
    Edited by: Narasimha on Mar 2, 2011 4:19 AM

    I do not disagree with Mark about using Message Waits to update project variables. I'm right in the middle of logic right now that is doing just that.
    If you have thousands (or in your case millions) of instances to update all at once, you might want to also want to consider another approach. I obviously do not know your process and sure you've thought of this, but you could use a database to store this same information that you are currently using project variables for. You'd need a table that has the instance's unique id (e.g. case id, loan number, claim number) as the primary key and then have columns to store the information you are currently storing in project variables.
    Taking this approach, you'd be updating the milliions of rows in the database very quickly. You could still have project variables in your process, but they would be set at the beginning of a Screenflow or in an Automatic activity using a SELECT statement against the database table using the unique id of the instance as the key.
    Dan

Maybe you are looking for