‎2005 Dec 19 9:23 PM
Hello all,
I'm working on a SAP tutorial and I can't get this piece of their code to work. We're on version 4.7, basis version 6.2.
This is a link to the tutorial and here is a segment of code that does not pass the syntax check.
http://help.sap.com/saphelp_webas630/helpdata/en/ea/6013361d5af835e10000009b38f839/frameset.htm
DATA: EVENT_TYPE(20) TYPE C.
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS: CATCH_DBLCLICK FOR EVENT DBLCLICK OF CL_GUI_TEXTEDIT.
IMPORTING SENDER.
ENDCLASS.
Lesson one worked just the way the tutorial described. But the first exercise of lesson two is giving me a syntax error regarding IMPORTING SENDER. Has anyone successfully completed exercise one of lesson two?
Thanks
Bruce
‎2005 Dec 19 9:30 PM
Hi,
Please remove the fullstop (dot) after the CLASS-METHODS: CATCH_DBLCLICK FOR EVENT DBLCLICK OF CL_GUI_TEXTEDIT.
Check the below code
DATA: EVENT_TYPE(20) TYPE C.
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS: CATCH_DBLCLICK FOR EVENT DBLCLICK OF CL_GUI_TEXTEDIT IMPORTING SENDER.
ENDCLASS.
regards,
Vara
‎2005 Dec 19 9:27 PM
‎2005 Dec 19 9:30 PM
Hi,
Please remove the fullstop (dot) after the CLASS-METHODS: CATCH_DBLCLICK FOR EVENT DBLCLICK OF CL_GUI_TEXTEDIT.
Check the below code
DATA: EVENT_TYPE(20) TYPE C.
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS: CATCH_DBLCLICK FOR EVENT DBLCLICK OF CL_GUI_TEXTEDIT IMPORTING SENDER.
ENDCLASS.
regards,
Vara
‎2005 Dec 19 9:57 PM
Vara,
Thanks for spotting that mis-placed '.'. Removing that corrected the syntax problem. That was a very fast and useful response.
Bruce
Rich,
Thanks for thinking about and responding to my question. I'm not sure what you are suggesting be removed. If it was the period, then your answer was the same as Vara's.
Bruce
‎2005 Dec 19 10:36 PM
Actually I was saying to remove the IMPORTING SENDER, but then on my way home from work, I was thinking that the period was placed in the statement accidently. I ran in the door, booted up the laptop, came here to tell you to remove the period, and Vara beat me to it. Oh well, good catch Vara. Glad your problem is solved.
Regards,
Rich Heilman