Want to Update  po_distributions_all Table

Hello All,
I want to Update field Requisition Number on PO_DISTRIBUTIONS_ALL table. I Searched for API to Update PO Distributions in oracle metalink and Google also but i didnt found that.
can anybody help me for this.
(Working on R12)
Thanks
Ravi.

Thanks Shree for your reply,
I used that but it always showing NO DATA FOUND error, it is coming from package. I verified the code for proper values also, but it is not working.
Thanks
Ravi Raj.

Similar Messages

  • I want to update standard table field (EKES-EINDT)? Not using BDC using FM.

    Hi all,
    I would like to seek for you help, to resolve a problem.
    I need to know how can i update the EINDT(date) field in the EKES table.
    Is there any Function Module or BAPI available for update EKES-EINDT ? 
    And my requirement is don't use BDC.
    Currently I am doing in following way
    LOOP AT I_DATA.
      UPDATE EKES SET EINDT = P_NEWDAT
      WHERE EBELN = I_DATA-EBELN
      AND EBELP = I_DATA-EBELP
      AND ETENS = I_DATA-ETENS.
    ENDLOOP.
    I know we should not update standard table directly. This will only update EKES it will not update other tables related with EKES-EINDT.
    Got my point?
    Please help me it's on high priority.

    EKES can be updated with function module
    ME_CONFIRMATION_UPDATE

  • I want to update SAP standard tables

    Hi,
    I want to update SAP tables using BAPI. can you please suggest me how can i do this and which BAPI i should use for that purpose. I want to update KNVV , FKKMAKO , FKKVKP table.

    Hello Sourabh
    I am not sure if there is a BAPI around for updating KNVV customer data. The appropriate function module would be SD_CUSTOMER_MAINTAIN_ALL.
    Regards,
      Uwe

  • How to create a Maintenance view in order to update 4 tables

    Hello,
    I want to update 4 tables having the same key. MANDANT + SIRET (fiscal french ID).
    I try to create a maintenace view, i need to update the 4 tables using a single screen.
    When i use the relationship the system display a message "Relationships with unsuitable cardinality"
    The first table contain only the ID, the 3 others contains some informations (adress, name, and others)
    Thanks for your help
    Christophe

    Hello,
    you could check, if your other three tables have a correct foreign key definition on the field  SIRET.
    Tranaction SE11 -> pstion on the field and press the foreign key button.
    Check Table has to be your first table; cardinality has to be 1 :1 or 1 to N.
    Regards Wolfgang

  • Listening to change in a row of a table a and update a table in a diferent Database

    i want to update a table using values from a different database table. how to i do it in SQl 2012

    i want to update a table using values from a different database table. how to i do it in SQl 2012
    With Service Broker?
    Without Service Broker, you would do:
    UPDATE targettbl
    SET    col1 = b.col1,
           col2 = b.col2,
    FROM   targettbl a
    JOIN   srctbl b ON a.keycol1 = b.keycol1
                   AND a.keycol2 = b.keycol2
    It is important that a row in targettbl maps to at most at one row in srctbl, or else the result will not be predictable.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Update database table

    I have 1 million records in application server and I want to update database table from that.
    Is UPDATE statement the best technique to do it.
    Just wanted to know if there is any other better tehcniques.
    Also i want to write the errors to job log. How can we do that?
    Regards,
    DNP

    If they are all new records or all changes, it would be best to use INSERT or UPDATE. You will also want to do mass inserts/changes using an internal table. Since you have so many records, you will probably have to do this in chunks in order to avoid dumping on the rollback area.
    Rob

  • Code To Update the Table in ECC from Webdynpro

    Hi All,
    I want to know, the table is dispalyed in the webdynpro browser when we calls the Adaptive RFC Model.
    after i want to add one more row in the webdynpro and just clicking on add button the row will be updated in the ECC server(backend) for that how can i write the coding,  regarding this issue can you please help me.
    ThanX All,

    Hi Sriram,
              Assuming you have a table filled with records by adding one by one, If you want to update a table in SAP ECC, follow these steps..   i think already you are triggering the action for the button in view(for table updation) to method in controller or created a custom controller and mapped the model node.
    1.  Initialize the main model node and bind the model node with the intialised object like
         Zbapi_MainModelNode_Input input = new Zbapi_MainModelNode_Input();
                           wdContext.nodeZbapi_MainModelNode_Input ().bind(input);     
    2.  Now loop the table node and set the values with corresponding class in the generated model (from webdynpro explorer) and initialize like
            IPrivateControllerName.ITableElement myTab = null;     
           for ( int i = 0; i < wdContext.nodeTable().size();i++)
                         myTab = this.wdContext.nodeTable().getTableElementAt(i);
         Bapi_structname name = new Bapi_structname();     
                        name.setFieldName1(myTab.getFieldName1);
                        name.setFieldName2(myTab.getFieldName2);
                        input.addT_Bapi_(name);
    Finally execute the BAPI..
       wdContext.currentZbapi_MainModelNode_Input tElement().modelObject().execute();
    Hope this solves your issue - Update the Table in ECC from Webdynpro.
    Regards,
    Manjunath
    Edited by: Manjunath Subramani on Nov 20, 2009 4:26 PM
    Edited by: Manjunath Subramani on Nov 20, 2009 4:27 PM

  • How can I update the table with a single query for...

    I have a table with columns C1 and C2.
    C1 C2
    A1 null
    A1 null
    A1 null
    A1 null
    A2 null
    A2 null
    A2 null
    A3 null
    A4 null
    A4 null
    I want to update my table with a single query so that I would have data like
    C1 C2
    A1 1
    A1 2
    A1 3
    A1 4
    A2 1
    A2 2
    A2 3
    A3 1
    A4 1
    A4 2
    The updated column C2 has the values like serial no grouped on the column C1.

    SQL> create table mytable
      2  ( c1 varchar2(2)
      3  , c2 number(2)
      4  )
      5  /
    Tabel is aangemaakt.
    SQL> insert into mytable (c1)
      2  select 'A1' from dual union all
      3  select 'A1' from dual union all
      4  select 'A1' from dual union all
      5  select 'A1' from dual union all
      6  select 'A2' from dual union all
      7  select 'A2' from dual union all
      8  select 'A2' from dual union all
      9  select 'A3' from dual union all
    10  select 'A4' from dual union all
    11  select 'A4' from dual
    12  /
    10 rijen zijn aangemaakt.
    SQL> select * from mytable
      2  /
    C1                                     C2
    A1
    A1
    A1
    A1
    A2
    A2
    A2
    A3
    A4
    A4
    10 rijen zijn geselecteerd.
    SQL> merge into mytable t1
      2  using (select c1
      3              , row_number() over (partition by c1 order by null) rn
      4              , rowid rid
      5           from mytable
      6        ) t2
      7     on (t1.rowid = t2.rid)
      8   when matched then
      9        update set c2 = rn
    10   when not matched then
    11        insert values (null,null)
    12  /
    10 rijen zijn samengevoegd.
    SQL> select * from mytable
      2  /
    C1                                     C2
    A1                                      1
    A1                                      2
    A1                                      3
    A1                                      4
    A2                                      1
    A2                                      2
    A2                                      3
    A3                                      1
    A4                                      1
    A4                                      2
    10 rijen zijn geselecteerd.Regards,
    Rob.

  • How to write a procedure for update the table

    Hi all
    can any body please tell me how to write a procedure to update the table......
    I have a table with about 10,000 records...........Now I have add a new column and I want to add values for that like
    registration Code Creidits
    13213 BBA
    1232 MCS
    I had add the creidit now i want to update the table.........the new value want to get by SQL like
    Creidit = select creidit from othere_table...........
    Hope u can understand my problem
    Thanks in advance
    Regards
    Shayan
    [email protected]

    Please try the following --
    update Program_reg a
    set TotalCreidit = ( select tot_cr <Accroding to your logic>
                                from Program_reg b
                                where a.Registration = b.Registration
                                and    a.Enrollment = b.Enrollment
                                and    a.code = b.code
    where a.Registration in ( select distinct Registration
                                        from Program_reg );
    N.B.: Not Tested....
    Regards.
    Satyaki De.

  • Updating one table with mult. table where clause

    I'm having problems with my update statement. I want to update one table that has a mulitple table where clause. Not sure how to accomplish this. Here is what I have so far.
    update lawson.apvenmast a
    set vendor_status = 'I'
    where ((select * from apinvoice i
    where i.due_date <= TO_DATE('20011231', 'YYYYMMDD') and
    i.vendor = a.vendor)
    ((apvenmast.ven_class = 'INS') or
    (apvenmast.ven_class = 'REF')));
    Am I on the right track?
    thanks in advance for any help.
    Lisa Mears

    A lot is missing.
    where ((select * from apinvoice iA where clause should be like
    where <something> IN (select <something> from ...)
    ((apvenmast.ven_class = 'INS') or
    (apvenmast.ven_class = 'REF')));Where does this belong? There is no AND or OR with these two lines.
    Check your table aliases too.

  • How to update database table !!!

    hi all,
    Please advice how to update database table with certain cndition needs to be checked.
    Please consider below scenario.
    have used enqueu and dequeue function to lock entries  and also i have used BAPI so considering that return parameter . i want to update table
    /tdk/st0027.
    1. I want to update database table
    2. there are certain condition needs to be checked like ,
       loop at it_final into wa_final.
    th_return-type = 'S'.
               if th_final-vbeln = /tdk/st0027-vbeln and
                  th_final-posnr = /tdk/st0027-posnr and
                  th_final-etenr = /tdk/st0027-sdslno.
    above condition which i need to check .and need to append below system fields need to be appended in table.
              th_final-prstsind = '20'.
              th_final-chgdate  = g_date.
              th_final-chgtime  = g_uzeit.
              th_final-chgprog  = g_cprog.
              th_final-chguser  = g_uname.
              append th_final to td_final.
              update /tdk/st0027 FROM th_final.
              endif.
    endloop.
    but i am getting error saying that  "The type od database table and work area (TH_FINAL)  are not unicode convertible"?
    I am not able to understandwhat would be the solution for this ?
    Thanks and regards,
    Prasad K. NAralkar

    The error occurs in the UPDATE statement included in the code. In this statement it is seen that there is a mismatch of structure defined for the DDIC table /tdk/st0027 and that of your work area th_final.
    try to create a structure w.r.t the DDIC table.
    Eg: DATA: wa_temp TYPE /tdk/st0027.
    MOVE-CORRESPONDING th_final TO wa_temp.
    Then try to UPDATE using the temporary work area i.e wa_temp which has structure similar to that of the database table.

  • How to *Update T710S* table from Program or any FM or BAPI or Any BDC

    Hi,
    I want to update T710S table, Is there any FM or BAPI or Is it possible through BDC, If any body did that, Please Reply me ASAP.
    Regards
    Jan

    Hi Guillaume
    The First FM have update the some Fields only not all fields, So i hope it will not work.
    Second FM retrieve the Data, Not for updating.
    in my guess Need to write Z report or FM.
    if any body have written previously, Please reply me, it would be appreciated.
    Regards
    Jana

  • Want to Update the Old Material Number

    Hi all,
    I have Old material number (MARA-BISMT) and i want to update the table - MARA in SAP, please tell me ways of updating the same.
    Any suggestion welcome.
    Regards,

    Hi,
    Write a program which does the updating. In the pgm:
    define 2 internal tables called it_mara and it_mara1 like mara.
    select * from mara into it_mara where (give 1 condition which relates to ur requirements).
    loop at it_mara.
    change it_mara and move the changes into it_mara1 table.
    endloop.
    now it_mara1 would have all the modified entries which needs to be updated in the MARA table.
    now give the "modify mara from table it_mara1"  statement which updates the already existing records in the DB table.
    Reward points if helpful.
    Thanks,
    Archana

  • Updating a table with need of table joins

    Hi,
    I want to update a table (via PL/SQL process) but to do it I need to include joins - and my code throws an error...
    How would I go about getting this to work?
    UPDATE employees a, action b
    SET a.met_employee = '0000'
    WHERE b.date_met NOT BETWEEN QA1 AND QA2
    AND b.date_met NOT BETWEEN QB1 AND QA2
    AND b.date_met NOT BETWEEN QC1 AND QC2
    AND b.date_met BETWEEN QD1 AND QD2
    AND b.emp_id = P12_ID
    AND a.emp_id = P12_ID;
    Where QA1, QA2, QB1, QB2, QC1, QC2, QD1, QD2 are variable values of pre-defined dates and P12_ID is the ID variable.
    The problem occurs because I need to use the two tables - how can I solve this?
    Thanks,
    Si

    The employee table has multiple actions (action table)
    We want to set certain values i.e the '0000' to certain employees that have had actions on certain dates (the defined variables)
    So it needs to check all the actions within the set dates and give only employees within this criteria the value '0000'
    with the following...
    update emplyees
    set met_emplyees = '0000'
    where emp_id = P12_ID;
    that will always set the employee with '0000'. However '0000' should only be set to employees that had actions on certain dates.
    Cheers
    Si

  • Updating multiples tables

    Hi ,
    i want to update two tables
    ALTER PROCEDURE [dbo].[SP_updateDetails]
    -- Add the parameters for the stored procedure here
    @ServiceID int,
    @DayoftheWeek varchar(50),
    @Date datetime,
    @Services varchar(50),
    @Venue varchar(50),
    @ProjectName varchar(50),
    @StartTime varchar(50),
    @EndTime varchar(50),
    @Breakfast varchar(50),
    @Lunch varchar(50),
    @Dinner varchar(50),
    @Total varchar(50),
    @HoursTotal varchar(50)
    AS
    BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
    -- Insert statements for procedure here
    update DetailsTable set Services=@Services,Venue=@Venue,ProjectName=@ProjectName,StartTime=@StartTime,
    EndTime=@EndTime,Breakfast=@Breakfast,Lunch=@Lunch,Dinner=@Dinner,Total=@Total,HoursTotal=@HoursTotal where ServiceID=@ServiceID and DayoftheWeek=@DayoftheWeek
    END
    ALTER PROCEDURE [dbo].[SP_TimeSheetMain_Insert]
    @EmpID int,
    @EmpName varchar(50),
    @StartDate datetime,
    @EndDate datetime,
    @date datetime,
    @day varchar(50),
    @Service nvarchar(max),
    @Venue varchar(50),
    @StartTime varchar(50),
    @EndTime varchar(50),
    @Breakfast varchar(50),
    @Lunch varchar(50),
    @Dinner varchar(50),
    @DailyTotal varchar(50),
    @Total varchar(50)
    AS
    BEGIN
    insert into EmpTimesheet(EmpID,EmpName,StartDate,EndDate,date,day,Service,Venue,StartTime,EndTime,Breakfast,Lunch,Dinner,DailyTotal,Total
    ) values (@EmpID,@EmpName,@StartDate,@EndDate,@date,@day,@Service,@Venue,@StartTime,@EndTime,@Breakfast,@Lunch,@Dinner,@DailyTotal,@Total
    END
    If i update anything in details table i want to update it into emptimesheet table .Do i need to write another update statement in updatedetails storedprocedure or any other ways that i can simply update emptimesheet.

    Are you looking for a permanent way to update table B each time you are updating table A? In other words, any update of table A will lead to an update of Table B? Or sometimes you need to update the tables without dependency?
    For clarification, A trigger is a database element, which execute on a specific event (therefor the name trigger, as the event trigger the action). Once you created a trigger (and it is enable) it will execute on that even every time! In this case Visakh16
    suggested the use of trigger which will execute on any update event. I just want to clarify if that is what you want, then this is the answer, but if you need some times to use update without dependency and sometimes with dependency, then you can use a simple
    query without creating new element on the database, with using an 'OUTPUT INTO'. It will not fit any DDL, but this is very fast and easy way to insert data into table B using an update statement
    on table A.
    Unfortunately you did not post a DDL+DML, and i dont want to do it for all the columns in your query, therefor i will demonstrate using two simple tables. I hope you will be able to implement this on your table. If you dont, then please post DDL+DML.
    Check is this sample code help you:
    use QQ
    go
    CREATE TABLE TableA (
    TableAID INT PRIMARY KEY,
    TableAName NVARCHAR(10)
    CREATE TABLE TableB (
    TableBID int,
    TableBName NVARCHAR(10)
    GO
    select * from TableA
    select * from TableB
    GO
    insert TableA values (1, 'a')
    GO
    update TableA
    set TableAID = 2, TableAName = 'b'
    OUTPUT INSERTED.TableAID,inserted.TableAName INTO TableB
    select * from TableA
    select * from TableB
    GO
    DROP table TableA
    DROP TABLE TableB
    GO
    this is the main Idea:
    update TableA
    set TableAID = 2, TableAName = 'b'
    OUTPUT INSERTED.TableAID,inserted.TableAName INTO TableB
    I hope this is helpful :-)
    [Personal Site] [Blog] [Facebook]

Maybe you are looking for