BADI MRM_WT_SPLIT_UPDATE fail

Hi guys.
I tryed use this BADI but it not work... I saw the notes:
http://service.sap.com/sap/support/notes/1286713
and
http://service.sap.com/sap/support/notes/1156325
but they cant help me too.
My problem is: I need to change the first "tax code" like below:
for that, I insert the code in BADI MRM_WT_SPLIT_UPDATE.
  DATA: ls_rbws TYPE LINE OF mrm_tab_rbws.
te_rbvs[] = i_rbkpv-h_rbvs[].
te_rbws[] = i_rbkpv-h_rbws[].
LOOP AT te_rbws INTO ls_rbws.
ls_rbws-wt_withcd = 'I2'.
MODIFY te_rbws FROM ls_rbws.
EXIT. "change only first item
ENDLOOP.
after pass this BADI, the tax not change.
Please.. anyone can Help me?

I find one solution, it's not the best, but save me.
I put a ENHANCEMENT point in FM FI_WT_READ_LFBW and append the table  x_lfbw with my tax.
if anyone give a better soluction, please, put here
below how i put my code:
IF sy-tcode = 'MIRO' OR
      sy-tcode = 'MR8M' OR
      sy-tcode = 'MIR7'. 
*Get memory fields
ASSIGN: ('(SAPLMR1M)DRSEG-EBELN')    TO <fs_d>,
              ('(SAPLMR1M)DRSEG-EBELN')  TO <fs_i>.
[...put your code...]
LOOP AT t_imposto INTO v_imposto.
           t_lfbw2-lifnr = i_lifnr.
           t_lfbw2-bukrs = i_bukrs.
           t_lfbw2-witht = v_imposto-witht.
           t_lfbw2-wt_subjct = 'X'.
           t_lfbw2-wt_withcd = v_imposto-wt_withcd.
           APPEND x_lfbw2. CLEAR x_lfbw2.
ENDLOOP.
ENDIF

Similar Messages

  • Incorrect vendor line splitting using BADI MRM_WT_SPLIT_UPDATE. BADI.

    Hi, gurus !
    Custom MIRO vendor line item splitting implemented throw BADI MRM_WT_SPLIT_UPDATE. BADI is active and called.
    At transaction MIRO we try to imitate invoice posting. I see, that at badi method te_rbvs table is updated correctly. At invoice posting imitation screen incorrect amounts for vendor splitted lines appear.
    At badi call start
    I_RBKPV-H_RBVS
    1               0000     000001     963.99
    TE_RBVS[]
    Initial
    TI_DRSEG
    1     ST          8000     607.02
    2     ST          8000     172.64
    3     ST          8000     49.18
    4     ST          8000     16.02
    5     ST          8000     119.13
    At badi call end
    I_RBKPV-H_RBVS
    1               0000     000001     963.99
    TE_RBVS[]
    1               0000     000001     607.02
    2               0000     000007     172.64
    3               0000     000008     49.18
    4               0000     000009     16.02
    5               0000     000010     119.13
    At imitation screen items appear as follows:
    1     K                    C          607,02-     LTL
    2     S     G          607,02      LTL
    3     S     G          172,64      LTL
    4     S     G          49,18      LTL
    5     S     G          16,02      LTL
    6     S     G          119,13      LTL
    7     K                    C          607,02-     LTL
    8     K                    C          607,02-     LTL
    9     K                    C          607,02-     LTL
    10     K                    C          1.464,09      LTL
    7-10 lines are incorrect.
    Thanks in advance.
    Edited by: Gabtia on Aug 7, 2009 4:00 PM

    Had anyone used BADI MRM_WT_SPLIT_UPDATE succesfuly ?

  • (Brazil) equivalent of badi MRM_WT_SPLIT_UPDATE for FB60

    Hi,
    in MM documents by means of badi MRM_WT_SPLIT_UPDATE
    we calculate ISS tax.
    is there an equivalent for FI documents (that is for FB60 transaction)?
    Best regards.

    hi,
    Transaction Code - FB60                     Enter Incoming Invoices
    Enhancement/ Business Add-in            Description
    Enhancement
    F180A001                                Balance Sheet Adjustment
    FARC0002                                Additional Checks for Archiving MM Vendor Master Data
    FEDI0001                                Function exits for EDI in FI
    RFAVIS01                                Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00                                Line item display: Checking of selection conditions
    RFKORIEX                                Automatic Correspondence
    SAPLF051                                Workflow for FI (Pre-Capture, Release for Payment)
    F050S001                                FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002                                FIDCC1: Change IDoc/do not send
    F050S003                                FIDCC2: Change IDoc/do not send
    F050S004                                FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S007                                FIDCCH Outbound: Influence on IDoc for Document Change
    F050S006                                FI Outgoing IDoc: Reset Clearing in FI Document
    F050S005                                FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
      Business Add-in
    FI_AUTHORITY_ITEM                       Extended Authorization Check for Document Display (FB03)
    FI_GET_INV_PYMT_AMT                     BAdI for Determining the Payment Amount for an Invoice
    FI_PAYREF_BADI_010                      BAdI: Payment Reference Number
    FI_TRANS_DATE_DERIVE                    Derive BKPF-WWERT from Other Document Header Data
    FBAS_CIN_MF05AFA0                       EWT - Downpayment Clearing - Tax transfer for CIN
    FBAS_CIN_LTAX1F02                       Tax interface
    BADI_DRB_CONV_BORID                     DRB: Additional Conversions of BORIDENT to AWTYP
    BADI_DRB_CONV_AWREF                     DRB: Additional AWTYPE to BORIDENT conversions
    AC_QUANTITY_GET                         Transfer of Quantities to Accounting - Customer Exit
    No.of Exits:         14
    No.of BADis:         9
    **reward points if useful**
    regards,
    n.jain

  • Hi experts, issue regarding badi MRM_WT_SPLIT_UPDATE

    Actually this badi dont have the option of multiple use,
    and it is already implemented,
    but they is no document for which purpose it is implemented.
    Now the issue is i have to use the same badi .
    How can i use this badi again
    thank you

    Hi
    Please, see SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment
    Regards
    Eduardo

  • BADI implementation is not working in background for MRRL

    Hai frnds,
    BADI: MRM_WT_SPLIT_UPDATE is used for deducting withholding tax in MRRL(Invoice verification). This BADI was implemented and working fine in foreground, but not working in background.
    After implementing the BADI, the standard method of calculating TDS(from vendor master) is over written by BADI implementation.Now standard deduction is also not workijng in background.Plz help me to solve it.
    Bala.V

    HI,
    COR6N is the Enjoy Transaction and sap does not suggest to write the BDC on these transaction as most of these transaction uses the GUI elements foe better display and which cannot be recorded while processing the BDC in back ground.
    Check for the Normal transaction and write the BDC for it.
    Or
    Pass X to Rcommit flag in the CTU_PARAMS option and check.

  • Hard Drive Failed

    My iMac's hard drive just failed and the computer is not even 2 years old yet. I don't have apple care. Does anyone know if apple can help with this issue? Or will I just have to pay to replace the hard drive?

    This might help: http://www.apple.com/support/imac-harddrive/. I had mine replaced three months ago. Don't know if it was under this or the AppleCare extended. If yours doesn't qualify, too bad you failed to get the best insurance policy available for desktops.

  • Very sick Macbook Pro OS v 10.6.8 - initially running slow so I tried backing up to Time Machine and reloading the OS but the install disk failed. I was able to recover from the Time Machine back up but many applications are not working properly. Help!

    I am also no longer able to back up using Time Machine (backups fail), can't access iPhoto (which was a problem before attempting to reload OS) and I suspect other apps are no longer working. The computer is however running faster in Safari and Mail...any suggestions would be greatly appreciated.

    If there are any files you can transfer to  a regular storage drive do that first and then disconenct all drives.
    Hold c boot off the 10.6.8 disk and use Disk Utility to Erase with Zero option the hard drive, takes some time, let it complete as it's mapping off any bad or failing sectors.
    Then install 10.6. log in and update to 10.6.8 (important!)
    Now use Migration Assistant to transfer over just your user files, we need to rescue those first out of TimeMachine's EVIL clutches, once you've got that, transfer them to the regular storage drive and disconnect.
    Note: if your 10.6 disk fails, call Apple for a replacement, you need the machine specific version, the 10.6.3 retial doesn't have iLife and only works for machines pre 10.6.3 release, not afterwards. Factory installed 10.6.4 machines and afterwards need machine specific disks.
    Then either:
    Log into the admin/first set up user on the machine and delete the Migrated user, then reboot and use Migration assistant again to TM everything this time
    Or
    Just install all your programs again from fresh sources.
    If your TM drive is really hosed, then you'll need Data Rescue $99 to read the TM files directly and transfer the results to another regular storage drive (not the first one just in case), then pick through the debris and locate your files and transfer them to another drive.
    I don't like TimeMachine, but for newbies it's better than nothing.
    (I prefer cloning my entire OS X parititon instead, I can access it from any computer (Linux, Mac or PC) and I also can boot my Mac from it. I use Carbon Copy Cloner, but that's for later once your all better. )

  • Ps CS6 + Mac OS X Lion - Installation Fails at 2%

    OK, this is for the Adobe depolyment team.  Since you've decided to create what I can only describe as the world's most convoluted file-based installer, you've also created a vast array of conditions that will cause the installation to fail.
    The latest among these failures is the following:
    * Downloaded Ps CS6 and attempted to install.  Installer hung for about 30 minutes, although files were being written.  Never finished.
    * Force quit the AAM; then, it wouldn't open again until the computer had been restarted.  (Hint:  Give us a manifest of files that the installer writes to disk so that we can clean up after it when it fails.)
    * Upon reboot, AAM Installer will open, but fails at 2%.  The "error summary" - and it is just that, very brief - says:  "ASU has quit unexpectedly."
    Slightly more helpful information is in /private/tmp/oobelib.log.  This looks bad:
    PCDService: Failed to read value for key [Photoshop-CS6-Mac-PR] in hive [FA_Set] from cache : 769
    And so does this (but maybe it's just the grammar):
    2012-03-22 14:13:55 [885]  OOBELib: Dispatch table file doesnot exists.
    So, it would be nice to have or know:
    * A complete manifest of files that the Adobe AAM Installer creates DURING installation so that we can manually clean up after it when it fails.
    * A decent log file that references the PATHS TO THE FILES that cause problems.  Telling me that you can't read a key from a database (or "hive" as you like to call it) isn't helpful if I don't know where that database is located in the filesystem.
    * In English, you make the emphatic "tense" by conjugating the verb "to do," but not the verb of emphasis.  For example, these are correct:
    The file exists. (Notice that we conjugated the verb "to exist" for the third person singular of the present indicative.)
    The files exist.  (Third-person plural of present indicative.)
    The file does exist.  (When using the emphatic tense, we conjugate "to do," but make no adjustment to "exist.")
    The files do exist.  (Third-person plural present indicative in emphatic mood.)
    Adding the adverb "not":
    The file does not exist.
    The files do not exist.
    It is also possible to use a contraction:
    does not exist = doesn't exist
    do not exist = don't exist

    Hi,
    We are tracking this issue on other forum as well:
    http://forums.adobe.com/message/4286533#4286533
    Regards,
    Ashutosh

  • Rendering error message with "Bad TV" effect

    Hi Everyone!
    I am receiving a error message when rendering: "the effect "bad tv" failed to render: Your hardware cannot render at the requested size and depth"
    My computer has been setup to handle the demands of FCP- 2x3 GHz OCTO with 10 GB of RAM. Why is this happening? Does this mean I have to spend $1500 for a graphics card? Rather not...
    Here's more info about what I am trying to accomplish:
    (Media: DVD imported/exported with MPEG Streamclip to HDV 1080i60.
    Sequence settings: HDV 1080i60) I have my reasons for setting my edit up this way I promise!
    Editing for a commercial with some poor footage from 4th Gen. DVD. Instead of trying to make the video look the best, I've decided to go the other way and to make it look worse with Bad TV effect. I have layered 6 files of the DVD to create ghost or duplicate images both on the right and left side of the original footage to take the eye away from the crappy copied DVD footage. When I tried to render out the footage the error message comes up each time.
    THANKS!!!

    I think your confusion is based on the fact that you are interchanging the graphics card, and a video capture card. They are not the same thing.
    The graphics card or display card is the piece of hardware that drives your monitor. It's also used to enhance graphic programs like Photoshop, Motion, etc. It's also what is used to render the cool 3D graphics of games like Halo, and Call of Duty. A good one with an 8K texture limit is around $225 or so.
    A video capture card is a piece of hardware that allows you to capture full frame SD and HD (depending on the card) through an SDI or other cable. It is a way to capture the video signal as opposed to the video file (as Firewire does). These cards can also send full res signals out to a deck or broadcast monitor.
    As far as your gfx card goes, I think the 2600 is a 4K texture limit. Buying the ATI 3870 or 4870 (if your computer is compatible) will give you an 8K texture limit.
    To send full resolution HD out to a deck or monitor, you will need a capture card. Firewire is typically used to export DV DVCProHD or HDV. There are products out there that use firewire to IN/OUT other formats such as ProRes, but it's still a piece of hardware you have to buy. MOTU has a product like that. AJA has the IO that uses a firewire connection. There are others as well.
    I hope this clears up some of your confusion.
    Andy

  • Remapping Bad Sectors on a Drive

    Remapping bad sectors - back in the days of SCSI drives - you were able to do what was called a " low level format " which would in effect remap bad sectors on the drive.
    I don't see a way to do this with newer software such as disk utility etc.
    Example: a friend of mine accidentally tripped the cord to his hard drive in the middle of the drive writing to the disk. Of course this is bad. Remapping the bad sectors would insure that the drive was working properly and not use any potential bad sectors.
    Q: How can we remap bad sectors on today's ata and sata drives?
    Thanks in advance for your help - RevDave

    I don't know if it's anywhere in Apple's documentation, but it's a standard technician practice for that purpose. Here's what Dr Smoke says about it in his X Lab site:
    The process of erasing a disk, partition, or volume by writing zeros to every bit on such is called zeroing. Zeroing finds bad sectors and maps them out of service, also known as sparing. When an attempt to write zeros to bad sectors fails, the bad sectors are both marked as occupied in the directory and added to the bad blocks file of the file system. Once the bad sectors have been spared, no attempt will ever be made to read-from or write-to them again.
    Matt
    2.5GHz|3.5GB G5, 1.5GHz|512MB PB12, iSight, 4G iPod   Mac OS X (10.4.7)  

  • G5 crashes after installation of Crucial RAM

    I recently upgraded my RAM from its original 512 MB to 2G with modules from Crucial. The first pair I received did not work when installed together although they appeared to work individually in each slot separately. I sent them back to Crucial and they sent me another "build." Installed the second pair and the computer worked fine for 10 days. Now the fan surges, applications and the system crash continually making the machine very frustrating to work with. Genius at the Apple store said it's one of the following: bad RAM, failing HD or failing motherboard (I did not take the machine in to the store for examination). I've run the disk utilities from the start up disk successfully and repaired minor issues on the HD. Are my next steps to go back and test each memory module in each slot, one by one, to see what happens? If it's a problem with the RAM, why did it work fine for 10 days and then start causing problems? I hate to revert to 512 MB RAM but the crashing 2 GB is making me nuts! Are there any better suppliers of RAM than Crucial? Any insight would be appreciated.

    I finally gave up on the Crucial RAM and put the original equipment 512 MG module back in. Now that doesn't work in either slot. The machine will not even start up with the 512 MG RAM in. I took the 512 MG out, put one Crucial 1 GB module back in. Sometimes the machine starts up, sometimes it doesn't. If it does start, it's incredibly unstable and will crash retrieving mail in Mail or starting up Firefox.
    What has happened to my G5 now? Why will it not run with its original chip? Have I somehow damaged the RAM slots by putting in/taking out RAM? (I've been so careful.) I've been without my computer now for over a week and have no other ideas how to troubleshoot. Do I have to spend many $$ at the Apple store to fix this 6 year old machine? Any suggestions would be appreciated. I've used Apple computers for 20 years and have never been afraid of my machine before. Now my hands are tied and I can't use it.

  • Not able to get the values from screen field?

    hello
    i am using MIRO and there is a screen name withholding tax and from there i want to retreive the withholding tax code before saving so that i can do some validations on it but how can i retrieve the values.
    when i press f1 there it shows structure not the table and structure contains no value so please help me in this so that i can retreive that value during run time
    thank you

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • Need to get the values from "Signed" field from PDF form.

    Hi,
    This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
    Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
    Thanks & Regards
    Dinesh

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • I updated my MacBook Air and now it will not restart. It just sits on apple with spinning circle. Any suggetions on how to reboot and get to start window?

    It was in process of updating and when the mac restarted it just sits there with spinning circle. I have waited for hours to no avail. Does anyone have a suggestion on how to resolve?

    Welcome to Apple Discussions
    Holding down the power button for more than 10 Seconds will force quit your Mac. This might leave it in a state where it will not restart at all.
    I would wait at least a minute before restarting after forced shutdown.
    The update may restart or resume.
    The reason your update failed may be a bad or failing SSD.
    Message was edited by: themachead

  • Withholding taxes not updated when program run in background

    Hi,
    in a z1 report i do:
      SUBMIT z2
      VIA JOB lc_jobname
       NUMBER v_jobcount
         WITH p_fecha  = p_fecha                               
         WITH p_file   = v_file_in
         WITH p_e_file = p_efile 
         WITH p_client = p_client
         WITH p_test   = p_test  
          AND RETURN.
    within this z2 report i do:
              PERFORM mrm_invoice_create_call(saplmrm_bapi)     USING     s_rbkpv
                                                           tab_frseg[]
                                                           tab_co[]
                                                           tab_ma[]
                                                           c_rbstat_posted
                                                           space
                                                 CHANGING  invoicedocnumber
                                                           fiscalyear
                                                           return[]
                                                           f_subrc.
              IF test IS INITIAL.
                COMMIT WORK AND WAIT.
              ELSE.
                ROLLBACK WORK.
              ENDIF.
    the question is that if i run z1 report online there is no problem but if
    i run z1 report in background, withholding taxes are not calculated.
    After debugging this is what i´ve found out:
    1.- in PERFORM mrm_invoice_create_call(saplmrm_bapi) there is a call to fm FI_WT_POST IN UPDATE TASK
    2.- in FI_WT_POST table WITH_ITEM is updated
    i guess this could be due to a delay in updating the table so i´m considering doing a WAIT UP TO X SECONDS.
    why is it working in online mode but not in background mode?
    any idea?
    Best regards.

    Hi,
    in case someone is interested this is how i solved the question:
    i had badi MRM_WT_SPLIT_UPDAT implemented.
    in this badi implementation i had this code (among other checks too):
    CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7'.
    this code avoided the background job case.
    It seems that In a background job sy-tcode is empty.
    so i just needed to add this:
    CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7' OR  sy-batch = 'X'.
    and then withholding taxes reappeared again.
    (so sad, so true... one day of debugging,  sigh)
    Best regards.
    Edited by: Pablo Casamayor on Feb 2, 2012 4:53 PM

Maybe you are looking for