For enter

how to use enter button instead of pushbutton for calling another screen?

>
Ankur Parab wrote:
> Hi,
> normally the ok_code for Enter is 'ENTR'. So check sy-ucomm value equal to 'ENTR' and then call the required screen.
>
> Regards,
> Ankur Parab
Sorry but this is not true. Normally pressing ENTER doesn't place any function code in sy-ucomm . This is one of the reason why you in PAI we should store ok_code in some save_code variable and then clear it. Simply after pressing ENTER in next screen without first clearing content of ok_code we might still have previous function code there, hence program logic would be wrong.
Refer for proof [Reading Function Codes|http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbaa1335c111d1829f0000e829fbfe/frameset.htm]
@ Priya.R
If you want to catch your ENTER, simply do the following
data: ok_code like sy-ucomm,  "ok_code assigned to screen
          save_code like sy-ucomm.
MODULE pai INPUT.
   save_code = ok_code. 
   clear ok_code.
   if save_code = space.  "as said above ENTER will generate empty function code
    CALL SCREEN ...
   endif.    
ENDMODULE.
Regards
Marcin

Similar Messages

  • How can I reinstate the warning dialog box for entering a secure site?

    I would like to reinstate the warning box that tells me when I am entering a secure site. The one that warns when I am leaving a secure site is working just fine. I probably unchecked the box for entering at one time or another but I can't find how to bring it back.

    Looks that the Warning Messages dialog for those settings is gone from Tools > Options > Security
    You can reset the related <b>security.warn_</b> prefs on the <b>about:config</b> page.

  • Sy-ucomm value for enter

    Hi,
    Can anyone plz help me with the sy-ucomm value for enter key.
    Thanks..

    Hi Renu,
    The OKCODE  or SY_UCOMM value is not same for 'ENTER' in all the cases. So its better to go for debugging .
    Whenever you want to know the ok code or sy-ucomm value  of a key , type '/h' in the command box and press enter. It shows a message on the status bar 'Debugging Switched On'. Now if you press any key , it switches to debugging mode  and type sy-ucomm in the fields list then you will get the SY-UCOMM or OK CODE.
    Incase of ALVs also you can get the SY-UCOMM. But in some cases the SY-UCOMM value may be NULL.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Mar 25, 2008 4:50 PM

  • Action for ENTER KEY is not working in alv grid output (Classical)

    Hi Experts,
      I have searched SDN around 8 hours and could not get any help on my below issue.
      I am developing ALV report using function module (Classical ALV). ALV output has 4 input enable fields, if user enters data in any of those fields and clicks on enter button from key pad..the remaining fields needs to be filled automatically.
      I am facing the issue with enter key, even if i press enter key in the output there is no action and hence no user command triggered. May be i am using wrong funcion code in wrong way.
      Could any one tell me what function code can we assign for ENTER action in PF-STATUS?
    Regards,
    Murali Mohan

    Hi
    Try this simple code, it works fine:
    TYPE-POOLS: SLIS.
    DATA: BEGIN OF ITAB1 OCCURS 0,
           BUKRS LIKE T001-BUKRS,
           BUTXT LIKE T001-BUTXT,
          END OF ITAB1.
    DATA: GT_FIELDCAT   TYPE SLIS_T_FIELDCAT_ALV,
          GT_REPID    LIKE SY-REPID.
    START-OF-SELECTION.
      SELECT BUKRS BUTXT INTO TABLE ITAB1
         FROM T001.
    END-OF-SELECTION.
      GT_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          I_PROGRAM_NAME     = GT_REPID
          I_INTERNAL_TABNAME = 'ITAB1'
          I_INCLNAME         = GT_REPID
        CHANGING
          CT_FIELDCAT        = GT_FIELDCAT.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM       = GT_REPID
          I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
          I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
          IT_FIELDCAT              = GT_FIELDCAT
        TABLES
          T_OUTTAB                 = ITAB1.
    FORM USER_COMMAND USING R_UCOMM     LIKE SY-UCOMM
                          RS_SELFIELD TYPE SLIS_SELFIELD.
      CASE R_UCOMM.
        WHEN 'ENTER'. MESSAGE I208(00) WITH 'Pressed ENTER key'.
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    "USER_COMMAND
    FORM SET_PF_STATUS  USING RT_EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'LIST_ALV' EXCLUDING RT_EXTAB.
    ENDFORM.                    "SET_PF_STATUS
    Max

  • I have purchased Adobe XI Pro and created a form for entering bowling scores to submit to newspaper for my high school team.  I can not figure out how to get pdf's into my documents folder on my iPad so that I can access the files in bowling alleys where

    I have purchased Adobe XI Pro and created a form for entering bowling scores to submit to newspaper for my high school team.  I can not figure out how to get pdf's into my documents folder on my iPad so that I can access the files in bowling alleys where I do not have a Wi-Fi connections.  I need to be able access files without going to acrobat.com.  Help!!!@

    Post the PDF files to a web site. The browse to them in Safari on the iPad.  When you Open the files specify the Open to occur in Adobe Reader.  Then you can have/Save them in your Documents folder on the iPad.   An iPad has limited access to files otherwise.

  • Flex 4 does not dispatch keyboard events for ENTER key.

    Hello everyone. I think I have a strange problem with Flex 4 Beta (4.0.0.8909). My application has had event listener for keyUp event for a month now and suddenly (two days ago) I've noticed that keyUp event is not dispatched for ENTER (ALT also) key. Anyone know why? By the way, I've tried this with keyDown event, also 4.0.0.8847 version of SDK - still the same: no keyboard events for ENTER (and ALT) key.
    Here is the sample application that has got this issue:
    <s:Application
       xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/halo"
       minWidth="640" minHeight="480"
       keyUp="application1_keyUpHandler (event)">
       <fx:Script>
          <![CDATA[
             import mx.controls.Alert;
             protected function application1_keyUpHandler (event: KeyboardEvent):void
                Alert.show ("Key up: " + event.keyCode);
          ]]>
       </fx:Script>
       <s:layout>
          <s:BasicLayout/>
       </s:layout>
       <s:TextArea verticalCenter="0" horizontalCenter="0" width="200"/>
    </s:Application>
    If you run this application and try typing anything in a TextArea you will get alerts with key codes. However, if you press ENTER (or ALT), you will get no alert.
    I'm pretty sure the code above is right so that means there is a bug in latest nightly builds of SDK (i would swhitch to an older build if i knew which one does not have this bug).
    Any ideas?

    Flex harUI wrote:
    That's true, but in this case, I think the text editing code is eating ENTER key in order to prevent parents from seeing it and acting on it (like a submit button).  We'll see if we can find a way around that.
    You can get the ENTER key now by listening in capture phase.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui
    The enter key isn't being disposed of by textedit, the attached example code works without error if you a- remove the alert box and b-set the focus to your text area on initialisation. I agree that pressing the enter key then calling a dialog box will result in the enter key being "gobbled up" as  the enter key is overridden by the dialog box code.
    I think the first suggestion should be to anyone don't use dialogboxes for testing code. If for some reason debugging isn't desirable instead of a trace statement a simple label  can be used as a 'fake' trace.
    David
    Message was edited by: David_F57: I worded this wrong, imho there is no need for a work around, the textarea component works as it should. When intercepting 'system' keycodes there is a need to consider the effect of the intercept and code appropriately to that end.

  • Code  for  'enter' button in user command.

    hi experts,
                       i have developed a initial screen as selection screen for table control.
    data is displayed in second screen(table control).
    <b></b>when user enters inputs in selection screen and presses enter on keyboard
    it should execute to second screen. code for enter button. <b></b>

    Hello,
    in the PBO process should you have the next code:
    for example:
    case sy-ucomm.
    when 'ENTER'.
        CALL SCREEN 0200. " The second window
    when 'SAVE'.
    when ...
    endcase.
    You should have all conditions in the case statement, otherwise you have a error.
    Regards,

  • Is there a key for entering text on ipad mini for the schwa symbol?

    Is there a key for entering text on ipad mini for the schwa symbol?

    You're welcome.
    It is possible there is an app containing a phonetic keyboard in the app store (or not). I haven't had use for one, so have never checked. Using it would require some copy and past on your part. But it might worth a search.
    Oh, just to be clear (should have googled and not trusted my aging memory) you're basically looking for an upside-down "e", right?

  • What's the keyboard shortcut for entering time and date?

    Is there a keyboard shortcut for entering time and date?
    Hopefully one which would work in any application.
    Thank you.

    None is built-in. You can use any number of third-party utilities for creating macros. For example:
    1. TypeIt4Me
    2. TextExpander
    3. Typinator
    4. AutoTyper (part of Automaton)
    Any of the above are excellent choices. Demo/Trial downloads are found at CNet Downloads or MacUpdate.

  • Fast entry transaction for entering purchase order confirmations

    Does anyone know of fast entry transaction for entering purchase order confirmations similar to VL31N for inbound deliveries?
    Thanks

    dear John,
    if i m not mistaken you want to give confirmation control to your existing POs.
    If the case is this you can opt for a BDC to be run for updation.
    Ask your abaper to do this thing.
    revert back if this is not the the case.
    Njoy
    Ashish

  • No cursor available for entering text in an https site popup. Site is on "trusted/allowed" list. Do get cursor on same site with IE6.

    No cursor is available for entering text in an allowed https popup. Site is on "trusted/allowed" list. Cursor is available and text enters on same site using IE6. Same "no cursor" issue occurs with FF on my laptop. Both machines are Windows XP Home, SP2.
    == This happened ==
    Every time Firefox opened
    == FF was installed -- all updates for FF and extensions are current

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • Mandatory Field for Entering Delayed Reason for project during scheduling .

    Hi Friends
    Here I have a question on "Scheduling"?
    My Client want an mandatory field for entering the delay reason if any phase or tasks or project definition get delayed.
    Your input would be highly appreciated
    Regards,
    YAGHAG

    Hi Abhijit,
    Thanks for your prompt reply.
    I am implementing cprojects 4.5 in PLM 7.0 and not in PPM 5.0.
    Regards

  • BDC for Entering Invoice(MIRO) Problem

    Dear All,
    I am preparing a BDC for Entering Invoice (Tcode- MIRO ) & facing problem.
    During recording in PO reference tab i am using Bill of Lading and inserting data through More Allocation Criteria tab and in column cell entering 8 Reference at one time for more i am scrolling it and entering 8 more and adopting it.
    In recording after adopting it is showing all adopted documents but on saved recording it is adopting latest 8 reference.
    I coding for "P++" for scrolling but it is not working.
    Please help me out.
    Is it possible to code for scrolling of PO reference Bill of Lading pop of window.?
    Thanks & Regards,
    Varun

    Hello Suhas,
    No, not at all. We see that so many times in the forum that we are mistaken.
    There are 3 places where we find P++, P--, etc. :
    - the function codes assigned to the scrolling buttons in the standard toolbar for ABAP lists.
    - If I remember well, they are also assigned to the buttons inside the screen for the table control wizard.
    - SCROLLING_IN_TABLE
    But usually, we don't create buttons inside screens for scrolling.
    Table control scrolling via page down and page up keys, is made of 2 things : changing CXTAB_CONTROL-TOP_LINE + trigger enter key.
    I know 1 note which talks about that : [187946 - No positioning on PRT overview in routing|https://service.sap.com/sap/support/notes/187946]
    Sandra

  • BDC for Entering Invoice Problem

    Dear All,
    I am preparing a BDC for Entering Invoice (Tcode- MIRO) & facing problem.
    During recording in PO reference tab i am using Bill of Lading and inserting data through More Allocation Criteria tab and in column cell entering 8 Reference at one time for more i am scrolling it and entering 8 more and adopting it.
    In recording after adopting it is showing all adopted documents but on saved recording it is adopting latest 8 reference.
    I coding for "P++" for scrolling but it is not working.
    Please help me out.
    Is it possible to code for scrolling of PO reference Bill of Lading pop of window.?
    Thanks & Regards,
    Varun

    Hello Suhas,
    No, not at all. We see that so many times in the forum that we are mistaken.
    There are 3 places where we find P++, P--, etc. :
    - the function codes assigned to the scrolling buttons in the standard toolbar for ABAP lists.
    - If I remember well, they are also assigned to the buttons inside the screen for the table control wizard.
    - SCROLLING_IN_TABLE
    But usually, we don't create buttons inside screens for scrolling.
    Table control scrolling via page down and page up keys, is made of 2 things : changing CXTAB_CONTROL-TOP_LINE + trigger enter key.
    I know 1 note which talks about that : [187946 - No positioning on PRT overview in routing|https://service.sap.com/sap/support/notes/187946]
    Sandra

  • Frame 9 keystrokes for entering Paragraph and Character Tags

    I have been using the F9 and F8 keystrokes for entering paragraph and character tags, respectively, for 25 years. I just upgarde to Frame 9, and suddenly they behave differently. Instead of being able to type the first few characters of the tag name and pressing Enter to select the tag, you can now only type the first letter and to get to the next tag in the list that starts with the same letter, you type the letter again. Furthermore, if there is only one tag with the letter you type, it automatically selects it without requiring you type press Enter, which might seem like a feature except if you're used to pressing Enter.
    Does anyone know if there is a way to go back to the way it was?

    While this did solve the problem partially, it seems Frame 9 with the patches still has slighly different behavior from the way I've been using F8 and F9 for the past 20 years. To return to the old behavior, what we need is a combination of the behavior of Frame 9 and Frame 9 with the patches. That is, press F9, type the first letter of the tag name, type the same letter again to scroll down the list, then press Enter to apply it. So, for example, if you have Body and Bullet, if you type "b" you get Body and if type "b" again, you get Bullet. This isn't so bad if you have these two tags, because you can easily type "bu" to get Bullet. But if you have Body1, Body2, Body3, Bullet1, Bullet2, Bullet3, it's kind of a pain to have to type "bullet2" to apply this tag using the keyboard. Kind of defeats the purpose of using the keystroke in the first place.
    The other thing I've gotten used to over the years is being able to press F8 + Enter or F9 + Enter and have it apply the first tag in the list, which was always Default Para Font and Body. Not anymore. Now you have to type the first letter of the first tag in the list. Grrr.
    While you can teach and old dog new tricks, I don't think it's very nice of them to change the behavior of these very common keystrokes.
    Other opinions? I've never submitted a bug to Frame before, but perhaps the time has come.

  • OK_CODE for Enter

    Hi
    What is the OK_CODE for enter?
    I have ALV Grid Report with one fld in edit mode. If I enter wrong input it should goto selection screen.
    I have ONLI/ENTR/ENTE/space but not working.
    Please help me

    if u want control over selection if u give wrong I / P..
    i don't know whether it is useful but,we use like this.
    when ever YOUR using 2 blocks ,based on first block selection,2nd has to enable or disable.
    like
    after parameters:...
    <b>AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'ABC'.
    IF VAL = 1 .
    SCREEN-INPUT = O.
    SCREEN-INVISIBLE = 1.
    MODIFY SCREEN.
    ELSE.
    VAL = 2 .
    SCREEN-INPUT = 1.
    MODIFY SCREEN.
    ENDIF.
    ENDIF.
    ENDLOOP.</b>
    after AT SELECTION-SCREEN ON P_KUNNR(OR ANY OTHER)
    SELECT SINGLE * FROM KNA1 WHERE KUNNR = P_KUNNR.
    <b>IF SY-SUBRC <> 0.
    MESSAGE I000(0) WITH ' ENTER CORRECT I/P '.
    EXIT.
    ELSE.
    VAL = 2.
    ENDIF.
    (HERE CONTROL GOES TO SCREEN-INPUT = 1 )</b>

Maybe you are looking for

  • IPhone 3Gs OS 4.0.2 problems!!!

    Hi, Thought my iPhone was the dogs danglies for 13 months until I made the biggest mistake ever of updating to the new OS4, how can this ruin the phone so much?? My biggest problem is now the loud speaker is very very faint, at first I thought it was

  • How to select in an if pl sql block

    Hi I want to do something like the followings DECLARE      empcnt number ; BEGIN      BEGIN           select count(*)  into empcnt from employees where status = 'L';       EXCEPTION            WHEN NO_DATA_FOUND THEN              empcnt := 0;        

  • ejb-local-ref where to put this tag in ejb-jar.xml ??

    I have an ejb-jar.xml that looks like this. I have had no problem with remote interfaces. Now I want the bean to have a local interface too. Just let me know where the tag I have mentioned for the <ejb-local-ref> has to be put into. When I compile th

  • Mass Download documents related to BOM and/or BOM items

    Hi All, Is anyone aware of a mass download functionality of all the documents realted to a BOM - i.e all documents items of a BOM and documents attached to BOM items(part numbers). Thanks Raj

  • Tax procudures TAXINN & TAXINJ

    Hi Gurus, I am configuring CIN in my IDES client. I have activated CIN easy access screen by adding SAP_CIN in user parameters. Started confiuring CIN in IMG. I am at the stage of assigning Tax calculation procedure to country. Logistics general->Tax