How to update address fields from a different view?

Hello Everyone,
I have created a context node(Model Attribute) of standard address fields using BuilAddress in a view that doesn't have it and successfully displayed them. This is contacts view where the original address of the contact is not available. Now our requirement is to update the standard address if needed from the contacts view itself. How can I do this?  The address fields are available for display only, even if I want to update them using code based on some condtions if not manual entry how can I achieve that?
Did anyone ever use CRM_BP_UIU_SAVE Badi? I see no posts related to this in forum. Can anyone give me a sample code on what can be done in here and what data of BP is accessible in this BADI and how?
Thanks,
Sunil

Hi Murali,
Are you sure I can update the address fields using BAPI's from WEBUI? I have tried this already and the BAPI or Function just woudn't call, always return with error message.   I was thinking that BAPI's and Functions for updating just wouldn't work from WEBUI.
To give you more details, I am in the BP_DATA/AccountContactEF view. I added the context node Address and brought in all the fields from BUILADDRESS structure, it generated the get, set methods for me. I want to update a couple of fields like telephone info, street, city etc. In this view I just redefined Create_Contact method and I tried to update the address using BUPA_ADDRESS_CHANGE for the contact person and it never works. I also tried BUPA_ADDRESS_REMOVE to delete and add the new address using BUPA_ADDRESS_ADD, but that wouldn't work either.
So that is why I am exploring the option of using BADI, which I found out is very similar. I was able to access pretty much everything of BP data and Contact data. but there also the functions or Bapi's wont work.
Let me know if you did anything similar. Also as you mentioned the GET_I method, Context node creation  Wizard generated it for me and I have the field editable, its just that when I save it , it wont save and the old values are read back and populated. Meaning if I have  'NY' for region and I change it to 'CA' , after save 'NY' comes back.
Thanks for you help.
Sunil

Similar Messages

  • How to hide a field from table maintenance view?

    Hi,
    How to hide a field from table maintenance view? 
    The field is used for data created date. I need to hide it from display.
    Thanks

    Chk this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/33f52010dd11d6999300508b5d5211/frameset.htm
    Maintenance Attributes
    You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be  H (hidden)
    H (hidden)
    A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
    The system writes R and H fields to the database like all other fields when a new data record is saved.

  • How to compare two fields from two different groups

    My RTF template is like this.
    GROUP A
    Field 1 Field 2 Field 3 (Display in table)
    GROUP B
    **Condition
    Display Fields from B
    end GROUP B
    end GROUP A
    But I need the following condition to be added at the place (** Condition)
    IF A.Field1 = B.Field1
    Display fields from B
    END IF
    end Group B
    end Group A
    Please help, if anyone has come across such a situation.
    Thanks,
    Anand

    You can use variables to store the A.field1 value and then compare it against B.Field1.
    Take a look at this post for an example: https://blogs.oracle.com/xmlpublisher/entry/formatting_concatenated_dataso
    Thanks,
    Bipuser

  • How to use a .Mac alias in the outgoing address field from iPhone?

    I do not want my .Mac Apple ID showing up in the outgoing address field from my iPhone. I want to use an alias instead, just like I use in Mail. How can I use the same alias in iPhone?
    The iPhone has been great once I finally got it activated...no problems synching from Outlook on my PC and Address Book and iCal on my Mac. Now all of my PC and Mac data are finally merged on my iPhone and on both computers...wish I would have saved the money I spent on two versions of MissingSync! Looking forward to some software updates...
    Mac Mini   Mac OS X (10.4.10)   iPhone

    If you want to setup a different REPLY TO, you have to use the OTHER shortcut when creating the mail account on the iPhone. It allows you to specify an address in the Account Information box different from your incoming and outgoing server login IDs.

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • How to update 2 fields automatically rest manually on page

    Hello folks,
    I have got a question on how to update 2 fields in a table automatically (in my case this is one field for the user and one field for the correct date and time). This should happen automatically every time an user changes a row in the table. But it seems as if i cant change the fields i tried it with the changing of the textfield but he dont change the values in the database. I even tried a separate update statement but since this is set after the commitchanges() command it seems as if he ignores any following commands.
    So anybody a good idea how i can change easily these two data fields? I just cant believe that you must manually change the fields, thats not the use of these 2 fields.
    Thanks in advance for your help
    Acinonyx

    To be exact i have got a page with different fields which get their data from my database. Two fields which contain an userid and the other a date and time value should get updated automatically when the user changes something of the other values on this page and press a button which calls the commitchange method. But since this should happen automatically and not manually i cant put these changes in the database. The manual changes are saved without any problems but the automatical changes not. So my question is how can i change a value programmatically and make him save these canges in the database?
    I already tried to put the new values in the fields or even detailed in the database but i cant get him to update these two fields.
    Acinonyx

  • Update PRODH field from table T179T

    hi,
    i want to update PRODH field from table T179T into table VBRP. for this we
    need to take selection option also.
    selection option will be :
    ·             Sales Organization (field VBRK-VKORG)
    ·       Billing Date Range (VBRK-FKDAT)
    ·       Distribution Channel (Vbrk-vtweg
    while i have done this for one field by using hard code but like:
    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    but this is not the right way. please guide me how to solve this.

    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    <b>commit work.</b>
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    use commit work after update statement.
    But this code would make vbrp-vbeln as plc01 only.
    If you want to get the prodh value from t179t, then write a sleect on t179t and then update.
    TABLES: VBRP.
    CLEAR VBRP.
    select single prodh
      from t179t
    where......
    UPDATE VBRP SET PRODH = t179-prodh WHERE VBELN = '0008300051'.
    commit work.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.

  • How can I transfer songs from two different itunes?

    I want to transfer songs from my brother's itunes library to my shuffle, but when I plug it in his computer, a message saying that his library is not linked to my library (or something to that extent) and whether I would like to replace the songs. If I click yes, all my existing songs are replaced with HIS songs. If I click on NO, the Shuffle icon does not appear at all and I cannot transfer any of his songs to my shuffle. How can I transfer songs from two different computers into my shuffle without replacing any of my existing music?
    Shuffle   Windows XP  
      Windows XP  

    You'll have to setup your iPod to manual instead of automatic update (I'm not sure, though, if it works with the Shuffle as well).
    Alexander.

  • How to update key fields for table

    Hi,
    how to update key fields for a table.The update statement is not working for the same.
    Regards,

    Hi,
    See the below example.
    TABLES SPFLI.
    DATA WA TYPE SPFLI.
    MOVE 'AA' TO WA-CARRID.
    MOVE '0064' TO WA-CONNID.
    MOVE 'WASHINGTON' TO WA-CITYFROM.
    UPDATE SPFLI FROM WA.
    MOVE 'LH' TO SPFLI-CARRID.
    MOVE '0017' TO SPFLI-CONNID.
    MOVE 'BERLIN' TO SPFLI-CITYFROM.
    UPDATE SPFLI.
    CARRID and CONNID are the primary key fields of table SPFLI. All fields of those lines where the primary key fields are "AA" and "0064", or "LH" and "0017", are replaced by the values in the corresponding fields of the work area WA or the table work area SPFLI.
    Regards,
    raj.

  • How to update single field

    Hi frnds,
                        How to update single field data in Z table .
                       I am taking data from screen, when i press update button  the data will store specific field data in Z table.

    Dear Rakhi,
    You can use the below syntax.
    Hope this would solve your problem.
      LOOP AT tpra INTO wpra.
        UPDATE zpra
        SET    pra2 = wpra-pra2
        WHERE  pra1 = wpra-pra1.
      ENDLOOP.
    In WHERE give KEY VALUES
    In SET give the particular value that has to be changed.
    Regards,
    Pintoo
    Edited by: pintoo2805 on May 18, 2010 7:10 AM

  • How do I calculate days from two different dates?

    Hi all,
    How do I calculate days from two different dates?
    my requirement is to pass the number of days to target field from two dates.
    Current date :  14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out  udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How do I calculate days from two different dates in XI/PI?

    Hi all,
    How do I calculate days from two different dates in XI/PI?
    my requirement is to pass the number of days to target field from two dates.
    Current date : 14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How to update download SyncBO from Client

    Hi Experts,
    I am working on MAM3.0 application. I have a requirement that I need to update one field from TOP structure of MAM30_041 and I don't want this field updated in the backend. This complete requirement for the front-end client purpose only.
    I know that MAM30_041 (Measurement Point SyncBO) is the Download SyncBO, and from-front (MI Client) we can't do any modifications.
    Can any body please suggest me any solution for this, or any alternate solution. I just want to set some status to the Measurement Point.
    Your help is highly appreciable.
    Regards,
    Murthy.

    Hi,
    you can enhance the BO with an update handler. This should allow you to enter information in ITEM020 of the BO. In the Backend the coding for the updte handler does pretty much nothing. In that case the information can be stored on the client but will not be safed in the backend.
    If you have no idea how to enhance the BO - have a look into the enhancement guides of xMAM. You can find them in the INSTGUIDES folder for xMAM. There is a complete explanation how to enhance a BO.
    Hope this information helps.
    Regards,
    Oliver

  • HT4061 How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases?

    How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases? I want my music to match on both ipad and computer.

    Purchases are forever tied to the AppleID they were bought with. There is currently no way to consolidate AppleIDs. Sorry.

  • HT204053 My ipad stores my documents on iCloud. How can I find them from a different computer, as I used to do by using a memory stick on my old PC etc ?

    My ipad stores my documents in iCloud. How can I find them from a different computer?  I used to use a memory stick and could work on my documents on any computer and want to have a replacement system using documents created on my ipad - I can't use a memory stick with it.

    How do you know that they are on iCloud, the iPad can (and does) save locally. If they are on iCloud they will be accessible via the application that created them (Pages, Numbers etc) and can be reached from any computer with iCloud access by logging to iCloud.com. But you did that and stated that they are not there, so what makes you think that they are?

Maybe you are looking for

  • Sending alerts as SNMP-Traps from Solman to Nagios

    Hi! we would like to set up the alerting structure for sending the alerts as SNMP-Traps from Solman to Nagios. The questions: 1) Is such integration possible? If yes, how complexe? 2) What are the technical steps to perform in order to realize these

  • Does last delivery flag on PO increases the available budget

    HI Gurus , Suppose  a Purchase Order is created (with account assignment P - assigned to WBS element) for 100 qty (price 1 EUR each) and GR and invoice is done for 50 EURO. Now if I put the last delivery as well as final invoice flag in the PO , is t

  • SM30 date field

    Hi all, i have a ztable with 3 key fields: vendor, invoice and invoice date. When I go to SM30 I am able to change the date but it does not get updated in the table...how is that? thanx

  • Determine completed % for a query

    Oracle 9.2.0.8 SQL*Plus I have a huge table. If I delete some records from that table, because of a huge number it's not completing in 1 hr. then I kill the session. Is there any way to know how may records has been processed (deleted), before I kill

  • How to slect applications not to move with migration

    Just received my 2011 iMac.  I to transfer data from my dome iMac G4.  None of the apps. ( Print Shop, Office, Adobe photoshop elements) have upgrade so planning to purchase recent ones.  How do I tell Migration which apps to transfer using firewire.