<?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: FP40 in SAP for Utilities Discussions</title>
    <link>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626008#M4792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call this FM &lt;STRONG&gt;FKK_TRANSFER_ITEMS_XBLNR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FP40 t-code will call this FM to transfer the amount from one CA to another CA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2008 09:16:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-21T09:16:22Z</dc:date>
    <item>
      <title>FP40</title>
      <link>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626007#M4791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create enhancement over standard sap functionality TCode: FP40.&lt;/P&gt;&lt;P&gt;As FP40 canu2019t be used for mass balance transfer, hence here I need to create one batch program which will transfer balances from all contract accounts (finalized and inactive) to another contract accounts (which are active) (and with same business partners) depends upon some u2018whereu2019 condition. (u2018Whereu2019 condition could be anything for example: u2018Number of Days after move out dateu2019)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now once we got all source CAs (lets call them CA1) and destination CAs (i.e. CA2), we need to transfer balances. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is how to do that in the code? Here how I will call FP40 in the background?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 08:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626007#M4791</guid>
      <dc:creator>former_member221838</dc:creator>
      <dc:date>2008-10-21T08:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: FP40</title>
      <link>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626008#M4792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call this FM &lt;STRONG&gt;FKK_TRANSFER_ITEMS_XBLNR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FP40 t-code will call this FM to transfer the amount from one CA to another CA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 09:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626008#M4792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T09:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: FP40</title>
      <link>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626009#M4793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be quite useful. FP40 is using same FM (but after lots of porcessing). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found how to solve enter value in below parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables:&lt;/P&gt;&lt;P&gt;T_FKKCL : &lt;/P&gt;&lt;P&gt;T_OPBEL_RANGE :&lt;/P&gt;&lt;P&gt;T_FIMSG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;but got confused with VTREF (contract). could you please help me with this parameter?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_VTREF : I mean we can get old contract, but how to select new contract automatically? (remember I need to code this, no BDC). (in actual - FP40 user presses 'F4' key to select new contract in the pop screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have any suggestions for me, please guide me with it (for example. are there any other FMs I need to call/process?).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 10:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626009#M4793</guid>
      <dc:creator>former_member221838</dc:creator>
      <dc:date>2008-10-21T10:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: FP40</title>
      <link>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626010#M4794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In our project we have done like this....Please see the code and let me know if you need any thing more...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing "How to find new contract" -&amp;gt; This is your business scenario yaar.&lt;/P&gt;&lt;P&gt;In your functional design it will be there how to find new contract.(Example : Pick up the old contract business partner and find any other active contract and transfer the amount like this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Posting Document Programmatically&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a document programmatically we will use the following two Function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	FKK_CREATE_DOC&lt;/P&gt;&lt;P&gt;u2022	FKK_CREATE_DOC_AND_CLEAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For FKK_CREATE_DOC: We need to populate the following tables/structures/parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	I_FKKKO (Exporting)&lt;/P&gt;&lt;P&gt;u2022	I_FKKOPL_CF (Exporting - Value u2018Xu2019)&lt;/P&gt;&lt;P&gt;u2022	I_DIALOG (Exporting - Value u2018Xu2019)&lt;/P&gt;&lt;P&gt;u2022	T_FKKOP (Tables)&lt;/P&gt;&lt;P&gt;u2022	T_FKKOPK (Tables)&lt;/P&gt;&lt;P&gt;u2022	E_OPBEL (This is the importing/returning parameter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In I_FKKKO populate the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u2022	FIKEY&lt;/P&gt;&lt;P&gt;u2022	APPLK&lt;/P&gt;&lt;P&gt;u2022	BLART&lt;/P&gt;&lt;P&gt;u2022	HERKF&lt;/P&gt;&lt;P&gt;u2022	WAERS&lt;/P&gt;&lt;P&gt;u2022	BLDAT&lt;/P&gt;&lt;P&gt;u2022	BUDAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In I_FKKOP populate the following fields:&lt;/P&gt;&lt;P&gt;u2022	OPUPK&lt;/P&gt;&lt;P&gt;u2022	BUKRS&lt;/P&gt;&lt;P&gt;u2022	GPART&lt;/P&gt;&lt;P&gt;u2022	VTREF&lt;/P&gt;&lt;P&gt;u2022	VKONT&lt;/P&gt;&lt;P&gt;u2022	APPLK&lt;/P&gt;&lt;P&gt;u2022	BLART&lt;/P&gt;&lt;P&gt;u2022	HVORG&lt;/P&gt;&lt;P&gt;u2022	TVORG&lt;/P&gt;&lt;P&gt;u2022	FAEDN (Use FM u2018FKK_GET_DUE_DATEu2019 to determine Due Date)&lt;/P&gt;&lt;P&gt;u2022	KOFIZ&lt;/P&gt;&lt;P&gt;u2022	SPART&lt;/P&gt;&lt;P&gt;u2022	HKONT (Use FM u2018FKK_ACCOUNT_DETERMINEu2019 to determine G/L Acc)&lt;/P&gt;&lt;P&gt;u2022	MWSKZ&lt;/P&gt;&lt;P&gt;u2022	BLDAT&lt;/P&gt;&lt;P&gt;u2022	BUDAT&lt;/P&gt;&lt;P&gt;u2022	WAERS&lt;/P&gt;&lt;P&gt;u2022	BETRH&lt;/P&gt;&lt;P&gt;u2022	BETRW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Pass data to FM to determine G/L Account for FKKOP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ls_tfk033d-applk = &amp;lt;Constant u2018Ru2019&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-buber = &amp;lt;Constantu2019R000u2019&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-ktopl = &amp;lt;Constantu2019AGLu2019&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-key01 = &amp;lt;Company Code&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-key02 = &amp;lt;Division&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-key03 = &amp;lt;Account Determination ID&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-key04 = &amp;lt;Main Transaction&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FM to detrmine G/L Account&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'FKK_ACCOUNT_DETERMINE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_tfk033d           = ls_tfk033d&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_tfk033d           = ls_tfk033d&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        error_in_input_data = 1&lt;/P&gt;&lt;P&gt;        nothing_found       = 2&lt;/P&gt;&lt;P&gt;        OTHERS              = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: ls_tfk033d-fun01 will return the G/L Account&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FM to determine due date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'FKK_GET_DUE_DATE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_fkkko = ls_fkkko&lt;/P&gt;&lt;P&gt;        i_fkkop = ls_fkkop&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_faedn = lv_faedn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: lv_faedn will return the Due Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In I_FKKOPK populate the following fields: &lt;/P&gt;&lt;P&gt;Here we need to populate 2 items; the amount field will be always the negative of the amount that has been passed to FKKOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Line Item;&lt;/P&gt;&lt;P&gt;u2022	MANDT&lt;/P&gt;&lt;P&gt;u2022	FIKEY&lt;/P&gt;&lt;P&gt;u2022	OPUPK&lt;/P&gt;&lt;P&gt;u2022	BUKRS&lt;/P&gt;&lt;P&gt;u2022	HKONT (Use FM u2018CALCULATE_TAX_FROM_NET_AMOUNTu2019 to determine G/L Account)&lt;/P&gt;&lt;P&gt;u2022	MWSKZ&lt;/P&gt;&lt;P&gt;u2022	SBASH (Same as BETRH)&lt;/P&gt;&lt;P&gt;u2022	SBASW (Same as BETRW)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the G/L account is for GST.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FM to Get the TAX G/L Account&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_bukrs           = &amp;lt;Company Code&amp;gt;&lt;/P&gt;&lt;P&gt;        i_mwskz           = &amp;lt;Tax Code&amp;gt;&lt;/P&gt;&lt;P&gt;        i_waers           = &amp;lt;Constant u2018AUDu2019&amp;gt;&lt;/P&gt;&lt;P&gt;        i_wrbtr           = &amp;lt;Open Amount&amp;gt;&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_mwdat           = lt_mwdat&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        bukrs_not_found   = 1&lt;/P&gt;&lt;P&gt;        country_not_found = 2&lt;/P&gt;&lt;P&gt;        mwskz_not_defined = 3&lt;/P&gt;&lt;P&gt;        mwskz_not_valid   = 4&lt;/P&gt;&lt;P&gt;        ktosl_not_found   = 5&lt;/P&gt;&lt;P&gt;        kalsm_not_found   = 6&lt;/P&gt;&lt;P&gt;        parameter_error   = 7&lt;/P&gt;&lt;P&gt;        knumh_not_found   = 8&lt;/P&gt;&lt;P&gt;        kschl_not_found   = 9&lt;/P&gt;&lt;P&gt;        unknown_error     = 10&lt;/P&gt;&lt;P&gt;        account_not_found = 11&lt;/P&gt;&lt;P&gt;        txjcd_not_valid   = 12&lt;/P&gt;&lt;P&gt;        OTHERS            = 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0 OR lt_mwdat[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Display message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Populate G/L Account ID in FKKOPK&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    READ TABLE lt_mwdat INTO ls_mwdat INDEX 1.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      lv_hkont = ls_mwdat-hkont. u201CThis is the G/L Account Number.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second Line Item;&lt;/P&gt;&lt;P&gt;u2022	MANDT&lt;/P&gt;&lt;P&gt;u2022	FIKEY&lt;/P&gt;&lt;P&gt;u2022	OPUPK&lt;/P&gt;&lt;P&gt;u2022	BUKRS&lt;/P&gt;&lt;P&gt;u2022	HKONT (Use FM u2018FKK_ACCOUNT_DETERMINEu2019 to determine G/L Acc)&lt;/P&gt;&lt;P&gt;u2022	MWSKZ&lt;/P&gt;&lt;P&gt;u2022	BETRH&lt;/P&gt;&lt;P&gt;u2022	BETRW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the G/L Account is development specific. You can cross check this G/L Account in table SKAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Pass data to FM to determine G/L Account for FKKOPK -- 2nd Item in FKKOPK&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ls_tfk033d-applk = &amp;lt;Constant u2018Ru2019&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-buber = &amp;lt;Constantu2019R001u2019&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-ktopl = &amp;lt;Constantu2019AGLu2019&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-key01 = &amp;lt;Company Code&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-key02 = &amp;lt;Division&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-key03 = &amp;lt;Account Determination ID&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-key04 = &amp;lt;Main Transaction&amp;gt;&lt;/P&gt;&lt;P&gt;    ls_tfk033d-key05 = &amp;lt;Sub Transaction&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FM to detrmine G/L Account&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'FKK_ACCOUNT_DETERMINE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_tfk033d           = ls_tfk033d&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_tfk033d           = ls_tfk033d&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        error_in_input_data = 1&lt;/P&gt;&lt;P&gt;        nothing_found       = 2&lt;/P&gt;&lt;P&gt;        OTHERS              = 3.&lt;/P&gt;&lt;P&gt;Note: ls_tfk033d-fun01 will return the G/L Account&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally call the FM u2018FKK_CREATE_DOCu2019 &amp;amp; pass the above mentioned structures/tables to create the document. Remember to call the FM u2018BAPI_TRANSACTION_COMMITu2019 to save the created document.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Post the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'FKK_CREATE_DOC_AND_CLEAR'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_fkkko     = ls_fkkko&lt;/P&gt;&lt;P&gt;        i_fkkopl_cf = u2018Xu2019&lt;/P&gt;&lt;P&gt;        i_dialog    = u2018Xu2019&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_opbel     = &amp;lt;This will return the new document&amp;gt;&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_fkkop     = lt_fkkop&lt;/P&gt;&lt;P&gt;        t_fkkopk    = lt_fkkopk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    FM to Save the transaction.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          wait = u2018Xu2019.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;For FKK_CREATE_DOC_AND_CLEAR: We need to populate the save tables/structures/parameters those we have populated for u2018FKK_CREATE_DOCu2019. But along with the above fields we need to populate one more tables parameter u2018T_FKKCLu2019.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To populate this call the FM u2018FKK_OPEN_ITEM_SELECTu2019. This will populate the FKKCL internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Pass data to FM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MOVE: u20180001u2019    TO lt_seltab-selnr,&lt;/P&gt;&lt;P&gt;          u2018VTREFu2019   TO lt_seltab-selfn,&lt;/P&gt;&lt;P&gt;          lv_vtref  TO lt_seltab-selcu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND lt_seltab.&lt;/P&gt;&lt;P&gt;    CLEAR: lt_seltab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Find open items for the contract being processed.  If none found, no&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  further action required.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'FKK_OPEN_ITEM_SELECT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_applk             = u2018Ru2019&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_seltab            = lt_seltab&lt;/P&gt;&lt;P&gt;        t_fkkcl             = lt_fkkcl&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        concurrent_clearing = 1&lt;/P&gt;&lt;P&gt;        payment_orders      = 2&lt;/P&gt;&lt;P&gt;        OTHERS              = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: lv_vtref is the reference contract number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally call the FM u2018FKK_CREATE_DOCu2019 &amp;amp; pass the above mentioned structures/tables to create the document. Remember to call the FM u2018BAPI_TRANSACTION_COMMITu2019 to save the created document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Post the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'FKK_CREATE_DOC_AND_CLEAR'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_fkkko     = ls_fkkko&lt;/P&gt;&lt;P&gt;        i_fkkopl_cf = u2018Xu2019&lt;/P&gt;&lt;P&gt;        i_dialog    = u2018Xu2019&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_opbel     = &amp;lt;This will return the new document&amp;gt;&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        t_fkkop     = lt_fkkop&lt;/P&gt;&lt;P&gt;        t_fkkopk    = lt_fkkopk&lt;/P&gt;&lt;P&gt;        t_fkkcl     = lt_fkkcl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    FM to Save the transaction.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          wait = u2018Xu2019.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 12:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626010#M4794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T12:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: FP40</title>
      <link>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626011#M4795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva, it seems that there is one more solution hidden in your code: thanks &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so let me explain you... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to convert stat document into real document by using dunning user exit 350 (FKK_SAMPLE_0350).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Single FUN01 FUN02 from TFK033D into ls_real_trans where APPLK (Application area) = u2018Ru2019, BUBER (Posting area) = u20181010u2019, Key01 = u2018Gu2019, Key02 = FKKOP u2013HVORG (main of stat doc), Key03 = FKKOP-TVORG (sub of stat doc). (This will help us to find relationship between stat and real document).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single OPBEL from DFKKOP into ls_real_doc where HVORG = ls_real_trans- HVORG and TVORG = ls_real_trans- TVORG. (Now we have info of real doc which we are going to post).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For FKK_CREATE_DOC_AND_CLEAR: We need to populate the save tables/structures/parameters those we have populated for u2018FKK_CREATE_DOCu2019. But along with the above fields we need to populate one more table parameter u2018T_FKKCLu2019.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FKK_OPEN_ITEM_SELECT' to populate T_FKKCL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 4:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FKK_CREATE_DOC_AND_CLEARu2019.&lt;/P&gt;&lt;P&gt;This will clear old statistical document will post new one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 5:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FKK_CREATE_DOC'.&lt;/P&gt;&lt;P&gt;This will post new real document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 6:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Save the transaction:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comments for above six steps. I know you can help me :-). If I am doing anything wrong or missing any step do help me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am rookie in this area so it would be of great help if you explain in steps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 14:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626011#M4795</guid>
      <dc:creator>former_member221838</dc:creator>
      <dc:date>2008-10-21T14:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: FP40</title>
      <link>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626012#M4796</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 have one question FI-CA&lt;/P&gt;&lt;P&gt;I must transfert items existing in the clarification list to an another account general. When this items will be in the new account, one OD will be erased them&lt;/P&gt;&lt;P&gt;Is a standard transaction exists to do this operation of transfer (for example an FP40 specially for mass transfer items for the clarification list) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ficachu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 20:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/sap-for-utilities-discussions/fp40/m-p/4626012#M4796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-07T20:27:24Z</dc:date>
    </item>
  </channel>
</rss>

