<?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: system fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278796#M495968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think a more appropriate example is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;REPORT  ZCHKSYREPID.&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;write : / sy-repid, sy-cprog.&lt;/P&gt;&lt;P&gt;submit ZCHKSYREPID2 and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM r2 in program ZCHKSYREPID2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;REPORT  ZCHKSYREPID2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;write : / sy-repid, sy-cprog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;------  Form  r2 -&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form r2 .&lt;/P&gt;&lt;P&gt;write : / sy-repid, sy-cprog.&lt;/P&gt;&lt;P&gt;endform.                    " r2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Sep 2007 16:44:09 GMT</pubDate>
    <dc:creator>aashish_anchlia2</dc:creator>
    <dc:date>2007-09-14T16:44:09Z</dc:date>
    <item>
      <title>system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278790#M495962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pls tell me the diff between sy-repid &amp;amp; sy-cprog.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278790#M495962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278791#M495963</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;pl go through&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-REPID:&lt;/P&gt;&lt;P&gt;Name of the current ABAP program. For externally-called procedures, it is the name of the main program of the procedure. If you pass SY-REPID as an actual parameter to an external procedure, the formal parameter does not contain the name of the caller, but that of the main program of the procedure. To avoid this, assign SY-REPID to an auxiliary variable and use that in the call, or use the system field SY-CPROG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-CPROG:&lt;/P&gt;&lt;P&gt;The name of the calling program in an external routine, otherwise the name of the current program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, please check this links.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2..............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-REPID : It is name of the current program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-CPROG : Name of the calling program. It would be same as SY-REPID if it is the current program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for example check the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZREP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;write : / sy-repid, sy-cprog.&lt;/P&gt;&lt;P&gt;submit zrep1 and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REport zrep1.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;write : / sy-repid, sy-cprog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output would be.&lt;/P&gt;&lt;P&gt;zrep zrep&lt;/P&gt;&lt;P&gt;zrep1 zrep &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls rewad if it helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:44:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278791#M495963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278792#M495964</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;&amp;lt;b&amp;gt;sy-repid&amp;lt;/b&amp;gt;  :gives Current main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SY-CPROG&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of the calling program in an external routine, otherwise the name of the current program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278792#M495964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278793#M495965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shital,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-CPROG (MAIN program)&lt;/P&gt;&lt;P&gt;The name of the current program and name of the calling program within a procedure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-REPID (CURRENT program)&lt;/P&gt;&lt;P&gt;Name of the current ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278793#M495965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278794#M495966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;SY-REPID / SY-CPROG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-REPID is the Name of the current ABAP program.&lt;/P&gt;&lt;P&gt;SY-CPROG is he name of the current program OR the name of the calling program within a procedure (perform externaly, call function)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278794#M495966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278795#M495967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 05:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278795#M495967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T05:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278796#M495968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think a more appropriate example is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;REPORT  ZCHKSYREPID.&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;write : / sy-repid, sy-cprog.&lt;/P&gt;&lt;P&gt;submit ZCHKSYREPID2 and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM r2 in program ZCHKSYREPID2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;REPORT  ZCHKSYREPID2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;write : / sy-repid, sy-cprog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;------  Form  r2 -&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form r2 .&lt;/P&gt;&lt;P&gt;write : / sy-repid, sy-cprog.&lt;/P&gt;&lt;P&gt;endform.                    " r2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 16:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/2278796#M495968</guid>
      <dc:creator>aashish_anchlia2</dc:creator>
      <dc:date>2007-09-14T16:44:09Z</dc:date>
    </item>
  </channel>
</rss>

