<?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 Problem with  POSTING_INTERFACE_CLEARING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-posting-interface-clearing/m-p/6696694#M1451928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a report to create clearing doc using FB05.&lt;/P&gt;&lt;P&gt;(Using  POSTING_INTERFACE_CLEARING)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whie executig the FM separately it works fine and the clearing doc is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the same is used in the report it returns the following error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The difference is too large for clearing".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched a lot for the same scenario in SDN but couldn't find one.&lt;/P&gt;&lt;P&gt;i pass the following details into the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ftpost-stype = 'K'.
      ftpost-count = 1. 

      ftpost-fnam = 'BKPF-BLDAT'.
      CONCATENATE sy-datum+4(2) sy-datum+6(2) sy-datum(4) INTO ftpost-fval SEPARATED BY '/'.
      APPEND ftpost.

      ftpost-fnam = 'BKPF-BUDAT'.
      CONCATENATE sy-datum+4(2) sy-datum+6(2) sy-datum(4) INTO ftpost-fval SEPARATED BY '/'.
      APPEND ftpost.

      ftpost-fnam = 'BKPF-BLART'.
      ftpost-fval = 'CL'.
      APPEND ftpost.

      ftpost-fnam = 'BKPF-BUKRS'.
      ftpost-fval = gs_regup-bukrs.
      APPEND ftpost.

      ftpost-fnam = 'BKPF-WAERS'.
      ftpost-fval = gs_regup-waers.
      APPEND ftpost.

      ftpost-fnam = 'BKPF-XBLNR'.
      ftpost-fval = gs_regup-vblnr.
      APPEND ftpost.

      ftpost-stype = 'P'. 
      ftpost-count =  1 . 

      ftpost-fnam = 'BSEG-BSCHL'.
      ftpost-fval = '50'.
      APPEND ftpost.

      ftpost-fnam = 'BSEG-WRBTR'.      
      ftpost-fval = gs_regup-wrbtr.
      APPEND ftpost.

      ftpost-fnam = 'BSEG-HKNOT'.
      ftpost-fval = lv_acc_no .
      APPEND ftpost.

      ftpost-fnam = 'COBL-GSBER'.
      ftpost-fval = gs_regup-gsber.
      APPEND ftpost.

      ftclear-agkoa  = 'S'.          
      ftclear-xnops  = 'X'.          
      ftclear-agbuk  = gs_regup-bukrs. 
      ftclear-agkon  = ls_bseg-hkont. 
      ftclear-selfd  = 'BELNR'.      
      ftclear-selvon = gs_regup-vblnr.
      APPEND ftclear.

      CALL FUNCTION 'POSTING_INTERFACE_START'.
....

          CALL FUNCTION 'POSTING_INTERFACE_CLEARING'
        EXPORTING
          i_auglv                    = auglv     " UMBUCHNG
          i_tcode                    = tcode     " FB05
          i_sgfunct                  =sgfunct   " C
        IMPORTING
          e_msgid                    = lmsgid
          e_msgno                    =msgno
          e_msgty                    = sgty
          e_msgv1                    =msgv1
          e_msgv2                    =msgv2
          e_msgv3                    =msgv3
          e_msgv4                    =msgv4
          e_subrc                    = subrc
        TABLES
          t_blntab                   = blntab
          t_ftclear                  = ftclear
          t_ftpost                   = ftpost


      CALL FUNCTION 'POSTING_INTERFACE_END'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt; - Deepan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: deepan adhi on Mar 22, 2010 9:50 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: deepan adhi on Mar 22, 2010 9:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Mar 2010 08:42:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-22T08:42:32Z</dc:date>
    <item>
      <title>Problem with  POSTING_INTERFACE_CLEARING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-posting-interface-clearing/m-p/6696694#M1451928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a report to create clearing doc using FB05.&lt;/P&gt;&lt;P&gt;(Using  POSTING_INTERFACE_CLEARING)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whie executig the FM separately it works fine and the clearing doc is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the same is used in the report it returns the following error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The difference is too large for clearing".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched a lot for the same scenario in SDN but couldn't find one.&lt;/P&gt;&lt;P&gt;i pass the following details into the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ftpost-stype = 'K'.
      ftpost-count = 1. 

      ftpost-fnam = 'BKPF-BLDAT'.
      CONCATENATE sy-datum+4(2) sy-datum+6(2) sy-datum(4) INTO ftpost-fval SEPARATED BY '/'.
      APPEND ftpost.

      ftpost-fnam = 'BKPF-BUDAT'.
      CONCATENATE sy-datum+4(2) sy-datum+6(2) sy-datum(4) INTO ftpost-fval SEPARATED BY '/'.
      APPEND ftpost.

      ftpost-fnam = 'BKPF-BLART'.
      ftpost-fval = 'CL'.
      APPEND ftpost.

      ftpost-fnam = 'BKPF-BUKRS'.
      ftpost-fval = gs_regup-bukrs.
      APPEND ftpost.

      ftpost-fnam = 'BKPF-WAERS'.
      ftpost-fval = gs_regup-waers.
      APPEND ftpost.

      ftpost-fnam = 'BKPF-XBLNR'.
      ftpost-fval = gs_regup-vblnr.
      APPEND ftpost.

      ftpost-stype = 'P'. 
      ftpost-count =  1 . 

      ftpost-fnam = 'BSEG-BSCHL'.
      ftpost-fval = '50'.
      APPEND ftpost.

      ftpost-fnam = 'BSEG-WRBTR'.      
      ftpost-fval = gs_regup-wrbtr.
      APPEND ftpost.

      ftpost-fnam = 'BSEG-HKNOT'.
      ftpost-fval = lv_acc_no .
      APPEND ftpost.

      ftpost-fnam = 'COBL-GSBER'.
      ftpost-fval = gs_regup-gsber.
      APPEND ftpost.

      ftclear-agkoa  = 'S'.          
      ftclear-xnops  = 'X'.          
      ftclear-agbuk  = gs_regup-bukrs. 
      ftclear-agkon  = ls_bseg-hkont. 
      ftclear-selfd  = 'BELNR'.      
      ftclear-selvon = gs_regup-vblnr.
      APPEND ftclear.

      CALL FUNCTION 'POSTING_INTERFACE_START'.
....

          CALL FUNCTION 'POSTING_INTERFACE_CLEARING'
        EXPORTING
          i_auglv                    = auglv     " UMBUCHNG
          i_tcode                    = tcode     " FB05
          i_sgfunct                  =sgfunct   " C
        IMPORTING
          e_msgid                    = lmsgid
          e_msgno                    =msgno
          e_msgty                    = sgty
          e_msgv1                    =msgv1
          e_msgv2                    =msgv2
          e_msgv3                    =msgv3
          e_msgv4                    =msgv4
          e_subrc                    = subrc
        TABLES
          t_blntab                   = blntab
          t_ftclear                  = ftclear
          t_ftpost                   = ftpost


      CALL FUNCTION 'POSTING_INTERFACE_END'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt; - Deepan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: deepan adhi on Mar 22, 2010 9:50 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: deepan adhi on Mar 22, 2010 9:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 08:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-posting-interface-clearing/m-p/6696694#M1451928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-22T08:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  POSTING_INTERFACE_CLEARING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-posting-interface-clearing/m-p/6696695#M1451929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello deepan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "Difference is too large for clearing" is actually a success message which is treated as an error message when the BDC mode is "N"....try running the program in mode  "A" or "E" . it would work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another important thing is that the FM works only for standard tab for which the credit and debit lines should tally. if you want to use the FM for residual items posting then you should enhance the FM (implici enhancement)t&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 04:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-posting-interface-clearing/m-p/6696695#M1451929</guid>
      <dc:creator>Sathya_Gunasekaran</dc:creator>
      <dc:date>2010-04-08T04:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  POSTING_INTERFACE_CLEARING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-posting-interface-clearing/m-p/6696696#M1451930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satya ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share more info on how to enhance the FM , as i have do a residual posting with dynpro 3100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for any information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vidya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 15:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-posting-interface-clearing/m-p/6696696#M1451930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T15:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  POSTING_INTERFACE_CLEARING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-posting-interface-clearing/m-p/6696697#M1451931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 05:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-posting-interface-clearing/m-p/6696697#M1451931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T05:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  POSTING_INTERFACE_CLEARING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-posting-interface-clearing/m-p/6696698#M1451932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vidya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today I have the same requirement with the residual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You solve your problem with the enhancement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please shared the code you use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 19:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-posting-interface-clearing/m-p/6696698#M1451932</guid>
      <dc:creator>former_member761281</dc:creator>
      <dc:date>2012-02-07T19:00:54Z</dc:date>
    </item>
  </channel>
</rss>

