BAdI 'INVOICE_UPDATE' could be used in MIR7/MIR4 ??

Hello,
Our customer implemented  BAdI implementation to check qty and currency ammount in the following BAdI.
   BAdI      BAdI  INVOICE_UPDATE
   method  CHANGE_AT_SAVE
   Then I found that note 1156325 describes as folloes;
The BAdI 'INVOICE_UPDATE' was only designed to execute checks during document entry or document posting in transaction MIRO.
This seems to restrict only in transaction 'MIRO', but it seems to work in other transaction, such as MIR7, MIR4.
We should not use this BAdI and should use 'MRM_HEADER_CHECK' ?
Could anyone give me your recomendation/suggestion?
Thank you
Yuko

Try use field symbol assign to change the field value.
First make sure that the field can be assigned to a field symbol. Usually the field must be declare in global top include program.
If yes. Then
ASSIGN (l_v_field) TO <l_fs>. 
CHECK sy-subrc EQ 0.
<l_fs>  = new_value.  " change value here
l_v_field is char type. l_v_field = (PROGRAM-NAME)FIELD-NAME.
Good luck.
Edited by: Chris Xu on Dec 25, 2007 11:47 AM

Similar Messages

  • UPDATE FIELDS USING BADI INVOICE_UPDATE

    I have a requirement to change item level fields based on some condition during transaction MIRO, but the BADI INVOICE_UPDATE does not have any exporting parameters and thus not allow changing the fields. So is there any other way to do it? Appreciate your help.
    Thank you,
    Rohit
    Edited by: Julius Bussche on Mar 19, 2009 9:24 PM
    Please dont use CAPS-LOCK. It is generally interpreted as SHOUTING

    Hi,
    you could try to do something via field-symbols (but be careful):
    e.g.
    CONSTANTS: c_ydrseg(18) TYPE c VALUE '(SAPLMR1M)YDRSEG[]'.
      DATA: wa_drseg TYPE mmcr_drseg.
      CLEAR wa_drseg.
      FIELD-SYMBOLS: <fs_ydrseg> TYPE table.
      ASSIGN (c_ydrseg) TO <fs_ydrseg>.
      CLEAR lt_drseg.
      REFRESH lt_drseg.
      lt_drseg[] = <fs_ydrseg>.
      IF NOT <fs_ydrseg>[] IS INITIAL.
        LOOP AT lt_drseg INTO wa_drseg.
      * do something with EREKZ
        ENDIF.
      ENDIF.
    Best regards

  • I used my iPhone maps it works very well. Is there an application for the iPad that could be used on a boat?

    I used my iPhone maps it works very well. Is there an application for the iPad that could be used on a boat?

    Indeed :-)
    This forum is riddled with questions by users that cannot get their computer to do what they want, *despite* the fact they use a very precise and (usually) unambiguous method of telling it want they want it to do -- a programming language. Making it comprehend *natural* language is, by any way of measuring, a number of degrees more difficult.
    That said: in what way would a computer program (advanced or "dumb") be able to help the OP? Spell check is one -- but it's not a *fact* that anything written *badly* equals nonsense. In politics, for example, the most eloquent speakers still manage to make a fool of themselves :D The same goes for "grammar". Of course, bad grammar is more difficult to understand -- EVEN for a human. So a computer is bound to fail on that as well.
    Fact checking then? I usually can't even find what I want in one go with Almighty Google (which seems to turn things around: if it cannot find "enough" web pages with the exact phrase you asked it, it automatically assumes you are interested in synonyms, antonyms, homonyms, and other *unrelated* stuff! Yeah THANK you but I want to find what I typed in!)
    A good starting point would be to define in more detail what this hypothetical software *ought* to do -- that needs to be a bit more concrete than "I want it to do my job for me."

  • MIRO BADI 'INVOICE_UPDATE'

    I am using BADI 'INVOICE_UPDATE' to update a flag 'ZLSPR' in header data on SAVE in MIRO transaction. but the method 'CHANGE_AT_SAVE' in this BADI only has import parameters. No export parameters. Can anyone advice:
    1) if I can use this method to change values?
    2) is there anyother badi available for this transaction.
    Thank you.

    Hi,
       Can you pls help me as my requirment is also same.I have to change the "Base Line Date" i.e. ZFBDT field of BSIK which is there in the Importing Parameters of method "CHANGE_AT_SAVE". Can i change the importing parameters..
    If you get any alternate solution for the same, pls suggest me
    Regards,
    Rushikesh

  • BADI INVOICE_UPDATE Removing error message

    Hi
    I have implemented some validations in BADI INVOICE_UPDATE and I raise the ERROR_WITH_MESSAGE exception in case of incorrect data entered via MIRO.
    But after user corrects the error and presses ENTER, the Error message still remains in the message tab.
    Is there any way to delete the error message?
    Thanks and Regards
    Radha

    Hi,
    when you say:
    I directly press "SAVE' in MIRO
    are you holding RBKP-RBSTAT = ' ',
    parking RBKP-RBSTAT = 'A',
    or saving  as complete RBKP-RBSTAT = ' B'
    the document?
    According to SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment:
    Definition name: INVOICE_UPDATE
    Usage
    The BAdI 'INVOICE_UPDATE' was only designed to execute checks during
    document entry or document posting in transaction MIRO.
    According to SAP Note 392342 - MIRO: No data change through Bussiness Add In
    Symptom
    In the logistics invoice verification MIRO, you cannot change data using
    Business Add In 'INVOICE_UPDATE'.
    Additional key words
    BAdI, SE18, MRM_BADI_INVOICE_CHECK,
    Cause and prerequisites
    This system behavior is correct.
    BAdI 'INVOICE_UPDATE' was only designed to execute checks during the
    document entry or document posting in Transaction MIRO. Therefore, it has
    only import parameters. There are no export parameters. This means that the
    data changed in the BAdI is not processed further in standard program MIRO.
    Best regards.
    Edited by: Pablo Casamayor on May 11, 2010 4:56 PM

  • Data in BADI "INVOICE_UPDATE"

    Hey,
    im using the BAdI INVOICE_UPDATE to run some checks when an invoice is posted. Within that i need the resulting prices of each position after the calculation of discount (skonto) etc.
    In fact i need the values shown when you click on Simulate.
    Now i have the data for discount, accounting and position values etc but they are not cumulated. So i would need to calculate them myself. I guess there must be a method doing that. Is anyone able to guide me with that ?
    Thanks for your help - which will be rewarded.
    oliver

    Thanks venu for the reply. But i cant see a table containing the spread of position prices over the accounting.
    I need the following. Assume you have 2 positions, one with single, one with multiple accounting.
    Tax 10%
    POS1: 20Eur
    POR2: 20Eur, Acc1 50%  Acc2 50%
    Now i need the following like its shown when you preas Simulate in MIRO.
    Pos1  22EUR   GLAccount xyz1_1
    Pos2  11EUR   GLAccount xyz2_1
    Pos2  11EUR   GLAccount xyz2_2
    I dont want to calculate that myself in case there are some things i might forget about. So i need a correct way to retrieve these values.
    The import-parameters of the badis doesnt seem to have these values.
    Any help is appreciated. Thanks,
    oliver

  • Regarding BADI , INVOICE_UPDATE ( MIRO transaction )

    Hi All,
    In Miro transaction, I need to do some manipulationwith  the amount field ( WRBTR ) from the line items of the invoice.
    I have found the BADI 'INVOICE_UPDATE' and method for this is 'CHANGE_AT_SAVE'. I can see all the line items entered on the miro screen into the the internal table TI_RSEG_NEW.
    However in the method it does not allow me to write the code to change the TI_RSEG_NEW table.
    Please help me out in achieveing this requirment.
    -Sanjay

    Hai.
    check this.
    User exit in the invoice
    USEREXIT_NUMBER_RANGE (module pool SAPLV60A, program RV60AFZZ)
    The internal set of numbers used in the standard is given in the table of kind of invoice and can be changed in this user exit. This user exit is called only when putting on the invoice.
    USEREXIT_ACCOUNT_PREP_KOMKCV (module pool SAPLV60A, program RV60AFZZ)
    In this user exit additional fields for the account identification are taken up in the communication structure KOMKCV (head fields), which is not intended in the standard.
    USEREXIT_ACCOUNT_PREP_KOMPCV (module pool SAPLV60A)
    In this user exit additional fields for the account identification in the communication structure become KOMPCV (position fields) aufenommen, which is not intended in the standard.
    USEREXIT_NUMBER_RANGE_INV_DATE (module pool SAPLV60A, program RV60AFZC)
    Dependent on the set of numbers over the table TVFKD the invoice date is set (country-specific requirement from Italy).
    During the use of this user exit the user exit USEREXIT_NUMBER_RANGE is automatically inactively switched.
    USEREXIT_FILL_VBRK_VBRP (module pool SAPLV60A, program RV60AFZC)
    This user exit is called only when putting on the invoice. It is used, in order to supply the head and the position of the invoice which can be provided with deviating or additional data.
    USEREXIT_PRINT_ITEM (module pool SAPLV61A, program RV61AFZB)
    Printing the position line of an invoice can be supplemented or changed.
    USEREXIT_PRINT_HEAD (module pool SAPLV61A, program RV61AFZB)
    Printing the headline of an invoice can be supplemented or changed.
    User exit in the program RV60AFZD
    A short description of the user exits are contained in the program:
    o USEREXIT_RELI_XVBPAK_AVBPAK
    o USEREXIT_NEWROLE_XVBPAK_AVBPAK
    o USEREXIT_NEWROLE_XVBPAP_AVBPAK
    USEREXIT_FILL_VBRK_VBRP (module pool SAPLV60A, program RV60AFZC
    Use RV60AFZZ Include
    regards.
    sowjanya.b

  • BADi INVOICE_UPDATE

    Hi All,
    I am using Badi INVOICE_UPDATE to change the value of 'Tax Amount' with some other value when i am going to create a Invoice for the Purchase Order. I am not able to set the flag inside the BADi which for which i need to make the changes.  So please any of have worked on the same scenario plz suggest me.
    Waiting for quick replies from your end.
    Thnks in advance.
    Santosh

    Hi ,
    You achieve this using the ABAP memory:
    From the place you want to capture the FLAG:
    export flag to memory id 'YOURID'.
    At the place you want to check the FLAG and do some operations:
    import flag from memory id 'YOURID'.
    Now when you have the FLAG value, you can check that and do the desired operations.
    Hope these option might have clarified most of your doubts.
    Regards,
    Ashish Arora

  • BADI INVOICE_UPDATE - MIRO Transaction

    Hi,
    can anyone let me know how to code the BADI INVOICE_UPDATE.
    I'm trying to get the PO number and based on the PO, need to get few more info from another table. i have already went to SE19 and created a implementation for this Badi. And then in the method, i need to code this.
    Please help.
    Thanks.

    i have successfully triggered the BADI. But one more question, since i'm using CHANGE_BEFORE_UPDATE, it is generating the Invoice Document. And i'm checking in the BADI, that the PO number can be used for the Material Invoice or Service Invoice, based on the Document Type.
    Since i couldn't get the PO number in the MIRO User Exit, so i tried BADI. But the new invoice document is getting generated and if it is wrong PO, it comes out from the screen and the invoice document number range is missing.
    So is there any other BADI, upon entering the PO number, i need to validate.
    Thanks

  • Bad PDF; could not read page structure. Bad PDF; error in processing fonts: unsupported Type2 font

    I created a "form" in MS Word using a table with blanks for where the fill-in fields are supposed to go. I converted the file to PDF, and then I tried to use the PDF Forms maker with the automatic field detection feature (Acrobat 8 Pro) but I keep getting the error "Bad PDF; could not read page structure. <Bad PDF; error in processing fonts: unsupported Type2 font> [1]" What could be causing this? Is there something I need to do in Word to make the field recognition work? The field recognition has worked with other PDFs that I have not created in Word. I'd rather not have to create each individual field myself, if I don't need to. I thought this was a great feature when I have used it on other PDFs, but I need to figure out what I'm doing wrong on forms I am creating myself in Word.<br /><br />I am using a MacBook with Leopard, all updates installed, Office:MAC 2008 and Adobe Acrobat 8 Professional.<br /><br />Thank you in advance!

    I got where you were going with this, so I printed with the Adobe 8.0 printer and then I was able to use the auto field detection. THANKS!!

  • Photoshop Elements 8. "Could not use Clone Stamp Tool because of a program error."  Please help.

    Photoshop Elements 8.  "Could not use Clone Stamp Tool because of a program error."  Please help.

    Try this:
    Open your picture file
    Access the clone stamp tool
    Hold down the ALT key on the keyboard and left click on the area from which you wish to clone, then release the ALT key, and click to place the pixels at the destination
    TIPS:
    It is a good idea to open a blank layer at the top in the layers palette, and do the cloning on this layer. Be sure that "sample all layers" at the top is checked. You can change the layer opacity if necessary
    Use the bracket keys next to the letter p on the keyboard to increase & decrease the size of the cursor
    Let us know  how you make out with the error message now.

  • No more free apple id could be used on this iPhone device then what should I do to sign in with my new Id?

    Please help me with this problem I had created a new apple Id and signed in with that but my device is telling that no more free Id could be used in this device .what should I do to sign in with a new free id?

    Any one Mac or iOS device can create only three iCloud accounts: this is tied to the serial number, not the user account. If you have already created three then all you can do is to use another Mac or iOS device to create a new iCloud account - once done you can sign into it on the device in question.

  • I have an iPad 2 and iPhone 4 and for them I use I cloud I have also 1 pc windows and at work place I use windows pc ; until now my files are stored on an external disk drive could' I use iCloud to perform the backup of my external disk drive ? Thanks

    I have an iPad 2 and iPhone 4 and for them I use I cloud I have also 1 pc windows and at work place I use windows pc ; until now my files are stored on an external disk drive could' I use iCloud to perform the backup of my external disk drive ? Thanks
    Loredano

    These are the options you have.
    Budget $1299.
    http://www.apple.com/macbookair/
    http://www.apple.com/macbookpro/
    Best.

  • Hello I am in Afghanistan i searched that in realtek but that told me you coulde not use this sit   I writ again my problem    i installed win 7 32 bit in my mac pro 13-inch, Late 2011  Processor  2.4 GHz Intel Core i5

    On Thu, Jun 14, 2012 at 12:54 PM, mahdi ehsani <[email protected]> wrote:
    On Sun, Jun 10, 2012 at 7:29 PM, Apple Support Communities Updates <[email protected]> wrote:
    Apple Support Communities
    Re: after install windows 7 32 bit there is no sound my mac is os x 10.7.2
    created by The hatter in Boot Camp - View the full discussion
    This solved my question 
    This helped me
    you have RealTek on your workstation and just download the current driver which is easy to findwww.realtek.com
    This solved my question 
    This helped me
    Did this help? Go to the message, sign in, and reply or mark the response as correct or helpful
    Start a new discussion in the same community/choose-container!input.jspa?contentType=1&containerType=14&container=2143&ac_ci d=op123456
    You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile.
    © 2012 Apple Inc. 1 Infinite Loop, MS 303-3DM, Cupertino, CA 95014.
    All Rights Reserved | Privacy Policy | Apple Support Communities Terms of Use | Apple Support
    hello I am in Afghanistan i searched that in realtek but that told me you coulde not use this sit 
    I writ again my problem  
    i installed win 7 32 bit in my mac pro 13-inch, Late 2011  Processor  2.4 GHz Intel Core i5   Software  Mac OS X Lion 10.7.2 (11C74) 
    but there is no sound in windows 7  please send me a address sit for downoad driver that i can use in Afghanistan 
    believe it is confus me and other friend that bought 5 mac's that are the same and i serched a lot of site without result
    please help us by address site please please .....
    <Edited by Host>

    hello I am in Afghanistan i searched that in realtek but that told me you coulde not use this sit
    I writ again my problem 
    i installed win 7 32 bit in my mac pro 13-inch, Late 2011  Processor  2.4 GHz Intel Core i5   Software  Mac OS X Lion 10.7.2 (11C74)
    but there is no sound in windows 7  please send me a address sit for downoad driver that i can use in Afghanistan
    believe it is confus me and other friend that bought 5 mac's that are the same and i serched a lot of site without result

  • I recently inherited a restored iPhone 5 from my uncle and its needs a sim to be activated, could i use my friends sim just to activate my iPhone and then give the sim back once its activated without affecting his contract and later on get a sim ?

    I recently inherited a restored iPhone 5 from my uncle and its needs a sim to be activated, could i use my friends sim just to activate my iPhone and then give the sim back once its activated without affecting his contract and later on get a sim for myself and a contract for me and it all be normal??? Thanks

    The phone MUST have a SIM present in order for activation to complete. The process will not finish otherwise.
    For the OP:
    If the iPhone 5 is locked to a carrier, you must use a SIM from that same carrier. Otherwise I think you would be OK borrowing the SIM to activate the phone.
    ~Lyssa

Maybe you are looking for