Post non PO invoice line items using INVOIC01 and FM IDOC_INPUT_INVOIC_MRM

hello there SAP folks,
Have an interesting question for all of you. We currently have a partner through whom we use the IDOC_INPUT_INVOIC_MRM Function module to pass invoices. Now there are multiple line items some times [multi E1EDP01 / E1EDP02] segments which all refer to the same PO but to different line items on the PO. Now all that is well.
For one particular partner we now have the following requirement. We are going to have the same condition as above, with the added condition that there are going to be some invoice line items with no reference to a PO. the reason is that the vendor is going to calculate the different taxes and send them to us. so when we post the invoice :
we will now have
31 Vendor
40 GR/IR
40 Tax 1
40 Tax 2
50 Tax 3 offset
instead of
31 vendor
40 GR/IR
to deal with the new situation I tried adding having the following
first E1EDP02 is going to refer to the PO using qualifier 001, but second E1EDP02 [for tax] s not going to have a qualifier 001. When I do that i get a missing belnr (001) and zeile (001) error.the exact error message is the following
Required field BELNR(001) is missing in segment E1EDP02
Required field ZEILE(001) is missing in segment E1EDP02
Message no. FD070
Now to bypass that, I added the 001 qualifier for the second E1EDP02 [tax part] and now the error that I get is either the PO is duplicated or if i put some dummy PO number, then it says PO cannot be found.
=======
so the question is how is it possible to post  4 items in the idoc , with one being a PO reference and 3 non PO reference using INVOIC01 and IDOC_INPUT_INVOIC_MRM
I also have to add that it is possible to add a non PO items to the MM invoice in MIRO by entering the additional tax lines using the g/l account tab next to the PO reference tab.

nvm.
Edited by: D N on Dec 16, 2008 2:10 PM

Similar Messages

  • Insert/Update/Delete Non-PO Invoice Line Item via FM/BAPI?

    Does anyone know of a way to insert/update/delete an Invoice Line item (Non-PO Accounting Invoice - Transaction FB60 or FV60) using a BAPI or Function Module (or set of function modules) using ABAP? I have been trying to find some code to accomplish this and am stuck on a couple of issues.
    I have found PRELIMINARY_POSTING_FB01 and PP_CHANGE_DOCUMENT_ENJ but both seem to submit the details to background processes. This is an issue because it gives the user a success message after execution but later delivers the error to Workflow. This is for an interfacing program so the results should be as real time as possible.
    Has anyone accomplished this via FM or BAPI and if so would you mind sharing your experiences?
    Thank you very much,
    Andy

    SG- Thank you for the reply.
    I have been playing with BAPI_INCOMINGINVOICE_PARK and I'm not sure if it is doing exactly what we want, but it is something that I have considered in the past. I plan on looking into BAPI_ACC_INVOICE_RECEIPT_POST this morning, hopefully that will provide some more for us.
    If possible I'd like to avoid BDC sessions because this program could hypothetically interface with multiple SAP systems with different configurations.
    I will check into those FM's and thank you very much.

  • Invoice line items report from DSO compared to Infocube (in HANA)

    Hi Folks,
    As you know Invoice line items are very granular level information. We are facing performance issues on reports based on the Infocubes to display this information. We are migrating to HANA and looking for options to improve the performance. One of the option we are looking at is instead of Infocube can we we report directly on the DSO. I would like to know whether it will help and its Pro & Con's. Please help.
    Thanks,
    B

    Hi B,
    Reading data from a DSO instead of an InfoCube will not improve reporting performance. The benefit in getting rid of the cube is that you have less loading to do.  You still need cubes for planning and inventory scenarios.
    You do not need a composite provider to report from DSOs in BW. Once you've migrated to HANA you use DSOs just as you would today, and you can report from a multiprovider. Yes, you can use a composite provider, but it is not necessary.
    If your report is slow today, you need to find out where it is slow.  HANA could provide a huge benefit as soon as you migrate, or it might not help much.  It depends on the scenario. OSS 1681396 is a good place to start.
    If the DB time is long, and you're not using BWA today, you can expect big benefits when you migrate to HANA.
    If the OLAP time is long, you might see big benefits when you migrate, as the OLAP engine during query execution is pushing more to HANA.
    If the frontend time is long, migrating to a different database isn't likely to change that, you'd need to address that separately.
    Finally, an important point to remember is that once you've migrated you open up additional possibilities for improvement that are not available to you in BW-on-non-HANA.  For example, you might be able to rewrite queries as HANA models.  I did some performance tests on this in a very simple case of exception aggregation.

  • During F110  run-How to pick profit centre from the Pur.Invoice line item ?

    Could anyone please help me with a solution to this problem.
    Purchase invoice line items have got profit centre recorded from Material master.
    While doing the auto payment run F110, for foreign currency invoices, the exchange rate diff
    is posted to a - realised exch rate diff gl a/c.
    But there is no cost object attached.
    Business wants the system to pick the profit centre from the purchase invoice line item
    and put it in the line item record of the exch rate diff account.
    Can I do it using OKB9 ? Could someone please explain how to do it.
    Thanks

    Hi,
    With standard SAP this is not possible.may be you have to develop some custom program.
    with my experiance,we always post to defualt cost center.
    hope this helps you.
    Thanks,
    Rau

  • Group consolidate invoice line items

    Hi all,
    If I have multiple sales orders but all with the same characteristics at item level (material, currency etc.), and if I consilidate the sales orders during billing, will I also get a single invoice line item?  or will I get one invoice item per sales order item?
    Trying to avoid maxing out on the AR items.
    regards
    Tim

    Hi Tim,
    You will get invoice with as many items as you have in all sales order billing billed in that invoice. During posting to FI in general you will have one FI document line per item/GL account (determined from VKOA based on Customer Account Assignment Group, Material Account Assignment Group and accounting key assigned to condition type in pricing procedure) combination. You can limit number of G/L lines by applying posting aggregation for FI-SD interface. Youc an define the fields, which are not relevant for FI document and the fields will be cleared resulting in aggregation of the G/L lines on G/L account/posting sign (debit credit). Please be aware that the field you clear for aggregation will not appear in the line items in FI, so cannot be used as characteristics of the postings in the G/L.
    Regards,
    Marcin

  • How to identify Parked and Posted Documents in GL Line Item Report

    Is there any way to identify parked and posted documents in GL Line Item Report S_ALR_87012282? If i tick the parked documents in the further selection tab in the selection parameter, report will list all documents (parked and posted).
    There is no available field in the layout. Is there any other way?
    Thanks!

    HI,
    The other way to know the parked document details
    use tcode: FBV3 - Display
    OR
    you can go to SE16 and enter table name VBKPF -Document Header for Document Parking
    BSTAT = V
    V = parked document
    and ececute u will get the details of parked document.
    Edited by: Manohar Mathkunti on Sep 13, 2008 11:11 AM

  • How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K

    HI Experts,
    how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
    Requirement:
    Already the contract having two line items using ME31K.
    Custom program has to add new line items in existing contract.
    Thanks,
    Sendil

    I got the solution:
    We can do like this:
    1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
    2. After getting results, append new line item. Then use your BAPI.
    Check this posting program.. where this bapi is used, use the same coding technique.
    IDOC_INPUT_PURCONTRACT_CHANGE

  • Inbound Idoc type for posting Non-PO Invoice

    Hi,
    I am looking for an inbound Idoc type to post Non-PO Invoice.  The Idoc types INVOIC01 and INVOIC02 helps me to post the invoice with reference to PO.  But I am looking for the Idoc type to post the invoices without reference to PO i.e., For example to post the transaction FB60 (Enter vendor invoice without ref to purchase order).
    with regards,
    suresh

    Hello Deep,
    I know it might be quite late for you for this answer, nevertheless I will write that, because there are lots of question like yours. bapi_incominginvoice_park is also a suitable bapi for you. All you need to do is call it this way:
    data: headerdata like bapi_incinv_create_header value is initial,
            table_item type table of bapi_incinv_create_item,
            gl_account like bapi_incinv_create_gl_account,
            table_gl type table of bapi_incinv_create_gl_account.
    * fill headerdata and table_gl, leaving table_item empty
    CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
        EXPORTING
          HEADERDATA                = HEADERDATA
    *   ADDRESSDATA               =
        IMPORTING
          INVOICEDOCNUMBER          = lv_docnr
          FISCALYEAR                = lv_year
        TABLES
          ITEMDATA                  = table_item
    *      ACCOUNTINGDATA            = table_acc
          GLACCOUNTDATA             = table_gl
    *   MATERIALDATA              =
    *      TAXDATA                   = table_tax
    *   WITHTAXDATA               =
    *   VENDORITEMSPLITDATA       =
          RETURN                    = lt_return.
    This works perfectly for me, creating a mir7 document without refering to a PO. The trick here is to fulfill the glaccountingdata importing table while leaving itemdata empty.

  • Line Items used in Info Cube

    Hi All,
    Can anybody give me a clear concept of line items used in Infocube. I want to know what is the concept behind using the line items. How does it effect the performance of a Infocube.
    Regards,
    Kshitij

    Hi,
    go throught the link, you will get a clear idea.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a7/d50f395fc8cb7fe10000000a11402f/frameset.htm
    rgrds,
    v.sen.

  • Relation between Invoice Line items and Accounting Line item

    Dear All,
    My requirement is to print all the invoice documents and it's tax values like cenvat, Ecess, BED and VAT.
    I have to fetch these tax details from BSEG table .
    I' am getting Invoice number ( RBKP-BELNR ) from BKPF-AWTKEY .
    Can any one please tell me how to relate the Invoice line items and Accounting document line items..
    Any BAPI or FM is there to retrieve these data.
    Please do needful in this regard.

    Hi,
    from table bseg - field Koart
    K = Vendor
    D = Customer
    S = G/L account here tax lines identify with buzid = T
    or take table bset for taxes
    Andreas

  • Payment to be done according to invoice line item

    Dear SAP Friends,
    I require a small clarification on Payment. Please see the below screnario.
    1. I have a invoice for 10000 USD, Which includes 3 lines in the details.
           a. Water Charge - 3000
           b. Electricity Charge - 5000
           c. Rent Charge  -        2000.
    2. Now i receive a payment of 8000.
        Will it possible to match the invoice line item to receive the payments of 2 individual lines for 5000 and 2000.
        When i checked with our FI consultant , i saw that payment is done with respect to the whole invoice , not the individual detail line.
    Can anyone please provide some information on this.
    Thanks
    Kunaseelan.

    Hi
    Payment will be done with respect to Invoice only but not based on the Individual Line Items.
    you can do by partial or Residual Payments.
    Regards
    Venkat

  • Adding a new schedule line for a line item using bapi_po_change

    hi experts,
    can i know how to add a new schedule line for a line item using<u> bapi_po_change</u>. what are the parameters that need to be filed. i filled poitem with total quantities and poschedule table with 2 different schedule lines and passing as the parameter.but then i get the error saying item 0000 doesnt exist

    Hi,
    Please check if you have properly populated the following fields in POSCHEDULE:
    PO_ITEM
    SCHED_LINE
    and the other fields required for your schedule line such as delivery date and quantity, etc.
    After that, make sure to properly populate fields in POSCHEDULEX:
    PO_ITEM -> same value as found in POSCHEDULE
    SCHED_LINE -> same value as found in POSCHEDULE
    All other values populated in POSCHEDULE should be ticked as 'X' in POSCHEDULEX.
    Kind Regards,
    Darwin
    Kind Regards,
    Darwin

  • How to change the posting date at the line item level in a sales order

    how to change the posting date at the line item level in a sales order

    Hi,
    I believe the POSTING DATE will appear on the accounting document
    In the Accounting document, the posting date will be based on the  Billing date.
    Please let me know if you need any more details
    santosh

  • Order To Cash - AR Invoice Line Item description change

    Hi,
    I have a requirement of concatenating some value to the Invoice line - Item description in the AR Invoice created thought Auto Invoicing.
    Please could anyone tell me the best way of doing it.
    Thanks & Regards,
    Genoo

    Hi Luko,
    Thanks for your response.
    I noticed that Item Description is not a free text field in Sales Order Line..
    My requirement is that I have a value which needs to be concatenated to Item Description, when we interface the Order to Receivables through Auto Invoice program.
    Any possible ways please?
    Thanks,
    Genoo

  • Adding a new line item using BAPI_OUTB_DELIVERY_CHANGE

    Hi,
    I have a requirement to add a new line item to outbound delivery to the existing line items using the FM BAPI_OUTB_DELIVERY_CHANGE.Pls suggest how to do it.
    Thanks in advance.
    Anand

    Hi,
    Did you Check IN SCN like [THIS|Re: BAPI_OUTB_DELIVERY_CHANGE Help - Add new line item].
    Regards,
    Rahul

Maybe you are looking for

  • Exports From Audition CC Give "Header Error" in Premiere Pro CS6

    Hello, I have finished the audio mixing on a 15 track project in Audition CC. It is very heavy so I had to export all the tracks separately to import them back into the Premiere Pro CS6 movie project. That way I could also do further adjustments in i

  • XML working in C++

    i need the equivalent of "xml sql utility for JAVA " for working in C++ . a) store and retrieve XML data from the DB (blob) b) the XDK assume you have an XML file , how can i build one programmatically ?

  • What is an M2TS file?

    Is this the right place to ask this? I recently bought a Panasonic HDC-TM300 video camera. (Yes, it's lovely.)  Played with it shooting stuff on the street etc. Imported them to my computer and they played fine using an ordinary viewer. Now my comput

  • Good Consignation Return in MM

    Hi, Does anybody know how could I return goods in a vendor consigment stock? I know with type movement 122 is likely to do so, but I have to enter mandatory the material dpocument, I would like to count on a way to return all the goods in consignatio

  • Can't import dv file

    Hi, I have an h264 encoded quicktime -- it won't import into FCP, is that normal? Anyway I exported it as DV-format, and it STILL won't import! It says it's recognized, but unknown. This is on an Intel imac. Quicktime player shows the file format as: