Problem while updating Tel no and Fax no using BAPI_BUPA_ADDRESS_CHANGE

Hi,
Im trying to update the Telephone number and Fax number using a BAPI but unable to update in Tcode BP .can you please tell teh solution.my code is below.
data : i_tel like BAPIADTEL occurs 0 with header line,
       i_fax like BAPIADFAX occurs 0 with header line,
       i_telx like BAPIADTELX occurs 0 with header line,
       i_faxx like BAPIADFAXX occurs 0 with header line.
i_tel-telephone = '800-266-3377'.
append i_tel.
i_fax-fax = '505-796-9601'.
append i_fax.
i_telx-telephone = 'X'.
append i_telx.
i_faxx-fax = 'X'.
append i_faxx.
To add Telephone number and FAX number
CALL FUNCTION 'BAPI_BUPA_ADDRESS_CHANGE'
  EXPORTING
    businesspartner              = '0007000006'
TABLES
   BAPIADTEL                    = i_tel[]
   BAPIADFAX                    = i_fax[]
   BAPIADTEL_X                  = i_telx[]
   BAPIADFAX_X                  = i_faxx[].
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait = 'X'.
if sy-subrc =0.
write:/5 'Successfully updated'.
endif.
Regards,
Deepthi.

DATA : i_tel LIKE bapiadtel OCCURS 0 WITH HEADER LINE,
         i_fax LIKE bapiadfax OCCURS 0 WITH HEADER LINE,
         i_telx LIKE bapiadtelx OCCURS 0 WITH HEADER LINE,
         i_faxx LIKE bapiadfaxx OCCURS 0 WITH HEADER LINE,
         i_return LIKE bapiret2 OCCURS 0 with header line.
  i_tel-telephone = '800-266-3356'.
  APPEND i_tel.
  i_fax-fax = '505-796-9656'.
  APPEND i_fax.
  i_telx-telephone = 'X'.
  i_telx-updateflag = 'I'.
  APPEND i_telx.
  i_faxx-fax = 'X'.
  i_faxx-updateflag = 'I'.
  APPEND i_faxx.
To add Telephone number and FAX number
  CALL FUNCTION 'BAPI_BUPA_ADDRESS_CHANGE'
    EXPORTING
      businesspartner = '0007000006'
    TABLES
      bapiadtel       = i_tel[]
      bapiadfax       = i_fax[]
      bapiadtel_x     = i_telx[]
      bapiadfax_x     = i_faxx[]
      return          = i_return.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait = 'X'.
  IF sy-subrc = 0.
    WRITE:/5 'Successfully updated'.
  ENDIF.
data:v_msg(255) type c.
loop at i_return.
CALL FUNCTION 'FORMAT_MESSAGE'
  EXPORTING
    ID              = i_return-id
    LANG            = 'EN'
    NO              = i_return-number
    V1              = i_return-message
  IMPORTING
    MSG             = v_msg
  EXCEPTIONS
    NOT_FOUND       = 1
    OTHERS          = 2 .
write:/5 v_msg.
endloop.

Similar Messages

  • Problem while updating the Support Package 17 on my SAP WAS SP9

    Hi,
    I'm facing problem while updating the Support Package 17 on my SAP WAS SP9
    ERROR 2006-10-13 10:23:22
    FSL-06002  Error 2 (The system cannot find the file specified.
    ) in execution of a 'CreateProcess' function, line (284), with parameter (java.exe ...).
    Please help me in this regard.....
    Thanks in advance...
    Satya

    Hello gentlemen, I am also having problem with the following running on 64 bit Windows and SQL2005/64 bit. I am erroring in Step 8 'Updating JDBC' driver. I am attempting to update from SP9 to SP18. The WEBAS Jave installed went flawless but I seem to be stuck here. Any help is appreciated...
    ERROR 2006-11-22 10:13:57
    FSL-06002  Error 2 (The system cannot find the file specified.
    ) in execution of a 'CreateProcess' function, line (284), with parameter (java.exe ...).

  • Facing problem while updating IInfotype 0009-bank details through workflow

    Dear SAP Gurus,
    I am facing a problem while updating Infotype 0009 through workflow which is integrdated with portal.
    Scenario:
    Employee logins to portal and changes his/her bank details like payee name, bank key, account number, postal code and city of bank, bank name etc.
    Once he submits the request, my workflow is triggered through SAP_WAPI_START_WORKFLOW which is called from portal and goes through various approval steps and finally reaches the step where the container elements are finally to be updated in IT0009.
    Field bank account number (BANKN), which is part of table PA0009 are easily updates using the FM HR_INFOTYPE_OPERATION by first enqueuing the employee number and after the update dequeuing it.
    However fields like payee name (EMFTX) bank key (BANKL) , bank name(BANKA -structure BNKA_BF-this is automatically fetched based on bank key) and postal code(BKPLZ) and city of bank (BKORT) are from structure Q0009 (on the infotype 9 screen level) and from table BNKA (at table level). The problem is that these are not getting updated by HR_INFOTYPE_OPERATION as they are not the part of infotype 9.
    Can anyone help me to understand how can these fields be updated ?
    Quick help will be highly appreciated.

    Hi Spantaleoni,
    Thanks for your quick response.
    Well actually the table BNKA is a master table for the bank information and we must not create entries in it or update the table programatically,  rather we should  use the available data in it.
    Now say employee currently has bank as A and he wants to change it as B which is available in BNKA then he will just select the bank B from search help provided in portal which again comes from table BNKA only. Employee then submits the info and it must get updated in the infotype PA0009.
    As far as think, this should be done on screen level of infotype PA0009 as I have already mentioned that certain fields are coming from structure Q0009 and they cannot be updated on PA0009 table level.
    I am just looking for way through which I can update the screen of infotype PA0009 of employee through workflow.
    Regards

  • There was a problem while updating ios 7.1 now my ipad isnt starting up just shows a symbol of itunes with a arrow towards it with its USB cable

    there was a problem while updating ios 7.1 now my ipad isnt starting up just shows a symbol of itunes with a arrow towards it with its USB cable

    YOU ARE IN RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.

  • I am importing videos from my canon sl1 to my macbook when i use iphoto is says "iPhoto cannot import your photos because there was a problem downloading an image." and when i use image capture it says "An error occured while importing. The item 'MVI_1040

    I am importing videos from my canon sl1 to my macbook air when i use iphoto is says "iPhoto cannot import your photos because there was a problem downloading an image." and when i use image capture it says "An error occured while importing. The item ‘MVI_1040'' Thanks in advance

    Can you access the images on the phone with Image Capture (in the Applications Folder) ?

  • HT201210 nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and somet

    nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and sometime just hear from other user that it 's difficult to use then force they change phone that use to handle to another.

    It is a feature to discourage the theft of iPhones by making them useless if resold. It's not going anywhere. It's simple: just don't buy a phone until you make sure that the activation lock has been disabled.

  • Problem with update Photoshop, Illustrator and Indesign CS6

    Hi all. I have problem with update Photoshop, Illustrator and Indesign CS6 on OSx 10.8.4. Application are OK but update (bug fixies) not working. Update failed. (U44M1P7)

    Hi El Gondo,
    The following might explain and help solve the problem...
    U44M1P7 - Updates :
    http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-upda tes-ccm.html
    U44M1P7, U44M2P7 - Creative Cloud Help / Can't apply Extension Manager update 6.0.2 | Mac OS :
    http://helpx.adobe.com/creative-suite/kb/unable-apply-extension-manage r-update.html
    Thanks!
    Ankit

  • Get plant information (tel number and fax number) from SPRO

    I ahve a quotation form which I am pulling the footer  with the plant adress and phone number and fax number . Right now my form is coded to pull the address and numbers from T001w and Kna1 table for tel and fax numbers . Now they want the telephone numbers to be pulled from the SPRO  Plant indo, i.e in SPRO Enterprise strucrturew--definition logistic generaldefine copy delete plant ---address(tel number and fax number).
    I would like to get the numbers from here , how do I get the plant information from there instead of getting it from the plant and customer tables.
    Thanks
    Aarav

    try table TVST  get the ADRNR hit ADRC or ADR1 to ADR6 tables

  • Problem while loading windows 7 and dual boot

    good evening am getting problems while installing windows 7 and fedora,is this laptop HP 15-R262TU supports only windows 8.1 and it is suppoting dual boot or not? please reply soon
    This question was solved.
    View Solution.

    Hi 
        Here is the link required for all Windows 7 Drivers for your machine ,  Once you have installed Windows 7 goto the link and download all drivers that are not installed via Device manager .  If you make a list of drivers not installed and then refer to the drivers page and take all the drivers you require .
     http://support.hp.com/us-en/drivers/selfservice/HP-15-Notebook-PC-series/7486447/model/7812714#Z7_30...
                                           Checkurtech
    ****Click the White Kudos star to say thanks****
    ****Please mark Accept As Solution if it solves your problem****

  • Problem while updating Delivery date uisng BAPI_PO_CHANGE

    Hi friends,
    Iam facing a problem while updating delivery date of a purchase order using the bapi BAPI_PO_CHANGE
    After the bapi is getting triggered iam geting sy-subrc = 0
    But in the return parameters iam getting 3 error messages so iam unable to update the  delivery date..
    Error meesage which iam getting are
    a) Purchase order still contains faulty items
    b) Enter Tax Code
    c) Instance 1000001 of object type PurchaseOrder could not be changed.
    How can i correct it..
    Please find my code below
    LOOP AT it_eket INTO wa_eket.
        wa_poschedule-po_item = wa_eket-ebelp.
        wa_poschedule-sched_line = wa_eket-etenr.
        wa_poschedule-delivery_date = wa_eket-eindt.
        APPEND wa_poschedule TO poschedule.
        wa_poschedulex-po_item = wa_eket-ebelp.
        wa_poschedulex-sched_line = wa_eket-etenr.
        wa_poschedulex-po_itemX = 'X'.
        wa_poschedulex-sched_lineX = 'X'.
        wa_poschedulex-delivery_date = 'X'.
        APPEND wa_poschedulex TO poschedulex.
    READ TABLE IT_EKPO INTO WA_EKPO WITH KEY EBELN  = WA_EKET-EBELN
                                             EBELP = WA_EKET-EBELP.
          IF SY-SUBRC = 0.
          WA_POITEM-PO_ITEM = WA_EKPO-EBELP.
          APPEND WA_POITEM TO POITEM.
          WA_POITEMX-PO_ITEM = WA_EKPO-EBELP.
          WA_POITEMX-PO_ITEMX = 'X'.
          APPEND WA_POITEMX TO POITEMX.
         ENDIF.
        CALL FUNCTION 'BAPI_PO_CHANGE'
          EXPORTING
            purchaseorder = wa_eket-ebeln
          TABLES
            return        = t_bapiret2
            POITEM        = POITEM
            POITEMX       = POITEMX
            poschedule    = poschedule
            poschedulex   = poschedulex.
        READ TABLE t_bapiret2 INTO wa_bapiret2 WITH KEY type = 'E'.
        IF sy-subrc NE 0.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =.
          IF sy-subrc = 0.
            WRITE :  'DELIVERY DATE UPDATED'.
          ENDIF.
        ENDIF.
    how can i correct it...
    Regards
    Kumar

    Hi,
    Pass the following values...
    POACCOUNT LIKE BAPIMEPOACCOUNT...
    poaccount-TAX_CODE = ? (value)....
    That should take care of the missing field.
    Regards,
    Madan..

  • Access Privileges problem while updating ipod

    Access Privileges problem while updating ipod
    so im having troubles updating my ipod when i attempt to update it i get a message that says The ipod "Mitch" cannot be updated you do not have enough access privileges for this opperation
    some of my things are updated but not all
    any help would be greatly appreciated!
    Dell   Windows XP  

    hi j.block!
    hmmmmmmmmmmm. one other thing that might be worth a try if all else fails. i have once seen something like this turn out to be caused by a really kinky version of this issue:
    iTunes: "privileges" or "permissions" issue when importing audio CD or adding music to library
    ... where the permissions were odd on the ipod itself ... but i've only seen that happen once. it's probably worth checking on only if nothing else seems to be working for you.
    love, b

  • So I was updating my boyfriend's iPAD and while updating it stopped and gave me a typical error message but with error 4013. It worked fine before and is now stuck in the "connect to itunes mode" recovery mode. I have tried updating and no luck. I have ev

    So I was updating  iPAD and while updating it stopped and gave me a typical error message but with error 4013. It worked fine before and is now stuck in the "connect to itunes mode" recovery mode. I have tried updating and no luck. I have even tried updating in DFU mode and no luck. Anyone git any solutions

    Are you following these instructions?
    Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to shut down.
    While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    Continue holding the Home button until you see the Connect to iTunes screen.
    iTunes will alert you that it has detected a device in recovery mode. Click OK, and then restore the device.

  • I updated to ios8 and tried to use Health Application. In Sources I get a message that other applications will show up on the list as they request permission to update your data. How does it happen? No apps are listed on my Sources section

    I updated to ios8 and tried to use Health Application. In Sources I get a message that other applications will show up on the list as they request permission to update your data. How does it happen? No apps are listed on my Sources section

    I have an answer to my question. There is a bug in IOS8 that prevents third party applications to talk to the Health Application. Apple is trying to fix it ASAP

  • TS4006 I have iPhone 4 with updated latest iOS And i am using FIND IPHONE application. But everytime when ever i login in it and serch for the device its shows but never give me the location"NO LOCATION AVAILABLE".It is already connected with WIFI but no

    I have iPhone 4 with updated latest iOS And i am using FIND IPHONE application. But everytime when ever i login in it and serch for the device its shows the device  but never give me the location"NO LOCATION AVAILABLE".It is already connected with WIFI and i tried all the stuffs that has been written in the manual. Plese give me the Proper suggetion about this issue..!!

    If your router is not identified in a national database (don't recall who maintains it or where it is) then there is no location associated with it.  Hence your device cannot be located.  I suggest you try your test at some public wifi spot, like a bookstore or coffee shop.  These places usually have a location associated with their wifi router.

  • Problem while update and insert data in table

    Hi All,
    I have problem while save line data....
    I have an advance table.I take remove and duplicate line in message choice of advance table action layout.
    Also there is one temp table to save Po number data which is populated in advance table according to PO Number search.And In Temp table record number is column which use
    to insert and update data in temp table which mention in procedure
    Problem is that : When i Searched PO Number and duplicate line and save that record it insert a new line always and it insert record according to duplicate line no .It not update previous line,insert new line always according to duplicate line no.
    Please tell me what is solution?
    Thanks,
    Neil

    Hi,
    I am not cleared with your requirement.
    If possible send me the screenshots for the same.
    --Sushant
    [email protected]

Maybe you are looking for

  • How to use the Table Valueset in another Table Valuset

    Hi Friends , I have one requirement let me explain you the scenario. in one segment of the Keyflex filed i need to get the all the grades of the business. which i did using the table valueset. now in another segment of the kff, i need to get all the

  • I need to free up some disk space?

    I'm still not used to these apples so I don't know what to do. I bought a mac computer game for my child and it says "Requires at least 1 MB of free disk space" Free up some space on your local disk and then relaunch. I don't know where to go to see

  • MacBook suddenly won't detect my TV anymore - already tried anything

    Hello everyone, I hope I can find help here... I couldn't find any in Apple Stores... _+*If you don't want to read the long text, there are some cliff notes below*+_ I have a problem with my 42" Toshiba LCD TV. Here's my setup: MacBook 13" Unibody wi

  • Sending a File Using DataGram Sockets

    I writting one java program that can be used to transfer a file from one computer to another computer. I wrote using Sockets. But i want to do that using DatagramSockets. Can we send a file using DataGramSockets? Please reply soon.

  • Change from 0ANALYSIS_PATTERN to0ADHOC

    Hi experts, we are on Netweaver 2004s. my company is not happy with the 0ANALYSIS_PATTERN template for ad hoc analysis. We are much more keen on the old template 0ADHOC. I made changes in SPRO (RSCUSTV27) and we restarted the J2EE engine. Now that I