How to compare 2 fields(This is an address field)

Hello experts,
I have 2 internal tables. lets name them ztab1 and ztab2. both of them has 3 fields which are the same namely KUNNR, CDSEQ and ZADDRESS. Now, my requirement is that when a user modifies a certain address(this is field ZADDRESS) it will also modify the same record in ztab2.
Also, What will be event for this? I am not sure about this but I think it is event 1(before saving the data in database)
P.S. examples would be highly appreciated.
Again, thanks guys and have a nice day!

Hi Viraylab,
U can use the same Modification logic for the Ztab2 also.
Loop at zitab1 into wa1.
READ TABLE zitab2 with key kunnr = wa1-kunnr.
if sy-subrc = 0
modify zitab2 from wa1.
endif.
endloop.
For updating the DB table.
UPDATE (dbtabname) FROM TABLE Ztab1.
Rgds,
Jothi.
Mark Useful answers.

Similar Messages

  • How to visit a pasted url in address field?

    This may seem a naïve question:
    Some background: I have never used Safari before. I have just installed *Safari 5.01* for Windows on my *Windows 7 PC*, and when I *+copy and paste+* an url for a particular existing web page into Safari's address field (which url loads successfully in Firefox, Opera, and IE ), I find I have no *go to* or load arrow, or other means, such as pressing enter or return, to make the browser load the pasted address. When I press Ctrl+L nothing happens, whether from the drop down menu at File: *Open Location...* or as a double keyboard command.
    And so I resorted to importing a bookmark for the address from IE, and then Safari loaded it successfully.
    Can I not just copy and paste addresses into Safari's address field and have a *+simple next step+* to load the page as I can with IE, Firefox, and Opera ?
    I tried typing part of the address in manually for Safari's autocomplete to find it, but it wouldn't find the address, which is very new, but does exist, and as I have said, loads in the other three browsers with a simple paste and enter. This *+copy and paste+* method happens to be a very convenient means of loading some sites, with only one option being available, that is the exact address, rather than possibly several options that are offered up as one types part of the address, which have to be looked at and chosen from.
    Any assistance will be appreciated.
    Thanks … allaniam

    *I confirm a similar bug exists on Safari 5.0.2 for Windows, running on a 32bit Windows XP SP3.*
    Description
    1. You copy an URL, not matter how you copy it (copy the URL text, or from another browser address bar, or from a webpage using the contextual menu "Copy Link", and etc)
    2. When you try to paste in the Safari address:
    ===(i) if you use keyboard shortcut Control-V to paste in the URL, and press ENTER - everything is normal, meaning you will leave your previous webpage and go to the new page with that URL you pasted in using Control-V
    ===(ii) if you right click on the Safari address bar, invoke the contextual menu that popups from there, and choose "Paste" from the menu,and then hit ENTER after you paste in the new URL:
    *======(A) the new URL you pasted in will disappear.*
    *======(B) the old URL before your paste, will re-appear in the address bar.*
    *======(C) the cumulative effect this operation will be the same that you reload the previous page.*
    This is the symptoms on 32bit Windows.
    *It seems in the current build of Safari for Win, "Paste" command from a menu denotes something different from its shortcut "CTRL-V".*
    This is a very weird thing.
    Just for the record, Safari 5.0.2 on Mac OSX 10.6.4 doesn't share the bug.
    *By the way, I have also surveyed the exactly version and build numbers for both the Safari versions:*
    Safari 5.0.2, build 7533.18.5: on WinXP 32bit
    Safari 5.0.2, build 6533.18.5: on Snow Leopard.

  • HT1918 My iPhone stays with my old email address , how can I delete this old email address from iPhone and iPad

    Can anyone explain how I can remove my old email address that is stored when I try and get new apps on iPhone or iPad , I recently changed my email address for Apple ID to a @gmail account from a @hotmail account.
    Thanks in advance

    Set up your new Apple ID email as your primary email and delete the old one. Go to this page or the App Store and do this

  • How to add extra lines in the address field?

    How, if possible, to add extra lines in the address field? For example, the street address might require two lines:
    Bob Smith
    Newport A  Unit 32
    Century Village
    Aventura, FL 

    Thanks, Barney! It's even easier than the solution I came to: copying and pasting into the field. 

  • How do I hide names from the Address fields?

    here's the problem.
    a group of peers is exchanging emails using the Reply All function. the catch? we need to keep our names out of the Address Fields. if I enter my friend's name into Address Book, Mail insists on showing the full name in the Address Field.
    is there any way to insert only the email address without the name of the recipient in the Address Fields? even when selected from the Address Book, or entered via a Group selection?
    BCC is not an option. De-selecting "When sending to a group, show all member addresses" is also not an option, because I would assume that recipients will not be able to Reply All.
    I tried entering an alias into the Email field in Address book: Alias <[email protected]>.
    any ideas?
    cheers,
    Gregory

    you can uncheck the option to auto complete addresses in Mail preferences->composing. then you can enter the addresses by hand without full names. the addresses will still show of course. or you can create double vcards for people in question in address book that have just email addresses but no names. then Mail will let you choose those.

  • How do I make a checkbox autopopulate address fields in Muse?

    Hi!
    I am making a website with a form where the customer need to fill in both contact information and billing information. Because it's often the same information I want to have a checkbox so the customer can click on it and it will automatically fill in the contact information so they don't have to retype identical information.
    Like this:

    You will have to write custom JavaScript to perform the task and you will need to know the exact form field names.
    For the check box you will need to code a mouse up action to run JavaScript and you will need to add the JavaScript. The code will need to check the value of the check box and then either populate the fields or clear the fields. Without more details it is hard to tell you how to program your specific form. If designing the form I would have used hierarchical field names for the invoice and shipping fields. So one would have "invoice.company", 'invoice.contact", "invoice.address", "invoice.city", "invoice.province", "invoice.postal", "invoice.phone", "invoice.fax", and "invoice.email". The Shipping fields would have a top level name of "shipping" and the same children field names.
    A possible script could then be:
    var oInvoice = this.getField("invoice"); // get top level field;
    var aInvoice = oInvoice.getArray(); // make array of child fields;
    var oShipping = this.getField("shipping");
    var aShipping = oShipping.getArray();
    console.println(this.getField(event.target.name).value);
    if(this.getField(event.target.name).value == "Yes") {
    for(i in aInvoice) {
    // copy children from invoice to shipping fields;
    aShipping[i].value = aInvoice[i].valueAsString;
    oShipping.readonly = true; // make shipping readonly;
    } else {
    oShipping.readonly = false; // clear readonly
    this.resetForm([oShipping.name]) // reset array of shipping fields;

  • How to modify the "To:" auto fill address field

    I want to change and/or delete address's that auto fill in the "To:" field of mail.
    Is this possable?

    The Mail.app stores all message recipients in a list of Previous Recipients and the address autofill feature pulls from the Address Book and the list of Previous Recipients.
    At the Mail.app menu bar, go to Window and select Previous Recipients.
    A previous recipient already entered in the Address Book will have a vCard icon to the left of the name or email address. You can remove a previous recipient from the list or add a previous recipient to the Address Book that is not already entered.

  • 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

  • Validate 2 E-mail address fields in insert record form

    Hello,
    I have used the Insert Record Form Wizard to create a form, including using the Validate Form Server Behavior to validate many fields.
    I can't figure out how to compare & validate 2 E-mail address fields.
    After the form was created I opened the existing Validate Form Server Behavior - Advanced tab and built the condition {sub_email2} != {sub_email} but this had no affect on submitting the form.
    The other thing I tried was creating a new Compare Transaction Field behavior with the same condition {sub_email2} != {sub_email}, this also seemed to have no affect.
    I am just a beginner, so I admit to not really knowing what I'm doing, for me ADDT has been a great aid.
    The other thing I noticed, when I tried both the items above, besides not affecting being able to submit the form with different E-mail addresses. The red asterisks indicating a required field, would disappear.
    Here is the form http://www.oescahealthregistry.org/forms/pedigree_submission.php this version of the form does NOT include either of my attempts to validate the E-mail fields.
    Thanks in advance for your help.
    Dennis

    Hi,
    A compare statement should work fine. As an example I made small form that inserts name and email (2 fields) using Insert record wizard.
    Name field is required, email field is required and checks that its a valid email structure ([email protected]). I then finish the wizard.
    <input type="text" name="email" id="email" value="<?php echo KT_escapeAttribute($row_rsemail['email']); ?>" size="32" />
    <?php echo $tNGs->displayFieldHint("email");?> <?php echo $tNGs->displayFieldError("email", "email"); ?>
    I then add the extra field to the form that the 2nd email will be entered into, this one I called email2, I then copied the display hint and fielderror code from the first email and placed it behind the 2nd email box and changed the text to reflect email2. Which probably doesnt matter but I put it there anyway.
    <input name="email2" type="text" id="email2" size="32" />
    <?php echo $tNGs->displayFieldHint("email2");?> <?php echo $tNGs->displayFieldError("email2", "email2"); ?>
    Now that I have both email fields in the form, I go to the developer tools under server behavior and select compare transactions fields under form validation.
    I hit the + to add a field I then choose email for field, then == for condition, then {POST.email2} for compare to. I enter in an error message and hit ok.
    Thats it the form is ready.
    The first email field will check against email validation and the 2nd email will check against the first email.
    I hope that helps.
    Take note that the database actually only has 2 fields to enter data. Then 2nd email field is only for validation.
    Message was edited by: Albert S.

  • Address Field grayed out, not showing up

    How very odd. This morning, the *address field* in each of my 2,000 Apple Address Book contacts have disappeared. I verified that the Address Field (Preferences: Template: Address) was checked, and it's grayed out. Which means those fields should be showing up. But it doesn't, not in any of the contacts. I've repaired permissions and restarted the Mac, but still no addresses.
    Any suggestions? Am I missing some obvious feature that allows one to see the actual street address in AB? Here's a pic:
    http://www.braintoniq.com/dropbox/abglitch.jpg
    Message was edited by: braintoniq

    Karsten,
    I used imToo flv converter. The program works great.
    After converter the files, I did the following.
    1. Open iMovie
    2. Create new event
    3. Import Movies into that new event
    4. iMovie then loads the video file and "generates thumbnails"
    5. At this point everything looks good, but if you try to edit the video, there is no preview in the upper right window.
    I did some more research on this and I found others with the same problem. I think it is just a bug in the program and there is no way to fix it.
    Thanks for trying though.

  • How do I remove/delete another email address in  the window where I have to type in my Apple ID? The email address in there is not mine. Help please

    When I go to enter my Apple ID ( to update an application ) there is another email address entered which is not mine. So, even when I type in my correct ID , obviously my ID does not match this other email address. How did this 'other' email  address get there and how do I get this other email address deleted ? Than you for any advice.

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store alert. For example, the App Store could prompt you to update "Angry Birds" or "Twitter," but the hacked app could be "Final Cut Pro." Don't make any assumptions about which app you're looking for. To find it, you must carry out a systematic search with Spotlight.
    1. Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    2. In the Finder, press command-F to open a search window, or select
              File ▹ Find
    from the menu bar. In the search window, select
              Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu of search criteria, initially showing Kind. From that menu, select
              Other...
    A sheet will drop down. In that sheet, select
              Raw Query
    as the criterion, then click OK or press return.
    Now there will be a text box to the right of the menu of search criteria. That's where you enter the raw search query. Click in that box and paste the text you copied earlier by pressing command-V.
    3. The search window will now show all the App Store products that are installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    4. At least one of the apps in the Spotlight search results is not among your purchases in the App Store. Move each such item to the Trash, after quitting it if it's running. You may be prompted for your administrator password. Empty the Trash.
    5. Quit and relaunch the App Store. Test.
    If you find these instructions confusing, ask for an alternative method.

  • How do I change the e-mail address associated with Facetime on my iPhone?

    On my iPhone, under Settings -> Facetime, if I switch this to "on", I am immediately prompted to provide a password assocaited to an old e-mail address. How do I change this e-mail address?
    My app store account is correct, and I don't think this old e-mail is lurking anywhere else on my phone.
    Thanks.

    Thanks for the reply, but I did not see this space to enter a new e-mail as Facetime was set to "off" and every time I turned it on it wanted me to provide a passowrd for my old, non-existent AppleID.
    I just noticed, however, that if you just let it fail to log in with the old e-mail three times, THEN it give you a chance to provide a new e-mail via a new prompt "SIgn in with your Apple ID?", which worked.
    So lesson learned: let if fail first, then you can fix it,but not before it fails. :-/

  • Make the address field in delivery address tab as mandatory

    Hi, I want to make the address field in delivery address tab as mandatory for the combination PO type NB and accouting type F. The customer exit EXIT_SAPLMMDA_001 is not getting triggered for this. So could you please help me with this. I am trying to find a BADI.

    I assume you are not in a global working company.
    There are many countries in the world which do not have formal region codes and do not use tax jurisdiction codes.
    So making all the fields mandatory would disturb others that are not even able to fill something.
    I do not really understand the rational behind this, because the address fields are always filled, either from your plant address or (if maintained) from the storage location address, or from address of ship-to party of sales order in case of third-party POs.

  • Change default address fields

    Hello,
    Is it possible to change the address default fields (account, contact addresses)? For example, user would like to add "States" when the country "India" is selected.
    Thanks, Sab

    Sab, at this time it is not possible to change the address fields. Currently the address fields are determined by the country selection.

  • Desktop Mailer truncates address field to 30 characters w/ Lorton NCOA

    My database fields include a primary address field and a secondary address field, both with 48 characters maximum length.
    After running the Lorton NCOA process using Business Objects Desktop Mailer Extended Services, data in the secondary address field had been truncated to 30 characters.  A Lorton technician assured me that Lorton had not done it, but that it was apparently a problem with Desktop Mailer.
    No truncation appears to take place for the primary address field when data length > 30 characters.
    Can anyone confirm this behavior and present a solution?

    Harry,
    This is actually a limitation of Lorton.  This was included in the users guide for 7.90 on page 124
    "When you perform Extended Services NCOALink, DSF2, or ZIP4 processing, Lorton Data returns 48 characters for the Address Line 1 field and 30 characters for Address Line 2 u2014 except in the case of move-updated records. If your Address Line 1 field and Address Line 2 field are set up longer than 48 and 30 characters, respectively, data in those fields will be truncated, and you may lose data. Move-updated records receive a total of 48 characters split between Address Line 1 and 2."
    We are working with Lorton hopefully change this in the future.
    Thanks,
    Kendra

Maybe you are looking for

  • Steps to load data from R/3 to BW

    Hi all, 1. I am loading data fromDS :  2LIS_12_VCITM to cube. Can somebody explain what steps we need to follow in R/3 and then in BW. 2. Also i have a Z - Extract Structure  for 2lis_13_vditm,which has additional fields, how or where should i link 2

  • T420 battery goes straight to critical.

    My battery would randomly go to critical all of a sudden. It goes from 70% then to 5% after an hour of standby. I doubt an hour of standby will drain 65% battery. A couple seconds after resuming from standby, lenovo and windows battery meters shows t

  • IPhone 5s, every other line in the screen is black

    Hello. I have an iPhone 5s, and without any apparent reason, every other line of about the bottom 8 lines (near the home button) are black. One black and one kind of reflects what other lines are showing more to the middle of the screen. How can I fi

  • Can anyone help me with this Mount Notification Error?

    Here's the text in the error: Process:     Mount Notification [123] Path:        /Library/Application Support/Paragon NTFS for Mac OS X/Mount Notification.app/Contents/MacOS/Mount Notification Identifier:  com.yourcompany.Mount-Notification Version: 

  • SelectOneListBox works with Customer Converter Problem

    I am keeping getting validation error when I try to convert SelectOneListBox String value to Name class which contains FirstName and LastName components. here is what I did: 1. SelectOneList has two String items , I assigned the SelectOneList value t