<?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: syntax error in ECC 6 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805428#M655538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We should not change the System field values .. bcoz they are filled by Runtime only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u can use another variable for this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_REPID LIKE SY-REPID.&lt;/P&gt;&lt;P&gt;V_REPID = 'PRGNAME'.  "Assign the program u want..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2007 10:04:02 GMT</pubDate>
    <dc:creator>varma_narayana</dc:creator>
    <dc:date>2007-09-12T10:04:02Z</dc:date>
    <item>
      <title>syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805418#M655528</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;can any one please suggest me that cant we assign any prg to sy-repid.&lt;/P&gt;&lt;P&gt;i have ana error for this code SY-REPID = 'PRGNAME'.&lt;/P&gt;&lt;P&gt;error is:the field SY-REPID cant be changed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 08:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805418#M655528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T08:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805419#M655529</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;SY-REPID is the system field and it assigned automatically by the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can't manully assign the values to system field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 08:53:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805419#M655529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T08:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805420#M655530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi the error is because:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system field SY-REPID is not part of SYST or SY. Instead, every program contains the predefined constants SY-REPID and SYST-REPID, which both contain the name of the corresponding program. Furthermore, there are two predefined types of the same name, SY-REPID and SYST-REPID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All system fields are addressed using SY field name and their types using SYST field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this link....&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 08:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805420#M655530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T08:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805421#M655531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the same code is working in 4.6c version but its raising error in ECC 6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 08:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805421#M655531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T08:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805422#M655532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.....sy-repid is a system variable and it cant be changed in the program......&lt;/P&gt;&lt;P&gt;jus like u cant change sy-datum....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 08:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805422#M655532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T08:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805423#M655533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sureshrayudu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;although it worked in 46C it is completely useless: With the next statement it will retain the name of the program runningf as value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just remove this and check for any difference.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 09:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805423#M655533</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-09-12T09:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805424#M655534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No you Cant do this . Actually SY_REPID already has assigned the program name once you call it in ur program. No need to assign the program name again to SY_REPID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to pass your program name to any FM's or anywhere , you can directly pass SY_REPID there. OR you can pass SY_REPID to any variable of type SY_REPID and pass that variable where you want to pass the program name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be i am not 100% correct to my statement but If anyhow i solved your problem do reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 09:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805424#M655534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T09:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805425#M655535</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;SY-REPID is a field of database table SYST, which is a database table developed by sap.&lt;/P&gt;&lt;P&gt;it holds the name of current program under execution. we can use this variable to get current prgm name. we cant change the value of this variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eX:&lt;/P&gt;&lt;P&gt;data: prgname like sy-repid.&lt;/P&gt;&lt;P&gt;prgname = sy-repid. // then both prgname and sy-repid contains the name of program under execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but u cant use it as IT IS A system field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prgname = 'SURESH ALURI'.&lt;/P&gt;&lt;P&gt;sy-repid = prgname. //&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 09:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805425#M655535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T09:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805426#M655536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ECC 6.0 Performs certain additional checks like this which may be ignored in 4.6C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you want to Assign the Value .. do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_REPID LIKE SY-REPID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_REPID = 'PRGNAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_REPID = SY-REPID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will not Give any error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 09:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805426#M655536</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-12T09:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805427#M655537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varma,&lt;/P&gt;&lt;P&gt;i'm not assigning the same program to sy-repid.&lt;/P&gt;&lt;P&gt;i'm assigning another program to sy-repid.&lt;/P&gt;&lt;P&gt;like....i'm in xyz prg. and in the xyz prg i'm trying to assign abc prg name to sy-repid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 09:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805427#M655537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T09:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805428#M655538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We should not change the System field values .. bcoz they are filled by Runtime only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u can use another variable for this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_REPID LIKE SY-REPID.&lt;/P&gt;&lt;P&gt;V_REPID = 'PRGNAME'.  "Assign the program u want..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805428#M655538</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-12T10:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805429#M655539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;varma,&lt;/P&gt;&lt;P&gt;its not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:26:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805429#M655539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in ECC 6</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805430#M655540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sureshrayudu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the question remains: Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yopu want to pass a manipulated SY-REPID to a function, it will change as soon the function is entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need it in your program, then you can exchange all occurences of SY-REPID with a global constant declared as CONSTANTS: gc_repid typs syrepid value 'whatyoulike'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And is there no other way of doing it properly?&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 12:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-ecc-6/m-p/2805430#M655540</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-09-12T12:15:11Z</dc:date>
    </item>
  </channel>
</rss>

