Invoice Idocs - adding discounts

I am using basic type INVOIC01 to create an invoice idoc. But I can not get the idoc to work when using payment terms (segment E1EDK18). I am attempting to create an invoice with a discount by using payment terms, but the most common error I get is 'The baseline date does not exist'. Can any offer any help?
Here are the main segments I think are requried for the discount???
E1EDK03
QUALF 044 (baseline date)
DATE 20051123
E1EDK04
MWSKZ VS
MSATZ 17.50
MWSBT 15.75 (100 - 10% discount Then 17.5% of 90 = 15.75)
E1EDK18
QUALF 001
TAGE 30
PRZNT 10
ZTERM_TXT TEST1
E1EDS01
SUMID 005
SUMME 15.75 (total VAT)
WAERQ GBP
E1EDS01
SUMID 010
SUMME 100 (net total must be orig. 100 for payment run)
E1EDS01
SUMID 011
SUMME 115.75 (total)

Hello,
I got the similar issue.  see my post "Idoc INVOIC error Baseline date for payment does not exist"
Date for starting the calculation of the baseline date is indeed managed in the TC OME2 (document date, posting date, etc..).
I solved this issue by putting a payment term in the vendors master data (company & purchasing views) and also in the customers views (company / sales orga) otherwise the structure of the idoc is different.
Regards
Arnaud

Similar Messages

  • Invoice IDoc

    Hi,
    I have to customize the output for an invoice idoc. I'm not that much into IDocs and also invoices, so maybe
    anybody can halp me out of trouble.
    When I go to VF02 to show/change an invoice, and then go to the output, I can choose the output type and
    send it as an idoc. The things to do now are, to add some values from the position conditions to the idoc.
    Right now just some of the conditions are shown in the idoc, but I have to add several ones also.
    Is there any place where I can define, which conditions should be shown in the idoc? for example the "total price"
    is not shown. Can I define somewhere that this total price will be added to the idoc condition segment?
    Thank you for your help!
    Torben

    Hi Torben,
    First of all you should extend the IDOC that you are sending by adding the additional fields you want to send.  For that you will need to create segments with the additional fields.  Create an extension of the IDOC.  Then add the new segment created to the extension.  In transaction WE82, add an entry for the message type, idoc type and the extension created.  in WE20 assign the extension to the parter profile.  Finally, enhance the function module that is populating the IDOC to populate the additional fields of the extension.
    Hope this helps.
    Vitz.

  • Query  for report to show Invoices, Payments and Discounts

    Hi All
    I am hoping someone can help me with this query.
    What the customer needs is the invoices for a specific date range, the payments applied to the invoices and the discount amount
    Eg...
    Invoice    payment   discount
    100         90              10   
    This would be easy to get from the ORCT and RCT2 tables.
    However, sometime the users add the payment on account and reconciles the invoices and a manual journal for the discounts.
    So it would be best to look at the OITR and ITR1 tables?
    This is what I have so far and it almost balances...
    I am using this query to create the report in crystal,
    To create the discount amount from the incoming payment window i said (T0.ReconSum - T3.TrsfrSum)
    I also took out the vat amount within that formula.
    With the amounts from the manual journal, i just took the amount as is.
    select T2.CardCode, T2.CardName, T0.SrcObjTyp, T0.SrcObjAbs, T0.ReconSum, T3.TrsfrSum, T4.ReconDate, T2.U_FundedNonFunded, (T5.Debit - T5.Credit), T6.PymntGroup
    from ITR1 T0
                 inner join OCRD T2 on T0.Shortname = T2.CardCode
                 left outer join ORCT T3 on T3.DocEntry = T0.SrcObjAbs  and T3.CardCode = T0.ShortName
                 inner join OITR T4 on T4.ReconNum = T0.ReconNum
                 left outer join JDT1 T5 on T5.TransId = T0.TransId and T5.ObjType = T0.SrcObjAbs and T0.ShortName = T5.ShortName
                 inner join OCTG T6 on T6.GroupNum = T2.GroupNum
                where T3.DocDate <= getdate() or T5.ContraAct = '1127331'
    the account 1127331 is the Discount GL account.
    Based on the example the Payment + discount = Invoices
    however not all the customers are balancing..
    any ideas? it looks like my query is getting only the invoices where a payment has been done. The amounts just dont seem to match.
    Thank you
    Jerusha

    hi
    I think your join with OJDT is wrong in this part : T5.ObjType = T0.SrcObjAbs
    you should write
    T5.ObjType = T0.SrcObjTyp
    (I think you don't need this part at all )
    try this:
    select T2.CardCode, T2.CardName, T0.SrcObjTyp, T0.SrcObjAbs, T0.ReconSum, T3.TrsfrSum, T4.ReconDate, T2.U_FundedNonFunded, (T5.Debit - T5.Credit), T6.PymntGroup
    from
    ITR1 T0
    inner
    join OITR T4 on T4.ReconNum = T0.ReconNum
    inner
    join OCRD T2 on T0.Shortname = T2.CardCode
    left
    outer join ORCT T3 on T3.DocEntry = T0.SrcObjAbs and T3.CardCode = T0.ShortName
    left
    outer join JDT1 T5 on T5.TransId = T0.TransId and T5.ObjType = T0.SrcObjTyp and T0.ShortName = T5.ShortName
    inner
    join OCTG T6 on T6.GroupNum = T2.GroupNum
    where
    T3.DocDate <= getdate() or T5.ContraAct =
    '1127331'
    please let me know if it works now
    shachar

  • Error while posting Invoice IDOC (The difference is too large for clearing)

    Hi All,
    While posting Invoice IDOC to Remittance Advice IDOC get fails with status 51 &  message ' The difference is too large for clearing'.
    Please suggest any solution or reason to fail IDOC.
    Thanks & Regards,
    Ajay
    Moderator message: please search for information and try to find out yourself before asking, this will be a functional problem anyway that should be asked in the appropriate forum, e.g. ERP Financials.
    locked by: Thomas Zloch on Aug 20, 2010 1:59 PM

    Pls check the tolerance amounts limits:
    SPRO--- F/A --AR/AP -
    Business transactions -Open item clearing--- Clearing differance---- Define / Assign tolerance groups for emp -
    Where you need to change the limits of max amounts with the %
    Let me know for any info.
    Regards
    Suresh

  • 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 in Invoic Idoc - Vendor, Company code not found

    Hi All,
    We are facing an issue with an Incoming Invoice Idoc (Mes type - Invoic). A third party system sends the Invoices which are received by the XI system and then as Idocs into SAP.
    The XI system is defined as a Logical system in R/3. We have created Partner Profile, Dist Model with XI as a LS.
    The error that we are encountering is -
    Customer , vendor <our LS> not known
    Message no. FD110
    A company code cannot be determined for LS
    Message no. FD006
    Are we missing out some data in the Idoc or are we missing some EDI configuration?
    Please advise as to how we need to proceed.
    Thanks in advance!
    Liz

    hi,
    Error : A company code cannot be determined for LS
    This means that SAP cannot match an appropriate company code with a partner profile :-  and hence, doesn't know where to post the invoice.
    Partner Type = "LS" (Logical System)
    Partner Name = ""
    I think what you've got is message FD006 - longtext for it can be found via transaction SE91 and sounds like this:
    The system cannot determine the relevant company code since the allocation of the data transferred in the invoice is missing in Financial Accounting customizing.
    The company code can be determined outside of the system and be put into the intermediate document (for example, from the EDI subsystem). Then the company code must be put into the E1EDK14 segment and ORGID field and the value "011" used as the qualifier.
    Determine the company code for & & & in Financial Accounting customizing.
    LS  is your Logical System. So you might want to have a look at transaction OBCA where you can assign a company code name in the invoice for your Logical System.
    In the E1EDKA1 segment. there are two fields PARVW (which is the qualifer or Partner function) PARTN (partner number). The information that is sent in the PARTN has to either match the information in SAP or has to be converted.
    If the later is the case try transaction VOED.

  • Inbound processing of INVOIC IDOC without PO number and item check

    Hi All,
    I'm processing an Inbound INVOIC IDOC to create an Intercompany Vendor Invoice against a Purchase order but wish to do process this based on the delivery note number rather than the PO number. The INVOIC IDOC will not contain a reference to the Purchase order and thus the need to process it based on the delivery note number which will be referenced in the Purchase order Goods receipt.
    However, when processing the Inbound INVOIC IDOC it is validating that the number in IDOC segment E1EDP02 with QUALF 001 is the purchase order number. In this scenario it won't be and therefore it errors. The delivery note number is in IDOC segment E1EDP02 with QUALF 016.
    Could someone please tell me if there is a standard way that we can have this Inbound INVOIC IDOC processing using only the delivery note?. If I manual process in the MIRO transaction I can process an Invoice based on the dleivery note in the Goods receipt so would expect I should be able to do so also with the IDOC processing.
    I have noticed that IDOC segment E1EDP19 with QUALF 003 is not being populated and therefore according to the SAP help the IDOC segment E1EDP19 with QUALF 002 holding the Vendor material number is checked. Could this have something to do with it not being able to process the Invoice using only the delivery note number reference?.
    Thanks in advance,
    Michael

    Hi Karen,
    According to Note 103051 - EDI: Multiple reference to same purchase order item.
    Module IDOC_INPUT_INVOIC_MRM (only as of Release 4.0) for the logistics invoice verification can distinguish different goods receipts by means of the delivery note number. For this purpose, GR-related invoice verification must be active. Please check the note.
    Thank you,
    Shyam

  • Mapping of large INVOIC Idocs

    Dear SAP,
    we have a 1:n mapping scenario.
    The source is an INVOIC Idoc that will be splitted into several messages.
    The INVOIC IDoc has a sice of 5MB and more than 35.000 data sets.
    Because of the huge number of data sets / positions, there are two new
    child-segments containing the data sets (see attachment).
    INVOIC IDocs with only eg. 100 data sets has noch such child-segments
    (see attachments).
    In PI message mapping there is an error while mapping large INVOIC IDocs:
    While 1:1 mapping of positions (E1EDP01) the text segments
    (E1EDPT1/E1EDPT2) are not mapped correctly.
    While mapping a position of child-segment ONE the text is mapped from a
    position from child-segment TWO.
    In our case the 166th position of child-segment ONE is mapped, but the
    text is comming from the 166th. position of child-segment TWO.
    The text mapping is 1:1. It works without errors while proceeding smaller INVOIC IDocs.
    We can´t explain this behaviour.
    Also the standard INVOIC structure does not provide such child-segments
    while uploading into PI.
    Is it a buffer problem in PI?
    Is there a maximum number of data records in INVOICE IDocs?
    Do we have to adjust the INVOICE structure in PI?
    Thanks in advance,
    André

    Is it a buffer problem in PI?
    Could be, but I have used bigger message size without any issues. If your mapping is not too complex, could you write an XSL mapping and check if you run into similar situation? Message mapping has definitely cache issues, hence I prefer XSL.
    Is there a maximum number of data records in INVOICE IDocs?
    No.
    Do we have to adjust the INVOICE structure in PI?
    No need to adjust the structure, just try with XSL mapping.

  • Inbound Invoice IDOC mapping Required fields

    Hi All,
    Please let me know what need to be mapped for the @begin , @segment , TABNAM , SNDPOR, SNDPRT etc like this elements in the IDOC structure.
    In my scenarion i get Invoices in  XML file so that i can pick that and process it into SAP R/3 by doing correct mapping with the inbound IDOC and post the same into R/3 . Please provide the sample mapping for processing Invoice IDOC.
    Regards,
    Reddy

    Nanda,
    @ Control records
    >>>
    You have two option. One is to fill the control records inside the mapping or else let XI fill it automatically.
    In case you are filling the control records in the mapping, then you will have to enable the option to take those values in the IDOC receiver adapter.
    See option (Apply Control Record Values from Payload) - http://help.sap.com/saphelp_nw04/helpdata/en/96/791c42375d5033e10000000a155106/content.htm
    Control values - http://help.sap.com/saphelp_nw04/helpdata/en/13/95244269625633e10000000a155106/content.htm
    @ Begin, Segment etc
    >>
    you can map any constant value to the same.

  • Invoice Idoc- Status 29

    Hello All,
    We are using IDOC_OUTPUT_INVOIC function module to send the invoice idocs from SAP.
    Some Idocs are failing with error "Error in ALE service-No value could be assigned to the field BSART".
    In the IDOC we see the E1EDK01-BSART field filled with value "CRME"..
    The documents of type debit memo,credit memo,etc...are only failing.
    Can anyone throw some light on this please.
    Thanks
    Meenakshi

    Hi,
    If you get status of 29 then there is no problem in the coding or your exection.
    Only problem in the partner profile is not maintained .Then simply chekc in the we20 transaction or in table EDP13.
    thnaks,
    shyla

  • Generates a SAP Invoice IDOC based on xCBL Invoice document

    Hi Experts,
    I am looking for code to generate invoice through XCBL to SAP Invoice IDOC.
    Could anyone post where I can get this code in stylesheet..
    Please help me.

    svraju wrote:
    Thnks for ur reply..But is there any stylesheet mapping avaibale for this because we want to do in XSLT.
    >
    > Please help me..
    dont think there are any standard mappings available for this.
    you might want to get the logic from your functional contact/business and build the mapping.
    I think it will ideally fit within the graphical mapping itself

  • How is payment terms populated on a Invoice IDOC ?

    Hi,
    How does VBDKR-ZTERM_TX1 VBDKR-ZTERM_TX2 and VBDKR-ZTERM_TX3 get populated? Currently I see that in the INVOIC IDOC the payment term is populated from VBDKR-ZTERM_TX1 which is not based on payment terms. , I am getting the value 'Payable immediately without deduction'. I was wondering how did this value get populated which is different from the text maintained for paylemt term in table T052 table.
    IDOC segment : E1EDK18-ZTERM_TXT
    I see that the payment terms in the master table are carried onto Sales order and then to billing document which match the T052 value of the payment term but the IDOC is pulling some other value from some where.
    Regards
    Praneeth

    Hi Praneeth,
    if you have debuggin capability, please set a breakpoint in program LVEDFF0G:
      CALL FUNCTION 'SD_PRINT_TERMS_OF_PAYMENT'
        EXPORTING
          terms_of_payment             = vbdkr-zterm
          bldat                        = xfkdat
          budat                        = xfkdat
          cpudt                        = xfkdat
          language                     = vbco3-spras
          country                      = vbdkr-land1
        IMPORTING
          payment_split                = vbdkr-p_split
          ZFBDT                        = xfkdat
        TABLES
          top_text                     = zterm
        EXCEPTIONS
          terms_of_payment_not_in_t052 = 1
          error_message                = 2
          OTHERS                       = 3.
      LOOP AT zterm.
        CASE sy-tabix.
          WHEN 1.
            MOVE zterm-line TO vbdkr-zterm_tx1.
          WHEN 2.
            MOVE zterm-line TO vbdkr-zterm_tx2.
          WHEN 3.
            MOVE zterm-line TO vbdkr-zterm_tx3.
        ENDCASE.
      ENDLOOP.
    Then test the processing of an IDOC by VF31.
    Best regards,
    Ivano.

  • Unplanned Delivery Cost through INVOIC IDOC - Failing due to Cost Center

    Hello all,
    We are using INVOIC idoc for incoming invoice from the vendors, and are using E1EDK05-BETRG for getting the unplanned delivery costs.  However, we don't want to use a default cost center (OKB9) for the "Unplanned Delivery GL Account", instead we want to use the cost center from the Purchase Order.
    Is there any way we can get the cost center from the Purchase order while processing the invoice through IDOC?
    Thank you,
    Krishna

    Hello Krishna,
    As per my knowledge unplanned delivery cost is liability account not expenses ! Beyond delivery expenses you planned in PO ,you would enter in LIV. That time mentioned entry will be post
    Material account........Dr ( If materials available)
      To Vendor account,,,,,,,,Cr
    Price difference account.......Dr ( If material not avialble)
      To Vendor account..........Cr
    Frieght alwasy materialized while doing the GRN.
    Regards
    Mani Kumar

  • How the SAC amounts are posted to G/L accounts through Inbound Invoic Idocs

    Hi EDI/ABAP experts,
    Can anyone please tell me wow the SAC amounts are posted to G/L accounts through Inbound Invoic Idocs??
    Can anyone point me to the code that permits INVOIC02 IDocs to post the SAC (service allowances and Charge) amount to particular G/L account??
    What is the logic??
    Thanks,
    Creasy
    Edited by: Creasy Matthew on Apr 27, 2009 10:41 PM

    Hi Sunil,
    When ever you prepare a billing document it creates an entry in General Ledger as Trial Balance has to be generated for the company all the expenses for a company should be recorded in GL. So that a company can see view their profit/loss figures.
    As Billing is a sales related transaction it creates an GL Entry where in
    Debits    --> Customer Account
    Credit     --> Sales Revenue Account
    And when the Customer Makes a payment with reference to the bill
    One more GL Entry will be created i.e
    Debit     --> Bank Account
    Credit    --> Customer Account
    With this we can track the customer balance (What ever balance is there in Customer account is customer Balance)
    I think this is very clear with respect to the question you had asked.
    Reward points if it helps.
    Regards,
    Sreekanth

Maybe you are looking for

  • How to create materialized view based on a view?

    Hi, I hope this is not very far fetched idea. I have a very complex view and I would like to replicate it 'in place' that is I would like to make a materialized view that is based on this view complex view. I would like to use this materialized view

  • Error while trying to sync and back up

    every time i try to back up or sync my device to my mac i receive this error that saysiTunes could not connect to the iPhone "jj763u's iPhone" because the device timed out..... how do i fix this? i bought this so i could sync all my devices together

  • Different pricing based on company codes

    Dear experts, I have a scenario where One of plant is not mapped in SAP, for stock transfer this plant has been created as a vendor, a different account group has been created for such vendors ( unmapped plants) now it is required that if any purchas

  • Powerbook G4  looses settings for booting for firewire?Need Help

    I have a powerbook g4 17 inch al.. 1.67 pro 2 gigs ram and I formatted a seagate firewire 800 drive to be my hdd replacment <<it died well its installed fine ( partations is for powerbook boot) however when i shut down it doesn't find the drive.. I t

  • Looking for a Fully Functional HTML 5 Audio Player that has a playlist capability

    Does anyone know how to build, find or purchase a full functioning HTML 5 Audio Player that has a playlist. I have found the small single mp3 player but I am looking for a full functioning Audio Player that can load and play several tracks from an al