Creating & posting the incoming invoice (MIRO) using BAPI

Hi,
We used to give ,
Document Date = current date
Delivery Note    = EX1
Select the vendor
Once we select the vendor the following data gets populated automatically such as,
Item,Amount,Quantity,UOM and so on.
For my data I get tax_code as V5.
When I select the check box CALCULATE_TAX tax amount gets populated as 120 and Balance Amount as 3120.
PO No         Amount Quantity UOM INVOICESIGN
4600003648 2000       200       PCS  +
4500000208 1000       100       PCS  +
This data gets Populated automatically when I select EX1 as deleivery note and 000025 as vendor
Since invoicesign is '+' for both the rows I give
MATERIALDATA-SHKZG = 'S' for both the rows.
I am getting errors like:
1.  Balance <> 0  debit = 6120 credit = 3120.
2.  Quantity greater than amount to be debited.
and I couln't post the document.
Kindly help me in this regard .
If possible pls give me the code.

For vendor invoices GLaccount will have cost centre data.the first line is always of vendor when you create vendor invoice in which vendor number is passed.
In GLaccount apss your cost centre data.
Nabhheet

Similar Messages

  • Enter Incoming Invoice ( MIRO) unalbe to post

    Dear All,
    While posting the Incoming Invoice using MIRO tran. - credit memo, After Entering the GL Account
    Layout of Business Area , Cost Center, Partner Business area , and order field indicator shows all
    tick mark, ( correct sign) ,
    continuos message come fill in all required entry field.
    but when I using other User ID  Entering the Incoming Invoice happened.
    Please reply me How to correct the same. Which Auth.shall I remove.
    Regards,
    Santosh

    Thanx sri nath for reply., but still my problem is not solved.
    SAP user doing following entries :
    MIRO ->Inv. date >Reference>Calculate Tax ( check box select) > Business place>text>PO ref>
        --> select Delivery Note --> Select G/L Account -->
        in this menu after select the G/l account --> Business area --> Cost Center --> Order ( This fielld  
       automatically  Mandatory tick comes  ) only in one SAP login.
      So please tell me now How to remove this Mandatory tick to aboe field.
    While on my other SAP user this field are not comes in Mandatory. so Invoice post successfully.
    Regards,
    Santosh

  • Report to post a parked invoices parked using transaction  MIR7

    Hi Experts,
    I have a requirement of developing a report that will post the parked invoices, parked using the transaction MIR7. While posting I need to check whether the invoice amount is in par with PO price. If there is any price variance, I need to assign the increased price to a different G/L account.
    I understand that I should use the Function Modules 'MRM_INVOICE_READ' and 'MRM_PARKED_INVOICE_POST'. But it is not working for me. Forget about assigning the PO variance to different G/L account, I am unable to even post a simple parked invoice using these function modules.
    The invoice data, especially item data (ti drseg), is not sufficient to populate to 'MRMPARKED_INVOICE_POST'. Some one help me how to fill the internal table ti_drseg so as to pass it to function module 'MRM_PARKED_INVOICE_POST'.
    Please provide me if any standard reports are available  to post the parked invoices.
    Thanks,
    Naresh Babu Kandula.

    Hi,
    maybe something like:
    REPORT  zz_post_parked_invoice.
    TYPE-POOLS: mrm, mmcr.
    DATA: l_t_rbkpv TYPE mrm_rbkpv,
          l_t_drseg TYPE mmcr_drseg OCCURS 0.
    DATA: i_belnr LIKE bkpf-belnr,
          i_gjahr LIKE bkpf-gjahr.
    PARAMETERS: p_belnr LIKE rbkp-belnr,
                p_gjahr LIKE rbkp-gjahr.
    START-OF-SELECTION.
      i_belnr = p_belnr.
      i_gjahr = p_gjahr.
      CALL FUNCTION 'MRM_INVOICE_READ'
        EXPORTING
          i_belnr         = i_belnr
          i_gjahr         = i_gjahr
        IMPORTING
          e_rbkpv         = l_t_rbkpv
        TABLES
          t_drseg         = l_t_drseg
        EXCEPTIONS
          entry_not_found = 1
          OTHERS          = 2.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'MRM_PARKED_INVOICE_POST'
        EXPORTING
          i_rbkpv  = l_t_rbkpv
          ti_drseg = l_t_drseg.
      IF sy-subrc NE 0.
        ROLLBACK WORK.
      ELSE.
        COMMIT WORK AND WAIT.
      ENDIF.
    check also function module FM_FI_MM_PP_POST in include LF0KJF01.
    Best regards.
    Edited by: Pablo Casamayor on Jan 28, 2010 4:16 PM

  • Avoid posting mm-incoming invoice with when special account is used

    Hi,
    during the creation of the (parked) incoming invoice we use a dummy account that needs to be changed later. For our process it is not simply done by customize the account in the way that posting is not allowed.
    Therefore I am searching a possibilty to reject the posting of an mm incoming invoice if one special account is used. For the FI-incoming invoices I solved the problem with validation rules (User exits to avoid posting of invoices)
    But how can I do this with the mm invoices? Is it extension LMR1M005 or LMR1M004? (Didn't get it with them because I don't know how a "posting" switch should look like in the coding)
    Regards, Vanessa

    Hi,
    Your PO created for real  vendor/account and Why you parked incoming invoice to a dummy account ?
    Purchase order considered as committed document by business and you are doing invoice verification( parking and posting) WRT purchase order for a vendor and respective accounting documents are created during goods receipt  and invoice verification-why you want to post to dummy account/vendor!
    Instead of development , you can try with following:
    1.Create Main Vendor (A)in t.code:XK01
    2.Go for creating a new vendor master(B) for dummy vendor in XK01 , keep alternate payee as main vendor(A) as Alternat.payee field in Payment transaction view and keep partner function as Invoicing Party(PI) only in  Partner function view.
    3. Assign this dummy vendor code(B) in Main vendor(A) in t.code:XK02  with partner function of Invoicing Party in Partner function view.
    4.Now create PO for Main vendor(A)
    5.Do invoice verification for PO, your invoice posted to dummy vendor code(B)
    6.Do payment for PO where you will pay for vendor code (A)
    Also you can think following options:
    Better create assign a blocking key in field of Payment block in Payment transaction view of your vendor master and after invoice verification, the invoice document created will be blocked for vendor.Later you can release the invoice with MRBR t.code or FB02 t.code.
    OR
    You can use tolerance limit as ZERO for tolerance keys for invoice verification for your company code. Create PO for vendor and after invoice verification for PO, the invoice document created will be blocked for vendor.Later you can release the invoice with t.codes MRBR  or FB02.
    Regards,
    Biju K

  • How to post invoice parked using  BAPI-  BAPI_INCOMINGINVOICE_CREATE

    Hi all,
    Can anybody help me with the following scenario:
    I am parking Invoice document using BAPI:  <b>BAPI_INCOMINGINVOICE_PARK</b>. It gives me a document no. which I can see in frontend system also by committing the BAPI.
    But when I try to post the same using BAPI: <b>BAPI_INCOMINGINVOICE_CREATE</b> , It gives me a different document no.
    Means it is not posting the document which has been parked earlier but it is creating totally a new document. Can anybody  tell me using BAPIs how to post the same document that I had parked using  BAPI:  <b>BAPI_INCOMINGINVOICE_PARK</b>??
    Thanks
    Saurabh

    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

  • How to create Incoming Email Activity using BAPI or Function module

    To create an Incoming Email Activity using BAPI 'BAPI_ACTIVITYCRM_CREATEMULTI' or using 'CRM_ORDER_MAINTAIN' . what parameters i need to pass to a bapi.
    Suggest me with a solution.
    Regards,
    Sanjani

    For activity you must fill the following structures of 'CRM_ORDER_MAINTAIN'...
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        EXPORTING
          it_activity_h             = t_activity_h
          iv_collect_exceptions = ''
        CHANGING
          ct_orderadm_h         = t_orderadm_h
          ct_input_fields       = t_input_fields
        EXCEPTIONS
          error_occurred        = 1
          document_locked       = 2
          no_change_allowed     = 3
          no_authority          = 4
          OTHERS                = 5.
    And at the end you must use also 'CRM_ORDER_SAVE' to performe the save.
    Regards.

  • A JE created from the AP Invoice does not include the project # on all trx

    A JE created from the AP Invoice does not
    include the project # for the amounts entered in the freight box. To
    duplicate, do the following:
    1. Open an AP Invoice
    2. Enter BP Code
    3. Select Service type
    4. Enter a Project Code in drop down box on Accounting tab
    5. Enter a line in the Contents; specify GL Account, amount and Tax
    Code Open Freight box
    6. Enter an amount in one of the lines
    7. Click ADD
    8. Go back to the invoice and go to the Accounting tab Click on the GL
    journal note and you can see that the line corresponding to the
    contents line has a project, but the line corresponding to the Freight
    box item does not.
    My customer users these projects when printing GL agings and the
    information is very important. Shouldn't this information be carried
    forward on all transactions on the Journal entry? Is there a way to get this information to post?

    Hi Pat,
    the project code (PC) on the marketing document may only be applied to the business partner (BP), hence the only row in the associated journal entry (JE) with this project code is that of the BP.
    You can link project codes to specific accounts (CoA -> select account -> account details -> project code) & this project code will then be assigned every time the account is found in a JE.
    If you require the project code to be applied to the freight, you may assign this project code to the account you have defined for this freight. The drawback is naturally that the project code will then  be pulled every time this freight is used, regardless of whether or not the PC is associated with the BP or not.
    It is possible to manually assign project codes to every row in a journal entry, hence this should also be possible with SDK. You might explore the possibility whether it might be possible to automatically assign the BP PC to all rows in the JE using a script.
    All the best,
    Kerstin

  • Park the incoming invoice without PO#.

    Hi All,
    I have a issue where i need to  park the incoming invoice without PO#. I found one BAPI 'BAPI_INCOMINGINVOICE_PARK', but when I checked it, It is asking for PO#. Is there any BAPI, or FM which can serve the purpose.
    Please help me on this issue.
    Regards,
    Rohit

    Hi,
    With T_Code FB60, you can fulfill your requirements, but whenever you want to track the same wrt PO / GR / SES it will not give you proper details, as long as possible you should avoid using FB60.
    Regards,
    VIkas

  • I am unable to upload the customer master data using BAPI.?

    Hi Guru's,
    i am unable to upload the customer master data using BAPI.(BAPI_CUSTOMER_CREATEFROMDATA1)
    Please guide me how upload the data...
    Thanks in iadvance
    Srinivas...

    Hello Srinivas
    This BAPI does not allow to create a new customer from scratch but only to copy an existing customer to a new one and change its address data.
    The reference customer has to be provided using IMPORTING parameter PI_COPYREFERENCE. See also the BAPI documentation for more details.
    The BAPI does the same like transaction XD01 with Reference.
    Regards
      Uwe

  • Unplanned delivery costs block incoming invoice - MIRO

    Hello experts,
    In tcode MIRO how can I block the "Incoming Invoice" if I insert Unplanned delivery costs? It is possible?
    I already set tolerance limits (Materials Management->Logistics Invoice Verification->Invoice Block->Set Tolerance Limits), but it only works when when the cost is the level of the item.
    Thanks in advance,
    Best regards

    Andreia,
    Because you say "incoming invoice", I assume you are asking how to block an invoice that is being process via an Idoc?  If that is the case, I am not aware of any SAP configuration that will make that happen.   You could perhaps block it via a user exit.
    Regards,
    Sandra

  • LSMW of INCOMING INVOICE (MIRO)

    Hi,
    I'm gonna do the conversion of Invoices from one SAP to an other SAP and I need to use an LSMW of Incoming Invoices for SAP Material Management (transaction MIRO???).
    Anyone knows if it's possible and if it's exists?
    Thank you
    Andrea

    you want migrate historical data?
    There is nothing really impossible with computer programs, but I feel this would need so much effort and cost more than the whole rest of your migration project.
    you would have to redo anything in the sequence as it was dont in the old system, otherwise you will get wrong values.. You cannot migrate movements by its own, or invoices by its own.
    You would need to create this old (and probably closed)  PO again, receive the goods to create the   movement, post the invoice... which would mean that you might have an open item and you would need to pay the vendor again.......
    Dont forget to post all the goods issues otherwise your stock will be incorrect.
    And .. do you really think that you can get the data with the same numbers, if you have 2 SAP systems, then you might have overlapping number ranges.
    No , to be honest, I have not seen that such was done anywhere.
    You usually transfer open business process (and create cross reference lists, to see what old number has got which new number). means you transfer all POs that have not been received yet.
    You will post the invoices that belong to a PO that was received in the old system using the FI transactions (no 3 way match for a short period of time)
    You might want to ask that question to SAPs SLO team.

  • Account assignment of the incoming invoice and the purchase order

    Hi,
    I am trying to control the account assignment of an incoming invoice against the account assignment of the purchase order used. The link I found is the field ZEKKN. I think RBCO-ZEKKN tells me what account assignment of the purchase order (EKKN-ZEKKN) I am using (just as RSEG-EBELN and RSEG-EBELP help to point the item of the PO used in the invoice). This link is working pretty well in 99% of my Pos and invoices. But sometimes when I create an assignment line in the PO, this line is created with a key EBELN, EBELP, ZEKKN = ‘02’, even if any assignment was created wit an ZEKKN = ‘01’.
    In this case, when I park an invoice on this PO, the value of RBCO-ZEKKN is ‘01’ and not ‘02’ as in the table EKKN.
    It is very annoying because the control I implement blocks the posting of the invoice..
    Any idea or any new link between tables RBCO and EKKN will be very appreciable.
    Thanks in advance

    Hi, I've got the same issue if someones has a clue it would be very helpfull

  • Invoice Type not being Updated while Posting INVOIC01 - Incoming Invoice

    Hello,
                    I am trying to Post Incoming Vendor Invoice in to SAP using INVOIC01 and IDOC_INPUT_INVOIC_MRM Function Module. I am adding values INVO for Invoice, CRMO for Credit Memo in the Field E1EDK01-BSART to Post the Invoice with different Invoice Types. However, the Invoice for the PO gets Posted only as Invoice, no matter what I populate in the Segment Field E1EDK01-BSART. What could be the issue? Please let me know.
    Thank You,
    Venkata Phani Prasad K.

    This issue has been Resolved. A Sub routine MRM_DOCUMENT_COMPLETE is called in the  Function Module IDOC_INPUT_INVOIC_MRM in which the value of the USING Parameter MRM_RBKPV-TCODE is being hard coded to MR1M. Since I am using a Z-Version of this Function Module, I've changed the value of the above field to MIRO after the Subroutine call which solved the issue.
    MRM_RBKPV-TCODE = 'MIRO'.
    The Values to be Passed to the Field BSART in the Segment E1EDK01 are
    E1EDK01-BSART = 'INVL' - For Invoice
    E1EDK01-BSART = 'CRME' - For Credit Memo
    Thanks,
    Venkata Phani Prasad K

  • Can not delete the incoming invoice- is "held"

    Hi, can anybody help me?
    What can be done if to PO an incoming invoice was created, but beacuse of some error messages only held, not posted. Now, if they try to delete the invocie (though transaction MIR4) , the message comes :
    Invoice document xxxxxx cannot be processed further
    Message no. M8422
    Diagnosis
    The invoice document xxxxxxxx contains the purchasing document xxxxxxxx, and the item 00290. You cannot enter the invoice for this item, or you cannot cancel the invoice document. This can have various causes, for example:
    - The PO item is locked
    - THE PO item is flagged for deletion
    - Another employee is currently processing the purchase order
    - The purchase order has not yet been released
    - The corresponding service entry sheet has been deleted
    - For a held invoice for planned delivery costs: the vendor in the held invoice does not match the vendor in the purchase order condition or with the vendor from the purchase order history. This is because the vendor in the purchase order condition has been changed in the meantime. -> In this case, you can no longer process the held document. You can use report Z_MRM_DELETE_PP from note 501905 to delete the document
    The position 290 in Po seems to be ok, no deletion flag or something else, no change of vendor.
    Could be the problem caused by the fact, that in the meantime the reall invoice to the same PO was created and also posted?
    So how can we delete the held invoice without implementing the note?

    Hi,
    Please check the frieght condition in the PO item detail screen by taking the icon magnifying glass and check wheather the vendor is changed.
    Regards,

  • How to get the incoming file name using JMS adapter and SOAP adapter

    Hi Everybody,
       In one of my interface i need to get the file name of incoming flat file using JMS adapter at sender side. and then i am using xslt to convert it to IDOC and then posting to  SAP IDOC.
    my incoming filname are in this form price<DateTimestamp>.txt. when i do the tranformation this incoming file name should be part of one element in the IDOC which i am posting.
    EX:
    <IDOC
    <REF>price<DateTimestamp>.txt</REF>
    </IDOC>
    Hope it is clear to everybody. I need your suggestion how i can capture this incoming file name and send it as part of IDOC.
    Thanks
    raj

    If they are passing it in message id or correlation id,
    you can access it using
    <xsl:variable name="dynamic-conf" 
            select="map:get($inputparam, 'DynamicConfiguration')" />
        <xsl:variable name="dynamic-key"  
            select="key:create('http://sap.com/xi/XI/System/JMS', 'DCJMSMessageID/ DCJMSCorrelationID')" />
        <xsl:variable name="dynamic-value"
            select="dyn:get($dynamic-conf, $dynamic-key)" />
    Check this:
    http://help.sap.com/saphelp_nw70/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/content.htm
    Thanks,
    Beena.

Maybe you are looking for

  • How do I increase the text size when I click the T button in  Adobe Reader

    On some documents in Adobe Reader when I wish to enter text using the T button, I am given the option of the font and size of text. However, on other documents, a very small text size is used with no option to change it.  How can I change the text si

  • SSD Boot Drive for Mac Pro

    Apologies in advance, I'm really not great with this sort ofstuff. Basically, what I would like to do is add an SSD to my MacPro and use that as my boot drive.  Ihave a 1TB HDD which is currently doing everything but I'd like to use thispurely to sto

  • I need the old cache system with strict alphabetical filter, not the "intelligent" one. Is it possible to have it on this new version of Firefox ? Thanks.

    Hi, is it possible to have a strict alphabetical filter for the cache suggestions in fields (like with the previous version) instead of the new "intelligent" system? For example, if I type "fire dr", I only want suggestions "fire dragon" or "fire dra

  • Quiz Question not to be marked???

    Hello.. I have created an elearning module with a few question slides... a couple of true/flash.   So we are not worried about recording the results... just that they finished.  So i do i tell it not to record the answers for the quizzes??? Rich

  • Adjusting image saturation

    Dear All, discovered the pleasures of Edit>Convert to Profile command. When I convert to a new profile (I have belatedly  discovered paper profiles) from adobe RGB to Hahnelmule Photorag to be precise there is a loss of saturation I am having trouble