<?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: posting_interface_clearing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040248#M1610708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Din_esh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am not sure if your issue has been resolved but i had the same problem  and this is how i solved it &lt;/P&gt;&lt;P&gt;in  addition to BUDAT BLDAT that you have so far as your header also add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_ftpost-stype = 'K'."Header&lt;/P&gt;&lt;P&gt;lt_ftpost-count = 1. "number of Dynpro&lt;/P&gt;&lt;P&gt;  lt_ftpost-fnam  = 'BKPF-BUKRS'.&lt;/P&gt;&lt;P&gt; lt_ftpost-fval  = p_bukrs.&lt;/P&gt;&lt;P&gt;  APPEND lt_ftpost.&lt;/P&gt;&lt;P&gt;  CLEAR lt_ftpost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_ftpost-stype = 'K'."Header&lt;/P&gt;&lt;P&gt;lt_ftpost-count = 1. "number of Dynpro&lt;/P&gt;&lt;P&gt;lt_ftpost-fnam = 'BKPF-BKTXT'.&lt;/P&gt;&lt;P&gt;lt_ftpost-fval = 'Intercompany clearing'.&lt;/P&gt;&lt;P&gt;APPEND lt_ftpost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_ftpost-stype = 'K'."Header&lt;/P&gt;&lt;P&gt;lt_ftpost-count = 1. "number of Dynpro&lt;/P&gt;&lt;P&gt;lt_ftpost-fnam = 'BKPF-WAERS'.&lt;/P&gt;&lt;P&gt;lt_ftpost-fval = 'USD'.&lt;/P&gt;&lt;P&gt;APPEND lt_ftpost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once you add this you can add the line item details and it will work . These need to be given in order for the function module to work . also see link &lt;A href="http://www.se80.co.uk/sapfms/p/post/posting_interface_document.htm" target="test_blank"&gt;http://www.se80.co.uk/sapfms/p/post/posting_interface_document.htm&lt;/A&gt; for documentation. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2011 06:42:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-29T06:42:25Z</dc:date>
    <item>
      <title>posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040239#M1610699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I am using the function module posting_interface_clearing to post &amp;amp; clear the open items. &lt;/P&gt;&lt;P&gt; Here the requirement is we need to clear the open items from two different customer accounts against a single bank account. &lt;/P&gt;&lt;P&gt;For example the amount of 1000 EUR from the Bank A/C 41234 is cleared against two different customer accounts say 123 &amp;amp; 413. First of all how should we populate the ft_clear structure so that the clearing has to happen against two different customer accounts. The FB05 transaction is used. Can anyone help ?? I have searched the forum &amp;amp; tried a lot of combinations but its not working...Need some help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*The user will have a report from which the user can select any no. of open items and all those open items which can be from different or same customer accounts needs to cleared against an  incoming amount of a single Bank Account  *. I am sure posting_interface_clearing can do it but how. ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 11:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040239#M1610699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T11:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040240#M1610700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solution found...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2011 11:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040240#M1610700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-27T11:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040241#M1610701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tanmoy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meet the same problem you have solved. Would you mind sharing your solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My situation: &lt;/P&gt;&lt;P&gt;I have 2 documents.&lt;/P&gt;&lt;P&gt;1 document,1100000001&lt;/P&gt;&lt;P&gt;  'Item' 'Posting Key' 'Sp GL Ind' 'Amount'&lt;/P&gt;&lt;P&gt;  1        09                  2                130&lt;/P&gt;&lt;P&gt;  2        09                  2                50&lt;/P&gt;&lt;P&gt;  3        50                                   -180&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another document,,1100000002&lt;/P&gt;&lt;P&gt;  'Item' 'Posting Key' 'Sp GL Ind' 'Amount'&lt;/P&gt;&lt;P&gt;  1        09                  2                180&lt;/P&gt;&lt;P&gt;  2        19                  2                -180&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use this interface FM to clear document 1100000001, items 1 and 2 with document 1100000002, item 2 and generate an empty clearing document. &lt;/P&gt;&lt;P&gt;I use Sp GL Ind. as selection criteria, so document 1100000002, item 1 come out also. However, I don't want it to appear.&lt;/P&gt;&lt;P&gt;Would you have any solution to solve this problem?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;Horse&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 15:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040241#M1610701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-29T15:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040242#M1610702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure... I am posting the relevant part of my code extract here. If you have further questions please write back&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

     IF gt_bsid_clearing IS NOT INITIAL.
        PERFORM: f_posting_interface_start.
        PERFORM: f_posting_interface_clearing.
        PERFORM: f_posting_interface_end.
      ENDIF.

 FORM f_posting_interface_start .
  CONSTANTS: lc_function       LIKE  rfipi-funct VALUE 'C',
  " B= BDC, C= Call Trans
             lc_mode LIKE rfpdo-allgazmd VALUE 'E', "ERRORS only
             lc_update LIKE rfpdo-allgvbmd VALUE 'S' .

  CALL FUNCTION 'POSTING_INTERFACE_START'
    EXPORTING
      i_function         = lc_function
      i_mode             = lc_mode
      i_update           = lc_update
    EXCEPTIONS
      client_incorrect   = 1
      function_invalid   = 2
      group_name_missing = 3
      mode_invalid       = 4
      update_invalid     = 5
      OTHERS             = 6.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE e024(z_alv_efi013a_msg_cl).
  ENDIF.
ENDFORM." F_POSTING_INTERFACE_START

Continued....


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tanmoy Mondal on Aug 30, 2011 8:35 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tanmoy Mondal on Aug 30, 2011 8:36 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tanmoy Mondal on Aug 30, 2011 8:43 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tanmoy Mondal on Aug 30, 2011 8:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 06:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040242#M1610702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T06:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040243#M1610703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM f_posting_interface_clearing.

  CONSTANTS: lc_auglv TYPE auglv VALUE 'EINGZAHL',
             lc_tcode TYPE sytcode VALUE 'FB05',
             lc_sgfunct TYPE sgfunct_pi VALUE 'C'.

  PERFORM: f_prepare_ftpost.
  PERFORM: f_prepare_ftclear.

  CALL FUNCTION 'POSTING_INTERFACE_CLEARING'
    EXPORTING
      i_auglv                    = lc_auglv
      i_tcode                    = lc_tcode
      i_sgfunct                  = lc_sgfunct
    TABLES
      t_blntab                   = gt_blntab
      t_ftclear                  = gt_ftclear
      t_ftpost                   = gt_ftpost
      t_fttax                    = gt_fttax
    EXCEPTIONS
      clearing_procedure_invalid = 1
      clearing_procedure_missing = 2
      table_t041a_empty          = 3
      transaction_code_invalid   = 4
      amount_format_error        = 5
      too_many_line_items        = 6
      company_code_invalid       = 7
      screen_not_found           = 8
      no_authorization           = 9
      OTHERS                     = 10.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    CASE sy-subrc.
      WHEN '1'.
        MESSAGE e013(z_alv_efi013a_msg_cl).
      WHEN '2'.
        MESSAGE e014(z_alv_efi013a_msg_cl).
      WHEN '3'.
        MESSAGE e015(z_alv_efi013a_msg_cl).
      WHEN '4'.
        MESSAGE e016(z_alv_efi013a_msg_cl).
      WHEN '5'.
        MESSAGE e017(z_alv_efi013a_msg_cl).
      WHEN '6'.
        MESSAGE e018(z_alv_efi013a_msg_cl).
      WHEN '7'.
        MESSAGE e019(z_alv_efi013a_msg_cl).
      WHEN '8'.
        MESSAGE e020(z_alv_efi013a_msg_cl).
      WHEN '9'.
        MESSAGE e021(z_alv_efi013a_msg_cl).
    ENDCASE.
  ELSE.
    COMMIT WORK.
    SET SCREEN 0.
  ENDIF.

ENDFORM." F_POSTING_INTERFACE_CLEARING

Continued....

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tanmoy Mondal on Aug 30, 2011 8:47 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tanmoy Mondal on Aug 30, 2011 8:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 06:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040243#M1610703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T06:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040244#M1610704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

FORM f_prepare_ftpost .
  CONSTANTS: lc_header TYPE c VALUE 'K', "Header
             lc_item TYPE c VALUE 'P', "Item
             lc_count TYPE i VALUE '001'.

*fill_header(BKPF)
* Convert the date format from  YYYYMMDD -&amp;gt; DD/MM/YYYY
  PERFORM: f_convert_date USING pa_bldat
                         CHANGING pa_bldat.
  gs_ftpost-stype = lc_header.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'BKPF-BLDAT'.
  gs_ftpost-fval  = pa_bldat.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

* Convert the date format from  YYYYMMDD -&amp;gt; DD/MM/YYYY
  PERFORM: f_convert_date USING pa_budat
                         CHANGING pa_budat.
  gs_ftpost-stype = lc_header.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'BKPF-BUDAT'.
  gs_ftpost-fval  = pa_budat.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

  gs_ftpost-stype = lc_header.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'BKPF-BLART'.
  gs_ftpost-fval  = pa_blart.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

  gs_ftpost-stype = lc_header.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'BKPF-BUKRS'.
  gs_ftpost-fval  = pa_bukrs.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

  gs_ftpost-stype = lc_header.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'BKPF-WAERS'. "Currency
  gs_ftpost-fval  = pa_curr.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

  gs_ftpost-stype = lc_header.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'BKPF-XBLNR'.
  gs_ftpost-fval  = pa_xblnr.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

  gs_ftpost-stype = lc_header.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'BKPF-BKTXT'. "Doc. Header Text
  gs_ftpost-fval  = pa_text.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

*Commented temporarily
*  gs_ftpost-stype = lc_header.
*  gs_ftpost-count = lc_count.
*  gs_ftpost-fnam  = 'BKPF-KURSF'. "Exchange Rate
*  gs_ftpost-fval  = pa_erate.
*  SHIFT gs_ftpost-fval LEFT DELETING LEADING space.
*  APPEND gs_ftpost TO gt_ftpost.
*  CLEAR gs_ftpost.

*Item Data
  gs_ftpost-stype = lc_item.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'RF05A-NEWKO'.
  gs_ftpost-fval  = pa_newko.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

  gs_ftpost-stype = lc_item.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'RF05A-NEWBS'.
  gs_ftpost-fval  = pa_newbs.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

  gs_ftpost-stype = lc_item.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'BSEG-WRBTR'.
  gs_ftpost-fval  = pa_wrbtr.
  SHIFT gs_ftpost-fval LEFT DELETING LEADING space.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

* Convert the date format from  YYYYMMDD -&amp;gt; DD/MM/YYYY
  PERFORM: f_convert_date USING pa_valut
                         CHANGING pa_valut.

  gs_ftpost-stype = lc_item.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'BSEG-VALUT'.
  gs_ftpost-fval  = pa_valut.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

* Convert the date format from  YYYYMMDD -&amp;gt; DD/MM/YYYY
  PERFORM: f_convert_date USING pa_zfbdt
                         CHANGING pa_zfbdt.
  gs_ftpost-stype = lc_item.
  gs_ftpost-count = lc_count.
  gs_ftpost-fnam  = 'BSEG-ZFBDT'.
  gs_ftpost-fval  = pa_zfbdt.
  APPEND gs_ftpost TO gt_ftpost.
  CLEAR gs_ftpost.

Continued

ENDFORM." F_PREPARE_FTPOST

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 06:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040244#M1610704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T06:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040245#M1610705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;...

FORM f_prepare_ftclear .
  DATA: ls_ftclear TYPE ftclear.
  CONSTANTS: lc_agkoa TYPE koart VALUE 'D', "Customers
             lc_selfd TYPE fld30_f05a VALUE 'BELNR'.
  LOOP AT gt_bsid_clearing INTO gs_bsid_clearing. "Clearing Table
    ls_ftclear-agkoa = lc_agkoa.
    ls_ftclear-agkon = gs_bsid_clearing-kunnr. "Customer
    ls_ftclear-agbuk = gs_bsid_clearing-bukrs. "Company code
    ls_ftclear-xnops = gc_x. "G/L Indicator
    ls_ftclear-selfd = lc_selfd.
    CONCATENATE gs_bsid_clearing-belnr
                gs_bsid_clearing-gjahr
                gs_bsid_clearing-buzei INTO ls_ftclear-selvon.
    ls_ftclear-selbis = gs_bsid_clearing-belnr.

    APPEND ls_ftclear TO gt_ftclear.
  ENDLOOP.
ENDFORM." F_PREPARE_FTCLEAR

Continued

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 06:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040245#M1610705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T06:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040246#M1610706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;...

FORM f_posting_interface_end .
  CALL FUNCTION 'POSTING_INTERFACE_END'
    EXPORTING
      i_bdcimmed              = gc_x
    EXCEPTIONS
      session_not_processable = 1
      OTHERS                  = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE e025(z_alv_efi013a_msg_cl).
  ENDIF.
ENDFORM.                    " F_POSTING_INTERFACE_END

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tanmoy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 07:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040246#M1610706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T07:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040247#M1610707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tanmoy, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing some problem in populating the data for the Line Item level. In the foreground if I trigger it populates the values in the header correctly but in the line item level, if I pass in the code the posting key, the values are not populated in the respective field. &lt;/P&gt;&lt;P&gt;Stype used is "P". Could you please provide ur inputs. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Batch Input Values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  LT_FTPOST-STYPE = 'K'."Header&lt;/P&gt;&lt;P&gt;  LT_FTPOST-COUNT = 1. "number of Dynpro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LT_FTPOST-FNAM = 'BKPF-BLDAT'.&lt;/P&gt;&lt;P&gt;  CONCATENATE SY-DATUM&lt;EM&gt;4(2) SY-DATUM&lt;/EM&gt;6(2) SY-DATUM(4) INTO LT_FTPOST-FVAL SEPARATED BY '/'.&lt;/P&gt;&lt;P&gt;  APPEND LT_FTPOST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LT_FTPOST-FNAM = 'BKPF-BUDAT'.&lt;/P&gt;&lt;P&gt;  CONCATENATE SY-DATUM&lt;EM&gt;4(2) SY-DATUM&lt;/EM&gt;6(2) SY-DATUM(4) INTO LT_FTPOST-FVAL SEPARATED BY '/'.&lt;/P&gt;&lt;P&gt;  APPEND LT_FTPOST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LT_FTPOST-FNAM = 'BKPF-BLART'.&lt;/P&gt;&lt;P&gt;  LT_FTPOST-FVAL = 'DZ'. "Same type as documents cleared via F-32&lt;/P&gt;&lt;P&gt;  APPEND LT_FTPOST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Documents to be cleared&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LT_FTCLEAR-AGKOA = 'D'. "Account Type&lt;/P&gt;&lt;P&gt;  LT_FTCLEAR-XNOPS = 'X'. "Indicator: Select only open items which are not special G/L?&lt;/P&gt;&lt;P&gt;  LT_FTCLEAR-AGBUK = P_BUKRS. "Example company code&lt;/P&gt;&lt;P&gt;  LT_FTCLEAR-AGKON = P_KUNNR. "Example Customer&lt;/P&gt;&lt;P&gt;  LT_FTCLEAR-SELFD = 'BELNR'."Selection Field&lt;/P&gt;&lt;P&gt;  LT_FTCLEAR-SELVON = P_DOC1.&lt;/P&gt;&lt;P&gt;  LT_FTCLEAR-SELBIS = P_DOC1.&lt;/P&gt;&lt;P&gt;  APPEND LT_FTCLEAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LT_FTCLEAR-SELVON = P_DOC2.&lt;/P&gt;&lt;P&gt;  LT_FTCLEAR-SELBIS = P_DOC2.&lt;/P&gt;&lt;P&gt;  APPEND LT_FTCLEAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Item Level&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Batch Input Values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LT_FTPOST-STYPE = 'P'."Header&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LT_FTPOST-COUNT = '001'. "2. "number of Dynpro&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LT_FTPOST-FNAM = 'RF05A-NEWKO'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LT_FTPOST-FVAL = '40'. "&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; APPEND LT_FTPOST.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Batch Input Values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LT_FTPOST-STYPE = 'P'."Header&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LT_FTPOST-COUNT = '001'. "2. "number of Dynpro&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LT_FTPOST-FNAM = 'RF05A-NEWBS'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; LT_FTPOST-FVAL = '40'. "&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; APPEND LT_FTPOST.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Dinesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 19:27:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040247#M1610707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-15T19:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040248#M1610708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Din_esh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am not sure if your issue has been resolved but i had the same problem  and this is how i solved it &lt;/P&gt;&lt;P&gt;in  addition to BUDAT BLDAT that you have so far as your header also add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_ftpost-stype = 'K'."Header&lt;/P&gt;&lt;P&gt;lt_ftpost-count = 1. "number of Dynpro&lt;/P&gt;&lt;P&gt;  lt_ftpost-fnam  = 'BKPF-BUKRS'.&lt;/P&gt;&lt;P&gt; lt_ftpost-fval  = p_bukrs.&lt;/P&gt;&lt;P&gt;  APPEND lt_ftpost.&lt;/P&gt;&lt;P&gt;  CLEAR lt_ftpost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_ftpost-stype = 'K'."Header&lt;/P&gt;&lt;P&gt;lt_ftpost-count = 1. "number of Dynpro&lt;/P&gt;&lt;P&gt;lt_ftpost-fnam = 'BKPF-BKTXT'.&lt;/P&gt;&lt;P&gt;lt_ftpost-fval = 'Intercompany clearing'.&lt;/P&gt;&lt;P&gt;APPEND lt_ftpost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lt_ftpost-stype = 'K'."Header&lt;/P&gt;&lt;P&gt;lt_ftpost-count = 1. "number of Dynpro&lt;/P&gt;&lt;P&gt;lt_ftpost-fnam = 'BKPF-WAERS'.&lt;/P&gt;&lt;P&gt;lt_ftpost-fval = 'USD'.&lt;/P&gt;&lt;P&gt;APPEND lt_ftpost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once you add this you can add the line item details and it will work . These need to be given in order for the function module to work . also see link &lt;A href="http://www.se80.co.uk/sapfms/p/post/posting_interface_document.htm" target="test_blank"&gt;http://www.se80.co.uk/sapfms/p/post/posting_interface_document.htm&lt;/A&gt; for documentation. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 06:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040248#M1610708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-29T06:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040249#M1610709</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;Really good answer. I could finally fix my program with your help. I just concatenate the key field of BSID as you did.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 16:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040249#M1610709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-13T16:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040250#M1610710</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;This was posted long back &amp;amp; good to see it is really helpful.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 16:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040250#M1610710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-13T16:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040251#M1610711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this post really helps a lot! save lots of time to research again! Great job for sharing the information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Aug 2014 13:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040251#M1610711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-09T13:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: posting_interface_clearing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040252#M1610712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This post really helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;But how to do partial/residual payment using &lt;SPAN style="color: #333333; font-size: 12px;"&gt;function module posting_interface_clearing&lt;/SPAN&gt; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shakeel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 12:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-interface-clearing/m-p/8040252#M1610712</guid>
      <dc:creator>shakeelahmed_mohammed</dc:creator>
      <dc:date>2015-02-02T12:19:00Z</dc:date>
    </item>
  </channel>
</rss>

