Add Tax IDs to BP on SAVE (new)

I'm trying with the following code to add a Tax ID to the BP while I'm saving it (New).
But I don't get the BP ID.
BUPA_NUMBERS_GET doesn't return BP ID.
'BBP_BUPA_GET_NUMBER' doesn't return BP ID.
How can I solve this issue?
Best regards.
METHOD if_ex_bupa_tax_update~change_before_update.
  break josechau.
  DATA: lv_partner    TYPE  bu_partner,
        lv_tax_type   TYPE  bus_tax-tax_type,
        lv_tax_number TYPE  bus_tax-tax_number,
        lv_guid       TYPE  bu_partner_guid.
  LOOP AT it_changed_instances INTO lv_guid.
  ENDLOOP.
  CALL FUNCTION 'BUPA_NUMBERS_GET'
   EXPORTING
     iv_partner_guid           = lv_guid
   IMPORTING
     ev_partner                = lv_partner
*     EV_PARTNER_GUID           =
*     EV_PARTNER_EXTERNAL       =
*     ES_BUT000                 =
*   TABLES
*     ET_RETURN                 =
*     ET_PARTNER                =
  CALL FUNCTION 'BBP_BUPA_GET_NUMBER'
   EXPORTING
*   PARTNER                 =
     partner_guid            = lv_guid
*   ADDRNUM                 =
   IMPORTING
     ev_partner              = lv_partner
*   EV_PARTNER_GUID         =
*   EV_GUID_32              =
   EXCEPTIONS
     partner_not_valid       = 1
     guid_not_valid          = 2
     no_input                = 3
     OTHERS                  = 4
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  MOVE lv_partner TO lv_tax_number.
  MOVE 'CO1' TO lv_tax_type.
  CALL FUNCTION 'BUPA_TAX_ADD'
    EXPORTING
      iv_partner                  = lv_partner
      iv_tax_type                 = lv_tax_type
      iv_tax_number               = lv_tax_number
* TABLES
*   CT_RETURN                   =
EXCEPTIONS
   record_already_exists       = 1
   invalid_data                = 2
   foreign_lock                = 3
   OTHERS                      = 4
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  CALL FUNCTION 'BUPA_TAX_SAVE_COMMIT'.
ENDMETHOD.

Hi,
Please try using the function module BUPA_GENERAL_CALLBACK - this will surely return data in the structures ET_BUT000_NEW and ET_BUT000_OLD.
You could get the partner number from etiher of these structures.
Also, you could use module BUPA_TAX_CALLBACK, which will actually return the tax data that you have changed, and partner number is a field of the tax data structure.
And one important point - if you want the save of BP to trigger the tax add, you would need to write this particualr code(what you have included in the question) in the implementation of BADI BUPA_GENERAL_UPDATE. Currently, you have written it in the BADI BUPA_TAX_UPDATE, which will get called for changes to TAX number, not for changes to general business partner.
Regards,
Rishu.
Edited by: Rishu Thukral on Apr 16, 2009 8:05 PM

Similar Messages

  • I can't save *new* documents back to SharePoint

    I can’t save *new* documents back to SharePoint. We have a SharePoint 2013 development environment, running on Windows Server 2012 and a Windows 7 Client Computer with Office 2010.
    Every time I click „new document“, SharePoint opens the corresponding template file in the client application (Word, Excel,…) So far, so good. When i select „Save“, the client application brings up a local save path on the client computer, not the SharePoint
    document library.
    I did some research and tried many approaches, but none of them worked.
    I installed the Desktop Experience Feature on the Windows Server 2012, added the server address to trusted sites, gave the user farm-administrator rights (to make sure it is no security problem) and switched the authentication mode for the web application.
    Does anyone know this problem and found a solution?

    Hi,
    For troubleshooting your issue, you can try to add a registry value to your local registry (on a machine with Office Applications installed through which you are accessing SharePoint sites):
    Click Start, type regedit in the Start Search box, and then press ENTER.
    Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters
    On the Edit menu, point to New, and then click Multi-String Value.
    Type AuthForwardServerList, and then press ENTER.
    On the Edit menu, click Modify.
    In the Value data box, type the URL of the server that hosts the Web share, and then click OK.
    Note You can also type a list of URLs in the Value data box. For more information, see the "Sample URL list" section in this article.
    Exit Registry Editor.
    Reference:
    http://sharepoint-for-real.blogspot.com/2013/07/sharepoint-2013-new-file-cannot-be.html
    https://isharepoint.wordpress.com/2011/05/26/can-not-save-document-back-into-document-library/
    https://mohamedelkassas.wordpress.com/2014/01/31/can-not-save-document-back-into-document-library-in-sharepoint-2010/
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Fm to add tax group to business partner

    Hi.
    I have Z function to create new business partner. however I have problem with one segment of data. I can't find function or bapi to add tax group classification to bp. I'm refering to data where you define tax classification data: country + tax type + tax group and not to tax numbers which can be maintained via BAPI_BUPA_TAX_ADD.

    Hi Robert,
    Please provide the FM which is used for above requirement.
    Regards,
    Vignesh

  • Why can't I save new memos in MemoPad?

    I recently switched from a Treo 755p to Blackberry Tour 9630 when the Treo crashed. I was unable to transfer contacts, etc from my Treo since it was dead, however I synced my Tour with BB Desktop Manager and got my Outlook contacts back. My old Treo memo categories also got transferred although I am not sure how, since they are not in Outlook. When I try to add a new memo they do not show up in the list even though I clicked save. I can add new categories but still cannot create (save) new memos. I can create new Tasks. Any idea why new memos will not save?
    Solved!
    Go to Solution.

    Open your Memo app on the BlackBerry.
    Press the Menu key > Filters and UNcheck any that might be checked.
    Now, do you see the ones you saved and were not showing up in the list?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Runtime Tax data fetching while Accounts Save

    Hi,
    How to get the Role, Tax IDs and Tax Classification details at the runtime of the Accounts create or save from web gui within the event ON_SAVE of the BP_HEAD BSP component.
    Thanks for your response.
    Aravind
    Edited by: Aravindakshan M R on Feb 25, 2009 12:57 PM

    Hi,
    Consider that your tax category screen has 5 lines to maintain 5 tax categories after which you have to click on page down, so while recording input your 1st tax code in the 5th line item of the screen and press enter -> you would see that it automatically moves to the 1st line.
    By doing this all your entries in your screen would go into the last line item & since we have also recorded 'ENTER' in our recording it will automatically move up.
    This will surely solve your problem.
    Regards,
    Amit

  • How does APEX create and save new files. What extension does it save in?

    Hi can someone help me with this question?
    How does APEX create and save new files. What extension does it save in?
    Cheers!
    VJ

    It's really too bad we can't see VJ's face when the concept sinks in. This is one of my favorite moments when teaching APEX classes. Most people love it, some people don't. If nothing else it really proves the power and performance of the Oracle database. Each page view can generate 40+ queries, yet on the average system this takes less than .04 seconds.
    Keep in mind there are no undocumented features or "Oracle Internals" that the APEX team uses to achieve this performance, just sound database design. With every feature they add they evaluate how it will be used and design the tables and indexes to most efficiently answer the query. Sometimes this means going against "purist" normalized principals.

  • Can Not save new phone numbers

    Can Not save new phone numbers.
    I have :
    net_rim_bb_phone_app(66) corrupt message on the screen.
    Please advice.

    Hi, thanks for replying. However after doing this process I now get the error messages when I try to save. When I try to save to the SIM it says "SIM full cannot add contact" and when I try to save to the phone it says "error cannot save contact changes". I don't believe the SIM to be full as I only have 15 numbers on the SIM. Any other advice?

  • How to save new contact from phone app to ms outlook work account instead of local contact

    Hi,
    I need some help please.
    I usually save new numbers that call me from the phone app, I just hit "add to contacts".
    I keep all of my contacts on my work microsoft outlook account so they are synced with my work, I have absolutely no local contacts on the phone.
    My Z10 saves these contacts directly as local contacts instead of saving them on my work account.
    However, if I go to the phonebook app, and select add new contact from there, I have the option to select whether it's a personal or a work contact. If I select work contact, it will save it to my work outlook and everything's fine, however when saving from the phone app I don't have this option.
    I don't understand what I'm doing, wrong, please help on how to save to work account directly from phone app.
    Thank you
    Solved!
    Go to Solution.

    Hey bllizzard,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    What version of BlackBerry 10 software are you currently using?  Go to Settings>About to find this information.
    When in the phone application and press and hold a number, choose add to contacts.  Then click Add contact at the bottom, at the very top you'll have a choice to choose Personal or Work.  Choose Work if you want the contact saved to your work email account.
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • How do I by default save new documents in a particular folder?

    In OS10.3.9, how do I by default save new documents in a particular folder? I have created a new folder called new docs which I have put in the dock, and would like to save all new documents in that folder...
    Thanks,
    Michael

    ibisbill:
    I think you need to navigate to the Folder when you want to save. If you are saving documents created in Word, after a while Word may learn the location and go there.
    Incidentally, the folder in the Dock was created and resides elsewhere. That is where you will need to navigate to when you save.
    Good luck.
    cornelius

  • I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    Ntenich,
    If your table has a Header and your Legend text is in the header, it will be picked up by the table.
    Jerry

  • Recently updated Mac OS 10.5.8 to 10.6.8 and and can not open exisiting Illustrator5 files or save new files.

    I recently updated my MacBook Pro OS from 10.5.8 to 10.6.8 and can not open existing Illustrator5 files or save new files can someone help?

    I think you have a corrupted upgrade. Do you have a backup of your old system?
    Here's what you should do for now:
    Reinstall OS X without erasing the drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • Cannot save as or save new documents in Office:mac

    Cannot save as or save new documents in Office:mac.

    Your profile says 10.7.3 which is Lion. 10.6 is Snow Leopard.
    If that's the case and you did a security update via software update last week that also caused problems for many. Apple have issued an update to that as well, version 1.1:
    Security Update 2012-001 (Snow Leopard)

  • How to add a location of face in the new Photo App?

    How to add a location of face in the new Photo App?

    You have to open a photo, right klick it and click "add a new face" or something like that.

  • Add Tax-Code in Shopping Cart... when we create PO

    Hi,
    Area: SRM 5.0, Classic Scenario.
    Friends, I am asked to add Tax-Code in the Shopping cart to be used in the PO creation in R/3.
    Was asked to use a BADI. We dont have tax created in the Shopping carts. The Tax ix not calculated here, so the Tax-Code would be IO. And even I am allowed to Hardcode this tax-code 'IO' and send it while a PO is created.
    1.Now, which BADI can i use to add the tax-code to shopping cart ?
    I have seen that, in the BBP_GET_SC_DETAILS function module the E_TAX is completely empty while lt_items has all the line items.
    2. Now, do I have to Pass all the line items to this E_TAX from lt_item including tax_code as some hardcode value ?
    All Helpfull Answers Will be Rewarded.
    Thanks & Regards,
    Ashwin.

    Hi Ashwin,
    Try with the following code.
    data : ls_po_acc TYPE bbps_badi_po_account_1,
             ls_po_accx TYPE bbps_badi_po_accountx_1.
    LOOP AT cs_po1_document-it_poaccount INTO ls_po_acc.
           ls_po_acc-tax_code = 'IO'.
           MODIFY cs_po1_document-it_poaccount FROM ls_po_acc TRANSPORTING tax_code..
    ENDLOOP.
    LOOP AT cs_po1_document-it_poaccountX INTO ls_po_accX.
           ls_po_acc-tax_code = 'X'.
           MODIFY cs_po1_document-it_poaccountX FROM ls_po_accX TRANSPORTING tax_code..
    ENDLOOP.
    Reward points if useful.
    Regards,
    Kayal
    Note : The code above has to be written in method FILL_PO_INTERFACE1 of Badi BBP_CREATE_BE_PO_NEW
    Edited by: Kayal Priyadarshini on Mar 11, 2008 4:33 AM

  • The latest Pages won't save new docs and won't open some old ones. What do I do?

    The latest Pages won't save new docs and won't open some old ones. What do I do?

    Then you have two version of Pages on your Mac.
    Pages 5.x is in your Applications folder.
    Pages '08/'09 is in your Applications/iWork folder.
    Peter

Maybe you are looking for

  • What is the exact way of doing BDC ?????

    I know when the input is minimal we have to use CALL TRANSACTION method in BDC and when we have batch of input files we have to use BDC Recording. My question is what is the exact way of doing BDC. Could any one please tell me the exact way of doing

  • Sales Order ATP Check in SAP B1

    Is there a way to disable the ATP Check upon saving of a Sales Order using the DI API or any other built-in configuration settings?

  • Private feedback to Adobe

    I notice it is very difficult to find a way to give feedback to Adobe on products, or offer helpful suggestions, in a confidential manner. Some software publishers put a "Feedback" link under the Help tab of the products they sell.  I find this a gre

  • Installation failed, please try again

    I am trying to reinstall os x.4 for a 2 month old ibook. It goes through disk 1 and then disk 2 and then informs me that installation failed, please try again. I've tried multiple times, no use. There is no third party ram or anything connected to th

  • Syncing will change more than 25% of contacts, to add "display type"?

    Hi all. Suddenly I'm getting this warning on a phone I've synced numerous times before.  The warning shows that 145 contacts will change on the computer, and the only change is that "Display type" will change from <empty> to "Person". I suppose this