Updating a vendor table when address changes in infotype 6

hello all,
when an employee changes his personal information in the PZ02 service, it updates the infotype 6, as soon as the update is done it has to update the LFA1 or LFB! vendor table.
is there a workaround for this
BR
venu

thanks for the reply.
whenever there is an address change in IT6 it should update the vendor table(for eg: if changes are done in PA30 and not from ess, so its kind of generic version that i have to create to update the vendor table either from ess or PA30).
i am already using the HR_ESS_ADDRESSDETAIL and HR_ESS_ADDRESSLIST for changing the fields on the iview.
(t77www_sc)and linking it to pz02.so what u mean is i can go ahead and write the code in the same module for updates.
is this is the only way to do it, or we can do it by BAPI_address_change.
I am trying to know all the different ways it can be done.
a)can i use a BAPI if so which one?
b) can i do it thru workflow.
c)or user exit.
Please help me out with details
thanks
venu

Similar Messages

  • How to update two database tables when using DatabaseProvider

    I'm a begginer and I've made an application which uses a database. In one page, I have a table which I've took it from "woodstock basic" palette. I was using DatabaseProvider to populate the table with data from a database table called "copii". My code is:
    //i'm check all the rows in the table to see if the field "IDCOPIIC" =0 and if true I will put the value of "newCopiiId"
    do {
    if (copiiDataProvider.getValue("IDCOPIIC").equals
    (new Long(0))) {
    copiiDataProvider.setValue("IDCOPIIC", new Long(newCopiiId));
    newCopiiId++;
    } while (copiiDataProvider.cursorNext());
    copiiDataProvider.commitChanges();
    My problem comes now because I have another database table tided with a foreign key by this one and I want to update this one too when I'm updating the "copii" table. I don't know how to do it ...I've tried in many ways but is impossible. Can anyone help me ! I'm desperate...I cannot figure it out how I could insert, update in two tables in the same time when I'm using DataProvider .
    Thanks in advance!

    Hmm.
    Not sure where your going with the <select> menu.
    The description you made:
    "Both have an id column, which is presumably the record's primary key, but you need to create a relationship by storing the primary key of one table as a foreign key in the child (related) table. For example, you should insert the primary key of the first table in the second table as user_id. That enables you to identify which username and password are related to an individual listed in the second table"
    Seems to be the direction that I'm looking for.
    Now my question is how do I insert the primary key of the first table in the second table as user_id?
    >
    >"For example, you should insert the primary key of the first table in the second table as user_id"
    Since both tables have an id column and they both are the primary key, do I just change the name of the second tables id column to "user_id" then?
    Or is there an actual "insert the primary key to another table" function that I don't know about?

  • Updating a sorted table when a cell editor is open

    In Sun's table sorter demo, if you are in the middle of editing a cell and you toggle the sort on any column, the editor automatically cancels the edit, closes the editor and the table sorts appropriately. I am guessing that the cancelEditing method on the editor is called somehow by the table when the table data changes.
    For some reason, in my application, when the sort is toggled, the editor remains open and does not cancel. As a result, when the table sorts, the value you are editing is not for the correct row anymore.
    The custom cell editors I am using are not the problem because I removed them and I still have this problem.
    Unfortunately, it would be extremely difficult for me to provide a sample application to demonstrate my problem because there is so much proprietary stuff mixed into my tables. I am hoping someone else is familiar with the problem I am having and can offer some solution.
    Thanks in advance for any assistance.

    Actually I do have this setup on the table and when sorting is toggled, the focus remains in the editor so it does not terminate.
    Any other possibilities?

  • Update Existing Coll Rooms when Template Changed

    Please refer to this thread.
    <a href="https://forums.sdn.sap.com/thread.jspa?threadID=70659">https://forums.sdn.sap.com/thread.jspa?threadID=70659</a>
    How do I get the existing Collaboration rooms to be updated when we change the template they are based on?

    Hi Brian,
    with SPS17 it is now possible to update the worksets for room templates or room part templates and transfer changed values for the iView properties to existing rooms.
    Here are the steps described in detailed: http://help.sap.com/saphelp_nw04/helpdata/en/44/168eb1c3641a75e10000000a1553f6/frameset.htm
    Hope this helps,
    Robert
    PS: Unfortunately, you can only update iView property values but not add new iViews existing collaboration rooms.

  • Future price is not getting updated as current price when period changed

    Hi all,
    We follow the following procedure to update standard price in material master. Our organization is a manufacturer of pharma products. ( System is not live yet)
    We have BoM's for all FG's and all FG's & SFG's are having Price control indicator as "S". Rest other materials are valuated for Moving Average price.
    > Run T-code CK11n for the FG.
    > Check whether costs of utilities and final product is as per the cost sheets prepared manually (10-20% difference acceptable)
    > Do not save it and goto CK40n tcode. Mark and release price of FG's & SFG's for the current date (eg: 16.01.2008). Now as 10th period of year 2008 was not open at that time and only 9 th period of year 2007 was open, the prices were updated as "FUTURE PRICE" in costing-2 view of material master.
    > Now that when i am opening 10th period (both financial period and inventory period), my future price is not getting updated as my CURRENT PRICE in material master as my standard price.
    Pls. reply to this urgently.

    Hi,
    I am sure about it that when CK40n was done for a future date when some n-1 period was open, the costs released would get updated as future price.
    When the period for which future price was updated is opened as current period, the future price automatically gets updated as current price and is also set as standard price in accounting 1 view.
    But i m unable to identify why is not working.

  • How to update a fact table when a dimension table is reloaded

    We have implemented BI Apps 796. Insertion into W_EMPLOYEE_D table which stores all the employee information had stopped one year back as some company security policy restricted the informatica worklfows to pick up the data. (PER_ALL_PEOPLE_F was a HRMS table and it contained sensitive information line SSN and salary, was inaccessible to the user which informatica uses and the SDE mapping used to return 0 rows).
    Now we have the approval to see those rows and the dimension table is loaded with some 100 new employees who joined in last one year.
    The ROW_WID of W_EMPLOYEE_D is referenced in lot of fact tables and for all those missing employees the WID in the fact table is 0.
    Now that we have all employees, how to make the FACT table point to the correct WID and not store 0. Has anyone faced this problem before?? Writing an update statement will be a tedious task as there are so many fact tables that join to w_employee_d. Also our company uses Sales, Procurement, Finance modules of OB Apps (which constitutes atleast 20 fact tables)
    Any guidance is appreciated. Thanks in advance

    Hello Kostis,
    thank you for your answer. I don't fully understand you. Can you show me short example, please? I create alias table for time dimension on Physical Layer - original table is TimeDayDim and I create aliases TimeDayDim1, TimeDayDim2, TimeDayDim3, TimeDayDim4. Then I create foreign key Fact.Time1 -> TimeDayDim1, Fact.Time2 -> TimeDayDim2, Fact.Time3 -> TimeDayDim3, Fact.Time4 -> TimeDayDim4. And what now? Must I create these table api Bussines Model and create new time dimensions at bussiness model????
    I need in Answers ONE Time dimension. I think I must split my fact table to four tables ... (time1, place1 ...) (time2, place2 ...) (time3 place3...) (time4 place4...) then link those tables to Time dimension (but I dont know where I can split those tables - on Physical Layer or on Bussines Layer).
    I suppose that I will have in Answers one time dimension and four facts tables and I will be able to query them. (for example: Time.Days, Fact1.Place1, Fact3.Speed, Fact4.Count Criteria: Time.Year = 2008)
    Best Regards Vlada

  • ODI updates all rows even when no change exists

    We use database triggers to update the created_by, creation_date, last_updated_by, last_updated_date columns on the records. From looking at these columns I can tell that ODI is updating every target record with the save values that are already present.
    I have tried using Journaling, but that I can't get that working, and I there are cases where I am not going to have the luxury of adding journal columns and triggers to my source database.
    Is there a way to have the interface only update records where the values have actually changed?
    Thanks,
    Kt

    In the interface diagram window, you will need to mark the columns created_by, creation_date, last_updated_by, last_updated_date to be executed on "Target".
    In addition,
    For created_by, creation_date, mark them for "Insert" only.
    For last_updated_by, last_updated_date, mark them for "Update" only.
    Hope that helps

  • Why doesn't a List update it's display when you change the dataprovider Array?

    Hi. I have a list and an array with more strings inside. If i
    remove some of the strings from the array and add some new strings
    then the list display doesn't update. How can i force the list to
    update?
    List1.dataProvider = Array1;
    Array1.pop();
    Array1.push("test");
    List Update??????

    Hi MaxMuld,
    Because it has to be ArrayCollection, not the Array.
    Documentation about Datagrid.dataProvider says that Array as
    provider will be converted to ArrayCollection. And ArrayCollection
    performs all the notifications if you add/delete items in it.
    If you still want to use Array you should do the following:
    var ar= new Array();
    ar.push(x)
    grid.dataProvider = ar;
    grid.dataProvider = new Array();
    ar.pop();
    grid.dataProvider = ar;
    But this is very inefficient.
    Dmitri.

  • Capture Action when data changes in Infotypes

    First of all ,  I am not a HCM(functional)  , I am a MDM technical person. I am not sure this question is relevant to this forum. Please bare with me while reading this question:
    We had a requirement saying that whenever person, position or orgunit changes in HCM tables(Infotypes), we need to capture those changes and send it MDM tables. We did this delta loads through change pointers configurations and we succeed.
    But other requirement saying that : when ever any change happend in person, position or orgunit tables we need to caputure as true or false value and send it to MDM table.
    Ex : Person Last name changes or address chagnes or position changes or org unit changes ..etc. I need to capture as boolean value send it to MDM.
    May be there are many infotypes could possible to changes at any time, so how do I capture those values as one boolean value? How do I know which one is last changed?
    Do you have any idea is there any direct field(infotype) capturing this value in HCM?
    or  do you have any idea how to capture this ? Even technically? give me logic on this.
    May be I haven't put the question in proper way because in experience in HCM , please suggest me how do I frame this question to Business people? or help me for capture this value?
    Thanks for your time .
    Thanks,
    Shankar

    Hi Shankar,
    In HCM there is an option of infotype logging.
    This is customized via the following SPRO nodes:
    Personnel man - Personnel admin - Tools - Revision - Set up change doc & Log report starts.
    Then you can see the logs via RPUAUD00 and delete them via RPUAUDDL.
    However converting all this change logs into one boolean value would be your ABAPer's work who should make use of these logs.
    Best wishes,
    Dilek

  • How to update the table when change list item in classic report

    hi ,
    i worked with apex 4.2 and i create normal classic report with one select list(named loved)Column ,now i want to update table when user change the list with new value ,i can't create dynamic action to do this,i create check box with primary key and loop for check item to update the table but i can't get the value of list item. and for more speed the user want to do this when change the list value.
    my question
    1- how to do this by javascript and get the value from list item and update the table with new value
    2- is i must use API to create list item so i can get the value of item in report or what.
    Thanks
    Ahmed

    I coded the following to give you direction:
    1. In the "Element Attributes" section of the DEPTNO column, I call a javascript function as:
    onchange = "javascript:updateTable(this);"2. I wrote a simple javascript function that shows an alert when the user changes the select list as:
    <script language="JavaScript" type="text/javascript">
    function updateTable(pThis)
        var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
        alert('Row# - '+ vRow + ' has the value - ' + pThis.value);
    </script>Now, you can call a AJAX on-demand process inside the javascript function to update the database value.

  • How do i update a db table using one JSP page

    I created a JSP Form page and I want to update a db table when the user hit submit. Please help my job depends on it Send me small code example below is what I have (very new to JSP)
    <%@ page language="java" import="java.sql.*" import="java.io.*" %>
    <html>
    <head><title>accessing database</title></head>
    <body bgcolor="white">
    <%     Connection con =null;
         try {
    // Load Driver Class File
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    //Make a connection to Data table
    con = DriverManager.getConnection("jdbc:odbc:SportsbookTables", "developer", "developer");
    Statement statement =con.createStatement();
    String SQL = new String("INSERT INTO tblLines (gameID,leagueType) VALUES (5,'gam')");
    statement.executeUpdate(SQL);
    statement.executeUpdate("INSERT INTO tblLines (gameID,leagueType) VALUES (6,'lea')");
    %>
    <table border=1 cellspacing=1 cellpadding=1>
    <form method="POST">
    <p><font color="#800000" size="5">Enter your name:</font><input name="leagueType" size="4"></p>
    <p><input type="submit" value="Submit"></p>
    </form>
    <%
    catch (IOException ioe)
    out.println("IO Exception:");
    out.println(ioe.getMessage());
    catch (SQLException sqle)
    out.println("SQL Exception:");
    out.println(sqle.getMessage());
    catch (ClassNotFoundException cnfe)
    out.println("Class Not Found Exception:");
    out.println(cnfe.getMessage());
    catch (Exception e)
    out.println("General Exception:");
    out.println(e.getMessage());
    finally {
    try
    if (con!=null) {
    con.close();
    catch(SQLException sqle)
    out.println(sqle.getMessage());
    %>
    </table>
    </Body>
    </HTML>

    First I would remove all the JDBC code you have in the JSP and place it in a servlet (or other Java) class, and have your form action call the servlet on submission. Then use the servlet API to extract the form data from the request and pass it to the JDBC in the servlet to update the DB. Once complete have it branch to another JSP/HTML to let the user know if they were successful or not.
    Take a look at some of the online tutorials as they will be helpful with regards to code examples.
    Depending on the size of your project, and deadlines naturally, you may also want to have a look at an MVC architecture and custom tags like Struts from Apache. These can make your job a lot eaiser.

  • Track which attributes/column are updated of a table

    Hi All,
    How can i track that which columns are updated of a table when update statement is executed on that particular table. I want to track it in update trigger.
    Suppose table name is T1 and has columns A,b,c, ...... z.
    One way is compare values of all columns using if statement like
    if :new.a <> :old.a then
    but this method is quite code expensive particular for table having 100 plus column.
    Is there exist any dictionary view which can provide this info.

    if (UPDATING('YOUR_COLUMN_NAME'))
    then
      your_code_for_this_col_update ;
    end if ;

  • On submit perform an insert on one table and an update on aother table

    I am trying to perform and insert on the table one table (the wizard created my form the insert is going against the table that I created using the wizard) and on the form is on field that is also in another table. Therefore, I am trying to perform an update on one attribute of one table and a insert into another table. How do I do this in apex?

    If you have used wizard to create form, then you may see a process of type 'Automatic Row Processing (DML)' in your page which will perform INSERT/UPDATE/DELETE on your form table. Here you can see APEX performs INSERT only when REQUEST is in 'INSERT, CREATE, CREATE_AGAIN, CREATEAGAIN'
    So create one more PL/SQL page process which will execute at 'on Submit after validations' and write update process as follows
    begin
    -- pseudo table/columns
    update tbl_second
    set col1 = :p1_item
    where pk_col = :p1_pk_item;
    end;Make this process conditional so that it will perform UPDATE only when request value is in 'INSERT, CREATE, CREATE_AGAIN, CREATEAGAIN' ( i.e. only when you are inserting into your form table)
    Cheers,
    Hari
    p.s. I think you may also need to update the second table when some-one updates your form table.
    Edited by: Hari_639 on Oct 26, 2009 9:46 AM

  • How to Query and Update/Insert Large Tables ...

    I have the following 2 tables:
    Table 1: Pricing
    This table holds pricing details of all Items (roughly 150,000 items). One Item has three types of prices Standard, Promotion, and Discounted. Therefore the table contains roughly 150,000 * 3 records. Also the prices may get updated frequently every day.
    Item#---Type------------FromDate---ToDate-----Price
    ===================================
    AAA-----Standard------01/01/05---31/12/05---1.50
    AAA-----Promotion----16/12/05---20/12/05---1.40     
    AAA-----Discounted---10/12/05---15/12/05---1.20
    BBB-----Standard------01/01/05---31/12/05---1.60
    BBB-----Promotion----17/12/05---18/12/05---1.30
    BBB-----Discounted---10/12/05---15/12/05---1.50
    Table 2: BestPrice
    At a given date, this table contains the best price (lowest price) of each item for the following 21 days (including the current date). The POS system is accessing this table to get the daily best price for billing customers.
    Item#----Date--------BestPrice
    =====================
    AAA------17/12/05----1.40
    AAA------18/12/05----1.40     
    AAA------19/12/05----1.40
    AAA------20/12/05----1.40
    AAA------21/12/05----1.50
    BBB------17/12/05----1.30
    BBB------18/12/05----1.30
    BBB------19/12/05----1.60
    BBB------20/12/05----1.60
    BBB------21/12/05----1.60
    Problem Statement:
    Table 2 (BestPrice) needs to get updated from Table 1 (Pricing) at least once every day with the best price for each item for the next 21 days (including the current day). What’s the most efficient method to perform this job?

    I don't know really why your application needs to use BestPrice table!
    It is not clear what it does for it because querying will not be better than querying the pricing table. This will be very fast with an index on intem#
    On the other hand, why do you use three rows per item in Pricing table? it could be one row per item.
    Any way, to populate the table for the first time :
    insert into bestprice
    select item#
         , dte
         , min(price) bestprice
    from pricing, (select trunc(sysdate) + rownum - 1 dte from dual connect by rownum <= 21) t
    where  dte  between fromdate and todate
    group by dte, item#Now, you can have a row trigger (update) on Pricing table which can change BestPrice table according to a change in Pricing tabe.
    Then you have to use a daily job that can be based on the following statement:
    update BestPrice B
    set dte = trunc(sysdate) + 20
      , BestPrice =
             select min(price)
             from Pricing P
             where P.item# = B.item#
                and B.dte between P.FromDate and P.ToDate
    where dte = trunc (sysdate) - 1Message was edited by:
    Michel SALAIS
    I forgot to say that that if your periods in the pricing table don't covere a desired date in the BestPrice table then my insert statement will not treat it and my update will put it to NULL

  • How i need to write a logic to generate idoc for some of infotypes, when i change the single infotype

    Hi experts,
         I have an requirement , when I change any infotype record from pa30 or pa40, i.e
    suppose I am changing the infotype 0002  in pa30 , the idoc only generated for that changed infotype only,
    but I need it to generate the idoc for  some other infotypes also I.e(0000,0002,t528t, 0016).
    So please give me some help to generate idoc when I run a rbdmidoc(bd21).
    Thanks in advance.
    Venkat 

    yes, visible bounds is reading the non-visible masked objects too.
    you're going to have to do it the hard way, loop through all your objects to get your bounds manually, and while you're at it, test for clipping masks and use the masking path instead.

Maybe you are looking for

  • Creation of Sales org views for customers related to vendor

    Hello All,              Can any body tell me is there any functional module which can be used to created the sales org views for customers related to vendors. Regards Srinivas

  • Portal Performance

    Hello, we are running on EP6 SP2 Patch 3 and KMC Patch 3 (Windows machines). We are using an Active Directory server to authenticate against it with a custom login module. The Active Directory Groups are mapped to Portal Roles. There is a role concep

  • Camera Raw Title Bar stuck behind taskbar

    Hi Adobe Experts! I have recently started using Windows 7 on one of my machines and it is causing a few headaches with CS4 and CS5. When I open Camera Raw in Win7 it seems to have a fixed window height. That is, the top of the C-Raw window is at the

  • RUN IN BACKGROUD

    1. i use thiS FM to run in bachgroud but i have ERR. 2.i run submit(without FM) and it takes a lot of time what the solution.  CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING DESTINATION = 'LOCAL' COPIES = COUNT LIST_NAME = 'TEST' LIST_TEXT = 'SUBMIT

  • How many Nos can I store in Favourites in IOS 6

    How many Nos can I store in Favourites in IOS 6