AT USER COMMAND is not getting triggerd

Hi Techie's
I have two fields on the selection screen
1) Name:   ___________
2) Id:         ___________
I have some buttons say on the Application toolbar say::
Save            Delete            Modify           Exit
I have created these buttons in the INITIALIZATION event.
I am using AT Selection Screen OUTPUT for some logic purpose.
Later I am writing AT USER COMMAND and pressing  SAVE The function code for SAVE is "SAV".
But the drama is that AT USER COMMAND is not getting triggered at all.
It goes first to Initialization--->At selection Screen OUTPUT>Then screen appears> I give the values and press the SAVE button--
again it goes to the At Selection screen OUTPUT.
Not even getting the hang of it. Please help if anybody know the story of it.
ITS SO URGENT.

At user command is for list processing, you need something like this:
Pushbuttons in the Application Toolbar
In the application toolbar of the standard GUI status of the selection screen, five pushbuttons are predefined with the function codes FC01 to FC05, but are inactive by default. You can activate them during the definition of the selection screen as follows:
SELECTION-SCREEN FUNCTION KEY i.
The numbering i must be between 1 and 5. The individual function texts must be assigned to the functxt_0i components of structure sscrfields before the selection screen is called. You must declare this structure as an interface work area using the TABLES statement.
If the user chooses one of these buttons, the runtime environment triggers the AT SELECTION-SCREEN event and the function code FC0i is placed into the component ucomm of the structure sscrfields.
After the AT SELECTION-SCREEN event has been processed, the system displays the selection screen again. The only way to exit the selection screen and carry on processing the program is to choose Execute (F8). Consequently, the pushbuttons on the application toolbar are more suitable for controlling dynamic modifications of the selection screen than for controlling the program flow.
REPORT demo_sel_screen_function_key.
TABLES sscrfields.
PARAMETERS: p_carrid TYPE s_carr_id,
            p_cityfr TYPE s_from_cit.
SELECTION-SCREEN: FUNCTION KEY 1,
                  FUNCTION KEY 2.
INITIALIZATION.
  sscrfields-functxt_01 = 'LH'.
  sscrfields-functxt_02 = 'UA'.
AT SELECTION-SCREEN.
  CASE sscrfields-ucomm.
      WHEN'FC01'.
      p_carrid = 'LH'.
      p_cityfr = 'Frankfurt'.
    WHEN 'FC02'.
      p_carrid = 'UA'.
      p_cityfr = 'Chicago'.
  ENDCASE.
START-OF-SELECTION.
  WRITE / 'START-OF-SELECTION'.
This defines a standard selection screen with two parameters. In the application toolbar, two pushbuttons are assigned the texts LH and UA and activated.
When the user clicks one of the buttons, the AT SELECTION-SCREEN event is triggered and there the input fields are preassigned correspondingly.

Similar Messages

  • User command is not getting triggered in interactive ALV with LIST display

    Hi experts,
    I have developed an interactive ALV report with LIST display. Here, the issue is, when i double click a record in the primary ALV list, the control must go to the USER COMMAND event which i have written in my report. But the user command event is not getting triggered at all when i double click any record.
    It gives the following information instead.
    "Choose a valid function".
    (My user command name and its respective form name are same.)
    Here is my code..
    START-OF-SELECTION.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_structure_name         = p_table
          i_callback_user_command  = 'TST1'
          i_callback_pf_status_set = 'SET_PF_STATUS'
        TABLES
          t_outtab                 = <dyn_table>
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
      ENDIF.
    FORM tst1 USING r_ucomm LIKE sy-ucomm
                    rs_selfield TYPE slis_selfield.
    * Local data declaration
      DATA: li_tab TYPE REF TO data,
            l_line TYPE REF TO data.
    * Local field-symbols
      FIELD-SYMBOLS:<l_tab> TYPE table,
                    <l_wa>  TYPE ANY.
    * Create table
      CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN li_tab->* TO <l_tab>.
    * Create workarea
      CREATE DATA l_line LIKE LINE OF <l_tab>.
      ASSIGN l_line->* TO <l_wa>.  CASE r_ucomm.
    *   When a record is selected
        WHEN '&IC1'.
    *     Read the selected record
          READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
          rs_selfield-tabindex.      IF sy-subrc = 0.
    *       Store the record in an internal table
            APPEND <dyn_wa> TO <l_tab>.
    *       Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                i_program_name         = 'Z_DEMO_PDF_JG'
                i_structure_name       = p_table
              CHANGING
                ct_fieldcat            = i_fieldcat
              EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
    Please advice what is the msitake i have done here..

    Read the following code:
    pass the  i_callback_user_command = g_user_command to the ALV function module and write the FORM user_command USING ucomm    LIKE sy-ucomm
                            selfield TYPE slis_selfield.
    as shown below.
    thanx
    Data for ALV display
    DATA  : gt_fieldcat TYPE slis_t_fieldcat_alv,
            gt_events           TYPE slis_t_event,
            g_variant LIKE disvariant,
            g_user_command      TYPE slis_formname VALUE 'USER_COMMAND',
            g_status            TYPE slis_formname VALUE 'SET_PF_STATUS',
            gt_list_top_of_page TYPE slis_t_listheader,
            g_repid LIKE sy-repid,
            gf_pos TYPE i
    Data for ALV display
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
               EXPORTING
              i_callback_program      = g_repid
                 i_callback_program      = sy-repid
                 it_fieldcat             = gt_fieldcat[]
           it_events               = gt_events[]
              i_callback_user_command = g_user_command
                 i_save                  = 'A'
                 is_variant              = g_variant
               TABLES
                 t_outtab                = it_print.
    FORM user_command USING ucomm    LIKE sy-ucomm
                            selfield TYPE slis_selfield.
      CASE ucomm.
        WHEN '&IC1'.
          CASE selfield-sel_tab_field.
            WHEN '1-KUNNR'.
              READ TABLE it_print INTO wa_print INDEX selfield-tabindex.
              IF sy-subrc = 0.
                SET PARAMETER ID 'BPA' FIELD wa_print-kunnr.
                CALL TRANSACTION 'BP'.
              ENDIF.
            WHEN '1-MATNR'.
              READ TABLE it_print INTO wa_print INDEX selfield-tabindex.
              IF sy-subrc = 0.
                SET PARAMETER ID 'JP_ISS' FIELD wa_print-matnr.
                CALL TRANSACTION 'JP29' AND SKIP FIRST SCREEN..
               GET PARAMETER ID 'WRK' FIELD wa_zprint-werks.
               SET PARAMETER ID 'VKO' FIELD wa_zprint-vkorg.
               SET PARAMETER ID 'VTW' FIELD wa_zprint-vtweg.
               CALL TRANSACTION 'JP29' AND SKIP FIRST SCREEN.
              ENDIF.
    Endcase.
    Endform.

  • Enable User task is not getting triggered

    Hi All
    We have a provisioning workflow configured. "Enable User" task is not getting triggered while the user is enabled in OIM. Can anyone give a clue as to how to get it triggerd? Rest all the tasks are fine (Create, Disable, Delete, and other custom tasks)
    Thanks,
    Vinay

    There is a OOTB scheduled Task "Enable After Start Date". once the user get enabled in OIM user profile. You have to run this task manually to have effect on corresponding RO for enablement. Else it will execute automatically as per scheduled time.
    if the version of OIM is 11.1.1.5. There is an issue. update patch BP02. for same
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • NS Messaging Server 4.1 USER Command Failed on get mail

    NS Messenger Express (http interface) works OK for send and receive E-mail messages. Also, sending mail from any mail client works OK.
    But, when try to get mail from mail client such as NS 7.1 or Outlook Express 5.5 get log in error
    On 7.1 mail client: The USER Command did not succeed. Mail Server some.domain.com responded: ERR.
    On Outlook Express mail client:
    There was a problem logging onto your mail server. Your User Name was rejected. Account: 'p350.gec-2.com', Server: 'p350.gec-2.com', Protocol: POP3, Server Response: '-ERR', Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number: 0x800CCC91
    No error message on POP3 server log.
    Any suggestion ?
    NSM 4.1
    Win NT 4.0 SP4
    NS 7.1 Mail
    Outlook Express 5.5 Mail

    Sorry, that's NSM 4.15. POP3 service is running.

  • Since goimg to 4 firefox i get a message that the command is not getting to the program pogo

    since i updated to firefox 4 i get an error message that says the command is not getting to the program. That is for pogo only i have no problem elsewhere. I would like to ask how to reset my firefox homepage after someone has changed. It is firefox for yahoo.ca

    You can use your iPad worldwide. However, each AppleID is tied to
    a specific country's store. To use the AppStore in any country, you
    must be in that country and have a credit/debit card issued by a financial
    institution in that country with a verified billing address in that country.
    It is the developer's choice which AppStores he makes his app available
    from, and some countries prohibit certain apps.
    To make a purchase from the US store (including downloading a free app
    available in the US store), you must be in the US and have card issued
    in the US with verified billing address in the US.
    You can use your purchases from the SA store worldwide, but you
    cannot make purchases in other than the SA store unless you meet
    the aforesaid conditions.

  • Field Exit Not Getting Triggerd

    Hi friends , i ve created filed exit for t-code MB31 for original batch check ,
    the fiedl exit has been activated but it is not getting triggerd.
    Please reply ,
    Thanks and regards ,
    Mahesh
    Message was edited by:
            Mahesh Mogare

    Hi Thomas ,
    Thanks for reply , i ve set the parameter abap/fieldexit is to YES in quality server ,
    and activate my field exit , and it is getting triggerd in quality server , i trnsport the same request in production server , i ve also check the filed exit is in active mode in prodution server , but it is not getting triggered , is it necessary to set the parameter abap/fieldexit is to YES  in production server .
    Please Reply .
    Regards,
    Mahesh .

  • Events in USER objects type not getting triggered in PFCG

    Hi,
    We need to send some notifications to the concern person at the time of assiging roles to the user . There is an object type USER and has events like created,cloned, deleted, roles_changed. But these events not getting triggered.
    I need to trigger the workflow. How do we activate the events as the entry doesnot exits in SWE2 tooo . Is ther any other way?

    HI munish
    If the entry is not in swe2 Put the entry for the business object USER and use the receiver type as your workflow number.
    Regards
    vijay

  • Main window of triggered page ( thr' COMMAND ) is not getting triggered.

    Hi,
    My requirement is as below -
    I have 3 pages in smartform 
    FIRST  page - next page of it is SECOND page
    SECOND  page - next page of it is SECOND page
    and I have last page ( LAST_PAGE ), which is getting triggered for 1 of the condition.
    Here, my main window in LAST_PAGE  is not getting triggered; Can anyonw please advice on it.

    Hi,
         If u have used Main Windows only then u can place the Command Node in First Page Itself after the command node 1to  First ---> Second Page Trigger your Text nodes etc and again The Command Node 2 Second to Third based on condition else the same second page. Mainwindows will be accessed as specified in first page only .
         IF secondary or other windows have been specified
         Place the Command Node in the Second page and also add the Condition to the Command node the condition to get to last page.
    Regards,
    Vijaya Lakshmi.T

  • User temp tables not getting cleaned out from tempdb?

    Im seeing what looks like temp tables that are hanging around in tempdb and not getting cleaned out.
    This is SQL 2008 
    SELECT * FROM tempdb.sys.objects so WHERE name LIKE('#%') AND DATEDIFF(hour,so.create_date,GETDATE()) > 12
    Im seeing about 50 or so objects that get returned and they are user_table and some of them have create dates of several days in the past.  Now I know users do not run processes that take that long, so why are these objects still hanging around?
    TempDB gets reset after a server restart, but other than that, how long are these things going to hang around?

    A local temporary table scope exists only for the duration of a user session or the procedure that created the temporary table. When the user logs off or the procedure that created the table completes, the local temporary table is lost. 
    You can check the below blog for more information
    http://sqlblog.com/blogs/paul_white/archive/2010/08/14/viewing-another-session-s-temporary-table.aspx
    --Prashanth

  • LT09 - Transfer Order User Exit is not getting trigerred though its active

    Hi,
    I am trying to assign the enhancement : MWMTO001
    ( Enhancements for end of transfer order generation )
    which contains the user exit component : EXIT_SAPLL03T_001
    I have created a project in CMOD and assigned the enhancement.
    When I execute the TCode LT09 for transfer order, I noticed that this exit is not getting trigerred ...
    I need to call a smartform whenever we save the data in the T-code LT09.
    Am i using a wrong Exit ? Please help me to find out why this exit is not getting triggered though its activated ....
    Thanking you in advance..
    Nagasubramanyam.

    Hi
    Thank you for reply.
    According to 1st scenario prgm is activated & also activated enhancement in CMOD.
    According to 2nd scenario, can u suggest how to find out the correct exit...
    Actually I written a print prgm in include of EXIT_SAPLL03T_001 & designed SMARTFORM for that...
    if I do process thru LT09 transaction & save that SMARTFORM should be triggered which is not happening...I put  break points & tried but the exit is not triggering.
    pls suggest how to find out the correct exit of LT09 .
    Thanks&Regards
    NagaSubramanyam.

  • Summing command is not getting the result

    Hi All,
    I am using summing command in my script to print page total on every page.
    I have used:
    SUMMING &ITAB_TDS-BASAMT& INTO &ZTDS-BASE_AMT&
    here itab-tds is my internal table which contains the line items..and ztds is the R/3 transparent table(global) in which the field base_amt is the currency typr field.
    But when I debud the script, i find that ZTDS-BASE_AMT does not get any values(inspite that itab_tds-basamt has values).
    I have declared ZTDS in the tables stmt in the print program(tables: ztds. )
    plz tell me how to get rid of this problem?
    Regards,
    Niyati

    Hi,
    I think this will solve your problem.
    - To use command SUMMING:
    /: SUMMING PROGRAM_SYMBOL INTO TOTAL_SYMBOL
    The PROGRAM_SYMBOL is the global variable you want to sum, TOTAL_SYMBOL is a variable defined in the sapscript:
    /: DEFINE TOTAL_SYMBOL = '0'.
    You should try to define TOTAL_SYMBOL just once (for example in a window you use only once).
    Reward points to all useful answers.
    Regards,
    SaiRam

  • User Status Profile not getting copied to Objects (ECM)

    Dear Experts,
    I Have created Change Type assign with Status Profile, This Profile is correctly appearing in Change NO (ECR),
    In Header but After Selecting some of the Objects like, BOM or Material the Status Profile is not getting copied.
    I have two level of Approvals required.
    do am i missing something here...
    Please suggest
    Thanks
    Regards
    Raghu
    Edited by: raghu m on Nov 12, 2009 10:34 AM

    Closed!

  • My non iphone user friend is not getting my messages

    My friend is not receiving my imessages. My Imessage ballon on my macbook air is not opening.

    iMessage is specific to Apple devices. iOS devices and Macs. If they don't have an iOS device or a Mac, they will not get iMessages.
    If they used to have an iPhone but no longer do, they need to de register iMessage.
    https://selfsolve.apple.com/deregister-imessage

  • USER EXIT MB_CF001 NOT GETTING TRIGGERED

    Hi All,
    I am using EXIT_SAPLMBMB_001(MB_CF001)
    I want it to be triggered after the document has been saved but its not trigeering..
    How can I find out the reason???
    Regards
    Shilpa

    Hi,
    have you checked documentation for that enhancement? That function module is not called after goods movement creation.
    The user exit MB_CF001 includes a function module that is called up
    immediately before the COMMIT WORK when a goods movement is posted.
    How do you test that FM? Some function modules from user exits are called in UPDATE TASK so they just ignore break points. In this case you can use the following trick. You need to enter an infinite loop into your user exit. Then you can connect to this program via transaction SM50 (Program/Session -> Program -> Debugging).
    Cheers

  • Chat user is not getting message from the other users

    In my application when user [A] initiate the chat with user[B]  , I am facing following issues
    -          User[B] is not getting initiation notification so that I am unable to open chat pod for user [A] on user[B] application
    -          Due to above problem , User[B] not getting any message sent by the User[A]
    -          User[A] can send only one message and it is displayed on simple chat pod
    when User[A]tries to send more then one message it is not displayed on simple chat pod but on the console I can see the messages
    following is sample code
     public function connectChat() :void {
    _collectionNode =
    new CollectionNode();_collectionNode.sharedID = NOTIFICATION_COLLECTION_NODE;
    _collectionNode.connectSession =
    this.connectSession;_collectionNode.addEventListener(CollectionNodeEvent.SYNCHRONIZATION_CHANGE, onSynchronizationChange,
    false, 0, true);_collectionNode.addEventListener(CollectionNodeEvent.ITEM_RECEIVE, onItemReceive,
    false, 0, true);_collectionNode.subscribe();
    /*** @private
    * Handles the creation of a collection node if it does not already exist
     protected function onSynchronizationChange(event:CollectionNodeEvent):void { 
    if (_collectionNode.isSynchronized) { 
    if (!_collectionNode.isNodeDefined(START_CHAT_LIST) && _collectionNode.canUserConfigure(connectSession.userManager.myUserID)) {_collectionNode.createNode(START_CHAT_LIST,
    new NodeConfiguration(UserRoles.VIEWER, UserRoles.VIEWER, true, false, true,false, NodeConfiguration.STORAGE_SCHEME_QUEUE));}
     public function connectChat() :void{
    trace('connectChat');_collectionNode =
    new CollectionNode();_collectionNode.sharedID = NOTIFICATION_COLLECTION_NODE;
    _collectionNode.connectSession =
    this.connectSession;_collectionNode.addEventListener(CollectionNodeEvent.SYNCHRONIZATION_CHANGE, onSynchronizationChange,
    false, 0, true);_collectionNode.addEventListener(CollectionNodeEvent.ITEM_RECEIVE, onItemReceive,
    false, 0, true);_collectionNode.subscribe();
    /*** @private
    * Handles the creation of a collection node if it does not already exist
     protected function onSynchronizationChange(event:CollectionNodeEvent):void { 
    if (_collectionNode.isSynchronized) { 
    //Creates the nodes if they don't exist 
    if (!_collectionNode.isNodeDefined(START_CHAT_LIST) && _collectionNode.canUserConfigure(connectSession.userManager.myUserID)) {_collectionNode.createNode(START_CHAT_LIST,
    new NodeConfiguration(UserRoles.VIEWER, UserRoles.VIEWER, true, false, true,false, NodeConfiguration.STORAGE_SCHEME_QUEUE));}
    /*** Checks if a chat is going to be started with this specific user
     protected function onItemReceive(event:CollectionNodeEvent):void { 
    var item:MessageItem = event.item; 
    var openChatEvent:OpenChatEvent = OpenChatEvent.ToOpenChatEvent( item.body, OpenChatEvent.OPEN_CHAT ); 
    switch (item.nodeName) { 
    case START_CHAT_LIST: 
    trace("Starting Chat Notified");  
    if( openChatEvent.userId && openChatEvent.userId == this.connectSession.userManager.myUserID ){
    this.dispatchEvent( openChatEvent ); 
    if( this._collectionNode.isSynchronized ) 
    this._collectionNode.retractItem( START_CHAT_LIST, openChatEvent.roomId );}
    break;}
    /*** Publishes a request for someone to join a chat
     public function publishChatRequest(notificationEvent : NotificationEvent) :void { 
    if( this.connectSession.userManager.getUserDescriptor( notificationEvent.userID ) ){
    var openChatEvent:OpenChatEvent = new OpenChatEvent( OpenChatEvent.PUBLISH_CHAT,null,notificationEvent.sharedID, notificationEvent.userNotificationList, null, notificationEvent.userID ); 
    if( this.presenceUsers )openChatEvent.descriptors =
    this.presenceUsers; _collectionNode.publishItem(
    new MessageItem( START_CHAT_LIST, openChatEvent, openChatEvent.roomId ) );}
    else{
    Alert.show(
    "User "+ notificationEvent.userID + " is not logged in.", "Publish Error" );}

    A) are these methods copied twice in the code here on purpose?
       connectChat() and onSynchronizationChange is repeated in code due copy paste mistake
    B) are both users subscribing to _collectionNode right away? Do each of them
    get to onSynchronizationChange?
       Yes , each of them get to onSynchronizationChange
    C) If you put a breakpoint in onSynchronizationChange, do you see the node
    get created? Do you see it in the dev console?
    Yes , it is creating a node
    D) Is user B receiving an onItemReceive at all? Is user A?
    Yes , it is creating a node
    Now both the user getting chat message, have following issue
    When user A initiate the chat with user B this action is not opening chat pod / window on user B end which shows user A has initiated chat with user B
    But when user B click on user A name to initiate the chat, this action opens a chat window and user B can see message send by user A
    Above scenario is not normal chat behavior in which other user gets the notification of chat . what could be the problem

Maybe you are looking for

  • Shipment cost issue

    Dear all, I want to do Stock transfer process between 2 company codes, and Transpotartion Planning Point is Receving CCode. So, when i create Shipment cost, there is an error: Company codes are different: Delievery 2620/0080000228 shipment 6620/00000

  • Hard Drive Gone!?

    So I left my computer on when I went out somewhere earlier today. It put the screen to sleep, like it usually does. Nothing was out of the ordinary, but when I got back, I clicked the command button on the keyboard, which is what I am in the habit of

  • Percentage calculation in bmmlayer

    hi i'm stuck in calculating the percentage.. I have two colomuns in bmm layer one is student count and another rfstudent count. student count gives all the students for the year 2010 whose composite score is 3 and rf student count gives count of all

  • 9.0.3 can't find .xcfg configuration file in classpath

    I could run a test client against my EJBs using 9.0.2 (part of the Developer Suite). When I try to use 9.0.3 standalone version I get the following error: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=J

  • Codepage problem when compiling with fastjavac

    Hi, I'm getting the following warnings when compiling with fastjavac: fastjavac: warning: Can't find codepage for "Cp1250" encoding. fastjavac: warning: Use default ANSI codepage. 2 warnings How could I suppress these warnings? Thanks in advance