Equipment change.. address info

Hi Experts,
I need to update address info(fields:NAME1,STREET,DISTRICT,POST_CODE1,CITY1
COUNTRY,REGION,TAXJURCODE,HERST,TYPBZ, on the equipment.) I Tried to use the below code and it does not wrk. I haven't used this fm before and can someone please let me know how to make it wrk.
FORM update_additional_fields  USING    p_zinput_zserial
                                        p_zinput_matnr
                                        p_lt_gr_item LIKE lt_gr_item[].
  DATA: wa_gr_item TYPE bapi2017_gm_item_create.
  DATA: l_bednr TYPE ekpo-bednr.
  data: l_adrnr TYPE lfa1-adrnr.
  data: l_afnam TYPE ekpo-afnam.
  data: l_equip type BAPI_ITOB_PARMS-EQUIPMENT.
  data: ls_data_general type BAPI_ITOB.
  data: ls_data_general_x type BAPI_ITOBX.
  data: ls_DATA_SPECIFIC type BAPI_ITOB_EQ_ONLY.
  data: ls_data_specific_x type BAPI_ITOB_EQ_ONLYX.
  data: ls_data_general_exp type BAPI_ITOB.
  data: it_Return_c type  BAPIRET2.
  LOOP AT p_lt_gr_item INTO wa_gr_item.
    select single equnr from equi into l_equip
                                      where sernr = p_zinput_zserial
                                          and matnr = p_zinput_matnr.
    if sy-subrc = 0.
    SELECT SINGLE  bednr                                    " SIR 93298
                   adrnr
                   afnam                                    " SIR 93298
                   FROM ekpo
                    INTO (l_bednr, l_adrnr, l_afnam)
                    WHERE ebeln EQ wa_gr_item-po_number
                   AND   ebelp EQ wa_gr_item-po_item.
    IF sy-subrc EQ 0 AND l_adrnr IS NOT INITIAL.
     wa_objrecip-adrnr = l_adrnr.
       ls_data_General-READ_ADRNR = l_adrnr.
       ls_data_general_x-read_adrnr = 'X'.
       ls_data_specific-SERIALNO    = p_zinput_zserial.
       ls_data_specific_x-SERIALNO  = 'X'.
       ls_data_specific-MATERIAL    = p_zinput_matnr.
       ls_data_specific_x-MATERIAL = 'X'.
    ELSE.
     SELECT SINGLE adrnr INTO l_adrnr
                   FROM t001w
                   WHERE werks EQ wa_gr_item-werks.
     IF sy-subrc EQ 0.
       wa_objrecip-adrnr = l_adrnr.
     ENDIF.
    ENDIF.
CALL FUNCTION 'BAPI_EQUI_CHANGE'
  EXPORTING
    equipment               =  l_equip
    data_general            =  ls_data_general
    data_generalx           =  ls_data_general_x
    data_specific           =  ls_data_specific
    data_specificx          =  ls_data_specific_x
  DATA_FLEET              =
  DATA_FLEETX             =
  VALID_DATE              = SY-DATUM
  VALID_TIME              = SY-UZEIT
IMPORTING
   DATA_GENERAL_EXP        =  ls_data_general_exp
  DATA_SPECIFIC_EXP       =
  DATA_FLEET_EXP          =
   RETURN                  = it_return_c
commit work.
endif.
endloop.
ENDFORM.                    " update_additional_fields

Thank you ... I looked into the program RMEQUI65.. but the  structures for BAPI_EQUI_CHANGE are populated using the following statements that I cannot understand
SWC_GET_ELEMENT CONTAINER 'DataGeneral' DATAGENERAL.
SWC_GET_ELEMENT CONTAINER 'DataGeneralx' DATAGENERALX.
SWC_GET_ELEMENT CONTAINER 'DataSpecific' DATASPECIFIC.
SWC_GET_ELEMENT CONTAINER 'DataSpecificx' DATASPECIFICX.
SWC_GET_ELEMENT CONTAINER 'ValidDate' VALIDDATE.
I need to update Address info.. am I in the right path ? I'm trying to populate READ_ADDNR (Address number) which I'm hoping will take care of updating the address info. Can someone pelase share their code with BAPI_EQUI_Change that will successfully update equipment info.
Thank you

Similar Messages

  • TS2972 How can I change my HomeSharing email address info on my Apple TV?

    How can I change my HomeSharing email address info on my Apple TV? I updated to a new email address through iTunes but now Apple TV won't recognize it and won't connect. Please help! Thanks.

    This is the first time I have ever replied to a question on here but I actually know this because I just figured it out for myself.
    On the apple tv go to settings>computers
    Then turn off home sharing.
    Now go back to the main menu and open computers.
    When you do it will give the option to use the previous home sharing settings or to use a new apple id.

  • How do you change the info in auto fill?

    How do you change the info in auto fill

    Check your Address Book entry, and check Safari->Preferences->Autofill

  • ?? How do I change the info i put in during set up?

    I will be selling my macbook to someone--how do i change the info i put in during set up (such as address, name, phone number, etc.)?? I feel a lot safer to sell the macbook without those info in the computer.

    Yes, you are doing the right step.
    Insert the installer disk, and it will asked you to
    restart, and it will restart from the disk.
    After you choose the language, it will comes up with
    installer screen, but don't choose install yet, go to
    finder menu bar and select utilities > disk utilities
    and erase and choose more option and check zero all
    data.
    After you done that (it will took hours to do so,..be
    patience), then you can start to re-install the OS.
    Good Luck.
    you lost me after erase...where do i find more option and zero all data

  • HT5312 how to change security info email

    i want to buy something on iture and i have to answer my security questions that i forgot then you have to send to a answer on my email
    but my ex-email
    so could you please help ?
    i want to change secuity info email when i "Forgot your answers? "please send to
    if you want any my information please conteact me by email
    Thank you so much.
    <E-mail Edited by Host>

    We are fellow users here on these public forums, you're not talking to iTunes Support nor Apple - I've asked the hosts to remove your email addresses from your post (it's not a good idea to post personal info on any public forum).
    You won't be able to change your rescue email address until you can answer your questions, you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the HT5312 page that you posted from to update your rescue email address for potential future use

  • HT1918 How to change payment info without a computer/iTunes?

    I cannot make any purchases on my iPhone 4 (iOS 5.1.1) because my credit card changed (bank replaced it due to theft) and my iPhone is telling me, "PayPal is not supported on this device."  Apple support says you can change payment info on your iPhone through Settings > Store > AppleID.  I tried. I just keep getting the same "Your PayPal account cannot be verified" message over and over.
    My PC croaked a couple of weeks ago and I've been unable to access a computer with iTunes.  Is there any possible way to change my payment info without being on my long-lost PC?  The AppleID site doesn't let you change payment info, only your basic info and password. This is really frustrating.

    HI..
    Your credit or debit card credentials must be associated with the same country where you reside.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article
    You can contact Apple using the email form here > Apple - Support - iTunes Store - Contact Us

  • I activated my ipad, used iCloud & Find my iphone with Apple ID named: A@.... But now I've changed address of Apple ID from A@... to the new one: B@... Which Apple ID will be asked to re-activate 7.0.4 ipad - A or B?

    Hello everybody!
    I'm using ipad mini and the iOS is 7.0.4. I used an Apple ID (called: A), and I activated my ipad, used iCloud & Find my iphone with this A account. But now I've changed address of Apple ID from A@.... to the new one: B@.... (just changed email address of Apple ID, not create a new ID), and then I signed out iCloud, old Apple ID, etc... on my ipad and signed in with new id B@.... Everythings seem OK, I can sign in/out iCould, turn on/turn off Find my iphone as well with the new one (B@...)
    But I still have a question (and still confusing with it): What will happend when I restored my ipad? I mean my iOS is 7, so which Apple ID will be asked to re-activate my ipad after I restore it, old id A@.... (this one cannot be used now) or the new one B@...., please?
    Thank you very much for your helpful informations!

    If you've succesfully changed the ID for iCloud and Find my phone, it will be your new ID you use if you need to restore it.

  • Somehow my MacBookPro iCloud account has a different name and password from my other devices.  Even my date of birth is listed incorrectly.  I have tried but can't seem to change this info to match up with my other devices.  Can someone help?

    Somehow my MacBookPro iCloud account has a different name and password from my other devices.  Even my date of birth is listed incorrectly.  I have tried but can't seem to change this info to match up with my other devices.  Can someone help?

    Thanks
    I have a PC (Windows 7)
    Not sure when mobile me changed, but it was this weekend that my storage etc. lapsed (I have paid to keep storage with icloud). So i assume this has something to with it stopping.

  • ITunes denies me the ability to change the info of my media. Anyone have the same problem?

    Whenever you desire to change the information on a certain music file or movie you've saved to your apple device (In my case, an iPhone 4S), the only things that pop up on screen are the "Play (Insert name of media here)" or below that: "Get info". And even if you do click on "Get Info", you can only LOOK at the info already there and you can't change it! Before this problem arose, there used to be a long list of options you could select from for that specific media file you chose. Things like ratings, copy, delete, consolidate files, get artwork, etc. were at my fingertips, and now iTunes has refused me these luxeries! The thing I miss the most is being able to click on the "Get Info" option and actually CHANGING THE INFO of the media file instead of just looking at it with the color of the font being gray and not allowing you to change it! If I wanted to rename a video I got from the internet or give proper credit to the person who uploaded said video, I could do so in the past, but not now! Also, I cannot drag a music track or video file from my Video files of my computer's hard drive and place them into my Movies of iTunes or my iPhone 4S! It used to be so quick and easy to click and drag what you wanted into your device, But now it's just such a pain! I ask if anyone has this same problem and better yet, if anyone has a solution to this? All considerate thoughts and actions are appreciated. Thank you.

    When you click Write and open the new message editor, press Alt to show the Menu Bar, then enable all the toolbars under View/Toolbars. Plus, press F9 to show the Contacts sidebar.

  • Changing address in sales order item level

    Dear very good mng
    i want to know , i am trying to change ship to party address in sales order line item level
    but showing Gray mode only ..  i have maintained Sales document item level ( partners) Removed check box not modifiable
    And i activated Item partners check box at partner tab
    even i am not able to change address in sales order item level plz tell me
    Thanks a lot

    Hi Madhuri
    I  have checked my self.system does allow to change different ship to Party on line Item level .
    Please do the following steps .
    1. Replace/delete  the WE partner Number ( Example -1) in my case  in change mode.
    2. system will show some error message as show below while deleting or replacing WE with some other ship to Party code.
    3. Ignore the message and go ahead  . Please put the new Partner's number and double click
    address Screen will Pop up . You can Change the address .
    Hope this helps .Let me know for more clarification needed .
    Regards
    Santosh Verma

  • HT5622 i moved from Egypt to Canada, changed my info on app and still can't get some app because " item not available in the Egyptian store"

    i moved from country to another, changed my info in app ID and still can't get some apps because  item not available in the home country's store? any idea?

    It is working now. I no longer get the message about the item not being available in the US and I can access the store.

  • HT1399 When I import a CD to itunes, it splits the album in to multiple entries. I have changed the info on some but others just will not merge. Is there an easy way to do this and can I stop them from splitting in future? Thanks

    When I import a CD to itunes, it splits the album in to multiple entries. I have changed the info on some but others just will not merge. Is there an easy way to do this and can I stop them from splitting in future? Thanks

    Okay this is what fixed my problem. Some kind of error/glitch occured half-way through importing that third cd that prevented further imports from any other cd. Once I completely removed the half-imported cd album from my library I could further import cd's without any problems.

  • [svn:fx-trunk] 7784: adding xslt change so info related to Alternative shows up in the asdoc

    Revision: 7784
    Author:   [email protected]
    Date:     2009-06-12 07:46:21 -0700 (Fri, 12 Jun 2009)
    Log Message:
    adding xslt change so info related to Alternative shows up in the asdoc
    QE Notes: None.
    Doc Notes: None.
    Modified Paths:
        flex/sdk/trunk/asdoc/templates/class-parts.xslt
    Added Paths:
        flex/sdk/trunk/asdoc/templates/images/P_AlternativeMetadataIndicator_30x28_N.png

    I've checked the resolution in Photoshop just as a double-check and it shows resolution as 300 PPI. When you say "because they can be mixed" do you mean because elements and graphics with the PDF can be of varying resolutions? I hadn't thought of that, if that's what you meant. I do have some items within my pdf that might be lower resolution.
    If these show up in my Preflight Panel as an issue, does this mean they would be flagged also with the Printer? In trying to find a resolution I read several forum discussions about how Printers often run your document through a Preflight process and will send it back when there are low resolution images in the document.
    Is there some other way to be sure these images are in the InDesign document as 300 PPI so I can know they will in fact print correctly?
    PS - Peter - thanks for the super quick response! And I saw your the highlighted "Exceptional Contributor" on the right sidebar for the InDesign forum - clearly well-deserved! Congrats

  • Change the info. in control record?

    hi...
             how 2 change the information in control record?Not in ALE?
    bye.

    you can use the various options in the IDoc adapter and change the info in the control record.
    http://help.sap.com/saphelp_nw04/helpdata/en/96/791c42375d5033e10000000a155106/content.htm
    The options like;
    1. <b>Apply Control Record Values from Payload</b>
    If you set the indicator, the conversion of communication parties to the IDoc partner is only possible for systems that are not logical systems.
    If you do not set the indicator, all combinations of communication parties and services are handled as services without party.
    If the IDoc XML structure contains a control record during outbound processing on the Integration Server, it is rejected and created again by the IDoc adapter. If you want to include additional values in the control record, set the indicator and provide an appropriate mapping for the values.
    <b>Take Sender from Payload</b>
    If you want to take the sender of the message from the payload and not from the configuration information in the Integration Directory, set this indicator.
    If you do not set the indicator, the information is taken from the configuration in the Integration Directory.
    <b>Take Receiver from Payload</b>
    If you want to take the receiver of the message from the payload and not from the configuration information in the Integration Directory, set this indicator.
    If you do not set the indicator, the information is taken from the configuration in the Integration Directory.
    To know more abt the control records, ref: http://help.sap.com/saphelp_nw04/helpdata/en/13/95244269625633e10000000a155106/content.htm

  • How to print the changed address in delivery output

    Dear Gurus,
    As all we know the customer address comes in sales order from customer master table or address table and further get copied into delivery also in case of same SP and SH.
    My issue is that we do not maintain different SH for a sold to party so SP = SH and there addresses will also be same.
    In output we are getting address from ADRC table.
    Now if we change the ship to party address in delivery manually and get the output the printed address is unchanged.
    But I want to print  the changed address in delivery output without changing the masters and maintaining diiferent ship to party.
    Please help me how to determine it in print out???
    Thanks,
    Sanjay

    Hi,
    I think the logic you have written is wrongly on output.
    The logic is like this:
    Pass the document number into "VBPA" table.
    Execute.
    Fetch the address number against "WE(ship-to-party)".
    Pass the same address number into "ADRC" table to get the address.
    Here you will get the new address which is different from the maaster data.
    Regards,
    Krishna.

Maybe you are looking for

  • How do i get the music from my ipod to my new computer without earse and syncing it?

    ok so i cant seem to get my ipod to sync the music already on it to a new computer with earsing and syncing all of the music i have on my ipod.

  • Ghosting of i-beam in portrait mode?

    Hello. I want to run OSX Mountain Lion in portrait orientation--1200x1600. I do this so that I can write and edit/view a full page at a time. However, when I do this, I notice ghosting of the i-beam selector. Does anyone else have this issue? Thanks.

  • Embedded Ogg Theora

    Hi everybody, I'd like to use embedded videos under Linux (Debian 4.0). I created an Ogg Theora movie which plays fine in RealPlayer 10.0.9.809. When embedding it in a pdf using the movie15 latex-package (mimetype=video/ogg, externalplayer=false, inl

  • Flash Builder 4 == No code hinting?

    So I have no code hinting on my FB4 Premium version on my MAC OSX 10.5? Anyone else have this issue?

  • 2 master pages with table data flow

    Hi,   My form got 2 master pages. Each master page will display atleast once in the output preview. First page displays table data which may or may not flow to the second page depending on the no.of records. But, the form will show both the master pa