<?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: Methods to solve this syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006329#M77860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PJ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could u please tell me how to define then ??? .. where to define ??? the IF_PURCHASE_REQUISITION_ITEM is a class .... so clear me in defining and using the methods of this class .. iam not able to get that !! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;This is a user exit ... and ive written codes in the includes which are created when i ve created the subscreen '0111' .... so is that possible for me to define the code in one include ( as how u ve said ) in this ???? if yes how should i do that !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...kripa...(New Upcoming Abaper)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2005 08:35:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-28T08:35:59Z</dc:date>
    <item>
      <title>Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006317#M77848</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;I am doing a user exit. In that iam including my code in a Include say 'ZXXX' in that i have 2 includes 'ZXX1' and 'ZXX2' ( one for PBO and one for PAI )..... i ve written my codes inside and when iam activating the include it gives me the following error ???? what iam missing / what ive given extra / what should i do??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error : &lt;/P&gt;&lt;P&gt;" EACH ABAP PRORAM CAN CONTAIN ONLY ONE "REPORT" OR "PROGRAM" OR "FUNCTION-POOL" STATEMENT" ..................  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting ur answers.....(any small idea will surely help me and others too) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope my question is clear ..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance .............................&lt;/P&gt;&lt;P&gt;_________________&lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kripa ., &lt;/P&gt;&lt;P&gt;Upcoming New Abaper......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 13:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006317#M77848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T13:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006318#M77849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your includes shall be of type include (check that you do not have 'REPORT' statement in these includes and their program type is not of 'executable'.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 13:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006318#M77849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T13:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006319#M77850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, make sure that there is no PROGRAM statement in your includes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 13:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006319#M77850</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-07-27T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006320#M77851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Include program say A, and in that i ve two inlcudes of program B and C ( All A,B,C are of the same Type I only ) in that B and C are the PBO and PAI inlcudes of Program A. So as per u ve said, i ve checked the types and everything is of Type I and no other Report / Program name is included in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So ?????????? now what could i do ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 13:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006320#M77851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T13:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006321#M77852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have 3 includes then it means that you have no program or report or module pool program....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error : &lt;/P&gt;&lt;P&gt;" EACH ABAP PRORAM CAN CONTAIN ONLY ONE "REPORT" OR "PROGRAM" OR "FUNCTION-POOL" STATEMENT" .................. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI..this error also means that you must have one of these stmts in an ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess  program 'A' should be a module pool program and not just simple include that you have mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please remember that SAP's error messages means both ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like in this case this error means it should not have more than 1 REPORT / PROGRAM stmt and also that it must have 1 stmt at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will suggest you create the module pool program 'A' properly through transaction SE80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 14:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006321#M77852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T14:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006322#M77853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kripa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   You said you are implementing a user-exit. At the same time you are saying you are using other two includes for PBO and PAI, it doesn't make sense. These includes are part of a function module and I have never seen anybody write PAI or PBO modules inside a function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I may be wrong, I am assuming you have PAI and PBO modules inside these includes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 16:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006322#M77853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T16:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006323#M77854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok ..i didn't notice that you are using these includes in an user-exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should put your includes in the top include (where you also declare global variables ) of user-exit function module and not within the function module code (not in z include called within the FM )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 17:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006323#M77854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T17:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006324#M77855</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 think its better to tell the whole process which iam doing ( i dont know whether the steps are right as this is the first time iam tryig to implement a user-exit!). So what ever could be the mistake which u encounter in my steps please let me know so that i could correct that! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is:&lt;/P&gt;&lt;P&gt;1. To add a field in ME51N transaction in the valuation tab, Say a field which captures the text 'AAA' which could be given by the user....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Understanding and implementation:&lt;/P&gt;&lt;P&gt;1. Got the user exit name to be 'MEREQ001' ( Tcode SMOD )&lt;/P&gt;&lt;P&gt;2 Added a field 'ZZXXX' in the table EBAN and activated the table. &lt;/P&gt;&lt;P&gt;3. From SE80 --&amp;gt; in the  function group XM02,created a screen ( of type subscreen '0111' ) and placed a table field text box of name and attributes of&lt;/P&gt;&lt;P&gt;'EBAN-ZZXXX' .....&lt;/P&gt;&lt;P&gt;4. Double clicked the screen '0111' and in that i ve writen some code for its PBO and PAI ...... &lt;/P&gt;&lt;P&gt;5. Code in PBO .......MODULE STATUS_0111.&lt;/P&gt;&lt;P&gt;MODULE STATUS_0111 OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : EBAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EBAN-ZZPAYMENT = "TEST PAYMENT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0111  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Code in PAI .......... USER_COMMAND_0111  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***INCLUDE ZXM02I01 .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0111  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0111 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CLASS-POOL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;An object is created for the class IF_PURCHASE_REQUISITION_ITEM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT IF_PURCHASE_REQUISITION_ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;As i want to import the value from the subscreen to a value thruogh&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;a function GET_DATA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creating a reference variable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA : CREF_IF_PR_ITEM TYPE REF TO&lt;/P&gt;&lt;P&gt;  IF_PURCHASE_REQUISITION_ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local variable declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  data : l_mereq_item type mereq_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;T_NATR_PAY is the new extended field...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not CREF_IF_PR_ITEM is initial.&lt;/P&gt;&lt;P&gt;    l_mereq_item = CREF_IF_PR_ITEM-&amp;gt;get_data( ).&lt;/P&gt;&lt;P&gt;    if ( ci_ebandb-ZZPAYMENT ne l_mereq_item-ZZPAYMENT ).&lt;/P&gt;&lt;P&gt;      move-corresponding  ci_ebandb to l_mereq_item .&lt;/P&gt;&lt;P&gt;      call method&lt;/P&gt;&lt;P&gt;        CREF_IF_PR_ITEM-&amp;gt;set_data( l_mereq_item ).&lt;/P&gt;&lt;P&gt;      ex_changed = 'X'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMODULE.                 " USER_COMMAND_0111  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Then i activated .... at that time only i got the syntax error.... hope the question is clear now !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note : &lt;/P&gt;&lt;P&gt;I may be wrong in the way of implememnting the user exit also ..... please correct me if iam wrong and if anyone of u could guide me properly to implement the user exit for the transaction ME51N ... it could be of a great help !!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting ur answers !! ....... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance !!!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back if the question is still not clear !!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.... kripa ( New upcoming abaper )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 07:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006324#M77855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T07:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006325#M77856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the problem is with the class-pool statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CLASS-POOL statement must be the first statement of a standalone program, after any Include programs have been called. It introduces a class pool. Class pools are maintained in the Class Builder in the ABAP Workbench. A main programfor a global class, including a CLASS-POOL statement, is generated automatically. The MESSAGE-ID addition to the CLASS-POOL statement has the same meaning as for the REPORT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;PJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 07:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006325#M77856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T07:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006326#M77857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PJ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its nice to c ur reply here also ! thanks !! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now commented the statement " CLASS-POOL " , and tried to activate .... its saying some other errors too ..... " FIELD IF_PURCHASE_REQUISITION_ITEM IS UNKNOWN. It is neither in one of the specified tables nor defined by the "data" statement ....." So what could i do now ..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a big doubt whether my implementation steps are right ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !! &lt;/P&gt;&lt;P&gt;...kripa...(New Upcoming Abaper)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 07:31:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006326#M77857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T07:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006327#M77858</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;thats because ur field has not been defined. u r using the create object statement but have u defined the object in question using a data statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats y it says the field is not known...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;PJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 07:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006327#M77858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T07:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006328#M77859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this error is due to multiple report or program statements. &lt;/P&gt;&lt;P&gt;Read and modify your code in such a way that only one such statements exists.&lt;/P&gt;&lt;P&gt;I hope I will solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 07:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006328#M77859</guid>
      <dc:creator>former_member181959</dc:creator>
      <dc:date>2005-07-28T07:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006329#M77860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PJ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could u please tell me how to define then ??? .. where to define ??? the IF_PURCHASE_REQUISITION_ITEM is a class .... so clear me in defining and using the methods of this class .. iam not able to get that !! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;This is a user exit ... and ive written codes in the includes which are created when i ve created the subscreen '0111' .... so is that possible for me to define the code in one include ( as how u ve said ) in this ???? if yes how should i do that !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...kripa...(New Upcoming Abaper)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 08:35:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006329#M77860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T08:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006330#M77861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u say IF_PURCHASE_REQUISITION_ITEM  is a class...and u have done &lt;/P&gt;&lt;P&gt;create object IF_PURCHASE_REQUISITION_ITEM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u r using the same name for object and class....it will work but to avoid confusion ...if u can change the object name....neways...here is what u need to do...&lt;/P&gt;&lt;P&gt;(I have changed the object name....do it the way u want)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : &lt;/P&gt;&lt;P&gt; IF_PURCHASE_REQUISITION_ITEM_OBJ TYPE REF to IF_PURCHASE_REQUISITION_ITEM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT IF_PURCHASE_REQUISITION_ITEM_OBJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.......&amp;lt;ur further code&amp;gt; (if u change the name of object....do it at all subsequent places in the code, however u can even proceed without changing the name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;PJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 09:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006330#M77861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T09:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006331#M77862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your program the method set_data is accessed by the object CREF_IF_PR_ITEM.&lt;/P&gt;&lt;P&gt;Assuming that this methos is in the class IF_PURCHASE_REQUISITION_ITEM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your declaration should be as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : CREF_IF_PR_ITEM TYPE REF TO&lt;/P&gt;&lt;P&gt;IF_PURCHASE_REQUISITION_ITEM.&lt;/P&gt;&lt;P&gt;CREATE OBJECT CREF_IF_PR_ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Usha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 09:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006331#M77862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T09:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006332#M77863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PJ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive changed the code now .... But still an error exist ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following is my changed code !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***INCLUDE ZXM02I01 .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0111  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0111 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : eban.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creating a reference variable&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA : CREF_IF_PR_ITEM TYPE REF TO&lt;/P&gt;&lt;P&gt;  IF_PURCHASE_REQUISITION_ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;An object is created for the class IF_PURCHASE_REQUISITION_ITEM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT CREF_IF_PR_ITEM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;As i want to import the value from the subscreen to a value thruogh&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;a function GET_DATA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local variable declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  data : l_mereq_item type mereq_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;T_NATR_PAY is the new extended field...&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if not CREF_IF_PR_ITEM is initial.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    l_mereq_item = CREF_IF_PR_ITEM-&amp;gt;get_data( ).&lt;/P&gt;&lt;P&gt;    if ( ci_ebandb-ZZPAYMENT ne l_mereq_item-ZZPAYMENT ).&lt;/P&gt;&lt;P&gt;      move-corresponding  ci_ebandb to l_mereq_item .&lt;/P&gt;&lt;P&gt;      call method&lt;/P&gt;&lt;P&gt;        CREF_IF_PR_ITEM-&amp;gt;set_data( l_mereq_item ).&lt;/P&gt;&lt;P&gt;      ex_changed = 'X'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMODULE.                 " USER_COMMAND_0111  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following error came:&lt;/P&gt;&lt;P&gt;1. " CREF_IF_PR_ITEM is not an object reference " &lt;/P&gt;&lt;P&gt;2. " Field CI_EBANDE-ZZPAYMENT is unknown .... It is neither defined in the tables or in the data statement"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So ???????????? now what could i do ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 09:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006332#M77863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T09:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Methods to solve this syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006333#M77864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Usha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ve done the same changes as how u ve told .... but still iam missing something !!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !!!1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 12:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/methods-to-solve-this-syntax-error/m-p/1006333#M77864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T12:54:25Z</dc:date>
    </item>
  </channel>
</rss>

