<?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 Re: FM POSTING_INTERFACE_CLEARING - Difference too large - Cannot distribute Difference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-posting-interface-clearing-difference-too-large-cannot-distribute/m-p/12115466#M1973821</link>
    <description>&lt;P&gt;U can fill ftpost parameter with a clearing item of remaining sum. Such as below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DEFINE populate_ftpost.

    it_ftpost-stype = &amp;amp;1.

    it_ftpost-count = &amp;amp;2.

    it_ftpost-fnam  = &amp;amp;3.

    it_ftpost-fval  = &amp;amp;4.

    IF it_ftpost-fnam = 'BSEG-GSBER'.
      IF it_ftpost-fval IS INITIAL.
      ELSE.
        APPEND it_ftpost.
      ENDIF.
    ELSE.
      APPEND it_ftpost.
    ENDIF.

  END-OF-DEFINITION.

       CASE gt_clear-koart.
            WHEN 'S'.
              IF l_hsl &amp;gt; 0.
                gt_resi_items-bschl  = '40'.
              ELSE.
                gt_resi_items-bschl  = '50'.
              ENDIF.
              gt_resi_items-newko = gs_itab-hkont.


            WHEN 'K'.
              gt_resi_items-gsber = gs_itab-gsber.
*                gt_resi_items-zuonr = ''.
              gt_resi_items-zfbdt = sy-datum.
              IF l_hsl &amp;gt; 0.
                IF  gt_clear-umskz IS NOT INITIAL.
                  gt_resi_items-bschl  = '29'.
                ELSE.
                  gt_resi_items-bschl  = '21'.
                ENDIF.

              ELSE.
                IF  gt_clear-umskz IS NOT INITIAL.
                  gt_resi_items-bschl  = '39'.
                ELSE.
                  gt_resi_items-bschl  = '31'.
                ENDIF.

              ENDIF.
               gt_resi_items-newko = gt_itab-lifnr.
            WHEN 'D'.
              gt_resi_items-gsber = gs_itab-gsber.
*                gt_resi_items-zuonr = ''.
              gt_resi_items-zfbdt = sy-datum.
              IF l_hsl &amp;gt; 0.
                IF  gt_clear-umskz IS NOT INITIAL.
                  gt_resi_items-bschl  = '09'.
                ELSE.
                  gt_resi_items-bschl  = '01'.
                ENDIF.
              ELSE.
                IF  gt_clear-umskz IS NOT INITIAL.
                  gt_resi_items-bschl  = '19'.
                ELSE.
                  gt_resi_items-bschl  = '11'.
                ENDIF.

              ENDIF.
              gt_resi_items-newko = gt_itab-kunnr.
            WHEN OTHERS.
          ENDCASE.

          populate_ftpost:  'P' 1 'RF05A-NEWKO' gt_resi_items-newko,
          'P' 1 'RF05A-NEWBS' gt_resi_items-bschl,
          'P' 1 'RF05A-NEWUM' gt_resi_items-umskz,
          'P' 1 'BSEG-SGTXT'  'RESIDUAL CLEARING ITEMS',
          'P' 1 'BSEG-WRBTR'  l_wrbtr, "the residual wrbtr
          'P' 1 'BSEG-GSBER'  gt_resi_items-gsber,
          'P' 1 'BSEG-ZUONR'  gt_resi_items-zuonr,
          'P' 1 'COBL-PRCTR'  gt_resi_items-prctr.
          IF gt_resi_items-zfbdt IS NOT INITIAL.
            populate_ftpost:   'P' 1 'BSEG-ZFBDT'  gt_resi_items-zfbdt.
          ENDIF.

&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Sep 2021 02:36:06 GMT</pubDate>
    <dc:creator>zfq0218</dc:creator>
    <dc:date>2021-09-16T02:36:06Z</dc:date>
    <item>
      <title>FM POSTING_INTERFACE_CLEARING - Difference too large - Cannot distribute Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-posting-interface-clearing-difference-too-large-cannot-distribute/m-p/12115463#M1973818</link>
      <description>&lt;P&gt;Hi Good day,&lt;/P&gt;
  &lt;P&gt;I have searched before asking this question, i dint get any answer am looking for hence am posting.&lt;/P&gt;
  &lt;P&gt;Am using FM : POSTING_INTERFACE_CLEARING for TCODE - FB05.&lt;/P&gt;
  &lt;P&gt;Its posting when balance = 0. it does not post if there is difference &lt;/P&gt;
  &lt;P&gt; ex : 2000 - 1000 = 1000 - does not post - Error is : The difference is too large for clearing&lt;/P&gt;
  &lt;P&gt; 1000 - 1000 = 0 - Posts.&lt;/P&gt;
  &lt;P&gt;if there is a difference in i want it to Distribute the Difference and make to ZERO and should post.&lt;/P&gt;
  &lt;P&gt;Did anyone work on it?&lt;/P&gt;
  &lt;P&gt;Any input is highly appreciated.&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Kata.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 07:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-posting-interface-clearing-difference-too-large-cannot-distribute/m-p/12115463#M1973818</guid>
      <dc:creator>former_member317781</dc:creator>
      <dc:date>2019-10-24T07:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: FM POSTING_INTERFACE_CLEARING - Difference too large - Cannot distribute Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-posting-interface-clearing-difference-too-large-cannot-distribute/m-p/12115464#M1973819</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Can you please let us know how to fill values in &lt;A href="https://answers.sap.com/questions/454994/second-incoming-payment-residual-items-is-not-poss.html"&gt;FM POSTING_INTERFACE_CLEARING&lt;/A&gt; funntion module.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 09:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-posting-interface-clearing-difference-too-large-cannot-distribute/m-p/12115464#M1973819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-06-12T09:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: FM POSTING_INTERFACE_CLEARING - Difference too large - Cannot distribute Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-posting-interface-clearing-difference-too-large-cannot-distribute/m-p/12115465#M1973820</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;Did you find the solution to this problem?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Haroldo.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 00:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-posting-interface-clearing-difference-too-large-cannot-distribute/m-p/12115465#M1973820</guid>
      <dc:creator>haroldodoratiotto</dc:creator>
      <dc:date>2020-11-17T00:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: FM POSTING_INTERFACE_CLEARING - Difference too large - Cannot distribute Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-posting-interface-clearing-difference-too-large-cannot-distribute/m-p/12115466#M1973821</link>
      <description>&lt;P&gt;U can fill ftpost parameter with a clearing item of remaining sum. Such as below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DEFINE populate_ftpost.

    it_ftpost-stype = &amp;amp;1.

    it_ftpost-count = &amp;amp;2.

    it_ftpost-fnam  = &amp;amp;3.

    it_ftpost-fval  = &amp;amp;4.

    IF it_ftpost-fnam = 'BSEG-GSBER'.
      IF it_ftpost-fval IS INITIAL.
      ELSE.
        APPEND it_ftpost.
      ENDIF.
    ELSE.
      APPEND it_ftpost.
    ENDIF.

  END-OF-DEFINITION.

       CASE gt_clear-koart.
            WHEN 'S'.
              IF l_hsl &amp;gt; 0.
                gt_resi_items-bschl  = '40'.
              ELSE.
                gt_resi_items-bschl  = '50'.
              ENDIF.
              gt_resi_items-newko = gs_itab-hkont.


            WHEN 'K'.
              gt_resi_items-gsber = gs_itab-gsber.
*                gt_resi_items-zuonr = ''.
              gt_resi_items-zfbdt = sy-datum.
              IF l_hsl &amp;gt; 0.
                IF  gt_clear-umskz IS NOT INITIAL.
                  gt_resi_items-bschl  = '29'.
                ELSE.
                  gt_resi_items-bschl  = '21'.
                ENDIF.

              ELSE.
                IF  gt_clear-umskz IS NOT INITIAL.
                  gt_resi_items-bschl  = '39'.
                ELSE.
                  gt_resi_items-bschl  = '31'.
                ENDIF.

              ENDIF.
               gt_resi_items-newko = gt_itab-lifnr.
            WHEN 'D'.
              gt_resi_items-gsber = gs_itab-gsber.
*                gt_resi_items-zuonr = ''.
              gt_resi_items-zfbdt = sy-datum.
              IF l_hsl &amp;gt; 0.
                IF  gt_clear-umskz IS NOT INITIAL.
                  gt_resi_items-bschl  = '09'.
                ELSE.
                  gt_resi_items-bschl  = '01'.
                ENDIF.
              ELSE.
                IF  gt_clear-umskz IS NOT INITIAL.
                  gt_resi_items-bschl  = '19'.
                ELSE.
                  gt_resi_items-bschl  = '11'.
                ENDIF.

              ENDIF.
              gt_resi_items-newko = gt_itab-kunnr.
            WHEN OTHERS.
          ENDCASE.

          populate_ftpost:  'P' 1 'RF05A-NEWKO' gt_resi_items-newko,
          'P' 1 'RF05A-NEWBS' gt_resi_items-bschl,
          'P' 1 'RF05A-NEWUM' gt_resi_items-umskz,
          'P' 1 'BSEG-SGTXT'  'RESIDUAL CLEARING ITEMS',
          'P' 1 'BSEG-WRBTR'  l_wrbtr, "the residual wrbtr
          'P' 1 'BSEG-GSBER'  gt_resi_items-gsber,
          'P' 1 'BSEG-ZUONR'  gt_resi_items-zuonr,
          'P' 1 'COBL-PRCTR'  gt_resi_items-prctr.
          IF gt_resi_items-zfbdt IS NOT INITIAL.
            populate_ftpost:   'P' 1 'BSEG-ZFBDT'  gt_resi_items-zfbdt.
          ENDIF.

&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Sep 2021 02:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-posting-interface-clearing-difference-too-large-cannot-distribute/m-p/12115466#M1973821</guid>
      <dc:creator>zfq0218</dc:creator>
      <dc:date>2021-09-16T02:36:06Z</dc:date>
    </item>
  </channel>
</rss>

