Updating Zfields in the BUT000 table

Hi ,
I have created new zfields for but000 table . Is there any FM present to Update the newly created Z fields  . ( here  business partner number  is already created using the FM CRM_ISA_REGISTER_CONSUMER .Now i want to update the Zfileds for this business partner created)
Thanks
Sruthi

Hi! Sruthi
You can use the follwing FM to update the Z fields in BP u jast have to pass the partner guid along with the field that u need to update.
      CALL FUNCTION 'BUPA_CENTRAL_CI_CHANGE'
        EXPORTING
          is_bus000_eew = new Z fields
          iv_xsave      = 'X'
        IMPORTING
          et_return     = return  table.
Regards
Mayank

Similar Messages

  • Updating data in the database table

    Can any help me in the code for updating data in the database table.
    Regards,
    Rahul

    Hi Rahul,
    A slightly longer procedure that i'm adding here...
    1.) Create the component (i'm sure you have this covered)
    2.) Next on the button click that updates the database - add an action.
    3.) double click the action so that you are taken to the methods section of the view.
    4.) next you need to add the code that is required the update the database - this will be in the form of the above two posts.
    5.) compile and test the application
    Let me know in case you need further information on how to do this with a function module or something.
    Thanks.

  • Create a new entry for zfield in the CDHDR table when sales order is create

    Hi,
    We have some custom field added to table VBAP and that field need is updated thorugh transaction VA01 or VA02.
    The Function poeple is asking to Update the CDHDR table for the ztable when ever the field is updated ,and they want
    the changes to appear in the sales order changes Log.
    Prabhudas

    Problem solved.
    By using the ..
    Used this FM "VERKBELEG_WRITE_DOCUMENT" in MV45AFZZ in exit...DOCUMENT_SAVE.
    by passign the only VBAK and VBAP table structure of XVBAP and YVABP and field name as ZZFIELD.
    Prabhudas.

  • How to update fields in the target table in correspondance with the source file values

    Environment: win7, SQL server 2008 R2
    Application: Microsoft Management SQL Studio 2008 R2, Business Intelligence 2008 - SSIS
    SSIS competency level: Novice
    Problem: I have been trying to update some of the fields in the destination table,student table, in reference to data set in the staging table and ssn table.  I was able to insert/load new data to the destination using look up transformation
    while the driver is ssn (data mapping) but i couldn't know how to update some of the fields in the student table while keeping the orignal pn_id of both tables(ssn and student tables), because pn_id already exists in the SSN table and student table. There
    are other records also associated with the pn_id so I am not allowed to update the pn_id in the destination tables. For example,
    SSN Table (pn_id,ssn)
    ('000616850',288258466)
    ('002160790',176268917)
    Staging Table (ssn, id, pn_id, name, subject, academic year, comments)
    (288258466, 1001, '770616858',Sally Johnson, English,A, 2005,'great student')
    (176268917, 1002, '192160792',Will Smith, Math,38000,C, 2014,'no comments')
    (444718562, 1003, '260518681',Mike Lira, Math,38000,B, 2013,'no comments')
    Student Table (destination table)(id,pn_id,subject,academic year, grade, comments):
    (1001, '000616850', ' ',' ', ,'')
    (1002, '002160790', ' ',' ', ,'')
    Expected Results:
    My goal is to have student table updated as the following:
    Student Table
    (1001, '000616850', 'English','A' ,2005 ,'great student')
    (1002, '002160790', 'Math ',' C',2014 ,'no comments')
    please advise

    Why can't you use simple UPDATE command in EXECUTE SQL Task as below,
    DROP TABLE SSN
    DROP TABLE STAGING
    DROP TABLE STUDENT
    CREATE TABLE SSN(pn_id VARCHAR(100),ssn BIGINT)
    INSERT INTO SSN VALUES('000616850',288258466)
    INSERT INTO SSN VALUES('002160790',176268917)
    CREATE TABLE Staging (ssn BIGINT, id INT, pn_id BIGINT, name VARCHAR(100), subject VARCHAR(100),grade VARCHAR(10), [academic year] INT, comments VARCHAR(100))
    INSERT INTO Staging VALUES(288258466, 1001, '770616858','Sally Johnson', 'English','A', 2005,'great student')
    INSERT INTO Staging VALUES(176268917, 1002, '192160792','Will Smith', 'Math','C', 2014,'no comments')
    INSERT INTO Staging VALUES(444718562, 1003, '260518681','Mike Lira', 'Math','B', 2013,'no comments')
    CREATE TABLE Student(id INT,pn_id BIGINT,subject VARCHAR(100), [academic year] INT, grade VARCHAR(10), comments VARCHAR(100) )
    INSERT INTO Student VALUES(1001, '000616850', NULL,NULL,NULL ,NULL)
    INSERT INTO Student VALUES(1002, '002160790', NULL,NULL,NULL ,NULL)
    UPDATE Student SET Subject = C.Subject, [academic year]=C.[academic year], grade=C.grade,comments=C.comments
    FROM SSN A INNER JOIN Student B
    ON A.pn_id=B.pn_id INNER JOIN Staging C
    ON A.ssn = C.ssn
    SELECT * FROM Student
    Regards, RSingh

  • MULTIPLE UPDATES/INSERTIONS TO THE SAME TABLE

    How can I update/insert mutiple rows into the same table from one form ?

    Hi,
    Using the portal form on table you can insert only a single row. You can use master-detail form to insert multiple rows.
    Thanks,
    Sharmila

  • Triggers to Update rows in the same table

    Hi,
    I have a table called as "Cal" which has the following fields
    CALID
    Description
    RecurringID
    There will be many records with the same recurring id and If the Description field is Updated, then I would like to Update the same description to all the records with the same recurring id (same table). I have tried it with triggers and the I get the ORA-00036 Maximum number of Recursive SQL reached error.
    I have a a row level trigger which captures the change and I use the statment level trigger to update the description field (same table) and I get the error mentioned above.
    Thx in advance
    Ravi

    I have three kind of suggestion.
    (1) Use session variables in a package as flag for prevention from infinitely recursive calling.
    (2) Use temporary tables for similar reason.
    (3) Use instead-of-trigger (need to create view).

  • How to update standard table based on the custom table

    Hi,
    I have requirement , I have custom table whatever changes done to the custom table must be updated in the standard table
    i have tried the table maintenance events but unable to handle delimit , what is the base solution for this.
    1) create
    2) change
    3) delimit
    4) delete
    6)copy

    the table im updating is t710
    the custom table is same as the standard table except for one field . whatever the user maintains the values in custom table except for the one field everything should update back to the standard table. Im able to update when we create delele but the problem is delimition. when im delimiting the record in custom table its just changing the startdate and it is not actually delimiting the record itself .I want both records the latest one and previous one and should be update back into the standard table same as the custom table

  • Two triggers in the same table and event

    If I created two triggers on the same table and event (before insert), which of them will be triggered first ?...
    The problem from the beginning is that I created the second one as after insert and in the body of the trigger I wrote (:new.xxx:= value) ... then an error (that it should be before insert trigger or update trigger), so I created it as before update ,,, but I have already before update trigger (for primary key)..... and the problem -I think- which of them start first...
    Can make the second one as after insert and make update statement instead of assigning (:new.xxx:= value).....
    Regards

    If I created two triggers on the same table and event
    (before insert), which of them will be triggered
    first ?...As already mentioned, prior to 11g the order of firing is undetermined.
    The problem from the beginning is that I created the
    second one as after insert and in the body of the
    trigger I wrote (:new.xxx:= value) ... then an error
    (that it should be before insert trigger or update
    trigger), so I created it as before update ,,, but I
    have already before update trigger (for primary
    key)..... and the problem -I think- which of them
    start first...If there is a conflict of interest inside the code then you will have to alter your design principle around this to cater for it. Also consider combining the code into a single before insert trigger to prevent any confusion.
    Can make the second one as after insert and make
    update statement instead of assigning (:new.xxx:=
    value).....Attempting to update or query the same table as is causing the trigger to fire will result in a mutating table error. You can't do this.

  • Updatable Materialized View and Master Table on same database

    Hi all,
    My first question - Is it possible to have an Updatable Materialized View and the associated Master Table located on the same database?
    This is the requirement scenario:
    One unique database D exists.
    A is a batch table. Only inserts are allowed on Table A.
    M is an updatable materialized view on Table A (Master). Only updates are allowed on M (no insert or delete).
    Requirement is to push updates/changes from M to A periodically and then get the new inserted records from A into M via a refresh.
    Is this possible? What other approaches are applicable here?

    John,
    My question is related to the implementation and setup of the environment as explained in the above example. How can I achieve this considering that I have created an updatable m-view?
    If possible, how do I push changes made to an updatable m-view back to it's master table when/before I execute DBMS_MVIEW.REFRESH on the m-view? What is the procedure to do this if both table and mview exist on the same database? Do I need to create master groups, materialized view refresh groups, etc.?
    One more thing.. Is there a way to retain changes to the m-view during refresh? In this case, only newly inserted/updated records in the associated table would get inserted into m-view. Whereas changes made to m-view records would stay as-is.
    Hope my question is directed well. Thanks for your help.
    - Ankit

  • Date is not inserted in the DB table

    Hi,
         I have a view, showing some data, including date and I have a save button. View has some of the fields update able. When I click the save button a bean function is called which run the query to update values in the DB table, taking those values from the view.
         Now the problem is, date is not updated as the query doesn't run just  because of the date and I am getting this error:
    ORA-01861: literal does not match format string
    and the date format is: 2013-09-23
    I have tried using to_date() method, but it didn't work for me.
    Here is my query:
                oracle.jbo.domain.Date  Pshipdate =( oracle.jbo.domain.Date) rowSelected.getAttribute("Pshipdate");
                    "UPDATE SHIPEXT" +
                    " SET APP = " +
                    "'" + status + "' " +
              ", PSHDAT = " + "to_date('" + Pshipdate + "', 'dd/mm/yyyy')"
                    +  ", MBY = " +
                    "'" + LoggedInUser + "'"
                    + ", IP = " +
                    "'" + IP + "'"
                    + ", DSREMS = " +
                    "'" + descrems + "'" +
                    ",  MDAT  = "
                    + "to_date('" + getCurrentTimeStamp() + "', 'dd/mm/yyyy')" +
                    " Where WO =" +
                    "' " + workorder + "'"
                    + "AND SR = " +
                    "'" + sr + "'"

    I'll repost what you branched off
    There's all kinds of things wrong.
    For a start, I can't see P_shipdate anywhere, though I can see Pshipdate.
    If you mean Pshipdate, Java is converting it to a string which you are then converting back to a date with to_date.
    Check that the default print  string returned is of dd/mm/yyyy format.
    Similarly with MDAT and getCurrentTimestamp - what is default print string of geCurrentTimestamp?
    All these problem could be avoided if you use bind variables.
    We are trying to help but you seem determined not to accept any help.
    Have you checked the print string formats of Pshipdate and getCurrentTimestamp?

  • "This entry already exists in the following table 'Vat Transactions' (OTAX)

    Hi Experts,
    I have  some trouble adding new invoices into SAP. Copying from the Sales order to an AR Invoice the following error occurs
    Firstly, I get a system message "The Customer ref. no of this type already exists" on processing it follows with a status error when copying the order to AR Invoice
    "This entry already exists in the following table 'Vat Transactions' (OTAX) [Message 131-183]"
    "Exclusive code already exists '1486759'"
    any ideas to resolve this
    SBO 8.8 SP00 PL11.
    Regards,
    Rakesh N

    Hi Gordon,
    What happens if  the user had performed a Update Query on the OTAX table and then added the invoice he was unaware that he should not run UPDATE queries on database. But invoices to which the update query was not executed cannot be added.
    The query follows :
    UPDATE TAX1
    SET AbsEntry = XXXXXX where AbsEntry = YYXXXXXX
    Select Top 15* from OTAX INNER JOIN TAX1 on OTAX.AbsEntry = TAX1.AbsEntry
    ORDERBY OTAX.AbsEntry DESC;
    Regards,
    Rakesh N

  • Update automatically about the data warehousing

    I have done data warehousing using owb, but what way or how can we let the cube update automatically when the original tables changed? thank you

    You'll need to building mappings to load your source data to your cubes and then one option is to schedule these to run via a process flow and scheduled job.
    Search the Net for 'Oracle OWB by example' for some tutorials.
    Regards
    Si

  • Has anyone used the FF Table Upload Utility in 5.3?

    I've been trying to use the FireFighter Upload utility to mass update some of the FF tables, but keep getting a 'File is not available' error message.  I've tried uploading an Excel spreadsheet and a tab-delimited text file.  I even tried downloading a table and using that file on the upload, and that didn't work.
    Any ideas?
    We are on GRC 5.3 SP13.
    Thanks.

    Hi,
    Are you uploading both master table and text table data??
    Also, ensure the following:
    1.You are not on SAP GUI patch level 0 (upgrade to the latest SAP GUI. If you have access to any other system, please check on the other one too)
    2. S_GUI authorization which is required, to download and uploaded (Activity 60,61)
    If the issue still persists, you may need to open a message with SAP.
    Regards,
    Raghu

  • Need to update Ztable from final internal table

    Hi,
    ITAB   = Final internal table has 9 fields : 1 2 3 4 5 6 7 8 9
    Ztable = Ztable has 6 fields ex : 1 3 4 6 7 8
    Structure of both Itab and Ztable are different.
    I have data in the Final Internal table and needs to update data into a ztable.
    If condition is true...
      Modify ztable from itab
    endif.
    Any suggestions how I can update Ztable from the INternal table
    Regards,
    Kittu

    Hello,
    First keep the loop to the final internal table then move all the records to the work area after moving to workarea then create another workarea for the Ztable then move only the field values which are there in Ztable then use modify keyword.
    example
    move:
    y_wa_final_itab-kdauf to y_wa_zhr_item-vbeln,
    y_wa_final_itab-kdpos to y_wa_zhr_item-posnr,
    y_wa_final_itab-receiptno to y_wa_zhr_item-receiptno
    modify zhr_item from y_wa_zhr_item

  • BADI/BDT Event to Update Zfields into BUT000

    Hi
    I am looking for updating newly added Z fields of BUT000 table to databse.
    I got confused to two different solutions, as BADI and BUPT Events. Anyone suggest which is the right one. I have used BUPT Control- Screens to enable the Z fields under business partner BP. But got stuck in the next step which we need to update the values from screen to database.
    Can anyone throw some inputs on how to use BADI BUPA_GENERAL_UPDATE or BUPA_GENERAL_EXPORT?? or the SAVE Event. Need your valuable inputs.
    Its a bit urgent to me..pls.
    Cheers
    Manohar

    Hi Manohar,
    You had probably created another thread in the ABAP forum for this.
    BDT Events / BADI
    which has been solved.
    Please close this thread.
    Thanks, Debasish

Maybe you are looking for