<?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: TFKT Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tfkt-table/m-p/3529746#M849167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi FABRICIO VAZ DE SOUZA ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can enter some formulas in TFKT Tables and directly use it for ur calculations in ur program ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR u can pass the formulas directly from the program in paramater in the fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TFKT-ARG&lt;/P&gt;&lt;P&gt;TFKT-FKT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TFKT is the table which is allowed for mainenance. So if someone decide to change a formula lateron, they can just change the entry in the table. In other word, TFKT can serve as some sort of a configuration table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also pls have a look on below program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT ZTEST.

DATA: FORMULA(50) VALUE 'TFKT:CIRCLEAREA(A)',
RADIUS TYPE F VALUE '1000',
AREA TYPE F,
RETCODE LIKE SY-SUBRC.

WRITE: / 'Entered Radius :', RADIUS.

CALL FUNCTION 'CHECK_FORMULA'
EXPORTING FORMULA = FORMULA
PROGRAM = 'ZANAND_TEST'
ROUTINE = 'CHECK_VALUES'
IMPORTING SUBRC = RETCODE.

IF RETCODE IS INITIAL.
CALL FUNCTION 'EVAL_FORMULA'
EXPORTING FORMULA = FORMULA
PROGRAM = 'ZANAND_TEST'
ROUTINE = 'GET_VALUES'
IMPORTING VALUE = AREA
EXCEPTIONS OTHERS = 1.
WRITE: / 'AREA Computed :', AREA.
ENDIF.

FORM GET_VALUES USING PARM CHANGING WERT SUBRC.
IF PARM = 'A'.
WERT = RADIUS.
SUBRC = 0.
ENDIF.
ENDFORM.

FORM CHECK_VALUES USING PARM CHANGING SUBRC.
IF PARM = 'A'.
SUBRC = 0.
ENDIF.
ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the sample programs RSCALC01 and RSCALC10 also...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 4, 2008 12:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2008 13:33:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-04T13:33:33Z</dc:date>
    <item>
      <title>TFKT Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tfkt-table/m-p/3529745#M849166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i use TFKT Table ? Have you a document explain it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 13:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tfkt-table/m-p/3529745#M849166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T13:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: TFKT Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tfkt-table/m-p/3529746#M849167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi FABRICIO VAZ DE SOUZA ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can enter some formulas in TFKT Tables and directly use it for ur calculations in ur program ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR u can pass the formulas directly from the program in paramater in the fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TFKT-ARG&lt;/P&gt;&lt;P&gt;TFKT-FKT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TFKT is the table which is allowed for mainenance. So if someone decide to change a formula lateron, they can just change the entry in the table. In other word, TFKT can serve as some sort of a configuration table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also pls have a look on below program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT ZTEST.

DATA: FORMULA(50) VALUE 'TFKT:CIRCLEAREA(A)',
RADIUS TYPE F VALUE '1000',
AREA TYPE F,
RETCODE LIKE SY-SUBRC.

WRITE: / 'Entered Radius :', RADIUS.

CALL FUNCTION 'CHECK_FORMULA'
EXPORTING FORMULA = FORMULA
PROGRAM = 'ZANAND_TEST'
ROUTINE = 'CHECK_VALUES'
IMPORTING SUBRC = RETCODE.

IF RETCODE IS INITIAL.
CALL FUNCTION 'EVAL_FORMULA'
EXPORTING FORMULA = FORMULA
PROGRAM = 'ZANAND_TEST'
ROUTINE = 'GET_VALUES'
IMPORTING VALUE = AREA
EXCEPTIONS OTHERS = 1.
WRITE: / 'AREA Computed :', AREA.
ENDIF.

FORM GET_VALUES USING PARM CHANGING WERT SUBRC.
IF PARM = 'A'.
WERT = RADIUS.
SUBRC = 0.
ENDIF.
ENDFORM.

FORM CHECK_VALUES USING PARM CHANGING SUBRC.
IF PARM = 'A'.
SUBRC = 0.
ENDIF.
ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the sample programs RSCALC01 and RSCALC10 also...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 4, 2008 12:24 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 13:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tfkt-table/m-p/3529746#M849167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: TFKT Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tfkt-table/m-p/3529747#M849168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need make a view to tfkt ? or i need to creat a copy of tfkt and male a view ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 13:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tfkt-table/m-p/3529747#M849168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T13:55:40Z</dc:date>
    </item>
  </channel>
</rss>

