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.

Similar Messages

  • How to pull payment terms attached to customer, Invoice, Agreement

    Hi All,
    Could you please help me how to pull the payment terms attached to a particular Invoice, customer and agreement.
    Thanks for your help,
    Prathima

    How do make the sales order pull from the Sold-Tos record instead of the Payer's record.
    As you already indicated system copy the payment terms from the customer master payer, next priority is SP.
    in the sales order manually you can change it to SP payment term.
    or one more thing you may consider that if you want all the time determine the payment term from the SP then don't maintain the payment term in Payer customer.
    We have 2 Sold-Tos with the same Payer.  The Payer gets a discount with will apply to both Sold-tos since the payment terms are getting pulled from the Payer.  When sales order is created, payment terms get pulled from Payer and both Sold-Tos gets a discount.   But we only want to offer discount to only one of the Sold-Tos but the other sold to doesn't get a discount.
    Are you really sure about the above statement? i have never seen in one sales order two Sold to party's, confirm your statement once again.

  • Payment terms change in the Invoice list

    Hi Experts
    Please guide the steps how to change the payment terms in the invoice list
    Thansk in Advance.

    Hi,
    As far as my understanding U can not change Payment terms in INVOICE or even in INVOICE LIST,
    Try through Transaction varient or screen varient - SHD0
    In this make this payment term field changeable.
    Kapil

  • Payment terms  in SD credit invoices

    Hii,
    We have problem with the payment terms in credit invoice and maybe you can help me.
    When a credit invoice is created based on a SD invoice the field Invoice reference "REBZG" is filed un the original invoice.
    The problem is that the payment terms and bline date is not taken from the original invoice.
    Is there a badi or user exit that can do this.
    Thank You
    Orna

    Hi Srikanth,
    As  you perfectly mentioned,field ZTERM is not allowed to use for substitution in standard:  take a look to table GB01.
    The entry is excluded. If in your system is not excluded you used a modification. Note 42615 explains which fields can be substituted.
    Pmnt terms work in the following way for credit memos:
    1. if 'V' is entered in field 'invoice reference', due date is calculated the same way as for an invoice.(this means you also
    have to enter the terms of payment in field bseg-zterm. With entry 'V' you only indicate that the due date of the credit memo is not identical to the payment period base date, if you have entered a special terms of payment in the document)
    2. If credit memo refers to an invoice, you can enter invoice details in field bseg-rebzg (invoice ref.)so that credit memo will pick up same payment terms as invoice.
    3. if '*' is entered in field 'paymnt terms' then the payment terms are picked up from customer/vendor master record.
    Hope the explanation is helpful to you.
    Best regards,
    AZ

  • BAPI/FM to Change Payment Terms ZTERM of FI Invoice

    Hi,
    I am trying to chnage Payment Terms(BSEG-ZTERM) using FM FI_DOCUMENT_CHANGE and FM FI_ITEMS_MASS_CHANGE but none of these FM is working.
    For FI_DOCUMENT_CHANGE it is giving error "You cannot change Payment Terms(ZTERM) and inFM FI_ITEMS_MASS_CHANGE it is not providing option to change Payment Terms (I have checked Coding of the FM FI_ITEMS_MASS_CHANGE).
    Can anyone guide me on this? How can I change Payment Terms(ZTERM) of FI Document.?
    Thanks.

    Sapan,
    My requirement is to Develop an Interface, through which you can change payment terms of Customer open line items.
    Manually in FB02 I am able to change the Payment Terms but when I am not able to change it using FM FI_DOCUMENT_CHANGE and FM FI_ITEMS_MASS_CHANGE.

  • Payment terms not reflected in invoice.

    Hi,
       When I view the customer data in FD03 there is payment terms associated with it,but when I create an invoice and view it in FB03 there is no payment terms field at all,but for other comapny codes I am able to view the payment terms in FB03.
    What can be the reason.Kindly advise.
    Thanks.

    Hi,
    I hope your problem must have been solved. If not then please add/define CITY in the master records of your customer master and these fields will be back. I had the same problem and could not find this setting anywhere. I was able to recall that when we add customer of same city and address SAP gives you warning message and this is the place where things get stuck.
    Thanks,
    Naseem

  • How to post Freight Charge in INbound INVOIC Idoc? (MM Invoice Verif)

    Hi Folks,
    Would like to post an inbound invoice(810) IDoc  that has multiple line items that may or may not have variances(quantity, price, etc.). MM Logistics Invoice verification is the process used for posting our invoices for raw materials. We would like for the line item variances to continue to post to the PPV account. Our problem is freight. Freight in this instance is in the header of the IDOC(segment E1EDK05). For example, we create a purchase order with 3 line items for $100.00 each totaling $300.00 for the purchase order. We receive an EDI Invoice for $345.00 which contains a $45.00 charge in the header for freight. We would like for the freight to be posted to the appropriate account. Currently the $45.00 difference in P/O total and Invoice total is being posted to the PPV account. Your helpis appreciated!
    What if Freight charge is populated as Line item in the inbound invoic idoc. Will the inbound program allow this kind of posting??
    Throw some light experts.
    Thanks,
    Matt
    Edited by: Creasy Matthew on Aug 16, 2009 6:25 PM
    Edited by: Creasy Matthew on Aug 16, 2009 6:25 PM

    Yes, you can include the freight cost in line item as well but that would not be advisable. Why don't you include Fright Cost in your pricing procedure ??? Do check the following link
    How to account freight in purchase order

  • Discription of payment term missing in proforma invoice

    Hi can any one please tell me the reason for the above.

    Hello,
    Please clear your requirement with further details.
    If you are not getting in the FORM, then you need to speak to your ABAPer, make change the form.
    Regards,
    Ravi

  • Populating segment in INVOIC IDOC

    Hi,
    I have a requirement where I need to insert a standard segment E1EDKT1 with a different qualifier in the IDOC INVOIC2.
    I see that this segment is repeated several times with different qualifiers starting from 001,002,Z001 and so on and there is a child segment E1EDKT2 under this segment which is also repeated multiple times for each E1EDKT1.
    <E1EDKT1 SEGMENT="1">
        <TDID>001</TDID>
        <TSSPRAS>EN</TSSPRAS>
        <TSSPRAS_ISO>EN</TSSPRAS_ISO>
        <E1EDKT2 SEGMENT="1">
            <TDLINE>some text</TDLINE>
            <TDFORMAT>*</TDFORMAT>
        </E1EDKT2>
        <E1EDKT2 SEGMENT="1">
            <TDFORMAT>*</TDFORMAT>
        </E1EDKT2>
    </E1EDKT1>
    and so on for different qualifiers...
    I now have to insert the same segments after all the standard qualifiers are executed in the userexit. I am facing difficulty in identifying the end of running of all the above segments before I can append mine.  Can you please let me know how I can identify the end of above segments before I can insert mine. End of last E1EDKT2 for the last occurrence of E1EDKT1.
    Regards
    Praneeth

    Hi,
    try this for insert:
    DATA:
      ls_edidd    LIKE LINE OF int_edidd,
      lv_pos      TYPE i,
      ls_e1edkt1  TYPE e1edkt1,
      ls_e1edkt2  TYPE e1edkt2.
    * check if insert was already done
    READ TABLE int_edidd WITH KEY segnam = 'E1EDKT1' sdata(4) = 'Z003' TRANSPORTING NO FIELDS.
    IF sy-subrc <> 0.
    * check if header text from SAP is finished
      READ TABLE int_edidd WITH KEY segnam = 'E1EDK14' sdata(3) = '008' TRANSPORTING NO FIELDS.
      IF sy-subrc = 0.
    * insert E1EDKT1
        lv_pos = sy-tabix.
        ls_e1edkt1-tdid        = 'Z003'.
        ls_e1edkt1-tsspras     = 'U'.
        ls_e1edkt1-tsspras_iso = 'FI'.
        ls_edidd-segnam = 'E1EDKT1'.
        ls_edidd-sdata = ls_e1edkt1.
        INSERT ls_edidd INTO int_edidd INDEX lv_pos.
    * insert E1EDKT2
        ADD 1 TO lv_pos.
        ls_e1edkt2-tdline   = 'TEXT'.
        ls_e1edkt2-tdformat = '*'.
        ls_edidd-segnam = 'E1EDKT2'.
        ls_edidd-sdata = ls_e1edkt2.
        INSERT ls_edidd INTO int_edidd INDEX lv_pos.
      ENDIF.
    ENDIF.
    BR

  • How to get vendor payment terms

    Hi all,
    I am creating a report. I need to get vendor payment terms. There are invoices without PO, how can I retrieve the payment terms for those cases.
    Thanks.

    Hi nene
               in case of invoice without PO, The payment term will be selected from the vendor master data (in View : payment terms transaction in XK03).
    Check payment term in  master data is exist or not.
    the data is in the table LFB1 : Field ZTERM
    Regards
    Wiboon

  • Wrong Payment term in the Invoice

    We have a problem with one of the vendor Invoice creation. We are getting wrong payment term in the Invoice.
    We have payment term A in the vendor master both company code and Purchasing Org. We have the same payment term A in Purchase order and Contract.
    But when we create invoice using MIRO for the PO we are getting Payment term B. This is happening for only one vendor.
    We know that it can be corrected at the financial document level but want to know how this payment term B is pulled up from cause i checked all the options but nowhere to find from where it is coming.

    Hi Aparna,
    Check the following:
    In MIRO, if you use PO reference to create the IV document,terms of payment will not get copied from vendor master, the terms of
    payment will come from the PO.(if you have the invoice entered without reference to the PO, then the terms of payment are copied from vendor.)
    So when you change the the invoice party in MIRO, new payment terms will not get copied from vendor master, they will come from the PO.
    Please review SAP Note 322430 MIRO: Proposal logic for terms of payment Payment terms are only adopted from the vendor master record Without reference to purchase order
    You enter an invoice without purchase order reference by adding a G/L account line or material line as a first item. If the terms
    of payment key does not contain any value, this is copied from the accounting view of the vendor master record.
    Thanks
    Aravind

  • Payment Terms in Vendor Advance payment & automatic set off aganist invoice

    Dear Team,
    As on 01.08.2014 there is advance payment made to vendor is Rs.10000 and the payment terms in vendor master 30 days and as on 16.08.2014 the vendor invoice has been raised for Rs.15000/- and the payment terms is same 30 days. According to the payment terms in the vendor invoice the net due date is calculated as 15.09.2014. Since already the advance payment is rs.10000 then how we can tel the system to consider this also and then calcuate net due date for the invoice raised as on 16.08.2014. Please suggest.
    We suggested client to enter manually 0000 payment terms at the time of invoice. But they are not convinced.
    Kindly check & do the needful
    Regards,
    Babu.

    Hi Babu,
    You have to clear the advance through F-54 and here you have to provide the invoice doc.no. under the relevant invoice-invoice. Then system will consider net due date of invoice for advance also.  I have attached screen shot for your reference.
    Regards,
    Mukthar

  • Payment Terms, Invoice Due Date

    Hi,
    I've got to set up a new payment term in our system. The requirement for this payment term is:
    A)     The invoice due date is either, whichever is the later of:
    i)     The 12th day after the day on which the invoice document was deemed to be received : and
    ii)     The 20th day after the last day of the billing period to which the invoice document relates.
    I don't know how to configure this, can anybody help?
    John

    Hi,
    do you mean net due date or document date In order to have days after?
    you can do it defining in OBB8 baseline date (document date) and No. of days (12th and 20th)
    Let me know if it is your case
    regards

  • Payment terms for changed invoicing party in miro

    Hi Experts,
    how and which payment terms get copied when invoicing party changed in miro
    Rgds

    hi
    i will request you to check once again, in PO pmt terms flows from pur org data of vendor master and the same po pmt terms flows into invoice those things are clear.
    my question is that if I change invoicing party in MIRO then which payment terms get copied, pmt terms of orginal vendor or the new invoicing party pmt terms and also the pmt terms of PO ,co.code or the pur org which one?
    is there any rule or customization for that?
    rgds

  • Modifying Payment terms in AR Invoice

    Hi Experts,
    Is there a way we can modify the payment terms in an AR invoice that comes from PA. I am talking about the Transactions screen of Receivables.
    Any help is greatly appreciated.
    Thanks
    SA

    Paying Methodology from GOP and Democrats
    Hi All
    As we know USA and outside nations work on Software Development, Service Oriented Architecture and ERP/EBUSINESS Solutions and Model Driven Solutions and WebLogic Oracle Fusion Softwares. Lot of good optimization scope for services and Messaging.To help USA Govt to cut down costs.. Cant Help it since Americans also want to work on database design.
    How are payment terms looking in Oracle Ebusiness AR Module.
    What Obama And Harry Reid Nancy Pelosi and John Boehner and John Kline and Schumer and Democrats and GOP are talking about:
    PAYMENT TERM SITUATION::::Whats Happening:::: I just compiled outcome and sending you for just update.
    In this week :
    GOP and democrats are discussing about Payment Laws and Payment Terms::
    1) Payment Term Created Date
    2) Payment Term Validity Period
    3) Payment Term Automatic Expiration Indicator
    4) Payment Term Aggrement Reference Number
    5) Payment Term Initial Threshold Value
    6) Payment Term Start Date
    7) Payment Term End Date
    8) Payment Term Requires Management Approval Indicator Workflow
    9) Payment Term Status : new status value to be added : AUTOMATIC EXPIRED By DEC 31st 2010
    Every country has declared partnership with USA. So USA recognizes their partners.
    Cheers
    Maneesh Innani
    Technical Manager and can help

Maybe you are looking for