Date check in MIR7 & MIRO

Hi:
              We faced a scenario where GR was processed on July 09, 2011 & parking its parking was done on July 15, 2011 MIR7 but the user posted invoice  on June 30, 2011 (even before the GR was processed). We want to deploy a check  that invoice posting date should not be earlier than the GR date. Validation does not work for it. What else can be done , please guide.
Regards

You can try the below code
METHOD: IF_EX_INVOICE_UPDATE~CHANGE_AT_SAVE
TYPES: BEGIN OF TY_RSEG,
             LFBNR TYPE LFBNR,
             LFPOS TYPE LFPOS,
             LFGJA TYPE LFGJA,
          END OF TY_RSEG.
   DATA: WA_RSEG  TYPE TY_RSEG,
         WA_DRSEG TYPE LINE OF MRM_TAB_MRMRSEG.
   DATA: IBUDAT   TYPE BUDAT.
   LOOP AT TI_RSEG_NEW INTO WA_DRSEG.
     IF WA_DRSEG-LFBNR NE SPACE AND WA_DRSEG-LFGJA NE SPACE.
       SELECT SINGLE BUDAT FROM MKPF
         INTO IBUDAT
        WHERE MBLNR = WA_DRSEG-LFBNR
          AND MJAHR = WA_DRSEG-LFGJA.
       IF IBUDAT GT S_RBKP_NEW-BUDAT.
         MESSAGE 'PLEASE CHECK MIRO POSTING DATE. DATE IS BEFORE MIGO POSTING DATE' TYPE 'E'.
       ENDIF.
     ENDIF.
   ENDLOOP.
Regards
Pommuthurai

Similar Messages

  • How to enter condition wise tax amount manually in MIR7 & MIRO?

    We have a PO with a tax code entered in it.
    but while parking invoice in MIR7, we want to enter condition wise tax amount manully which is different than calculated tax amount through tax code and subsequently we want the same manual tax amount to be displayed in MIRO also
    I tried to enter amount for each condition in 'Detail' screen of 'Tax' tab in MIR7,
    but at the time of simulating, amount calculated as per tax code is only shown and not the amount entered by me
    'Calculate Tax' checkbox is not selectd in this case.
    Can anybody tell me how to enter condition wise tax amount manully in MIR7 & MIRO and post an accounting entry with this manually entered tax amount?

    Hi,
    i checked their is no unplanned delivery cost and in FV13 tax is 12.5%. In FTXP No Tax Percent rates.
    Regards
    Mahesh

  • How to choose vendor's second account when MIR7/MIRO ?

    Dear All,
    Here is my question, one vendor has two account , when MIRO/MIR7, SAP default the first vendor account as IR 's default datas, how to change it to the second account which I have added in the vendor?
    In MIRO/MIR7 there only display the vendor bank details, canu2019t choose.  thx

    step1 :  XK02: In the display vendor: payment transactions I add 2 bank key with different bank account,
    step2 :  MIR7/MIRO: When after entering PO ,  system default the PO's vendor's first bank account as the new invoice datas, but sometimes I should choose the second bank account for the vendor's invoice .
    I have some try about how to choose the very bank account when entering invoice in MIR7/MIRO , but have no idea about this.  And now We have to change the vendor's bank account's sequence for this requirement.
    As there has a list for vendor's bank accounts in the payment transactions, then I think SAP should let me choose whick bank account when entering invoice in MIR7/MIRO, and how?
    thanks a lot

  • Credit Limit VS Posted Date Check

    Dear Experts
    Our client have a requirement on customer credit limit and I would like to seek for some good solutions.
    Here I provide one sample scenario: In SAP Business One a customer with a credit limit of $100,000 and account balance of $110,000. After a posted date check of $20,000 is deposited, customer account balance will be reduced to $90,000 and a Sales Order/ AR Invoice with amount less than $10,000 can be added for that customer without credit limit alert.
    However, our client thinks that it is not make sense to reduce the customer account balance given that a posted date check is deposited as the posted date check may not be cashed if the customers do not have money in their account.
    Would it be possible to separate posted date check payment amount from deducting the customer account balance? or would it be other workarounds?
    Thank you very much
    Regards
    Elton

    Dear jbrotto
    Thanks for your reply.
    Could you explain in details on how to make use of the commitment limit?
    As far as I know, commitment limit also considers the account balance of customer
    Regards
    Elton

  • Due date checking in F110

    Hi,
    My client want to use F110(Automatic outgoing Payment) to payment the vendors. But they want to avail Credit for at least 30 days .that means , those invoice process had been done before 30 days those should come to the APP PROPOSAL FOR THE PARTICULAR VENDOR,OTHER WISE NOT TO BE SEEN IN APP PROPOSAL  Is there any provision given in FBZP ?
    <removed_by_moderator>
    With Regards,
    Sudipto

    Dear Paul,
    If you want to check Due date then there is no setting in FBZP but at the time of running APP through T.code F110 , while defining payment proposal parameter there is 4th no. tab page with name 'Additiona Log' . in this tab page there is first option Due date check you tick on it and system will check due date for all vendors and customers which you have selected for Payment.
    thx.
    Ganpat

  • Baseline date not flowing in MIRO transaction

    Hi
    Baseline date not flowing in MIRO while doing transaction.
    We have maintained Payment terms in vendor master record
    and payment terms maintained in PO also.
    We have done the GR posting.
    please help
    Thanks and regards
    Aakash

    Are you use an MIRO with amount split? and does your payment term is configured with "No Default Date'? Then refer to OSS 495303.

  • MIR7 / MIRO

    Dear All,
    Can anybody help me in understanding of MIR7/MIRO Posting in FI.
    i.e  In which case it will post in material A/c
    In which case it will Post Price diff. A/c,
    IN which case it will posr invoice reducrtion etc.
    Regards
    Swati

    Dear Swati,
    MIR7 is to park the Invoice verification
    MIRO is to post the invoice verification.
    As you aware MM entries to Finance.
    Now i will give a example on your scenarios
    1. Post in Material.
    You purchased 100 bags of cement @ 100 each , as per your contract you are not paying him transportation charges, which is not mentioned in your purchased order , but at the time of invoice verification you got the transportation bill for Rs.100 and which was approved outside purchase order now you are going to pay him, that time the extra cost 100 . So your total value is 10,100. 
    Now when you process this 10,100 rupees  the entries are as follows.
    Inventory entry
    Inventory A/c Dr    10,000
        To GR/IR  A/c  Cr     10,000
    MIRO or MIR7 Invoice Verification
    GR/IR A/c  Dr 10,000
    Inventory A/c Dr 100
        To Vendor A/c   Cr 10,100
    +Note: The Material Account has got hit automatically for that 100, on the value you had given at the time of MIR7 or MIRO. The base condition for this is your stock should have not consumed at the time of Invoice entry. It is a simple logic if you want to affect the stock value means you should have some stock in your plant if not it will go to price difference A/c +
    2. Price Difference account
    Inventory entry
    Inventory A/c Dr    10,000
        To GR/IR  A/c  Cr     10,000
    MIRO or MIR7 Invoice Verification
    GR/IR A/c  Dr 10,000
    Price Difference A/c  Dr 100
        To Vendor A/c   Cr 10,100
    Note : In this case there is no stock for the Materials in your books so it has triggered the Price difference account instead of Material A/c
    Hope it clears you to some extent, and as for your third scenario which is not clear to me.
    Kindly revert back for any clarifications.
    thanks and regards
    Praveen.J

  • Batch expiration date check when goods issue

    Dear expert,
    In batch expiration date check, we have a requirement that when do goods issue with delivery note we should have a expiration date check for expired batch(the system needs to give a warning message when we want to pick a expired batch(in WM) or to issue a expired batch). But I checked OMJ5 and found that there is no check for movement type 601, 641, 643 or 647. Do we have a standard function for this requirement? Thanks.
    Leo

    Hi,
    In SD batch determination normally happens during Delivery creation for a Sales Order, Check for batch determination is maintained for a combination of sales org, order type - system determines Search Procedure at this level (here a check box also controls the batch check against selelction rules in case somebody puts a batch manually)
    later on through selection class and sort rules batch expiry is check during determination
    so all checks are applied before an actual goods issue is made so std SAP doesn't provide this check indicator at mvt type level
    Hope this helps
    Reg
    Dheeraj

  • Web Dynpro ABAP ALV On Data check

    Hi
    If i push the check button and i find an error in my on data check event and send an error message l_message_manager->REPORT_ATTRIBUTE_ERROR_MESSAGE. It will not check again when i am pushing of the check button again, i guess because no data has been changed. But if no data has been changed, the user will not have cleared the error for sure.
    Now as i write this i have an idea for an work around.
    But anyway. It seams to me that others should have faced this problem and i believe i am doing something wrong. I have tried to set the value again, but this will not trigger an change.
    So what i will try next is to save my error messages and just clear them when the data_check is done again. (I am not sure how to do this at the moment, but i will see.)
    Still does anybody know a better way, or how it's meant to be done?
    thanks.

    my solution is:
    on the data check event i save the changes to tables in my class.
    i have put an own check button in the alv, which is realy checking the data.
    the save button is then using my tables to do the actual changes to the dso.

  • Exit for delivery Date check in Sales order [Via EDI]

    Hi Friends ,
    We have a requirement in which if the Sales Order is created Via EDI with INVALID delivery date then I have to set a flag in some Z Table . I have tried searching for exits and debugging the code but was unable to find a place where SAP checks for delivery date validity . Please help me with possible exits/Badis?Enhancement Pts etc where I can mark this flag .
    Thanks & Regards
    Gaurav Deep

    @Vinod Thanks  for your reply , the delivery date is there in EXIT_SAPLVEDA_009 .
    But how will i check if the delivery date is valid or not , If you go to VA01 and give a invalid delivery date a warning message is issued , here if the warning message is issued then I want to set my flag , this might save my from  coding redundant delivery date check logic , can someone please help me how can i track if this warning message is issued .
    Thanks & Regards
    Gaurav Deep

  • How to create/change layout grid in MIR7/MIRO

    Dear all,
    How to create/change layout grid in MIR7/MIRO??I want to change the order of the items table.
    Thx.
    Icuk Hertanto

    Check SAP  Note 315586 - MIRO: Creating and changing display variants for Step by Step guidance.

  • UCCX 8.0 SU4 Data Check

    I've just upgraded from UCCX 7.0 to version 8.0 this weekend and when I do a Data Check I get User and Network Audio Source -- UUID cahnged from (long hex string) to (long hex) string.  This is also shows the same thing in the VoiceMailProfile section.  Any clue what's going on?          
    Thanks in advance

    Hi Lennie
    SU4 was originally scheduled for August, then October and according to the last Cisco post I saw on the partner forum its now mid December.
    All versions of 8.0(2) work with Windows 7 64 bit.
    Graham

  • POS DM master data check

    Hi all,
    is it possible to perform articles master data check (eg. ean code or article code existence) on sap retail master data instead of bw 0material?
    Thanks a lot
    Ado

    Hi Anthony,
    here some answers to your questions:
    1.) How does it check the existence of related master data? If you look at the details of a delta infopackage, you will not find an option to check for master data as compared to a normal delta infopackage.
    ==> you cannot check the refrential integrity via the InfoPackage, hence you have to this via transormations (if needed)
    2.)  Will it load the transaction data even if no master data exist for the transaction data?
    ==> Yes
    3.) Also in this process, will it create the master data SID table entries while it loads the transaction data into the DSO? There may be some master data referenced by the transaction data which may not exist in the source system yet and therefore not loaded into the master data infoobjects yet.
    ==> Yes, but this behaviour is the same as for periodic (non-RDA) transactional data loads.
    4.) The concern I have is when running a process chain to load master data such as 0ACCOUNT, 0COMP_CODE and followed by an Attribute Chain Run at the end of this process chain, will the locks established by this Attribute Chain Run crash the RDA daemon when it tries to load those transaction data that have new master data in them ?
    ==> You do not have to worry about conflicts / concurrent locks with the Attribute Change Run. The only process that could be critical, is the loading via RDA and periodic master data via DTP, which could result in a error in the DTP (you can resolve this very unlikely event by restarting the DTP or by triggering the re-load of  the master data from the source system). In general, we would assume that these 2 events are highly unlikely to conflict.
      Cheers
        SAP NetWeaver BI Organisation

  • I just bought an iMac and I´m a new user of Mac.  I captured my data and my country is Mexico. What can i do if the final data check show España? Is it important or it doesn´t matter?

    I just bought an iMac and I´m a new User of Mac. I captured my data and my country is Mexico. What can i do if the final data check of Mac shows Spain? Is it important or it doesn´t matter?

    Hola & welcome to the Forums!
    Have you noticed any problems, like Time zone or Time display?

  • New field to be displayed in MIR4, MIR7 & MIRO..R3, 4.71,Oracle9i,Solaris

    Hi experts,
    In MIR4 transaction (Display invoice document) we need to show one
    extra field in the subsequent subscreen as mentioned below.
    The details of Vendor i.e. bank account number,
    Name of the bank, Address, Telephone number, Fax number are available.
    Apart from these fields we need to display “Bank Control key” (LFBK-
    BKONT) also on the top of the Vendor bank account number.
    This we need to display for MIR4, MIR7 & MIRO transactions.
    Please suggest. . .
    Regds

    Hi Matt Kangas,
    So w r to Unix (solaris), replacing the kernel in sapmnt/P47 will do (i mean existing <b>exe</b> rename to like <b>exe_old</b> and <b>new kernel</b> to reanme as <b>exe</b>) or any thing extra i have to do.
    Please guide me.

Maybe you are looking for