MRKO posting to invoice issuer.

We have a scenario in consignment where the vendor is not created in the company code.
The vendor doesn’t have FI data so when the MRKO is processed to settle, the
system get an error the vendor is not defined in the company code XXXX. In this
scenario is the Invoice Issuer in the vendor, the record that has the FI Data.
For normal POs, the transaction MIRO is working correctly against the invoice
issuer. However we don´t know how to post the FI document to the Invoice issuer
of the vendor in consignment.
Thank you
and best regards.

Hello,
You can use the transaction object. You should know, that the huge global transaction is "blocking' the system.
During the transaction, if your objects have any errors, the transaction is automatically rolled back.
Usage:
Try
            If oCompany.InTransaction Then
                MsgBox("Cannot start transaction, becuase the previous transaction has not been finished!")
            End If
            oCompany.StartTransaction()
            ' Do your transaction here
            ' Commit the transaction
            oCompany.EndTransaction(BoWfTransOpt.wf_Commit)
        Catch ex As Exception
            If oCompany.InTransaction Then oCompany.EndTransaction(BoWfTransOpt.wf_RollBack)
        Finally
            GC.Collect()
        End Try
Regards,
J

Similar Messages

  • Issue while posting the invoice in background using the WF-BATCH user

    Hi Friends,
      I am facing an issue while posting the invoice in background using the WF-BATCH user. I am using a invoice approval workflow where in when the approver approvers the invoice the invoice document get posted using a background method, which uses BO FIPP and Method POST and i am returning the Message Text to my workflow container from this method. When i see the log an exception is rasied from this method with an error  message "V004: You are not authorized to change this document", but WF-BATCH is having SAP_ALL and SAP_NEW authorizations. If i try to post the invoice using the method from my user id it is getting posted. What could be the issue. Please advice.

    Hi Sapient,
    The Parameter, Roles would be different for the LOGIN USER and WF-BATCH.. So ask your administrator
    to set the Roles & Parameters similar to that of LOGIN USER to WF-BATCH.
    For further refrence check in SU01 giving the LOGIN USER and then check with WF-BATCH... you would
    find the difference...
    Hope this would help you..
    Good luck
    Narin

  • Dealer Excise Invoice-Issue while posting MIRO

    Dear All,
    Today i was doing Domestic procurement with Dealer for Gas Cylinder. In PO we entered total value which includes Excise amount also (1000+103)& VAT @ 14% (154,42).
    While doing GR i selected as Only captured excise inv, checked MRP indicator.
    Changed the bse value to 1000, entered BED as 100, E Cess as 2 & SEcess as 1.
    The accounting entries were correct, Inventory is posting with Rs 1000
    Posted excise invoice in J1IEX, the values were coming from GR, its correct and the acc entries were also OK with 103 Cenvat clearing acc Cr & Excise acc Dr.
    While posting MIRO, I am facing problems...
    In line item i am getting as 1103 Base value...
    VAT is calculating on (1103+103) @ 14% 168.84,
    so total value is 1271.84
    When i simulate, its showing
    Vendor 1271.84 Cr
    GR/IR clg acc 1000 Dr
    Material 103 Dr
    VAT 168,84 Dr
    There is no cenvat clearing account here
    Please help me how to resolve this.
    Regds,
    CB
    When i simulate

    Hi,
    have you mainatin 100% setoof condition check it it should be there
    check MIRo posting date and excise invoice  posting date
    check condition record validity in FV13
    Regards
    Kailas Ugale
    Edited by: kailasugale on Feb 10, 2012 12:01 PM

  • Tax error while posting an invoice in SRM

    We are using SRM 5.5 SP4, ECS and ECC 6.0. We are using vertex for tax caluculation and we configured the tax calculation to always occur in ECC.
    One more important point is, client has decided to use invoicing in SRM. Now the problem is we ran in to so many tax related issues and we opened OSS messages for this but SAP did not help. Let me explain the problem in detail.
    1) We used to get "Tax jurisdiction code could not be determined" error while creating shopping cart, but we implemented note 436760 and hardcoded a value and got rid of that error.
    2) When we create a SC, the copy of PO is created in ECC and vertex is called for tax calculation and tax is calculated properly based on the tax hierarchy except when you use the Shipping Address (external), so when I used the delivery address other than plant, it should calculate based on that address but it was not doing that, its calculating based on the cost object's jurisdiction code. For this problem, we have implemented ME_ADDRESS BADI in ECC, but with this BADI, it is always taking delivery address's jurisdiction code, which is also wrong.
    The tax jurisdiction determination should be from 1) Delivery address if its different from plant, else it should look in to the cost object, else storage location then plant.
    So we implemented the above logic in that BADI and there is no problem with PO taxes.
    3) When we create an invoice with reference to PO, the invoice verification program is always determining the tax jurisdiction code from plant even though the taxes on PO are calculated based on cost object, hence the IDOC is erroring out by saying there is a difference in tax.
    So we implemented the user exit and used the same logic of tax determination and its fixed now.
    4) Finally, we are trying to create invoices without PO's in SRM, here no tax calculation is happending in SRM, but when we try to post the invoice in to ECC, we are getting the following error
    "SAX processing failed on input stream#SAX processing failed when attempting to add child element to parent.  (parent element=com.vertexinc.tps.common.domain.LineItem, child element=com.vertexinc.tps.x.."
    So I am not sure how to fix this, we are at the dead end now out of ideas, so trying to get some help from experts like you about looking at this problem in a different angle. Now there are a couple of questions I can ask you
    1) Did we do something wrong by selecting R/3 as the tax calculation system, if not is it difficult to fix this error and move forward?
    2) What if we need to change the design and start calculating the taxes in SRM by connecting SRM to Vertex, will there be any new challenges? and do you have any config doc for this? Also we are implementing this rollout for US, Canada and Mexico companies.
    I would really appreciate if you can reply me with your valuable input. You can also email me if @ [email protected]
    Thanks a lot,
    Sreedhar

    Hi
    <b>It's recommended to have the same Tax related configuration data replicated in SRM system from R/3 as well.
    I don't recommeded you to go with Hard-coding of tax codes.
    We have faced similar issues with Delivery address and we have to solve it using our custom logic inside the BBP_DOC_CHANGE_BADI  and BBP_CREATE_PO_BACK BADIs.</b>
    Anyways, send the detailed business requirements to my mail which are already having with you.        )
    I will definitely help you out.
    <u>Please refer to following threads as well.</u>
    <b>sales tax gurus
    How to display country related tax codes in SRM
    e-Invoice tax calculation.
    Tax code T1 does not exist for jurisdiction code error in shopping basket
    Drill down facility not working for Tax codes ....Urgent!!!!!
    Tax Issue
    Tax Calculation
    Tax setting in Extended Classic Scenario
    Withholding Tax in SRM5.0
    IDOCS for Tax Information
    Taxes in Bid Invitation
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • De-linking (Valuation class & GL A/c) automatic posting in Invoice booking

    Experts,
    I have a issue regarding link between FI & MM
    From what I understand,
    there is a link between Service & Valuation class
    & also a link between valuation class & GL.
    This link enables automatic FI line item posting while invoice booking.
    My question:
    1. Can we break the linkage between valuation class & GL i.e. we want to stop the automatic posting
    2. What is the effect of above
    3. Would you advise to do this .. ? Why?
    Regards,
    KPS007

    Hi,
    SAP standard process are the best business practises and it should changed only when we have genuine business problem and not for people issue.
    There are several scenarios will occur during MIGO and MIRO. For each scenario system should determine a correct Inventory account, GR/IR clearing account, Price difference account and etc. First you need to prepare an excel sheet with all your possible business scenario, valuation area/valuation grouping code and their respective GL accounts. Once you have listed out all the scenarios and correct GL accounts, you can configure the system as per your requirement. Initial home work is needed to avoid any difference in account posting. Hence try to fix the source of your problem rather than changing the best practise. Account determination is vast and it cannot be explained here but please refer the below link.
    http://help.sap.com/saphelp_46c/helpdata/en/12/1a39516e36d1118b3f0060b03ca329/content.htm
    Regards,
    Senthil

  • Error 'No tax code found for difference' in Posting Vendor Invoice IDOC

    Hi All,
    I am getting error message 'No tax code found for difference' while posting Vendor Invoice IDOC into SAP. IDOC type is INVOIC02. There is no difference in PO price, Invoice price and even Standard price. then why this  error message? Other Vendor EDI settings are done ( OBCA, OBCD, OBCE etc). Is there any thing specific to be done in the config for this error?
    IDOC has PO  as reference document.
    I looked into several threads in SDN forum but could not find proper solution
    Can any ine help me with this issue?
    Thanks in advance
    Hari

    Hi
    You might be  missing the tax code for uploding through IDOC
    so you can use the t.code we02 and give the doc and find the error
    go to the WE19 to edit the tax  code
    and USE the t.code  BD87  to select the doc and process it
    thanks
    Madhu

  • When we post Inbound Invoice IDocs, we are getting an error message "Enter a tax jurisdiction code".

    Hi Experts,
    When we post Inbound Invoice IDocs, we are getting an error message "Enter a tax jurisdiction code". As checked, we have configured OBCD and OBCA for the vendor and we are passing the Tax Jurisdiction code in E1EDP04 SAL segment. Can anybody give us some idea to resolve this issue.
    Regards,
    Sameek

    Hi Sameek,
    Please refer the below link. Hope it helps.
    http://scn.sap.com/thread/1435286
    Regards,
    Chandan.

  • Error Message M8 534 when posting vendor invoice

    Hello Guru's!
    My client has a BSP application that the purchasers are using to approve and post vendor invoices.
    When the user is approving the invoice, we have a WF setup to automatically post the invoice to FI.
    We're using standard SAP functionality. BUS2081, method PreliminaryPost.
    First, this method is reading the preliminary invoice using method MRM_INVOIC_READ, then it goes on to try to post the invoice, using MRM_PARKED_INVOICE_POST.
    In about 50% of the approvals, the invoice is posted to FI but the other 50% kicks out with a message M8 534 - Balance not zero: &  debits: &  credits: &.
    Then the system is setup to generate a new WI in order to post the invoice manually.
    The issue, is that before the method PreliminaryPost is carried out, there is a check online to make sure the document ís OK.
    So, i know that there is no balance on the document, and it should be ok to post.
    This issue arised recently after my client went through an upgrade from ECC 5 to ECC 6.
    I have seearched OSS for notes, adn related notes are implemented.
    Any thoughts on this
    Thank you for sharing your wisdom.
    Lars

    The functions that i'm using are SAP developed functions and used by the bapi 'BAPI_INCOMING_INVOICE'
    However, i found out from SAP that these functions are only supported from SAP using 3 standard workflows.
    WS20000397 Release of invoice blocked due to price
    WS20001003 Parking: Complete invoice
    WS20001004 Parking: Release complete invoice documents
    They hinted that i should try the function MRM_DBTAB_REFRESH.
    Havent had time to try this yet, but will do, soon.
    Regards
    /lars

  • Posting multiple goods issues against the same delivery

    Hello gurus,
    We are a fashion apparel company using ECC 6.0 and would like to know if it is possible to post mutliple goods issues against the same delivery?
    I will explain the business requirement.
    - We create a stock transport order to deliver 400 units of merchandise to on or our retail stores (STO is created and processed to a delivery).
    - This information is passed down to our warehouse management system (which is not SAP)
    - Our warehouse management system has the ability to split a delivery into multiple shipment when needed.  For example, our warehouse may only be able to complete 250 units for our morning shipment and will therefore pick, pack and post this.  This will feed back into SAP and process a 641 movement so that the units now show as "in transit".  This is needed so that our stores can process the ASN and move the units into their inventory when they receive the merchandise later that day.
    - During the afternoon, our warehouse will process the remaining 150 units and will ship this to our store later in the evening or next day.
    Currently, we are not able to process another goods issue against a delivery as we close out the delivery during the first goods issue.  We would prefer not to have to generate a new delivery for our DC and let them continue to process against the same delivery, but we are unsure how to configure this.
    Any help or guideance would be extremely appreciated
    Thanks in advance

    Hi RJ,
    First of all sorry to write such a lengthy reply,In one line if i want to summerize then it is not possible with standard SAP however we can achieve this by writing some piece of code in both the system
    AS - IS
                   Business process
              From business process point of view you are right that once the pick & pack is in process it is not advisable to create a new delivery document for balance quantity and share the same with WMS as then they have to create a new document in WMS and start picking based on that rather then the old delivery document number. if i am in your position then i can give a thought like this
    e.g.
    Delivery                                                  - 100 Unit
    Shipment confirmation from WMS            -   60 Unit
    Change in delievry quanity / Pick qty        -   60 Unit
    Invoice from SAP                                    -   60 Unit
    Second confirmation from WMS                          -   40  Unit
    Change in the existing delivery quantity                -   Now here we have two option either
    1) Change the delivery quantity / Pick qty  to (60+40) =100 or
    2) Remove the 60 and update 40 as delivery and pick quantity
    Pros & Cons
    if you will select option 1 then furhter invoice will happen for 100 unit which is incorrect as physically you are shipping only 40 unit
    if you are selecting option 2 then the document flow is incorrect as you don't have history(in SAP) for the 60 unit which was shipped earlier
    Solution ::
    so in my opinion the best option is to create a seperate delivery document (store the old delviery number in one of the field of the new delivery and pass the same to custom segment of the IDoc) transmit the IDoc to WMS write the validation logic in WMS
    Find the record with old deliver number in the WMS system, check the status whether it is active or inactive
    if it is acitive Validate the Material + qty with the WMS record(Material + balance quantity) if both are same then pass the new deliery number to custom field of the WMS table
    At the time of confirming back to the SAP, Write a piece of code in SAP that if the incoming idoc custom field(new delivery number) field is populated then ignore the orignal document number and post the document using the new delivery document number
    Hope this help

  • Clear Withholding tax data while posting customer invoice

    Gurus,
    I am trying to post Customer invoice document using FB01 transaction.
    If the customer has with holding tax information available in Customer Master the corresponding information is getting posted into invoice document.
    Is there any user exit, enhancement or substitution available to clear this with holding tax data.
    Please do share if any code examples on this issue.
    Appreciate your quick response.
    Thanks,
    Suneel

    Dear AMD008
    were you maintain properly in OB40 MWS (out put tax) relevant GL Account
    Note: are you using NEW GL please conform me
    Regards
    shankar

  • Problem with posting parked invoices

    We created a few vendor invoices through MIRO and parked them.   When we tried to post these invoices using FBV0, the system gives us an error message saying the Document does not net to zero.  All the invoices have the same error message.    We checked the documents and they all balance to zero.     Has anybody encountered the same issue?    Thank you.

    Hello,
    Please refer SAP
    Note 896610 - FBV0: Posting not possible due to minor difference
    Note 561559 - FBV0: Subsequent note to note 510026 (II)
    Regards,
    Ravi

  • When i post the invoice in MIRO Bill of lading number not displayed

    Hi,
    When i post the goods receipt i entered the bill of lading number .When i try to post the invoice with reference to the PO ( for which i had done goods receipt) bill of lading number not populated in the corresponding field.I can see the field in MIRO but it is not having the value.

    I have the same issue, did you get a response to your problem. If yes please share it.
    Thanks
    AL

  • Business area wrongly posted for invoice

    Hi All,
    Business area wrongly posted for invoice.
    The user was posted the invoice with two line items one with posting key 40 for debit and one is 31 for credit vendor, these two line items are posted with different business areas.  and the the invoice is cleared also.
    Could any one please suggest what the above issue affects the business.  what would be the resolution to be done for this.
    Thanks in advance
    Nandha

    Hi All,
    The balances are not matching in fbl3n and fs10n, Due to the above wrong document posted and cleared also.  what is the better way to match the two balances (fbl3n and fs10n).
    Can i reverse the cleared wrong document and reset it in fbra,  if i do this is there any problems occur in production.
    please suggest to tally the balances of fbl3n and fs10n.
    one more thing if i double click on the fs10n the another screen will open in the the total balances are matching in fbl3n and fs10n.
    Please any suggest me to come out of this issue
    Thanks in advance
    Nandha

  • Double invoice issue

    Hi,
    We have an internal vendor and so automatic invoice verification is implemented against the said internal vendor. However, the issue is there is a double invoice for some of the invoice refrence numbers. Check box for checking double inovice is already in place in the vendor master. Inspite of that there are double invoices for some of the invoice reference numbers.
    I checked the settings in OMRDC and there are 3 fields checked - company code, document date and invoice reference number.
    Point to be noted is the document date of the duplicated invoice reference numbers are different. I suspect that the invoices have been interfaced twice from the legacy. However, I need to check with the legacy team for the same.
    Say for example:
    Invoice 5555 is posted against invoice reference number 1234 for vendor XYZ on document date 28.12.2011.
    Invoice 6666 is posted against invoice reference number 1234 for vendor XYZ on document date 11.01.2012.
    In the above scenario - does it mean that the double invoice could go thorugh as the system checks the settings based on the combination of invoice refernce number and document date (for vendor vendor XYZ).
    In other words - is it because the system found IV reference number 1234 on different dates that double invoicing could go though.
    Please suggest.
    Regards,
    Soujanya.

    Hi,
    Ok...inspite of having same invoice refrence number - as they were interfaced on different dates, it has not checked for double invoice. In that case, to avoid such things to happen - I hope I should uncheck the document date in OMRDC and just retain invoice reference numbers and company code.
    As far as the account key is concerned - ERL postings do not happen here as this is a case of purchases. However, could you suggest what is MRRL and where can I find it. And what is the siginificance of MRRL in GR.
    Regards,
    Soujanya.

  • End  user deleted posted MIRO invoice, how?

    Hi SAP Gurus,
    Surprisingly user was able to delete the posted MIRO invoice (infact a paid invoice) using MIR4, then going to Edit- Display/Change and Invoice document-Delete. I can see the deleted invoice under Purchasing history in the PO but when i click on the Invoice it says invoice has been deleted.
    How is it possible to delete the posted invoice. How can i track what steps she had carried out to delete the document?
    I would appreciate your insight on this issue,
    Thanks.

    Are you sure the document wasn't reversed versus deleted? In order to reverse the invoice, the payment document that cleared the invoice had to be reversed first.
    Display the payment document FB03  that cleared the invoice and see if it has a reversal document.

Maybe you are looking for

  • Blue messages problem

    Me and my grandparents have an iphone and we can't get our blue bubble back. We tried turning our iMessages off and then we tried turning our iphone off and nothing worked. We still have the green bubble. How do we get our blue bubbles back??

  • Dock + Remote apple in the ipod 3g reset while viewing videos

    Hello. I have the following problem is my ipod nano 3g 1.1.3 connected to the dock of apple and driving with the remote apple. The problem is that the iPod is reset when you press forward or play / pause while playing videos, I have tested with the p

  • How to read Editable field in a table

    Dear friends, i have a table with 5 columns( one column is editable field ( Amount column)) pls check the below screen shot, , its binded with an internal table , now i want to edit the amount columns ( for eg 100 ), could any one pls let me know how

  • Safari Problem displaying pdf's

    I updated as suggested by Updater to Safari 5.1.5 and now no pdf's will display from websites - just black screen. I am running OS10.6.8  How can I go back to previous installation?

  • Running slow with spinning wheel when moving files

    iMac (27-inch, Mid 2011) -2.7 GHz Intel Core i5 - 12 GB 1333 MHz DDR3 - AMD Radeon HD 6770M 512 MB 8 GB Ram ( 2 x 4GB + 2 x 2GB) While going through pictures folder and moving pics into folders and after moving 20 photos, spinning wheel for 60 second