Add functionality for enter and close in a dialogue window

Hi
I have a dialogue screen.
On pressing enter or the enter icon I need some functionality.
And on clicking the close icon or close(on the dialogue window) i need to exit.
How to add functionality to close and enter?
(The icons are functioning properly but Enter and close are not functioning)
Here is the code i have used
gv_save = gv_code.
CLEAR gv_code.
CASE gv_save.
WHEN 'OK' OR 'ENTER'.
PERFORM char_convert.
LOOP AT object_tab WHERE selected = 'X'.
UPDATE imptt SET pyear = gv_exponent
WHERE point = object_tab-point.
ENDLOOP.
LEAVE TO SCREEN 0.
CLEAR gv_annual.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 INPUT
MODULE cancel INPUT.
gv_save = gv_code.
CLEAR gv_code.
CASE gv_save.
WHEN 'CANCEL'.
LEAVE TO SCREEN 0.
ENDCASE.
Please help me .
Best regards,
Kranthi

You need to take ABAP help and build logic, so that If so & so condition pick LOGO1
and for so & so Condition LOGO2 & for rest LOGO3.
You need to incoroporate the Logic in your program for Script / Smartform.

Similar Messages

  • Reg:T-CODE for open and close period for materials(new plant).

    hi sap guru's
    T-code for following process
        can anybody send me , how to create calendar to new plant . and what is the T-code to be use for open and close period of materials for new plant.
    thanks
    sakthi..

    Hi Sakthi,
    I am assuming that you are asking about the factory calendars which are assigned while difing the plant.
    Factory calendars are created through transaction "SCAL".
    Opening and closing of MM periods can be done through transaction MMPV.This is based on the company code.Before using MMPV ,you can look the last opened period in the transaction MMRV.
    Reward points if it helps.
    Regards
    Karan

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • [svn:fx-trunk] 10876: Add support for drag-and-drop from Spark List to Spark List.

    Revision: 10876
    Author:   [email protected]
    Date:     2009-10-05 15:20:07 -0700 (Mon, 05 Oct 2009)
    Log Message:
    Add support for drag-and-drop from Spark List to Spark List.
    - List drop related handlers
    - LayoutBase APIs
    - VerticalLayout DND support
    Notes:
    - ListSkin is not final.
    - Drag-scrolling not yet implemented.
    QE notes: Only VerticalLayout works, HorizontalLayout still not implemented.
    Doc notes: None
    Bugs: None
    Reviewer: Deepa
    Tests run: checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/LayoutBase.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/ListSkin.mxml
        flex/sdk/trunk/frameworks/spark-manifest.xml
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/supportClasses/DropLocation.as

    Whoops, disregard my question - I just read the spec that indicates drag and drop is scheduled for later work.
    David

  • JTree- Seperate ToolTipText for open and close icon

    Hi,
    I want seperate tooltiptext for open and close icon.
    for Open icon, it has to be "click to view subprocesses"
    for close icon, it will be " click to vie process"
    Thanks in advance
    Pankaj

    Use a customized TreeCellRenderer:
        class Renderer extends DefaultTreeCellRenderer {
            public Component getTreeCellRendererComponent(JTree tree,
                                                          Object value,
                                                          boolean sel,
                                                          boolean expanded,
                                                          boolean leaf,
                                                          int row,
                                                          boolean hasFocus) {
                super.getTreeCellRendererComponent(
                                tree, value, sel, expanded, leaf, row, hasFocus);
                setToolTipText(expanded ? "Click to view subprocesses" : "Click to view process");
                return this;
        }

  • BAPI functions for FB60 and F-02

    Hi,
        Can any one please tell me the BAPI functions for FB60 and F-02 tcodes.
        I had searched in forum,but din't solved my purpose.
    Thanks.
    Sri
    Moderator message - Search harder. Maybe Google will help - post locked
    Edited by: Rob Burbank on May 8, 2010 6:25 PM

    This has been solved for FB50. The original variant for FB50 had never beer created in our QAS system! So I was able to get the screen variant menu selections to reappear by running SHD0, editing, and then saving the transaction variant 'STANDARD 1' (not sure if that is SAP's name for the default variant).
    Hope others find this information useful.
    J. Haynes
    Denver, CO

  • My iPad 2 started to backup iCloud and its now locked up. How do i unlock it, the button for settings and close are not working. What can I do?

    my iPad 2 started to backup iCloud and its now locked up. How do i unlock it, the button for settings and close are not working. What can I do?

    Try this.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • TS3276 An email sent from my iMac has a button linked to a clip hosted on Vimeo. When received, the link functions on iMac and iPad, but opens a window of app icons on iPhone and iPod touch. Any ideas what's wrong?

    An email sent from my iMac has a button linked to a clip hosted on Vimeo. When received, the link functions on iMac and iPad, but opens a window of app icons on iPhone and iPod touch. Any ideas what's wrong?

    For anyone else reading this thread, it is worth knowing that sometimes an email is, or can be, corrupted thereby jamming the works. The solution above is good, but I just wanted to suggest another one.
    If the problem arises, go to an online mail access service, such as Mail2Web.com and login to you mail account there and delete the offending message.
    Problem solved.
    And George, as this is all entirely voluntary, whinging about no takers may not endear people to you. Besides which, a few minutes of searching on Google would have found you a number of solutions.

  • FF31: When I only have one tab open, even a blank one, and close the tab the window closes.

    FF31: When I only have one tab open, even a blank one, and close the tab the window closes.

    Type '''about:config''' in the Location bar and hit '''''Enter'''''.
    ''Accept the warning.''
    '''browser.tabs.closeWindowWithLastTab'''
    double-click to toggle to '''false''' and then restart Firefox.
    Now if you close the last tab the window (or Firefox) won't close, but a New Tab will be there.

  • How to relocate the Minimize, Maximize and Close buttons on the window

    I am a right-hand user, and would prefer if all my Minimize, Maximize and Close buttons on the window are relocated to the right hand side of the window. Anyone got any suggestion to do it ?

    This is just something you end up getting used to, at least it was the case for me.
    It is not possible to move this, without the help of third-party software.
    ShapeShifter is offers customisation of the look of the Windows, but I don't know if it can move the buttons.
    http://www.unsanity.com/haxies/shapeshifter
    But I don't know if it is compatible with Leopard yet.

  • How do I change platform for downloading and installing Photoshop Elements from Windows to Mac?

    How do I change platform for downloading and installing Photoshop Elements from Windows to Mac?

    As long as your license supports both platforms you should only have to download the Mac version and install/activate using your serial number.  If you need help finding a link to download the file, please indicate the PSE version you need.

  • When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder?

    When I add a new bookmark, and the (star) Page Bookmarked window appears - is there any way to expand the size of that window so that I can see my entire list of folders when adding a new bookmark to an existing folder? The endless scrolling technique is far too tedious when trying to add a new bookmark, because the window is simply too tiny. Is there maybe a plug-in that will let me grab the corner of that window and re-size it? Thanks!

    I suggest you install the "Add Bookmark to Here2" extension, then you can expand the the list but you will not see the bookmark itself in the list if that is what you wanted. At the top you have three major folders you can select one of them and scroll up and down. Below that you have your most recently used folders and you can select one of them instead and scroll up and down. You can see the folder the bookmark is in -- they get added to the bottom
    If you really want to see the bookmark within the folder the same extension allows you to bring the bookmark to the folder from say the bookmarks sidebar that is why it is named as such. I use it but mainly i use the dialog.
    Please continue reading about bookmarks and some related extensions at
    * http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    * https://addons.mozilla.org/firefox/addon/add-bookmark-here-2/
    * http://dmcritchie.mvps.org/firefox/firefox.htm#addbookmarkhere2
    * http://dmcritchie.mvps.org/firefox/kws.htm
    If you are not using tags at all, you can remove a whole lot of confusion by removing them from the dialog via the extension.

  • Using addEventListener for Enter and Exit frame

    hi , sometimes i want to set some function in specific frame in start and exit this frame
    for example i have Flv player in frame 20 , i have background sound ( mp3 player ) so i want when swf goes to this frame my sound goes Off and when Exit from it and go to another frames the sound played again ...
    i put these script in frame 20 :
    addEventListener(Event.ENTER_FRAME,enterfunc);
    function enterfunc(e:Event):void {
        trace("I started");
    addEventListener(Event.EXIT_FRAME,exitfunc);
    function exitfunc(e:Event):void {
        trace("will Exit");
    but after test movie i see I started and will Exit runs Repeatly without stoping !!
    Notice : first i put my sndChannel = soundClip.play; and sndChannel = soundClip.stop;  but my music runs over and over and finally my system Hanged and need to Restart so i use trace to see
    so whats a problem ?  thanks for spending time and help me

    kglad wrote:
    // in frame 1:
    function f():void{
    trace("function f is executing when the playhead is in frame:", this.currentFrame);
    // in frame 2:
    f();
    This works well For Excute Function on entering Frame Once !! thanks ...
    but Only 1 More Question :
    as You told me in your No.2 Replay :
    I try to add some movieclip with instance name Or FLv playback with instance name and then Try to use this codes :
    mymc.addEventListener(Event.ADDED_TO_STAGE, addedF);
    function addedF(e:Event):void{
    trace("I Start");
    mymc.addEventListener(Event.REMOVED_FROM_STAGE, removedF);
    function removedF(e:Event):void{
    trace("I exit");
    why The removedF function Works well and the addedF function not work ?!?   in fact nothing Happend on Enter This Frame but on exit i see my I exit Trace !!

  • Authorization check for Open and Close Periods ( OB52)

    Dear Experts,
                           We have created ZOB52 for Opening and closing periods. This is replica of Tcode: OB52 with some other developments that we required. Here for resticting user I had tried authorization Object: F_BKPF_BUP for particular company code wise posting. This was however not working. Kindly suggest.

    Hi,
    The last column in OB52 - AuGr (Authorization Group) helps you in restricitng certain users to use a posting period. This field is freely definable.
    If only a limited set of users is to be able to post in a particular posting period, proceed as follows:
    Add the posting period authorization (authorization object F_BKPF_BUP) to the authorizations of the selected users. Assign an authorization group (e.g. '0001').
    In OB52,  in the row with the account type '+', enter the period(s) whose use is to be restricted in the first period, those which are available to all users in the second period, and the authorization group (e.g. '0001') in the last column.
    For company code wise restrictions, you should have a seperate posting period variant for each company code.
    Edited by: Michael Gerard Leo on Jan 12, 2010 2:55 PM
    Edited by: Michael Gerard Leo on Jan 12, 2010 3:01 PM

  • SelectionChange for enter and backspace keys

    Hello all,
    Our VSTO addin needs to know the current selection so we can sync our taskpane with current selection. We are using the SelectionChanged event to register our taskpane synch routine. The problem is that this event doesn't fire on Enter or backspace key.
    We are specifically interested in the scenarios where the Enter/backspace results in a paragraph change(para add on enter and paragraph remove on backspace of the last character in a para). It seems like a bug to me that SelectionChange wont
    fire on backspace when the delete key does fires it.
    Is there any other workaround to detect this paragraph change state?

    Hi,
    >> I am not interested in a cursor change but rather a paragraph change which would indicate a change from one para to next.
    The current object model does not have an event to be triggered when changing the content.
    If you want to detect the paragraph changing, we could also use a global Timer to detect the paragraph changing of the active document.
    >> Multiple documents - i would have to suspend/reactivate my timer on Activate/Deactivate events
    >> Multiple windows of the same document - If i have the same document open in multiple windows, split window, new window etc, how would this timer work?
    Here is the sample code for your reference:
    using System.Collections.Generic;
    using Word = Microsoft.Office.Interop.Word;
    using System.Timers;
    using System.Runtime.InteropServices;
    namespace WordSelectionChangeIssue
    public partial class ThisAddIn
    private Timer addInTimer { get; set; }
    private Dictionary<string, int> ParagraphCountDict { get; set; }
    private void ThisAddIn_Startup(object sender, System.EventArgs e)
    addInTimer = new System.Timers.Timer();
    ParagraphCountDict = new Dictionary<string, int>();
    addInTimer.Interval = 1000;
    addInTimer.Elapsed += TimerElapsedHandler;
    addInTimer.Start();
    private void BindToChange(Word.Document document)
    ParagraphCountDict.Add(document.Name, document.Paragraphs.Count);
    private void TimerElapsedHandler(object sender, ElapsedEventArgs e)
    if(Application.Documents.Count == 0)
    return;
    try
    var activeDocument = Application.ActiveDocument;
    if (!ParagraphCountDict.ContainsKey(activeDocument.Name))
    BindToChange(activeDocument);
    var previousParagraphsCount = ParagraphCountDict[activeDocument.Name];
    var count = activeDocument.Paragraphs.Count;
    if (previousParagraphsCount != count)
    ParagraphCountDict[activeDocument.Name] = count;
    // trigger event
    ParagraphChangeHanlder(activeDocument);
    }catch(COMException comEx)
    private void ParagraphChangeHanlder(Word.Document document)
    System.Windows.Forms.MessageBox.Show("Paragraph Changed!");
    private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
    addInTimer.Stop();
    #region VSTO generated code
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InternalStartup()
    this.Startup += new System.EventHandler(ThisAddIn_Startup);
    this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
    #endregion
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for