<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Due Date based on input date &amp; payment Terms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/due-date-based-on-input-date-payment-terms/m-p/4990611#M1162533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know &lt;/P&gt;&lt;P&gt;1) Is there any Function Module to get the Due date based the input Date&lt;/P&gt;&lt;P&gt;    and Payment Terms Code&lt;/P&gt;&lt;P&gt;2) No of days in the Payment Terms Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: praveen kumar on Jan 19, 2009 1:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2009 12:48:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-19T12:48:49Z</dc:date>
    <item>
      <title>Due Date based on input date &amp; payment Terms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/due-date-based-on-input-date-payment-terms/m-p/4990611#M1162533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know &lt;/P&gt;&lt;P&gt;1) Is there any Function Module to get the Due date based the input Date&lt;/P&gt;&lt;P&gt;    and Payment Terms Code&lt;/P&gt;&lt;P&gt;2) No of days in the Payment Terms Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: praveen kumar on Jan 19, 2009 1:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 12:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/due-date-based-on-input-date-payment-terms/m-p/4990611#M1162533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T12:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Due Date based on input date &amp; payment Terms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/due-date-based-on-input-date-payment-terms/m-p/4990612#M1162534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the FM: SD_PRINT_TERMS_OF_PAYMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the input you give the relevant date &amp;amp; tems of pymt, in return table TOP_TEXT of type VTOPIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort this table DESCENDING BY hdatum &amp;amp; read the first entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA : l_wa_text   TYPE ty_text.

  DATA : l_it_text TYPE  ty_t_text.

  CALL FUNCTION 'SD_PRINT_TERMS_OF_PAYMENT'
    EXPORTING
     bldat                              = fp_v_bsid-zfbdt
*   BUDAT                              = l_wa_bsid-budat
*   CPUDT                              = l_wa_bsid-cpudt
*   LANGUAGE                           = ' '
     terms_of_payment                   = fp_v_bsid-zterm
*   COUNTRY                            =
*   HOLDBACK                           = ' '
*   TOP_HOLDBACK_INFO                  =
*   DOCUMENT_CURRENCY                  = l_wa_bsid-waers
* IMPORTING
*   BASELINE_DATE                      =
*   PAYMENT_SPLIT                      =
*   ZFBDT                              =
    TABLES
      top_text                           = l_it_text
   EXCEPTIONS
     terms_of_payment_not_in_t052       = 1
     OTHERS                             = 2 .
  IF sy-subrc &amp;lt;&amp;gt; 0.
    CASE sy-subrc.
      WHEN c_1.
        MESSAGE i000  WITH 'TERMS OF PAYMENT NOT IN T052'.
        LEAVE  LIST-PROCESSING.
      WHEN c_2.
        MESSAGE i000  WITH 'Other program error'.
        LEAVE  LIST-PROCESSING.
    ENDCASE.
  ENDIF.

  SORT l_it_text DESCENDING BY hdatum.

  READ  TABLE l_it_text  INDEX 1  INTO l_wa_text.
  fp_l_duedate = l_wa_text-hdatum
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 12:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/due-date-based-on-input-date-payment-terms/m-p/4990612#M1162534</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-19T12:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Due Date based on input date &amp; payment Terms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/due-date-based-on-input-date-payment-terms/m-p/4990613#M1162535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the FM FI_TERMS_OF_PAYMENT_PROPOSE to determine the payment due date for the payment term and the baseline date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Dwaraka.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 12:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/due-date-based-on-input-date-payment-terms/m-p/4990613#M1162535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T12:53:38Z</dc:date>
    </item>
  </channel>
</rss>

