Using AT USER COMMAND

good day,
i have question in using the at user command, because i want to translate all the text( starting from column 27 onwards) in my report if it is clicked, im using translate syntax, how will my syntax go?
at user command.
if sy-cucol > 27.
translate ___ to upper case.
endif.
but this is not working

Hello,
First capture the SY-UCOMM then Translate it
Try like and see the output.
at user command.
case sy-ucomm
when 'TRAN'
if sy-cucol > 27.
translate _ to upper case.
endif.
endcase.

Similar Messages

  • *when we use at user -command and give smaple code fro at user-command*

    Hi experts,
    i am new to abap can any body tell me when we use AT USER-COMMAND and give a sample code for that.
    point will be rewarded.
    thanks.

    Hi,
    AT USER-COMMAND  is a list Event.This Event is triggered when user make an action on the Application Toolber Or Menubar.
    Here is the Program.
    START-OF-SELECTION.
      SET PF-STATUS 'TEST'.
      WRITE:  'Basic list, SY-LSIND =', sy-lsind.
    AT LINE-SELECTION.
      WRITE:  'LINE-SELECTION, SY-LSIND =', sy-lsind.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'TEST'.
          WRITE:  'TEST, SY-LSIND =', sy-lsind.
      ENDCASE.
    This program uses a status TEST, defined in the Menu Painter.
    Function key F5 has the function code TEST and the text Test for demo.
    Function code TEST is entered in the List menu.
    The function codes PICK and TEST are assigned to pushbuttons.
    The user can trigger the AT USER-COMMAND event either by pressing F5 , or by choosing List -> Test for demo, or by choosing the pushbutton 'Test for demo'.The user can trigger the AT LINE-SELECTION event by selecting a line.
    Hopr This Will help You.
    Regards,
    Sujit

  • How to use AT LINE-SELECTION and AT USER-COMMAND in one report????

    Dear all,
    I have a problem in reports I want to use AT USER-COMMAND.and AT LINE-SELECTION.both in the one report.
    But as soon as I use SET PF-STATUS my AT LINE-SELECTION event stop workingand only AT USER-COMMAND is working.
    How can I use both of them in one report for your reference I am giving my test program below.
    REPORT ZTEST111 .
    SET PF-STATUS '100'.
    DO 10 TIMES.
    WRITE:/ SY-INDEX.
    HIDE SY-INDEX.
    ENDDO.
    START-OF-SELECTION.
    AT LINE-SELECTION.
    MESSAGE I002(SY) WITH SY-INDEX.
    AT USER-COMMAND.
    MESSAGE I002(SY) WITH 'USER COMMAND'.
    END-OF-SELECTION.
    Thanks in advance
    Sachin Gautam

    hi
    Syntax
    AT USER-COMMAND.
    Effect
    This statement defines an event block whose event is triggered by the ABAP runtime environment if, during the display of a screen list, a function with a self-defined function code was chosen.
    Note
    Self-defined function codes are all those that include character combinations, except for the following:
    The function codes PICK and PF## ("##" stands for 01 to 24) do not cause the event AT USER-COMMAND, but the events AT LINE-SELECTION and AT PF##.
    All function codes that start with the character "%" are interpreted as system functions and do not cause the event AT USER-COMMAND. The system functions for lists are listed in the following table 1.
    The function codes in the following table 2, likewise, do not cause the event AT USER-COMMAND, but are handled by the list processor.
    Table 1
    Function code Function
    %CTX Call a context menu
    %EX Exit
    %PC Save to file
    %PRI Print
    %SC Search for ...
    %SC+ Find next
    %SL Search in office
    %ST Save to report tree
    Table 2
    Function code Function
    BACK Back
    P- Scroll to previous page
    P-- Scroll to first page
    P+ Scroll to next page
    P++ Scroll to last page
    PFILE name Store list lines in a text file named abap.lst in standard character representation in the standard directory of the application server. If a name is entered using name, this is converted to lowercase letters and used as the file name.
    PL- Scroll to first line of the page
    PL-n Scroll n lines back
    PL+ Scroll to last line of the page
    PL+n Scroll n lines up
    PNOP No effect
    PP- Scroll back one page
    PP-n Scroll n pages back
    PP+ Scroll one page forward
    PP+n Scroll n pages forwad
    PPn Scroll to beginning of page n
    PRI, PRINT Print
    PS-- Scroll to first column
    PS++ Scroll to last column
    PS- Scroll one column to the left
    PS-n Scroll n columns to the left
    PS+ Scroll one column to the right
    PS+n Scroll n columns to the right
    PSn Scroll to column n
    PZn Scroll to line n
    RW Cancel

  • At user-command & At Line-selection

    Hi,
    I am using ECC5 ver. of ABAP.
    Can I use AT USER-COMMAND and AT LINE-SELECTION
    in the same report?
    I have used it but only At user command works, not At line selection.
    When I remove Set pf-Status, At line selection works.
    Here is my code.
    REPORT PF&ATLINE.
    AT LINE-SELECTION.
      MESSAGE 'Line Selected' TYPE 'I'.
    AT USER-COMMAND.
      IF sy-ucomm = 'PUSH'.
        MESSAGE 'Button Pushed' type 'I'.
      elseif sy-ucomm = 'EXIT'.
        LEAVE PROGRAM.
      ENDIF.
    START-OF-SELECTION.
      SET PF-STATUS 'ZRND3'.
      DO 10 TIMES.
        WRITE:/01 SY-INDEX HOTSPOT.
      ENDDO.
    END-OF-SELECTION.

    Hi Rajiv,
    Setting the PICK function code to F2 will definitely solve it..
    and it triggers the at user-command and at line-selection event as per user interaction...
    If it is not working properly... then there might me something wrong in your code...
    can you place the code... so that we can know the exact problem
    regards
    padma

  • Pf status and user-command

    hi
    can any one explain me about pf-status and user-command?  what is the difference between this two and how to display icons in it.
    max reward points for good answer
    thanks
    alka

    Hi alka ritu  ,
    Check the following websites for good documentation o n pf status and user-command
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba34635c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba99935c111d1829f0000e829fbfe/content.htm
    1. How to set pf-status
    set pf-status ‘ZZBILSTA’.
    2. How to set pf-status excluding/including single menu items
    You can exclude menus by using exclude :
    set pf-status ‘ZZBILSTA’ excluding ‘PST’.
    Note: Can also be used with include instead of exclude
    3. How to set pf-status excluding/including several menu items
    You have to use an internal table to store the status you wan’t to ex- or include:
    DATA:BEGIN OF I_PF_STATUS_TAB OCCURS 10,
    FCODE,
    END OF I_PF_STATUS_TAB.
    FORM SET_PF_STATUS_POSTER.
    REFRESH I_PF_STATUS_TAB. MOVE ‘PST’ TO I_PF_STATUS_TAB. APPEND I_PF_STATUS_TAB. MOVE ‘ART’ TO I_PF_STATUS_TAB. APPEND I_PF_STATUS_TAB. SET PF-STATUS ‘ZZBILSTA’ EXCLUDING I_PF_STATUS_TAB.
    ENDFORM.
    4. Setting PF status to the (SAP) system default
    set pf-status ‘BASIC’.
    5. How to check for pf-status
    AT USER-COMMAND.
    CASE SY-UCOMM. WHEN ‘ART’. PERFORM STYR_ARTSKONTI. WHEN ‘PST’. PERFORM STYR_POSTER. WHEN ‘BIL’. PERFORM VIS_BILAG. ENDCASE.
    6. Use of SY-PFKEY
    You can use the system variable sy-pfkey to retrieve the name of the current pf status
    USER-COMMAND:
    If the user chooses a function code during list processing that is neither processed by the system, or PICK or PFnn, the system triggers the event AT USER-COMMAND. For this event, you must define your own GUI status for a list. To react to your own function codes in a program, you must define the following event block:
    AT USER-COMMAND.
      statements.
    In this event block, you can use an IF or CASE structure to differentiate between the function codes. They are available in the system field sy-ucomm. There are further system fields that are filled in list events, such as sy-lsind and sy-pfkey, that allow you to make further case distinctions.
    Triggering a List Event from the Program
    You can trigger a list event from the program as follows:
    SET USER-COMMAND fc.
    This statement takes effect after the current list is completed. Before the list is displayed, the event assigned to function code fc is triggered, regardless of the dialog status you are using.
    The effect is the same as when the user chooses the function. In other words, predefined list function codes are trapped and processed by the runtime environment, the function codes PICK and PFnn trigger the AT LINE-SELECTION and AT PFnnevents, and user-defined function codes trigger the AT USER-COMMAND event block.
    Function code PICK triggers an event only if the cursor is located on a list line.
    Using this statement in conjunction with the function codes reserved for system functions, you can call the system functions from the program. For example, you can use SET USER-COMMAND '%SC' to call the Find dialog box directly, or to position the list correctly before it is displayed.
    If you use several SET USER-COMMAND statements while creating a list, the system executes only the last one.
    Example of AT USER-COMMAND.
    REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
      WRITE: 'Basic List',
           / 'sy-lsind:', sy-lsind.
    TOP-OF-PAGE.
      WRITE 'Top-of-Page'.
      ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
      CASE sy-pfkey.
        WHEN 'TEST'.
          WRITE 'Self-defined GUI for Function Codes'.
          ULINE.
      ENDCASE.
    AT LINE-SELECTION.
      SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
      PERFORM out.
      sy-lsind = sy-lsind - 1.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'FC1'.
          PERFORM out.
          WRITE / 'Button FUN 1 was pressed'.
        WHEN 'FC2'.
          PERFORM out.
          WRITE / 'Button FUN 2 was pressed'.
        WHEN 'FC3'.
          PERFORM out.
          WRITE / 'Button FUN 3 was pressed'.
        WHEN 'FC4'.
          PERFORM out.
          WRITE / 'Button FUN 4 was pressed'.
        WHEN 'FC5'.
          PERFORM out.
          WRITE / 'Button FUN 5 was pressed'.
      ENDCASE.
      sy-lsind = sy-lsind - 1.
    FORM out.
      WRITE: 'Secondary List',
           / 'sy-lsind:', sy-lsind,
           / 'sy-pfkey:', sy-pfkey.
    ENDFORM.
    Example of AT USER-COMMAND.
    REPORT demo_list_set_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
      SET USER-COMMAND 'MYCO'.
      WRITE 'Basic List'.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'MYCO'.
          WRITE 'Secondary List from USER-COMMAND,'.
          WRITE: 'sy-lsind', sy-lsind.
          SET USER-COMMAND 'PF05'.
      ENDCASE.
    AT pf05.
      WRITE 'Secondary List from PF05,'.
      WRITE: 'sy-lsind', sy-lsind.
      SET CURSOR LINE 1.
      SET USER-COMMAND 'PICK'.
    AT LINE-SELECTION.
      WRITE 'Secondary List from LINE-SELECTION,'.
      WRITE: 'sy-lsind', sy-lsind.
      SET USER-COMMAND '%SC'.
    http://maxdb.sap.com/currentdoc/94/90ee41c334c717e10000000a155106/content.htm
    cheers!
    gyanaraj
    ****Pls reward points if u find this helpful

  • PROBLEM WITH USER COMMAND AT SIMPLE REPORT

    HII FRNDS
    MY PROBLEM IS
    WHEN I AM BRANCHING TO A LIST REPORT FROM MY ALV REPORT BY USING LEAVE TO LIST-PROCESSING . THEN IN MY LIST REPORT I AM HAVING 2 MORE CUSTOMIZED BUTTON . BUT THE THING IS THAT I AM NOT ABLE TO MAKE THAT BUTTON  FUNCTION .
    CAN ANY BODY HELP ME WITH HOW TO MAKE THAT BUTTON WORK IN THE SIMPLE REPORT . I HAVE USED AT USER COMMAND IN THE BEGINING OF REPORT BUT STILL ITS NOT WORKING .
    THANKING YOU
    ROHIT

    HII FRNDS THIS IS THE CODE
    CASE R_UCOMM.
        WHEN 'DISPLAY1'.
          LOC_INDEX = 1 .
          SET PF-STATUS 'STATUS' EXCLUDING 'DISPLAY1'.
          LOOP AT INT_OUTPUT INTO WA_OUTPUT
                             WHERE CHECKBOX = WC_MARKED.
            APPEND WA_OUTPUT TO INT_DISPLAY .
          ENDLOOP.
          LEAVE TO LIST-PROCESSING .
          PERFORM F9100_DISPLAY_DETAILS USING LOC_INDEX.
    ENDCASE.
    AT USER-COMMAND .
    CASE SY-UCOMM.
    WHEN 'BACK'.
    BREAK-POINT.
           PERFORM F9100_DISPLAY_DETAILS USING LOC_INDEX.
      ENDCASE.
    THE PERFORM F9100 DISPLAYES THE LIST REPORT . THERE ARE NO SPELLING ERRORS FRNDS .

  • At User-command Problem

    Dear Friends
    i have big problem
    below i saved my program code.
    SET PF-STATUS 'SD012_MENU2'. its button also coming to the display screen, my problem is when i click on the "New Remarks" button (FUNC01) i want to call another screen
    but i unable to trigger the any kind of events i done in the screen
    i used AT USER-COMMAND  also but problem still there
    please look this and let me know how can i solve this problem.
    1. Selection Screen (Customer Menu 01) when click on the button ALV list Displaying
    2. In ALV list (Customer Menu 02)  when click on the button list Displaying (list with write statment)
    3. In list (Customer menu 03) when click on the button i want to call screen but in this part any button not working (only display)
    Thanks in advance
    Hope,
      you can understand about my problem. 
    *&      Form  CREATE_REMARKS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM CREATE_REMARKS .
    *  BREAK ITNR.
      LOOP AT IT_ALLOCATION2 INTO WA_ALLOCATION2.
        IF WA_ALLOCATION2-FLAG = 'X' AND WA_ALLOCATION2-DOCTP = 'LP'.
          SELECT  VBELN POSNR SEQNO CNGDATE CNGTIME CNGUSER REMAK
            INTO  CORRESPONDING FIELDS OF TABLE IT_ZSD012_002
            FROM  ZSD012_002
            WHERE VBELN EQ WA_ALLOCATION2-EBELN
            AND   POSNR EQ WA_ALLOCATION2-POSNR.
          IF SY-SUBRC = 0.
            SET PF-STATUS 'SD012_MENU2'.
            PERFORM WRITE_REMARKS.
            CALL SCREEN '1012' STARTING AT 5 5 .
          ELSE.
            CALL SCREEN 1012 STARTING AT 5 5 .
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " CREATE_REMARKS

    Hi,
    Try this
    Create a PF Status,say you have created 'SD012_MENU2'.
    In this PF STATUS create one button.
    Now while using call function 
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = sy-repid
         i_callback_pf_status_set          = 'SD012_MENU2'
         i_callback_user_command           = 'C_USER_COMMAND'
         is_layout                         = er_layout
         it_fieldcat                       = t_fieldcat
        TABLES
          t_outtab                          = t_final
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    FORM SD012_MENU2 USING p_extab TYPE slis_t_extab.
      SET PF-STATUS 'SD012_MENU2'.
    ENDFORM. " STATUS
    FORM c_user_command  USING r_ucomm LIKE sy-ucomm
                                                    rs_selfield TYPE slis_selfield.
      IF  sy-ucomm EQ 'POST'.  here post is button name
      PERFORM something.     here you want to go to some other screen.
      ENDIF.
    ENDFORM.

  • About User command & SET Parameter

    Hi All,
    What is the User Command? What it means? And how to handle in normal and ALV Report..?
    What is happening when I write the statement like below.
    SET PARAMETER ID 'TAB' FIELD 'ZPCA' ? What is the purpose of set parameter in the program..?
    Akshitha.

    Hi,
    see this prog..
    sy-ucomm is for doing the functions what the user wishes to do at that particular event. You use it in menus and other place . this mainly in using <pfstatus>
    USER COMMAND will perform actions on radiobutton click, or wen puhbutton is cliketced
    in this if the user clicks a push button, see bold letters..in the prog
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 10(15) lb1.
    PARAMETERS : a(10).
    SELECTION-SCREEN COMMENT 40(15) lb2.
    PARAMETERS : b(10).
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN PUSHBUTTON 10(10) lb3 USER-COMMAND pb1.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN PUSHBUTTON /10(10) lb5 USER-COMMAND pb3.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN PUSHBUTTON /10(10) lb4 USER-COMMAND pb2.
    *SELECTION-SCREEN BEGIN OF SCREEN 200 AS WINDOW TITLE T2.
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    PARAMETERS : ch1 AS CHECKBOX, ch2 AS CHECKBOX, ch3 AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2.
    PARAMETERS : rb1 RADIOBUTTON GROUP a,
                 rb2 RADIOBUTTON GROUP a,
                 rb3 RADIOBUTTON GROUP a.
    SELECTION-SCREEN END OF BLOCK b2.
    *SELECTION-SCREEN END OF SCREEN 200.
    INITIALIZATION.
      lb1 = 'ENTER A VALUE'.
      lb2 = 'ENTER B VALUE'.
      lb3 = 'DISPLAY'.
      lb4 = 'EXIT'.
      lb5 = 'CALL NEXT'.
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
        WHEN 'PB1'.
          LEAVE TO LIST-PROCESSING.
          WRITE : a, b.
          IF ch1 = 'X'.
            LEAVE TO LIST-PROCESSING.
            WRITE 'FIRST CHECKBOX IS SELECTED'.
          ENDIF.
          IF ch2 = 'X'.
            WRITE :/ 'SECOND CHECKBOX IS SELECTED'.
          ENDIF.
          IF ch3 = 'X'.
            WRITE :/ 'THIRD CHECKBOX IS SELECTED'.
          ENDIF.
          IF rb1 = 'X'.
            WRITE :/ 'FIRST RADIOBUTTON'.
          ELSEIF rb2 = 'X'.
            WRITE :/ 'SECOND RADIOBUTTON'.
          ELSEIF rb3 = 'X'.
            WRITE :/ 'THIRD RADIOBUTTON'.
          ENDIF.
        WHEN 'PB2'.
          LEAVE PROGRAM.
        WHEN 'PB3'.
          CALL SELECTION-SCREEN 200.
      ENDCASE.
    SET parameter :
    this is used to pass a value from one report a memory n from there we can use in the same report or the other report..
    SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another.  Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens
    Hope this helps u,
    Regards,
    Arunsri
    Edited by: Arunsri on Mar 11, 2008 11:52 AM

  • How to use both At USER-COMMAND and AT LINE-SELECTION in one abap program

    I am trying out a program where I need to use both line selection and user command events in one program. Suggest me how to do it.

    USE the okcode 'PICK'. (I mean add a 'PICK' in the GUI staus or the menu.) When ever u use both the events u have to use PICK to trigger the at line selection.
    U just need to add the PICK in the GUI status and ofcourse write code in the program.
    AT LINE-SELECTION.
    CASE sy-ucomm.
    WHEN 'PICK'.
    write:/ 'HELLO WORLD'.
    ENDCASE.

  • Use of at PF AND AT USER COMMAND EVENTS

    can i know the use of at pf and at usercommand

    hi,
    pf-status.
    for example : i am displaying ouput using function module 'REUSE_ALV_LIST_DISPLAY' when u see the output of this there u will find standarad pf status. if requirement is not necesary to display all these buttons means u will create ur own pf status and keep required buttons insideit.
    at user command :
    for example u have one button in ur pf status : select_all
    when u click this button necessary action has to perform. this code u will write under this command.
    hope u got the point.
    thanks,
    maheedhar.t

  • How to use 'AT PF' and 'AT USER-COMMAND' is used in reports...?

    HI,
    I AM SIVA,
    I AM NEW TO ABAP,
    I HAVE NOT CLARY ON 'AT PF' AND 'AT USER-COMMAND'....
    I DONT KNOW HOW AND WHEN TO USE ABOVE TWO EVENTS..
    SEND ME ANY SOURCE CODE OF USING ABOVE TWO EVENTS...
    IF U KNOW THE ANSWER...
    PLEASE SEND ME...
    REGUARS,
    SIVA.

    hi ,
    the on;y diference b/w At User-command and PF Status is that in At user-command we create a menu but in PF Ststus we define the f1 to f12 keys.
    eg; for at User Command.
    let us take tables such as mara, marc, mard.
    data : itab like mara occurs 0 with header line,
             jtab like marc occurs 0 with hl,
             ktab like mard occurs 0 with hl.
    select-options matnr for mara-matnr.
    initialization.
    matnr-low = '0'.
    amtnr-high = '1000'.
    matnr-sign = 'i'.
    matnr-option = 'bt'.
    append matnr.
    start-of-selection.
    write :/ 'menu bar creation'.
    set Pf Status 'MENU'.
    at user-command.
    case sy-ucomm.
    when 'mm01'.
    select * from mara into table itab where matnr in matnr.
    loop at itab.
    write :/ itab-matnr, itab-ernam, itab-ersda, itab-mbrsh.
    hide itab-matnr.
    endloop.
    when 'mm02'.
    select * from marc into table jtab where matnr = itab- matnr.
    loop at jtab.
    write :/ jtab-matnr, jtab-werks, itab-pstat.
    hide itab-matnr.
    hide jtab-werks.
    endloop.
    when 'mm03'.
    select * from mard into table ktab where matnr  = itab- matnr werks = jtab-werks.
    loop at ktab.
    write :/ ktab-matnr, ktab-werks, ktab-lgort.
    endloop.
    when 'mm04'.
    do 10 times.
    write :/ 'hi'.
    enddo.
    when 'mm05'.
    write "/ 'u pressed enter'.
    endcase.
    now go to set pf status 'menu' n double click on it.
    then press yes.
    then again yes.
    then u will find 6 tabstrips tht r blank in menu bar.
    now go to the first tabstrip n name it as table...then in the code give mm01 n text as mara.then again give code as mm02 n text same with mm03.
    then go to second tabstrip n give details n then i nt tht u give mm04 as code n text as hi.then mm05 as code n text....save check n activate,
    then go to function keys n thre u will find save back error tabstrips name them s,c,activate.
    then come back n activate.
    then same thing is wit pf but there is no menu bar creation for it n instead of when 'mm01' we will give at pf04, at pf05....
    one more thing we should always give pf keys from 04 as o1,o2,o3 r used help errors n activation.
    if  u found ur answer n if it is helpful to u then dont forget to reward with points,
    with regards,
    madhuri.

  • Using both at line-selection and at user-command

    hellow friends ,
    to use both  at line-selection and at user-command in the same report.

    Hello,
    U can do it like this.
    AT LINE-SELECTION.
      PERFORM at_line_selection.
    AT USER-COMMAND.
      PERFORM at_user_command.
    FORM AT_LINE_SELECTION.
      DATA: LV_CURSOR_FIELD(30).
      DATA: LV_MATNR TYPE MATNR.
      CLEAR H_UCOMM.
      GET CURSOR FIELD LV_CURSOR_FIELD.
      CASE LV_CURSOR_FIELD.
        WHEN 'PSPNR'.
          PERFORM LAGER_AN_PSP USING WA_MATNR-M1-RSNUM
                                     WA_MATNR-M1-RSPOS.
        WHEN 'PSPNR2'.
          H_UCOMM = 'PSPNR2'.
          IF NOT PSPNR2 IS INITIAL AND IT_VKBEL-VBELN CN '0123456789'.
            PERFORM LAGER_AN_PSP_VKBEL USING IT_VKBEL
                                             0
                                             PSPNR2
                                             H_MAKTX
                                             ' '.     "keine Blindbuchung
          ENDIF.
    ENDCASE.
    CASE SY-UCOMM.
        WHEN 'BACK_NEW'.
          PERFORM NEU_START USING 'X'.
        WHEN 'EXIT'.
          PERFORM NEU_START USING 'X'.
        WHEN 'CANC'.
          PERFORM NEU_START USING 'X'.
        WHEN 'CHECK'.
          PERFORM NEU_START USING SPACE.
    ENDCASE.
    Vasanth

  • I used a terminal command to show the Library in the User folder, and now the Finder is behaving erractically.  Can anyone tell me how to reverse the show library terminal command?

    I used a terminal command in Lion to show the LIbrary in the Users folder, and now the Finder is behaving erratically, hanging up and becoming almost paralyzed.  Can anyone tell me how to reverse the terminal command for show Library.  The command I used was:
    chflags nohidden ~/Library/

    Showing the Library folder will not cause the problem you've described. Nevertheless:
    chflags hidden ~/Library
    will hide the folder. To reveal the folder:
    chflags nohidden ~/Library
    Note, there is no "/" after Library.

  • What are the advantages/disadvantages of using the Form Command over Creating a User Form in VBA?

    I’m in the early stages of creating a spreadsheet that will require data entry into the worksheet. The worksheet could get to 1000s of rows, depending on the particular user.
    When I refer to the ‘Form Command’ I’m referring to the option of adding a Quick Access Tool bar button by selecting ‘more commands’, ‘all commands’, ‘Form…’
    My questions/concerns would be relating to ‘should I develop this spreadsheet with the Form Command or a User Form in VBA?
    Concerns/Questions:
    Deployment to other users
    Protecting worksheet cells so the user can only add records using the form command or the user form in vba. In other words, don’t allow users to edit cells that are not within the table structure of the sheet or add rows if they’re not using the form
    Data validation when entering data…
    Keith
    Keith Aul

    Hi,
    Both variants have pro's and cons. If you plan to use VBA you have to consider the deployment settings on other p.c.'s where you have to allow macro's where as a regular form doesn't have the need for that.
    That said the userform gives you much more control because the form command is not saved. it is simply a temporary form which you have to setup every time. It's perfect for data entry. If you are looking for data validation the userform is the one to go
    for. You also have the possibility to work on placements of the data entry.
    So if you are looking for speed and simplicity then go for the form command. If it is handling control you are after I'd go for a userform.
    Just my 2 cts
    Maurice
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. Thank You

  • ALV using LVC....User Commands

    Hai All..
    Can anyone explain how can we handle the user commands like single click or a double click in an ALV using LVC type-pool.
    Thanks in Advance,
    rama

    Hi,
    Check the demo programs BCALV_TEST_GRID_EVENTS and BCALV_TEST_FULLSCREEN_EVENTS.
    Regards,
    Sesh

Maybe you are looking for