SAP Controls tutorial code problem

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

I don't think that should be there.  Try removing it.
DATA: EVENT_TYPE(20) TYPE C.
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
   CLASS-METHODS: CATCH_DBLCLICK
             FOR EVENT DBLCLICK OF CL_GUI_TEXTEDIT.
ENDCLASS.
Regards,
Rich Heilman

Similar Messages

  • Control Tutorial -- JMS problem

    Long story short: I'm using a JMS control (that was made by BEA for the tutorial),
    and WLS inside of WLW, I subscribe to a JMS server, send a text message, but I
    can't get the callback (from the control) that corresponds to the response. Attached
    is complete description of problem.
    In particular, I'm questioning the @jc:jms-property annotations that don't have
    key/value pairs in them...and I'm wondering how to monitor JMS message traffic
    from WLW...and I'm wondering what my problem is.
    Andy
    [ControlTutorialInWLW.doc]

    Thanks, Steve. Restarting the server (and a clean build) did it.
    Hey, I said I was green. :)
    "Steve Hanson" <[email protected]> wrote:
    >
    Hi Andy:
    I don't see anything obviously wrong with your JMS control code -- it
    looks correct
    to me -- except for the two empty @jc:jms-property annotations on the
    sendTextMessage()
    method.
    Those look suspicious to me. It looks like something went wrong when
    Workshop
    generated the control file there. I would (1) remove those annotations
    from
    the method, (2) restart the server, and try again.
    Also see [BEA]/weblogic81/samples/platform/TutorialsApp/FirstJavaControl
    for a
    finished version of the Control tutorial.
    -Steve Hanson
    "Andy Breeden" <[email protected]> wrote:
    Long story short: I'm using a JMS control (that was made by BEA for
    the tutorial),
    and WLS inside of WLW, I subscribe to a JMS server, send a text message,
    but I
    can't get the callback (from the control) that corresponds to the response.
    Attached
    is complete description of problem.
    In particular, I'm questioning the @jc:jms-property annotations that
    don't have
    key/value pairs in them...and I'm wondering how to monitor JMS message
    traffic
    from WLW...and I'm wondering what my problem is.
    Andy

  • SAP Help Tutorial - Create a Hashtable ??

    I'm new so this will be simple - I think
    I'm attempting to follow the tutorial on SAP HELP located at:
    http://help.sap.com/saphelp_nw04/helpdata/en/44/47b87e9d780597e10000000a155369/frameset.htm
    I got threw tutorial 1 with no problem...
    When I get to the "Writing Code" section of Tutorial II, writing the mySiteMap.java code, I assume I'm suppose to use the code as written in the tutorial... however my IDE (NWDS) gives me :
    Syntax error on token "Hashtable", "interface", "class" expected
    on this block of code, (which I copied from the tutorial):
    *CODE*
    public Hashtable getEnvironment(IPortalComponentRequest request ) {
         Hashtable environment = new Hashtable();
         IUserContext userContext = request.getUser();
         if (userContext != null) {
           environment.put("NavigationPrincipal", userContext);
           String user = userContext.getUniqueName();
           if (user != null && !user.equals("")) {
              environment.put("User", user);
         return environment;
    *END CODE*
    Any help is greatly appreciated

    Put the "code" into a class and make sure there is an import statement for Hashtable.
    For instance,
    package myPackage;
    import java.util.Hashtable;
    public class MyClass
    public Hashtable getEnvironment(IPortalComponentRequest request ) {
    Hashtable environment = new Hashtable();
    IUserContext userContext = request.getUser();
    if (userContext != null) {
    environment.put("NavigationPrincipal", userContext);
    String user = userContext.getUniqueName();
    if (user != null && !user.equals("")) {
    environment.put("User", user);
    return environment;

  • Messy code problem while translating XString to String in OfficeControl

    Hi Expert,
        I have messy code problem while translating XString to String in XML-Format Word Doc in OfficeControl.
    I upload an XML-Format template Word Doc to server as a MIME Object.
    When OfficeControl is started in Web Dynpro, OfficeControl automatically open the XML-Format template.
    For the first time, I get the XString-type Context attribute bind to the content of the Word Doc,
    then translate it to string, I got the XML-format content, it's great!
    However, after the first time, when I input any new contents in MS Word in Web Dynpro,
    no matter I execute "Ctrl + S" or click the "savedocument" button,
    when I translate the XString Context attribute to String, I got messy code. (but the first time, it is good plain text)
    I use the function module: ECATT_CONV_XSTRING_TO_STRING (good for first time, dump after first time),
    SCMS_XSTRING_TO_BINARY, SCMS_BINARY_TO_STRING (good for first time, messy code after first time).
    My Demo source code is in: (system) SMV --> (local object) zhaode --> (Dynpro Component) ztest_office_control
    core source code is as:
    clear itab.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    BUFFER = lv_datas
    IMPORTING
    OUTPUT_LENGTH = lv_length
    TABLES
    binary_tab = itab.
    CALL FUNCTION 'SCMS_BINARY_TO_STRING'
    EXPORTING
    input_length = lv_length
    mimetype = 'text/plain; charset=utf-8'
    IMPORTING
    text_buffer = lv_datas_string
    output_length = lv_data_len
    TABLES
    binary_tab = itab.
    Can you give me some advice?
    Many thanks in advance.
    Best Regards,

    You have already posted this same question several times (and some very similiar questions) within the forum.  Please do NOT multiple post your questions. This is against the forum rules of engagement. SAP employee or not, you will find yourself banned from the forums if you don't follow the rules.

  • How to Use CMOD and SMOD in SAP using ABAP Code

    Hello anyone,
      Please help me How to use CMOD and SMOD in SAP using ABAP code.
    Give Me Some Sample Example.
    Mail ID: [email protected]
    Thanks,
    Regards,
    S.Muthu,
    SAP Developer.

    Hi,
    User Exits.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    customer exits
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Menu Exit.
    http://www.sappoint.com/abap/spmp.pdf
    http://www.sappoint.com/abap/userexit.pdf
    http://www.sapdevelopment.co.uk/enhance/mod_sapmenu.htm
    http://www.sapdevelopment.co.uk/enhance/enhancehome.htm
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html

  • My iTunes won't detect my iPhone that has to be restored via iTunes *because if pass code problems* and its running iOS 7.2

    my iTunes won't detect my iPhone that has to be restored via iTunes *because if pass code problems* and its running iOS 7.0.4

    If itunes is comming up and saying it can't read the device because it's locked with a passcode, you may have to put your device into recovery mode first.
    To put your device in recovery mode: (Following these steps will erase your device and reset everything to factory defaults)
    1) press and hold the power button until you see the slide to power off option
    2) swipe to power off
    3) Press and hold the home button while the device is off and connect it to your computer. Continue holding the home button until you see a graphic with the iTunes logo with a picture of a USB cable below it.
    4) iTunes should give you a message that it has detected a device in recovery mode. Click ok and then select Restore iPhone. iTunes will download a fresh copy of iOS and then wipe the device and restore it. Depending on the speed of your computer's internet connection this may take a while. Just leave the iphone connected to your computer until it's finished.
    If itunes is not detecting it at all or is Not giving you the message that the phone is locked with a passcode, you may end up having to reinstall itunes. This seems to be a fairly common problem after the most recent itunes update (11.1.5)
    If this is the case and you happen to be running a windows based computer you will have to uninstall itunes in this order from your programs and features option in control panel:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Then download and reinstall itunes from itunes.com try putting your device into recovery mode again and restore.
    Hope this helps.
    Cheers.

  • For Professional level certification aspirants in SAP Controlling module

    Dear all Professional level Certification aspirants in SAP CO module,
    I have recently passed the Certification test on SAP Management Accounting (CO) module in version ERP 6.0 EHP4.  I have more than 4 years experience in SAP Controlling module.The following are some of my suggestions regarding preparation for the exam.
    1. All the questions were scenario based. The exam tests expert level knowledge and real time scenarios in the module. The theoritical knowledge is not sufficient to clear the exam. Unless you have atleast 5 to 6 implementations in Controlling module, it is not advisable to give it a try.
    2. Detailed knowledge of the system configuration settings about the various courses mentioned in the syllabus is required. One needs a clear understanding of Special costing functions, ERP integration, Transfer Pricing, Material ledger, New GL Parallel valuation, Planning and Budgeting fuctions in various components etc.
    3. The exam tests in-depth knowledge about various integration aspects of Controlling module with other modules. The advanced master data functionalities of other logistical modules like MM, SD, PP, PM, QM, PS, CS, HCM is tested in detail.
    4. Several methods of process and performance optimization of the system are also tested.
    3. Some reporting aspects of BW and BI are also tested. The cross application aspects of the system are also tested.
    4. The exam also tests the real time skills in preparing Blueprints, Business Process design and trouble shooting the system. Being knowledgeable about some of the processing errors and message classes will be of great help.
    Hope this information helps you in preparing for the certification.
    Should you need any clarifications, please post a reply to this thread and I will post answers.
    All the Best!!
    VS.

    Hi Vikrant,
    the pass mark for the exam is 58%. However it may be different. The passing mark shown on your screen on the day will be the correct passing mark.
    All the questions were scenario based which would involve high analytical skills and through understanding of the system integration. It would be difficult to tell any specific question. The questions carry different weightage. If you answer the questions with less weightage correctly than the questions with more weightage, you end up scoring less though you answer more number of questions correctly. and it is vice versa. Go through your syllabus and cources and try to concentrate on the topic areas which contain more weightage.
    Moreover, the exam is not completely technical in nature. It tests a lot of analytical and problem solving skills required on the job.
    Note:Please do not ask the questions or contents of the exam as they are confidential.
    Hope this information helps you.
    All the best for your exam!
    Regards,
    Vishnu.

  • In OS 10.5.8 where are the controls or code for...

    In OS 10.5.8 where are the controls or code for selecting dragging/moving files and folders copying and pasting kept?
    Is it part of one of the system apps?
    Mine do not work any fixing tips?

    Good call on on throwing away finder plist It worked on my desktop/screen saver problem...But, it didn't fix the dragging and moving items/folders and paste.
    My network is still confused too.
    I threw out the desktop plist as well still nothing...
    I did run the anti-virus Macscan to check just for peace of mind it did find a spyware from CNN...
    Thanks for your help at least one thing worked so far.
    Any other suggestions, besides reloading OS...?

  • Visual basic code problem

    Hello!
    I want to use visual basic to build a htm which can control labview throght datasocket, i set the switch
    as " Swithc until release " in visual basic, the code is
    Private Sub CWButton1_Click()
    CWDataSocket1.Data = CWButton1.Value
    End Sub
    but the led of labview can't light on.
    is the code problem?
    thanks!

    The problem is most likely because you have the code in the Click() event handler. The click event in VB is a left mouse down AND mouse up over the controls. If you are wanting it to send out the value when you press and hold the button down, change the event handler to the ValueChanged event.
    Best Regards,
    Chris Matthews
    National Instruments

  • SAP Adapter has a problem, SOD violations will not be checked

    Hi,
    In our ides server whenever i click save button in su01 i get the following error ,
    "SAP Adapter has a problem, SOD violations will not be checked !
    Please check with your system Administrator
    Technical Info:
    Error when opening an RFC connection "
    we didn't have this problem before . can anybody help me to resolve the issue
    Also I am getting this error only if I click save in su01. in other t code. I don't get this error
    Thanks in Advance
    Edited by: gajula jhansi on Apr 11, 2011 11:28 AM

    You need to restart your sap adapter in GRC front end from configurations tab-->Sap adapter >choose the one for your back end system> if it's grayed out or even green still, click on it and let it restart and turn green again.
    Then you go back to your backend ECC system and in SM59 , choose the RFC connection for the Risk Terminator (the one you have saved in the Risk Terminator transaction /VIRSA/ZRTCNFG in backend system).. and test the connection. It should pass the connection test if your adapter is working and set up correctly. Then when you do save in SU01 or make changes in PFCG and have Risk Terminator activated for the backend system, it will check the SOD violations against those transactions from RAR front end.
    If you don't want Risk Terminator to check for SOD violations in front end RAR, then you need to set your settings to 'NO' for all in the Risk Terminator transaction. You can get all this info in the GRC config guide for RAR and SPM area.
    Regards,
    Alley

  • How is SAP controlling related to MM

    how is SAP controlling related to MM

    Hi,
    There is no link between MM and CO. There is only value flow from MM to CO through FI.This is done by cost element(which is G/L account in FI).
    Note:
    A.FI-MM Integration:
    When you go for transactions like GR,GI,SES,MIRO,STO,Payment then your respective G/L account updated.For updatinging the G/L account, You have to go for Automatic Account determination and steps are as follow;
    1.OMSK: Creation of valuation class and assigning account category refrence,
    2.OMWM: Active valuation Grouping Code,
    3.OMWN: Active movement type with G/L account,
    4.OMWD:Active valuation Area,
    5.OMWB: Active chart of account, transaction key,valuation grouping code,account grouping Code, valuation Class and G/L accounts.
    [Data flow to costing in the concept of cost element]
    B.SD-MM Integration:
    Generally SD is integrating with MM in Stock Transport Order (STO) and Third Party Order.
    Basically STO is divided in to three types,
    A.STO with SD delivery
    B.STO without Delivery
    C.STO with SD delivery and billing.
    C.FI-SD Integration:
    In the T.Code:VKOA
    Regards,
    Biju K

  • GP-Code Problem

    Servus!
    Eine Frage zu GP-Code.. Kundennummern....
    Ich habs mir so eingeteilt das z.b. 1000er Nummern sind z.b. Geschäftskunden
    5000 Privatkunden
    9001 z.b. Barverkauf.
    Jetzt kam ich auf nr 5010 und bekam eine Fehlermeldung, dass der GP-Code bereits existiert.
    Nun habe ich sogleich in den Stammdaten nachgesehen und fand keinen Datensatz damit.
    Kann sich jemand erklären wieso er diese Nummer nicht anlegen will? Gibt es eine rationale Erklärung?
    Danke,
    Stefan

    Alle Kontonummern aus dem Sachkontenplan und Geschäftspartnernummer aus dem Geschäftspartnerstamm (die dann auch in der Buchhaltung als Debitorenkonten ankommen) können solange geändert/ gelöscht werden, solange keine Buchungen dahinter stehen. Erkennt man im Geschäftspartnerstamm daran, dass das Feld Code noch editierbar ist. Dann kann man auch noch ein K davor schreiben oder besser vielleicht doch 5stellig und damit gleich Datev-konform. Auch wenn ein K davor steht ist es von SAP "supportet" - GP-Nummern können alphanumerisch 15 Zeichen haben. Aber immer im Hinterkopf haben, dass dieser Code dann auch das Debitoren in der Buchhaltung ist. Wie gesagt - SAP hat damit kein Problem.
    Sollte gebucht sein und damit die Nummer nicht änderbard - dann wie der Kollege sagt Sperren und neu Anlegen. Ggf. wenn schon gebuchte Rechnungen -> ausgleichen durch Gutschrift oder Zahlung und dann erst sperren.
    Grüße
    Gabriele Grüneberg

  • Unable to clear the invoice/credit in SAP via T-Code F-04

    Hello Guys,
    Unable to clear the invoice/credit in SAP via  T-Code F-04.
    While I proceed to Clear the cutomer open item i am getting below error.
    " The Entry GB XX Is Missing in Table T059Q".
    Kindly suggest what needs to be done to overcome with this message.
    Thanks and regards,
    Hemanth.

    Hi Hemanth,,
    Hope you are using Classic WHT for your company code in country GB.
    And the Classic WHT tcode XX was maintained in customer master data, but the same code would have been deleted from the system. Since these line items to be cleared also, stored that tax code only. So you are getting this erro in F-04.
    So you need to create the above said tax code in OBA7 and then you will be able to clear the customer line items with F-04.
    Regards,
    Srinu

  • How to view po number in sap into t -code f.13

    how to view po number in sap into t -code f.13

    Hi,
    You will able to see under Purchasing Doc Field when you execute F.13 (Actually this program will match the parameters with PO no only with GR/IR doc to get clear.
    Regd,
    Khan.

  • Where do I get all SAP WM transaction codes for user acceptance test ?

    Hello experts,
    Where do I get all SAP WM transaction codes for user acceptance test during cutover activities?
    I need the list of transactions.
    Thanks in advance

    Hi,
    You can download through Solution Manager also. If ASAP is installed in your computer, you can download all the standard transactions, otherwise let me know your id, i will send it to you.
    Aktar

Maybe you are looking for

  • JtextField text too long problem

    I have a little problem, I'm sure its very very simple to fix. The text I put into my JTextField is longer than the visible portion, so when I put text in there it keeps scrolling it to the end, so the start portion of the text isnt visible anymore (

  • Enhanced Interface Determination?

    Hi All, I have a scenario where i need to do a header validation . if validation succeeds i have to map source to target data and sent to SAP system. if validation fails i need to map source to error data and sent it to MQ system. I  am using enhance

  • Since upgrading to OS5 I know longer receive notice of incoming mail unless I actually click the mail icon.

    Since upgrading to OS5, I no longer receive notificatios of incoming mail unless I actually click the mail icon. Then it connects to the server and loads mail. Any answers?

  • Drag and Drop, dropping to a parent component.

    I've been searching high and low for a solution to a problem without any success. I'm hoping someone here might have a suggestion. I have an application (written using Java 5.0) which allows dragging and dropping custom components between JPanels. My

  • Why is the metadata being removed when I export videos from Lightroom?

    I have a video with several virtual copies each trimmed to play a different clip from that file. Each of those clips (virtual copies) is tagged according to the content. I then export the clips with the intent of deleting the original file (which is