Posting Intercompany invoices using the MIRO transaction

Hi guys,
Im facing one issue as below.
when Company Code XX11 places an order on a YY Plant, the system will automatically generate a purchase order.  When the item is shipped, XX11 will bill their customer for the product and YY  will bill XX11 against the PO that the system created. However, it doesn't seem as if the system is creating a purchase order for these items and now I have a number of invoices for intercompany billings and all I have as reference are the order # and delivery # to the customer.  ,  would be able to use the delivery note as the referencing item, but I keep getting error messages.  Can you please help!!!

solved

Similar Messages

  • How to post a cross-company invoice using the BAPI_TRANSACTION_COMMIT?

    Hi
    I would like to post an inter-company invoice using the BAPI_TRANSACTION_COMMIT.
    There is a comp_code in the header strusture. The BAPI's documentation says that this is possible and in the ACCOUNTGL table there is a field COMP_CODE.
    The only problem is that the field is not there…
    Does anybody know whet to do?
    Thanks,
    Magdalena

    BAPI BAPI_TRANSACTION_COMMIT is not used for a specific application, but needs to be called always after any BAPI is called to post the data that were changed in the BAPI to the database.
    You need to find the BAPI that is used to post the invoice and then call BAPI_TRANSACTION_COMMIT.
    Always do:
    call function 'BAPI_application_specific'
    if sy-subrc eq 0.
      call function 'BAPI_TRANSACTION_COMMIT'.
    endif.
    Check the documentation you have to see if you can find the application specific BAPI.
    Hope that helps,
    Michael

  • Posting Intercompany documents using program RFBIBL00

    Hi,
    I want to know if we can post intercompany documents using program RFBIBL00(Direct Input Method).
    If this is possible, please let me know how can this be achieved as I am getting an error "Cross-company code postings not defined".
    Thanks
    Harveen.

    HI
    You need to setup the relationships between the company codes. Do this via
    OBYA transaction.
    Hope this help.
    Regards
    kishore

  • Clearing an Invoice using the DI

    Hello
    I am experiencing a problem when I generate a Journal Credit that is matched to a invoice using the DI but the balance on the invoice does not reduce or clear. I am using the following code:
    ' Generate the Excess Invoice/Document
    oJournal = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
    oJournal.TaxDate = Now
    oJournal.Memo = "Excess-" & oCustName.Value
    oJournal.Reference = lDocNum
    oJournal.Lines.AccountCode = sGLTradeAcc
    oJournal.Lines.ContraAccount = oCustAcc.Value
    oJournal.Lines.ShortName = oCustAcc.Value
    oJournal.Lines.Debit = rExcAmt
    oJournal.Lines.Credit = 0
    oJournal.Lines.ReferenceDate1 = Now
    oJournal.Lines.LineMemo = "Excess-" & oCustName.Value
    oJournal.Lines.Reference1 = lDocNum
    oJournal.Lines.Add()
    oJournal.Lines.AccountCode = sGLTradeAcc
    oJournal.Lines.TaxDate = Now
    oJournal.Lines.ContraAccount = oInvParty.Value
    oJournal.Lines.ShortName = oInvParty.Value
    oJournal.Lines.Credit = rExcAmt
    oJournal.Lines.Debit = 0
    oJournal.Lines.ReferenceDate1 = Now
    oJournal.Lines.LineMemo = "Excess-" & oCustName.Value
    oJournal.Lines.Reference1 = lDocNum
    oJournal.Lines.Add()
    If (0 <> oJournal.Add()) Then
      MsgBox("failed to add a journal entry")
      Call oDICompany.GetLastError(nErr, ErrMsg)
      If (0 <> nErr) Then
        MsgBox("Found error:" + Str(nErr) + "," + ErrMsg)
      End If
    End If
    oJournal = Nothing
    Please help !
    Regards
    John

    Hi John,
    You can only "clear" (= "Close"?!) an Invoice by posting a Payment or a Credit Memo, if I am not totally wrong!
    A Journal entry only has a connection to a document (through the Origin / Origin No. fields) when it is generated in the background of the document creation!
    Sorry, Frank

  • Trying to create Invoice using the API,however i am not able to create the customer accounts in the front end

    when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
    Transaction type is invalid with current transaction date
    invalid transaction type
    either an inventory item description must be provided
    Kindly help me here

    Hi Team,
    I  tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
    Either an inventory item or description must be provided.
    Please help me on this.

  • Restricting changes in Invoicing party in MIRO transaction

    Hi MM gurus,
    Did anyone try to change the messages
    M8 286 Different invoicing party & planned in purchase order &
    M8 288 Different invoicing party & planned in purchase order &
    for the MIRO transaction?
    Our requirement is to restrict the users in MIRO screen for changing the invoicing party to a different vendor.
    1) Is there any other way to achieve this functionality?
    We should not allow users to change the invoicing party when they create MIRO.
    Request help in this regard and thanks in advance.
    Best regards,
    Sridhar

    Hi,
    1.- standard message
    M8 286 Different invoicing party & planned in purchase order &
    This message appears when the vendor of MIRO transaction is different from vendor of PO.
    2.- badi message
    The solution i proposed appears when you´ve saved the document and you modify the document to change the vendor regardless of if it is the same of the PO or not.
    If the vendor is different from the one saved in the first place a message would appear.
    Maybe i got it wrong and this is not what you expected.
    Perhaps this is what you need:
    check transaction code OMRM and change the message 286/288, class M8, from W to E (error).
    Best regards.
    Edited by: Pablo Casamayor on Dec 8, 2009 5:33 PM

  • How to get the pop up of Down Payment Clearing while posting an Invoice using MIRO tcode

    Hi,
    I am having a requirement where I need to display the Down Payment Clearing pop up.
    Scenario: While posting an Invoice, user have to check whether he had done any downpayment for the Purchase Order, if so, then there will be a Information displayed saying "Down Payment for Purchase Order xxxxxxxxx exist". Then user  has to click the Down Payment Clearing button in the header level, then a pop up window is displayed.
    But now my requirement is when the Information Message is displayed, if I click enter button to goto next screen, that time itself I need to display the Down Payment Clearing pop window, rather than clicking the down payment clearing button in the header level.
    Kindly suggest any user exit or badi to do this customization
    Thanks & Regards,
    Karthikeyan G.

    Hi,
    At the time of entering the invoice from MIRO/FB60, system gives a pop-up for downpayment clearing. If you go in the help, the following thing is mentioned in the part Procedure.
    Procedure
    Check whether a transfer posting or a clearing of special G/L transactions (for example down payments) is necessary after you have posted the present document.
    Here SAP has clearly mentioned that we can do the clearing after posting of this document.
    Regards,
    Amit
    Edited by: amit kulkarni on Nov 13, 2009 2:53 PM

  • Adding Multiple Vendor Invoice at time MIRO Transaction

    Dear Experts,
    I am facing a problem whereby the users want to to add hundreds of Vendor Invoices and there corressponding date when at the time of MIRO transaction.
    Currently in standard there is only one field for the Vendor Invoice No and Vendor Invoice Date.
    Please advice as if how to give the provisions to user so that they can enter multiple(20 or 30) vendor invoice no and corresponding vendor Invoice dates at time of creation MIRO Invoice.(T-Code : MIRO)
    Many Thanks In Advance.
    NINAN

    Hi,
           For invoice verification of  one vendor with many inovice  at the same time in MIRO, select vendor insted of Purchase order / Schedukle agreement   after selecting vendor , then click on more allocation criteria,  after that a new pop window will open enter the plant and vendor code and click on adopt then system will select all the PO for which invocie verification is not done  then select all the invocie u want to proceed,
    Hope this will solve your rpoblem.
    regards,
      zafar

  • Posting Customer Invoice using FB70

    Hi Experts,
    While posting customer invoice (FB70) for the customer having withholding tax information defined, I am able to simulate the transaction successfully but not able to post it.I can see the TDS transaction executed.But, the post icon symbol is inactive. It displays " error messages still exist" . When i checked the error log it displayed Message number 047 in the application area F5A.
    Please help me
    Regards,
    Sasidhar

    Hi
    In accounting document posting - system not shows any specific error log.
    In your case, the error might be any of the below :
    - check whether the balance of the all line items is zero
    - check whether the WHT calculation is correct
    - check whether the customer invioce amount is entered
    VVR

  • May i specify the G/L account when i using the MIRO ?

    Dear Guru,
    Fist , let me explain the problem...
    Some PO are created & already receipted. Now we got the invoice from the vendor and found that amount was differen from the PO because of the PO not include the landing cost...
    Hence, i want to sperate these amount to each G/L and i found that in MIRO the bottom tabs there has one tab named G/L Account and it also have some fields ... ...
    Is it this function can satisfy my requirement even if it is 'Subsequence debit' ?
    Thanks a lot !
    Carlos

    Hi,
    Unplanned delivery costs are delivery costs that were not agreed upon in the
    purchase order and that are first entered upon invoice receipt. When you enter
    the invoice, you enter the total amount of the unplanned delivery costs on the
    Detail tab page.
    In Customizing for Materials Management under Logistics Invoice Verification&#8594;
    Incoming Invoice &#8594; Configure How Unplanned Delivery Costs Are Posted, you
    can specify whether the system automatically posts the unplanned delivery costs
    to the individual items or to a separate G/L account.
    If the unplanned delivery costs are posted to a separate G/L account, the unplanned
    delivery costs are not debited to the stocks or the account assignment objects.
    The system does not show unplanned delivery costs that are posted to a separate
    G/L account, in the PO history.
    You can only post an invoice containing only unplanned delivery costs with
    reference to a purchase order, if at least one invoice has already been posted for
    the purchase order. Otherwise all the invoiced values would be zero, and it would
    not be possible to distribute the delivery costs
    The system apportions the unplanned delivery costs to the items in proportion to
    the total value invoiced so far and the values in the current invoice.
    You can also distribute unplanned delivery costs manually to individual invoice
    items, by changing the amounts of the invoice items. Since in this case the delivery
    costs are entered in the same way as price variances, the system performs a price
    check, and the invoices are blocked wherever the tolerances set in Customizing
    are exceeded.
    The way in which the system posts unplanned delivery costs depends on the
    settings in Customizing. They are either distributed automatically to the individual
    invoice items or posted to a separate G/L account.
    During automatic distribution, the unplanned delivery costs are posted according
    to the price control.
    For a material with moving average price, the system posts to the stock
    account as long as there is a stock coverage.
    For a material with standard price, the system posts the unplanned delivery
    costs to the price difference account you have set up.
    reward points if helpful
    rgds
    Lakshmi Reddy

  • How to post Intercompany GL using BAPI

    Hello Experts,
    We have a requirement for Intercompany GL posting , we are using BAPI_ACC_DOCUMENT_POST for standard posting but looks like it does not work with intercompany posting.
    Can anyone let me know how to post Intercompany GL either using BAPI_ACC_DOCUMENT_POST or any other method.
    Thanks
    Shraman

    Hi Shraman,
    For a requirement for Intercompany GL posting, use BAPI_ACC_DOCUMENT_POST for standard posting with some advanced parameters
    In Header of the BAPI, pass the hardcoded values like
    DOCUMENTHEADER
           OBJ_TYPE            =            FKKSU
           OBJ_KEY             =          $
           OBJ_SYS              =          System name 
           BUS_ACT             =           RFBU
    Other parameters you can pass in Header is:
    USERNAME
    HEADER_TXT
    COMP_CODE
    DOC_DATE
    PSTNG_DATE
    TRANS_DATE
    FISC_YEAR
    FIS_PERIOD
    DOC_TYPE
    REF_DOC_NO
    If you are posting a document in cross-companies 1000 & 1001, you need to pass cost-center with the line item. That is the mandatory field.
    Thanks,
    Guru

  • Error while posting a document using  the  BAPI_GOODSMVT_CREATE

    Hi,
    i was trying to post the Goods Receipt document ( Tcode MB1C) using the bapi  BAPI_GOODSMVT_CREATE
    i am passing the item details and Serial number details.
    the error triggered was Maintain Serial Numbers for Total Quantity
    but i am passing the quantity as 1 ( in item data) and passing one serial number.
    is this error because of data problem or am i missing to pass the value to  some dependent parameter..?
    Please help me out.
    Thanks in advance.
    Sriram

    Hi David,
    i was tring to pass the same.
    in item table we have we have four item details ( below)
    RES_ITEM - Item Number of Reservation/Dependent Requirement
    ORDER_ITNO - Order Item Number
    S_ORD_ITEM - Item Number in Sales Order ( length mismatch with serial  item number)
    PO_ITEM  - Item Number of Purchasing Document ( length mismatch with serial  item number)
    out 4 , 2 are ruled out because of length mismatch. and in the reaming two are
    RES_ITEM - Item Number of Reservation/Dependent Requirement
    ORDER_ITNO - Order Item Number
    this is a Goods receipt document, please let me know which field is required to map with item number in the above two.
    Regards,
    Sriram.

  • Using the File transactions

    Hi,
    While creating a logical file, and uploading it in the Development system using the transaction 'FILE', I am getting a pop up to create a request, which i create.
    Now the question is, if i need to create the logical file and upload the files to the application server in quality and production, do I need to create new entries in Quality and production, or do i need to create it in Development, giving the quality system, and production system path in seperate entries and transport it in two seperate entires in Quality and production respectively.
    I will certainly avoid points for the solution.
    Thanks and Regards,
    Thiru

    Hello,
    normally you create these entries in development system and transport them to quality and production.
    Remember: most of these entries are client independent customizing.
    The whole sense of these logical defintions are to have an abstraction between the filenames in ABAP-programs and the real filenames on the file-system.
    For example: we have interface-files that reside in
    development system (T44) on a path named /usr/sap/T44/data/in/fi, in quality system (A44) on /usr/sap/A44/data/in/fi
    So we defined a logical path that ZFI_FI_IN with points to the physical path /usr/sap/<SYSID>/data/in/fi/<FILENAME>. That fits for all systems, because <SYSID> is a parameter
    which is translated by the function module FILE_GET_NAME.
    There are some more parameters that you also may use, like <CLIENT> or  <DATE> .
    Regards Wolfgang

  • Use the both transactions ME21/ME21N

    Hello,
    we want to use the transactions ME21N . Transaction ME21 is
    still used by companies for batch input files and some flows.This is why up to now we didn't choose to use transaction ME21N.
    Can you confirm that the use of both transactions ME21 and ME21N don't generate problems or create inconsistencies in MM tables?
    Thanks and regards
    Barondra BERGET

    Hi,
    Generally Transactions ending with N are referred as Enjoy transactions that means these transaction are more user friendly when compared with earlier transaction.
    Basic functionality with there will not be any difference when using any of these transactions. you can use these both transactions(ME21, ME21N) simultaneously without any problems. There will not be any inconsistency in the system behaviour. 
    Regards,
    Krishna Mohan

  • Issue with posting G/L using the BAPI " BAPI_ACC_DOCUMENT_POST"

    Hi all,
    I am trying to create a G/L document using the BAPI "BAPI_ACC_DOCUMENT_POST". The Bapi is returning me a success message, but i am not able to see the document in BKPF/BSEG.
    Can somebody please let me know if there is any customization that needs to be done to get the document number reflected in the corresponding tables after i execute this BAPI.
    Here is the part of the code that i am using to fill the header structure:
      docheader-obj_type = 'REACI'.
        docheader-obj_key = 'TEST'.
        docheader-obj_sys = 'ECSCLNT010'.
        docheader-bus_act = 'RFBU'.
        docheader-username = sy-uname.
        docheader-header_txt = 'HDR TEXT'.
        docheader-comp_code = 'SC01'.
        docheader-doc_date = sy-datum.
        docheader-pstng_date = sy-datum.
        CASE wa_input_tmp-batch_type .
          WHEN '0'.
            docheader-doc_type = 'SA'.
          WHEN '1'.
            docheader-doc_type = 'RA'.
        ENDCASE.
    Any help is much appreciated.
    Thanks in Advance,
    Suresh

    See the below code :
    I have tested program in my system :
    *&---HEADER DECLARATION
    DATA: HEADER TYPE BAPIACHE09.                " HEADER DATA
                 INTERNAL TABLE DECLARATION
    *&----G/L ACCOUNT ITEM
    DATA: ACCOUNTGL TYPE STANDARD TABLE OF BAPIACGL09.
    *&---CURRENCY ITEMS
    DATA: CURRENCY_AMOUNT TYPE STANDARD TABLE OF BAPIACCR09.
    *&----RETURN PARAMETER
    DATA: RETURN  TYPE STANDARD TABLE OF BAPIRET2 with header line.
                         WORK-AREA DECLARATION
    *&----WORKAREA FOR G/L ACCOUNT ITEM
    DATA: WA_ACCOUNTGL TYPE BAPIACGL09.
    *&---WORKAREA FOR CURRENCY ITEMS
    DATA: WA_CURRENCY_AMOUNT TYPE BAPIACCR09.
                        INITIALIZATION
    HEADER-HEADER_TXT  = 'TEST HEADER'.
    HEADER-USERNAME    = 'DEVELOPER'.
    HEADER-COMP_CODE   = '0002'.
    HEADER-FISC_YEAR   = '2007'.
    HEADER-DOC_DATE    = '20070502'.
    HEADER-PSTNG_DATE  = '20070502'.
    HEADER-TRANS_DATE  = '20070502'.
    HEADER-DOC_TYPE    = 'SA'.
    HEADER-BUS_ACT     = 'RFBU'.
    WA_ACCOUNTGL-ITEMNO_ACC  = '0000000010'.
    WA_ACCOUNTGL-GL_ACCOUNT = '0000113020'.
    WA_ACCOUNTGL-ITEM_TEXT  = 'SO_DOC'.
    WA_ACCOUNTGL-DE_CRE_IND = 'S'.
    APPEND WA_ACCOUNTGL TO ACCOUNTGL.
    CLEAR WA_ACCOUNTGL.
    WA_ACCOUNTGL-ITEMNO_ACC  = '0000000020'.
    WA_ACCOUNTGL-GL_ACCOUNT = '0000113020'.
    WA_ACCOUNTGL-ITEM_TEXT  = 'SO_DOC'.
    WA_ACCOUNTGL-DE_CRE_IND = 'H'.
    APPEND WA_ACCOUNTGL TO ACCOUNTGL.
    CLEAR WA_ACCOUNTGL.
    WA_CURRENCY_AMOUNT-ITEMNO_ACC = '0000000010'.
    WA_CURRENCY_AMOUNT-AMT_DOCCUR = '500'.
    WA_CURRENCY_AMOUNT-CURRENCY   = 'INR'.
    APPEND WA_CURRENCY_AMOUNT TO CURRENCY_AMOUNT.
    CLEAR WA_CURRENCY_AMOUNT.
    WA_CURRENCY_AMOUNT-ITEMNO_ACC = '0000000020'.
    WA_CURRENCY_AMOUNT-AMT_DOCCUR = '-500'.
    WA_CURRENCY_AMOUNT-CURRENCY   = 'INR'.
    APPEND WA_CURRENCY_AMOUNT TO CURRENCY_AMOUNT.
    CLEAR WA_CURRENCY_AMOUNT.
                    START-OF-SELECTION
    START-OF-SELECTION.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader          = HEADER
      CUSTOMERCPD             =
      CONTRACTHEADER          =
    IMPORTING
      OBJ_TYPE                =
      OBJ_KEY                 =
      OBJ_SYS                 =
      tables
       ACCOUNTGL               =   ACCOUNTGL
      ACCOUNTRECEIVABLE       =
      ACCOUNTPAYABLE          =
      ACCOUNTTAX              =
        currencyamount          = CURRENCY_AMOUNT
      CRITERIA                =
      VALUEFIELD              =
      EXTENSION1              =
        return                  = RETURN
      PAYMENTCARD             =
      CONTRACTITEM            =
      EXTENSION2              =
      REALESTATE              =
    IF return-type NA 'EA'.
    call function 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = 'X'.
    IMPORTING
      RETURN        = RETURN.
      write:/ return-message.
    else.
      write:/ return-message.
    ENDIF.
    Reward Points if it is helpful
    Thanks
    Seshu

Maybe you are looking for

  • "Mail cannot update your mailbox because your home directory is full"

    For some reason when I try and open Mail I get this prompt with "quit" as the only option. I've repaired permissions to the disc. I've emptied some data from the 'home folder' as the prompt suggests. I've restarted many times. Any ideas?

  • Set a variable in Adapter Module and read it during message mapping

    Hi guys, is there any way, how I could set some variable and store its value during the adapter module processing and read back this value in message mapping and use it? Without using a database or files.. I mean, some j2ee storage or something like

  • Testing for blank

    I have a function that returns a blank.Does that mean i can check using if(condition==""){ }Is that equivalent to blank. Is blank and null the same?

  • J2ME-where to start?

    I need to write an application for the Pocket PC PDA and possibly Palm OS I will be using J2ME My problem is: where do I start? There are many thing that confuse me about j2ME: CDC, CDLC, MIDP, KVM, PersonalJava? gesh...i thought they would make it e

  • I need help burning a DVD.

    I made a movie using IMovie and IDVD. When I burn it to a disc it doesn't play on and other DVD players or any other computers. How do I burn a DVD so that it will play on other DVD players and other computers? Thank You.