<?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 How to implement BTE1640? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-bte1640/m-p/5672033#M1289785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to post those entries which are generated from Automatic Payment Transaction(F111) to corresponding Profit Centers.Actually the system is not deriving the profit center automatically (product error) and there is no provision to enter profit center manually in F111.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP has provided BTE1640 for the purpose of routing the postings to corresponding profit centers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I have the following queries:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Which BTE should I select for 1640,either P/S or process?Actually we have tried both and given the break point,but system is not triggering while executing F111.What may be the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Eventhough SAP has asked us to use BTE1640,we could not find profit center field in the function module SAMPLE_INTERFACE_00001640.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ramesh Nair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2009 08:24:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-02T08:24:09Z</dc:date>
    <item>
      <title>How to implement BTE1640?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-bte1640/m-p/5672033#M1289785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to post those entries which are generated from Automatic Payment Transaction(F111) to corresponding Profit Centers.Actually the system is not deriving the profit center automatically (product error) and there is no provision to enter profit center manually in F111.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP has provided BTE1640 for the purpose of routing the postings to corresponding profit centers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I have the following queries:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Which BTE should I select for 1640,either P/S or process?Actually we have tried both and given the break point,but system is not triggering while executing F111.What may be the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Eventhough SAP has asked us to use BTE1640,we could not find profit center field in the function module SAMPLE_INTERFACE_00001640.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ramesh Nair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 08:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-bte1640/m-p/5672033#M1289785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T08:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement BTE1640?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-bte1640/m-p/5672034#M1289786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the process BTE to implement program that differs from standard functionality.&lt;/P&gt;&lt;P&gt;Use the publish and subscribe BTE to implement additional functionality not delivered by SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try setting break-point in the 'OPEN_...00001640...' function module corresponding to your BTEs and run the transaction F111. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of transaction F111, the  'OPEN_....._00001640_P'  BTE is called, so try setting break point in here. To implement the BTE copy the corresponding 'SAMPLE...00001640' function module and implement your code and maintain this in the t-code FIBF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to determine profit center try to get the information using some logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 13:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-bte1640/m-p/5672034#M1289786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-02T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement BTE1640?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-bte1640/m-p/5672035#M1289787</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;Below is an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to transaction code FIBF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on Environmenr --&amp;gt; infoSytem (P/S). Select attribute type as 'A' and execute. Select the BTE you want and click sample function module.&lt;/P&gt;&lt;P&gt;For example say 00001030. Double Click on sample function module. Now copy this function module as Z func module &amp;amp; save it in a Z package.&lt;/P&gt;&lt;P&gt;in that Z func module write the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : AC_CONTAINER LIKE SWR_CONT OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF objkey.&lt;/P&gt;&lt;P&gt;DATA: bukrs LIKE bkpf-bukrs.&lt;/P&gt;&lt;P&gt;DATA: belnr LIKE bkpf-belnr.&lt;/P&gt;&lt;P&gt;DATA: gjahr LIKE bkpf-gjahr.&lt;/P&gt;&lt;P&gt;DATA: END OF objkey.&lt;/P&gt;&lt;P&gt;DATA: swe_objkey LIKE sweinstcou-objkey.&lt;/P&gt;&lt;P&gt;DATA: card TYPE p.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE t_bkpf LINES card.&lt;/P&gt;&lt;P&gt;IF card &amp;lt;= 0.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;READ TABLE t_bkpf INDEX 1.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING t_bkpf TO objkey.&lt;/P&gt;&lt;P&gt;MOVE objkey TO swe_objkey.&lt;/P&gt;&lt;P&gt;IF t_bkpf-tcode = 'F-47' OR t_bkpf-tcode = 'FBA6' OR t_bkpf-tcode = 'FB05'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SWE_EVENT_CREATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;objtype = 'BKPF'&lt;/P&gt;&lt;P&gt;objkey = swe_objkey&lt;/P&gt;&lt;P&gt;event = 'CREATED'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CREATOR = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TAKE_WORKITEM_REQUESTER = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;START_WITH_DELAY = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;START_RECFB_SYNCHRON = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EVENT_ID =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EVENT_CONTAINER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;objtype_not_found = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now again come back to FIBF main screen.&lt;/P&gt;&lt;P&gt;Click on Settings --&amp;gt; Products --&amp;gt; Of a customer. Enter any product name starting with letter Z. give some text description. Do not activate it now.&lt;/P&gt;&lt;P&gt;Come back to FIBF main screen.&lt;/P&gt;&lt;P&gt;Click on settings --&amp;gt; P/S modules --&amp;gt; Of a customer.&lt;/P&gt;&lt;P&gt;Enter Event as 00001030, product which you defined earlier, and enter your Z func module name.&lt;/P&gt;&lt;P&gt;Save this entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now again come back to FIBF main screen.&lt;/P&gt;&lt;P&gt;Click on Settings --&amp;gt; Products --&amp;gt; Of a customer and activate your entry by selecting the last checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 05:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-bte1640/m-p/5672035#M1289787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T05:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement BTE1640?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-bte1640/m-p/5672036#M1289788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will just explain from functional point of view:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAP Treasury Module there is no provision to enter profit center while posting a document.So as a workaround I'm using a field RDEALER in VTBFHAPO table to store the profit center and through a BAdi,I'm deriving the profit center in Treasury postings.&lt;/P&gt;&lt;P&gt;So,inorder to clear the document which is posted in Treasury,I'm using F111.Ideally profit center has to be picked up automatically from the treasury posting whoich is already made.But,in F111 system is not picking profit center and it is not providing any field to enter profit center manually.SAP has confirmed that it is a product error,and they have advised us to use either FI substitution or BTE 1640 to derive the profit center in F111.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic is that:-&lt;/P&gt;&lt;P&gt;Contract number is the key field,and its stored in Treasury Table VTBFHAZU &amp;amp; FI table BSEG&lt;/P&gt;&lt;P&gt;So compare the contract number VTBFHAZU-RFHA = BSEG-VERTN&lt;/P&gt;&lt;P&gt;Check the value in RDEALER in VTBFHAZU&lt;/P&gt;&lt;P&gt;Default the same value in  PCTR-BSEG for all line items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ramesh Nair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 06:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-implement-bte1640/m-p/5672036#M1289788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T06:51:51Z</dc:date>
    </item>
  </channel>
</rss>

