SAPGUI for JAVA 7.00 rev 5 - ALV grid problem

Hello all,
I've created simple program using editable ALV grid to edit custom database table in the dictionary.
After upgrading to rev 5 I can't delete any row from the grid. After clicking the minus sign on the grid toolbar nothing happens. In the release note for the rev. 5 is written that protected rows can be no longer deleted. But I haven't written any code to protect any row in the grid.
When run on SAPGUI 7.00 rev 4 or SAPGUI for windows 7.10 it works.
Thanks for any help.

Hello Petr,
both in "BCALV_GRID_EDIT" and in "BCALV_GRID_VERIFY" which we use as testreports for editable ALV grid, I can select a line and delete it using the the "delete line" icon in the grid's toolbar running SAP GUI for Java 7.00 rev 5.
Can you somehow reproduce the issue with the mentioned reports (playing with the options)?
Otherwise we would need access to your custom program. Then it would be helpful if you could <a href="http://service.sap.com/message">create a message</a> on component BC-FES-JAV and make your system available to us.
Best regards
Rolf-Martin

Similar Messages

  • Copy values in ALV reports (cmd+Y/ctrl+Y) in SAPGUI for Java 7.00 rev.4?

    Hi all,
    I'm using SAPGUI for Java 7.00 rev.4 in Mac OSX.
    I use intensively ALV GRID reports. I do frequently need to copy multiple cells values from one column.
    In Windows GUI I do ctrl+Y, than select the area containing the cells and the values are copied in the clipboard.
    In Java GUI (OSX) but I cannot do cmd+Y on more cells of the same column!!!!!
    Any suggestion? Am I doing something wrong? Is it a known issue?
    Many thanks,
    Lorenzo

    Hello Lorenzo,
    you might have seen the release notes of SAP GUI for Java 7.10 rev 5 regarding the grid control.
    It has seen major changes (and improvements) in its core which have been a lot of work.
    The developer is now getting closer to the point where it is reasonable to implement add-on functionality like copying the content of multiple cells.
    It is planned for SAP GUI for Java 7.20, but it is not clear yet if it will be available also as part of a 7.10 revision.
    Best regards
    Rolf-Martin

  • Solaris SAPGUI for Java 7.10 rev 8 try  error JniAgiLibAdaptor. init

    i have a problem java sapgui.
    Launch the Sapgui and then try to connect to any one of the three choices and it should produce the following error.
    i am running this on a Solaris 10 32bit. This sam java SAPGUI runs fine when i boot into the windows xp pro. Hope this helps.
    gui version;
    SAPGUI for Java 7.10 rev 8 (java),
    no library (lib)
    (Version ID 071000040800)
    Mon Mar 30 10:34:24 MEST 2009
    uw1059, 710_REL, 1054563
    Java VM: Sun Microsystems Inc. Version 1.6.0_14
    OS: SunOS(x86) Version 5.10
    The version of Java being used is:
    java -version
    java version "1.5.0_16"
    Java(TM) Platform, Standard Edition for Business (build 1.5.0_16-b02)
    Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)
    Thank You,
    Ferhan
    JniAgiLibAdaptor.<init>: Cannot load JNI library
    details;
    java.lang.Exception: JniAgiLibAdaptor.<init>: Cannot load JNI library
    at: com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:29)
    at: com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:283)
    at: com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:297)
    at: com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:798)
    at: com.sap.platin.base.logon.GuiLogonFrame.doConnect(GuiLogonFrame.java:838)
    at: com.sap.platin.base.logon.GuiLogonFrame$SymListener.actionPerformed(GuiLogonFrame.java:443)
    at: javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at: javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at: javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at: java.awt.Component.processMouseEvent(Unknown Source)
    at: javax.swing.JComponent.processMouseEvent(Unknown Source)
    at: java.awt.Component.processEvent(Unknown Source)
    at: java.awt.Container.processEvent(Unknown Source)
    at: java.awt.Component.dispatchEventImpl(Unknown Source)
    at: java.awt.Container.dispatchEventImpl(Unknown Source)
    at: java.awt.Component.dispatchEvent(Unknown Source)
    at: java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at: java.awt.LightweightDispatcher.proc
    Attempt to load shared library
    /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so failed.
    The library file exists, so either the program has
    insufficient privileges to access the library or the library
    is not loadable by the shared object loader.
    Please recheck the system requirements for your operating
    system and make sure all required libraries are installed.
    details;
    ava.lang.UnsatisfiedLinkError: /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so: ld.so.1: java: fatal: /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so: wrong ELF data format: ELFDATA2MSB (Possible cause: endianness mismatch)
    at: java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at: java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at: java.lang.ClassLoader.loadLibrary(Unknown Source)
    at: java.lang.Runtime.load0(Unknown Source)
    at: java.lang.System.load(Unknown Source)
    at: com.sap.platin.r3.util.GuiJniLoader.loadPlatinLibrary(GuiJniLoader.java:56)
    at: com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:27)
    at: com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:283)
    at: com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:297)
    at: com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:798)
    at: com.sap.platin.base.logon.GuiLogonFrame.doConnect(GuiLogonFrame.java:838)
    at: com.sap.platin.base.logon.GuiLogonFrame$SymListener.actionPerformed(GuiLogonFrame.java:443)
    at: javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at: javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at: javax.swing.plaf.basic.BasicB

    > i am running this on a Solaris 10 32bit. This sam java SAPGUI runs fine when i boot into the windows xp pro. Hope this helps.
    >
    > gui version;
    > SAPGUI for Java 7.10 rev 8 (java),
    > no library (lib)
    > (Version ID 071000040800)
    > Mon Mar 30 10:34:24 MEST 2009
    > uw1059, 710_REL, 1054563
    > Java VM: Sun Microsystems Inc. Version 1.6.0_14
    > OS: SunOS(x86) Version 5.10
    The Java gui runs
    - on 64bit only
    - on SPARC hardware only (not on x86)
    If you execute the command
    file /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so
    you'll see that the library is just for SPARC.
    Markus

  • SAPGUI for Java 6.40 rev 2 available

    Hi all,
    SAPGUI for Java 6.40 rev 2 is now available at
    ftp://ftp.sap.com/pub/sapgui/java/640r2/
    This version includes the bugfix for the problem with Single Sign On, which was discussed in this forum before.
    Release notes can be found in the installers and the separate manual.
    Please refer to OSS note 689063 for supported platforms.
    (http://www.service.sap.com/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012003146900000299152003)
    Best regards
    Rolf-Martin Woersinger
    SAPGUI for Java project lead

    Hello,
    it might have been preferable to create a new thread for this.
    smartforms use ActiveXes, which are not there in SAP GUI for Java (see also transaction classification). The content of the message shown by the transaction is questionable however. What it wants to say is that this functionality is only available with SAP GUI for Windows.
    Best regards
    Rolf-Martin

  • SAPGUI for Java Support on Mac 10.4

    Hi,
    I am using Mac OS 10.4 Tiger version with SAP GUI 6.4 rev6.
    when I use SAPGUI 6.4 for eCATT Scripts, I  am not able to append or insert new rows in the Parameter list.
    Although, all the commands/pushbuttons are working as they should. On pressing the Append button, a line is inserted in the parameter list, I can add new parameter also. But the problem comes while saving the changes. The system message shows that test script saved successfully, but the changes are not reflected in the parameter list.
    The details about the hardware/ software am using are:
    Hardware:
    Machine Name:     iMac
    Machine Model:     PowerMac6,1
    CPU Type:     PowerPC G4  (3.3)
    Software:
    System Version:     Mac OS X 10.4 (8A428)
    Kernel Version:     Darwin 8.0.0
    SAPGUI for JAVA:
    SAPGUI for Java 6.40 rev 6
    (Version ID 064000040600)
    Build: Wed Dec 21 13:01:37 MET 2005 on uw1059
    Java VM: Apple Computer, Inc. Version 1.4.2-54
    OS: Mac OS X(ppc) Version 10.4
    I would like to know if anyone else has faced the same problem with this configuration?
    Do I need to change my configuration?
    I am currently using SAPGUI for Java 6.3 rev8 for my eCATT scripting without the above problem.
    One more problem is that am no more able to do recording through SAPGUI command in eCATT. OSS note 454939 says that SAPGUI for Java does not support eCATT. Use SAPGUI for windows for SAPGUI recordings.
    Does that mean SAPGUI recording in eCATT will not be supported for SAPGUI for Java any further?

    Hi,
    I am also need this Software.
    My PC Macbook 20010.
    Thak`s
    Rodolfo.

  • ANN: SAP GUI for Java 7.00 rev 5 available for download

    Hi all,
    SAP GUI for Java 7.00 rev 5 is now available at <b>http://service.sap.com/sapgui-java</b>.
    In case you are not registered on service.sap.com, you can alternatively download it from ftp://ftp.sap.com/pub/sapgui/java/700r5.
    This revision solves issues in the dropdown listbox, grid and table control. Also an issue with FileDownload is fixed. For more information, please refer to the release notes.
    <a href="https://service.sap.com/sap/support/notes/954572">Note 954572</a> lists the supported platforms.
    Best regards
    Rolf-Martin

    hi Mr.Rolf-Martin,
       this is kumar writing in regards with the sap gui for java 7.00 rev 4.....i found ur link very helpful ....thanks for the link...and i have a problem in creating a new connectioin ....i have gone thru some of the forum replies and pdf's ....but i could not set up the new connection ....
    can u plz help me in creating a new connection .....
    the rev4.jar file was successfully installed.....
    and whats are the next steps .....
    any help appriciated thanks
    regards
    kumar

  • ANN: SAP GUI for Java 7.00 rev 4 available for download

    Hi all,
    SAP GUI for Java 7.00 rev 4 is now available at <b>http://service.sap.com/sapgui-java</b>.
    In case you are not registered on service.sap.com, you can alternatively download it from ftp://ftp.sap.com/pub/sapgui/java/700r4.
    This revision solves various issues in the textedit, grid and tree control. For more information, please refer to the release notes.
    <a href="https://service.sap.com/sap/support/notes/954572">Note 954572</a> lists the supported platforms.
    Best regards
    Rolf-Martin

    hi Mr.Rolf-Martin,
       this is kumar writing in regards with the sap gui for java 7.00 rev 4.....i found ur link very helpful ....thanks for the link...and i have a problem in creating a new connectioin ....i have gone thru some of the forum replies and pdf's ....but i could not set up the new connection ....
    can u plz help me in creating a new connection .....
    the rev4.jar file was successfully installed.....
    and whats are the next steps .....
    any help appriciated thanks
    regards
    kumar

  • ANN: SAP GUI for Java 7.00 rev 3 available for download

    Hi all,
    SAP GUI for Java 7.00 rev 3 is now available at <b>http://service.sap.com/sapgui-java</b>.
    In case you are not registered on service.sap.com, you can alternatively download it from ftp://ftp.sap.com/pub/sapgui/java/700r3.
    This revision solves various issues in the table, grid and tree control. For more information, please refer to the release notes.
    <a href="https://service.sap.com/sap/support/notes/954572">Note 954572</a> lists the supported platforms.
    In case of still using a version of SAP GUI for Java 6.40, please upgrade to the new version because SAP GUI for Java 6.40 is no longer supported.
    Best regards
    Rolf-Martin

    hi Mr.Rolf-Martin,
       this is kumar writing in regards with the sap gui for java 7.00 rev 4.....i found ur link very helpful ....thanks for the link...and i have a problem in creating a new connectioin ....i have gone thru some of the forum replies and pdf's ....but i could not set up the new connection ....
    can u plz help me in creating a new connection .....
    the rev4.jar file was successfully installed.....
    and whats are the next steps .....
    any help appriciated thanks
    regards
    kumar

  • ANN: SAP GUI for Java 7.00 rev 6 available for download

    Hi all,
    SAP GUI for Java 7.00 rev 6 is now available at <b>http://service.sap.com/sapgui-java</b>.
    In case you are not registered on service.sap.com, you can alternatively download it from ftp://ftp.sap.com/pub/sapgui/java/700r6.
    Please refer to the release notes for the list of bug-fixes.
    <a href="https://service.sap.com/sap/support/notes/954572">Note 954572</a> lists the supported platforms.
    Best regards
    Rolf-Martin

    hi Mr.Rolf-Martin,
       this is kumar writing in regards with the sap gui for java 7.00 rev 4.....i found ur link very helpful ....thanks for the link...and i have a problem in creating a new connectioin ....i have gone thru some of the forum replies and pdf's ....but i could not set up the new connection ....
    can u plz help me in creating a new connection .....
    the rev4.jar file was successfully installed.....
    and whats are the next steps .....
    any help appriciated thanks
    regards
    kumar

  • SAPGUI for JAVA error message "wrong logon langage!

    Hello,
    We are testing SAPGUI 7.10 on Linux
    but we have some problem when we want to connect to operation server and it works with other servers like development server.
    The error message is
    "Wrong longon language!
    This language is not allowed for this PC!
    You will be logged off!"
    All servers are in same kernel package 4.6D
    Version SAPGUI for Java is 7.10 rev 1 & rev 3
    OS SUSE 2.6.16.46-0.14
    String connection: /H/servername/S/3200
    Please help me!

    I try with an other PC but i have the same problem.
    In SM21, I didn't see error log of my logon test.
    I have the same language installed in all servers, i saw in SMLT but i think there is a conflict between language in the PC and the server.
    That is strange, it's worked with all server wich are not in cluster.
    also , i tried to connect to servers wich are in cluster with this connection string : conn:/M/servername/S/3600/Gservergroup but i have the same problem.
    I tried to connect to AS directly but i have the problem again.
    I don't understand what its means SM21 t-code.
    Thanks a lot for your help

  • ANN: SAP GUI for Java 7.10 rev 10 available for download

    Hi all,
    SAP GUI for Java 7.10 rev 10 is now available at
    <b>SAP GUI Family</b> and
    ftp://ftp.sap.com/pub/sapgui/java/710r10
    <b>Enhancements and New Features</b>
    Support for new OS versions: openSUSE 11.1
    Calendar Control has been completely rewritten.
    <b>Bug fixes:</b>
    Please refer to the release notes part of the installer.
    Best regards
    Rolf-Martin

    hi Mr.Rolf-Martin,
       this is kumar writing in regards with the sap gui for java 7.00 rev 4.....i found ur link very helpful ....thanks for the link...and i have a problem in creating a new connectioin ....i have gone thru some of the forum replies and pdf's ....but i could not set up the new connection ....
    can u plz help me in creating a new connection .....
    the rev4.jar file was successfully installed.....
    and whats are the next steps .....
    any help appriciated thanks
    regards
    kumar

  • ANN: SAP GUI for Java 7.10 rev 8 available for download

    Hi all,
    SAP GUI for Java 7.10 rev 8 is now available at
    <b>SAP GUI Family</b> and
    ftp://ftp.sap.com/pub/sapgui/java/710r8
    <b>Enhancements and New Features</b>
    Support for new OS versions: openSUSE 11.0
    Applet: A <b>new certificate</b> has been used to sign the product, because the previous is valid only until April 1, 2009. 
    <b>Bug fixes:</b>
    Please refer to the release notes part of the installer.
    Best regards
    Rolf-Martin

    hi Mr.Rolf-Martin,
       this is kumar writing in regards with the sap gui for java 7.00 rev 4.....i found ur link very helpful ....thanks for the link...and i have a problem in creating a new connectioin ....i have gone thru some of the forum replies and pdf's ....but i could not set up the new connection ....
    can u plz help me in creating a new connection .....
    the rev4.jar file was successfully installed.....
    and whats are the next steps .....
    any help appriciated thanks
    regards
    kumar

  • Deactivate the double click/ hot spot for a particular row in alv grid.

    Hello,
       As per a certain condition how to deactivate the double click/ hot spot for a particular row in alv grid.
    Regards,
    Saroj

    where u define layout there is a field hotspot.like
    data: var.
    if con is true
    var = 'X'. (show hotspot)
    else.
    var = ' '. (deactive hotspot)
    elseif ws_fieldcat-fieldname = 'DMBTR'
                    AND ws_fieldcat-tabname = 'T_MTAB'.
          ws_fieldcat-do_sum = C_X.
          <b>ws_fieldcat-hotsopts = var.</b>
          MODIFY Wt_fieldcat FROM ws_fieldcat
                  TRANSPORTING   DO_SUM.
    It is helpful for u. if any problen send me ur coding i will change it.
    Regards
    Manish Kumar

  • Total for a Numeric field in ALV Grid display

    Hi all,
    I am not getting the Total for a Numeric field in ALV Grid output. What might be the problem.
    Regards,
    Balavardhan.K

    Check this code for subtotals and totals..
    REPORT ZYFI_REPT007
           NO STANDARD PAGE HEADING
           LINE-SIZE 300
           LINE-COUNT 50
           MESSAGE-ID ZYFI.
    TABLES : COOI, " Commitments Management: Line Items
             LFA1,                         " Vendor master (general section)
             VBEP,
             RKPLN.
          TABLE TYPES AND INTERNAL TABLES                                *
    DATA : BEGIN OF TYP_COOI ,
           OBJNR LIKE COOI-OBJNR,
           SAKTO LIKE COOI-SAKTO,
           MEGBTR LIKE COOI-MEGBTR,
           MEINH LIKE COOI-MEINH,
           WKGBTR LIKE COOI-WKGBTR,
           REFBN LIKE COOI-REFBN,
           RFPOS LIKE COOI-RFPOS,
           SGTXT LIKE COOI-SGTXT,
           BUDAT LIKE COOI-BUDAT,
           LIFNR LIKE COOI-LIFNR,
           END OF TYP_COOI.
    DATA : BEGIN OF TYP_LFA1 ,
            LIFNR LIKE LFA1-LIFNR,
            NAME1 LIKE LFA1-NAME1,
           END OF TYP_LFA1.
    DATA : BEGIN OF IT_OUTTAB OCCURS 0,
             OBJNR LIKE COOI-OBJNR,
             SAKTO LIKE COOI-SAKTO,
             MEGBTR LIKE COOI-MEGBTR,
             MEINH LIKE COOI-MEINH,
             WKGBTR LIKE COOI-WKGBTR,
             REFBN LIKE COOI-REFBN,
             RFPOS LIKE COOI-RFPOS,
             SGTXT LIKE COOI-SGTXT,
             BUDAT LIKE COOI-BUDAT,
             LIFNR LIKE COOI-LIFNR,
             NAME1 LIKE LFA1-NAME1,
           END OF IT_OUTTAB.
    DATA : IT_COOI LIKE TYP_COOI OCCURS 0 WITH HEADER LINE,
           IT_LFA1 LIKE TYP_LFA1 OCCURS 0 WITH HEADER LINE.
    *-- ALV Declarations
    TYPE-POOLS SLIS.
    DATA: IT_EVENTS            TYPE SLIS_T_EVENT,
          GS_EVENT             TYPE SLIS_ALV_EVENT,
          wa_fldcat            type slis_fieldcat_alv.
    DATA: S_LAYOUT TYPE SLIS_LAYOUT_ALV,
          GT_PRINT TYPE SLIS_PRINT_ALV.
    DATA: IT_FLDCAT       TYPE SLIS_T_FIELDCAT_ALV.
    DATA: IT_SORT             TYPE SLIS_T_SORTINFO_ALV.
    DATA: V_REPID LIKE SY-REPID.
                        SELECTION SCREEN                                 *
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_KOKRS FOR COOI-KOKRS NO-EXTENSION NO INTERVALS,
                                           " Controlling Area
                     S_BUKRS FOR COOI-BUKRS NO-EXTENSION NO INTERVALS,
                                           " Company code
                     S_GJAHR FOR COOI-GJAHR NO-EXTENSION NO INTERVALS,
                                           " Fiscal Year
                     S_OBJNR FOR RKPLN-AUFNR MATCHCODE OBJECT ORDE,
                                                            " Internal order
                     S_SAKTO FOR COOI-SAKTO MATCHCODE OBJECT KART,
                                                              " Cost Element
                     S_BUDAT FOR COOI-BUDAT, " Debit Date
                     S_LIFNR FOR COOI-LIFNR. " Vendor
    SELECTION-SCREEN END OF BLOCK B1.
           S T A R T   O F   S E L E C T I O N                           *
    START-OF-SELECTION.
    *-- Read data
      PERFORM GET_DATA.
           E N D   O F   S E L E C T I O N                               *
    END-OF-SELECTION.
    *-- Process the data and prepare the output data
      PERFORM CALCULATE_FINAL_INFO.
    *--Display Report output
      PERFORM DISPLAY_REPORT.
          FORM CALCULATE_FINAL_INFO                                     *
        Process the data and prepare final internal table               *
    FORM CALCULATE_FINAL_INFO.
      DATA : L_OBJNR LIKE COOI-OBJNR.
      SORT IT_LFA1 BY LIFNR.
      DELETE ADJACENT DUPLICATES FROM IT_LFA1 COMPARING LIFNR.
      LOOP AT IT_COOI.
        L_OBJNR = IT_COOI-OBJNR+2(20).
        SHIFT L_OBJNR LEFT DELETING LEADING '0'.
        IF L_OBJNR IN S_OBJNR.
          READ TABLE IT_LFA1 WITH KEY LIFNR  = IT_COOI-LIFNR.
          IF SY-SUBRC EQ 0.
            IT_OUTTAB-NAME1 = IT_LFA1-NAME1.
          ENDIF.
          MOVE-CORRESPONDING IT_COOI TO IT_OUTTAB.
          CLEAR IT_OUTTAB-OBJNR.
          IT_OUTTAB-OBJNR = L_OBJNR.
          APPEND IT_OUTTAB.
          CLEAR IT_OUTTAB.
          CLEAR IT_LFA1.
          CLEAR L_OBJNR.
        ENDIF.
      ENDLOOP.
    ENDFORM.
    *&      Form  GET_DATA
         Fetch the Data from the table COOI and LFA1
    FORM GET_DATA.
      SELECT OBJNR
            SAKTO
            MEGBTR
            MEINH
            WKGBTR
            REFBN
            RFPOS
            SGTXT
            BUDAT
            LIFNR
            FROM COOI
            INTO TABLE IT_COOI
            WHERE   BUDAT IN S_BUDAT
            AND LIFNR IN S_LIFNR
            AND KOKRS IN S_KOKRS
            AND BUKRS IN S_BUKRS
            AND GJAHR IN S_GJAHR
            AND SAKTO IN S_SAKTO.
      IF SY-SUBRC EQ 0 .
    Get the Vendor name from LFA1
        SELECT LIFNR
               NAME1
               FROM LFA1
               INTO TABLE IT_LFA1
               FOR ALL ENTRIES IN IT_COOI
               WHERE LIFNR EQ IT_COOI-LIFNR.
      ELSE.
        MESSAGE I999 WITH TEXT-013.
      ENDIF.
    ENDFORM.                               " GET_DATA
    *&      Form  DISPLAY_REPORT
           Display the output
    FORM DISPLAY_REPORT.
      PERFORM BUILD_CATALOG.
      PERFORM FRM_PREPARE_EVENT_LIST TABLES IT_EVENTS.
      IF NOT IT_OUTTAB[] IS INITIAL.
        CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
             EXPORTING
                  I_CALLBACK_PROGRAM      = V_REPID
                  I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
                  IT_FIELDCAT             = IT_FLDCAT
                  IT_SORT                 = IT_SORT
                  IT_EVENTS               = IT_EVENTS
             TABLES
                  T_OUTTAB                = IT_OUTTAB
             EXCEPTIONS
                  PROGRAM_ERROR           = 1
                  OTHERS                  = 2.
      ELSE.
        MESSAGE I999 WITH TEXT-013.
      ENDIF.
    ENDFORM.                               " DISPLAY_REPORT
    *&      Form  BUILD_CATALOG
          Build the Field catalog for the ALV Report
    FORM BUILD_CATALOG.
      DATA: V_INDEX LIKE SY-TABIX.
      V_REPID = SY-REPID.
      DATA: LS_SORT TYPE SLIS_SORTINFO_ALV.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                I_PROGRAM_NAME         = V_REPID
                I_INTERNAL_TABNAME     = 'IT_OUTTAB'
                I_INCLNAME             = V_REPID
           CHANGING
                CT_FIELDCAT            = IT_FLDCAT
           EXCEPTIONS
                INCONSISTENT_INTERFACE = 1
                PROGRAM_ERROR          = 2
                OTHERS                 = 3.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE IT_FLDCAT WITH KEY FIELDNAME = 'WKGBTR'
                             TABNAME = 'IT_OUTTAB' INTO WA_FLDCAT.
      IF SY-SUBRC  EQ 0.
        WA_FLDCAT-DO_SUM  = 'X'.
        MODIFY IT_FLDCAT FROM WA_FLDCAT INDEX SY-TABIX.
      ENDIF.
      READ TABLE IT_FLDCAT WITH KEY FIELDNAME = 'OBJNR'
                                TABNAME =  'IT_OUTTAB' INTO WA_FLDCAT.
      IF SY-SUBRC EQ 0.
         WA_FLDCAT-SELTEXT_L = 'Order'.
         WA_FLDCAT-COL_POS = 1.
         WA_FLDCAT-DDICTXT = 'L'.
        MODIFY IT_FLDCAT FROM WA_FLDCAT INDEX SY-TABIX.
      ENDIF.
      LS_SORT-FIELDNAME = 'OBJNR'.
      LS_SORT-SPOS      = 1.
      LS_SORT-UP        = 'X'.
      LS_SORT-SUBTOT    = 'X'.
      APPEND LS_SORT TO IT_SORT.
    ENDFORM.                               " BUILD_CATALOG
    *&      Form  FRM_PREPARE_EVENT_LIST
          Build the Events
    FORM FRM_PREPARE_EVENT_LIST TABLES IT_EVENTS TYPE SLIS_T_EVENT.
      CLEAR GS_EVENT.
      GS_EVENT-NAME = SLIS_EV_TOP_OF_PAGE.
      GS_EVENT-FORM = 'TOP_OF_PAGE_REPORT'.
      APPEND GS_EVENT TO IT_EVENTS.
    ENDFORM.                               " FRM_PREPARE_EVENT_LIST
         TOP OF PAGE
    FORM TOP_OF_PAGE_REPORT.
      CALL FUNCTION 'Z_YREPORT_HEADER'
           EXPORTING
                DL_TITLE = SY-TITLE
                DL_REPID = SY-CPROG
                DL_LINSZ = SY-LINSZ
           EXCEPTIONS
                OTHERS   = 1.
    ENDFORM.                               " FRM_TOP_OF_PAGE_REPORT
    *&      Form  USER_COMMAND
      Drill Down Functionality to Call the Transaction ME23
    FORM USER_COMMAND USING    P_UCOMM    LIKE SY-UCOMM
                               P_SELFIELD TYPE SLIS_SELFIELD.
      DATA : L_INDEX LIKE SY-INDEX,
             L_REFBN LIKE COOI-REFBN.
      L_INDEX = P_SELFIELD-TABINDEX.       " holds the selected table index
      CLEAR L_REFBN.
      CASE P_UCOMM.
    *-- On Double Click
        WHEN '&IC1'.
          CLEAR L_REFBN.
    *-- Read the Current Line
          READ TABLE IT_OUTTAB INDEX L_INDEX.
          IF SY-SUBRC EQ 0.
            L_REFBN = IT_OUTTAB-REFBN.
            IF NOT L_REFBN IS INITIAL.
    *-- Set the BES Paramater Id to the Current line Purchase Order Number
              SET PARAMETER ID 'BES' FIELD L_REFBN.
    *-- Call the Transaction Purchase Order Display with the above PO Number
              CALL TRANSACTION 'ME23' AND SKIP FIRST SCREEN.
            ENDIF.
          ELSE.
            MESSAGE E999 WITH TEXT-014.
          ENDIF.
      ENDCASE.
    ENDFORM.                               " USER_COMMAND

  • How to disable sorting for some columns in a ALV GRID?

    Hi i have requirement where I have to disable sorting for some columns in a ALV GRID. i am using REUSE_ALV_GRID_DISPLAY function module.
    Can anybody help me. how to acieve this? Any code snippets will really be appreciated.

    Hi,
    I have tried this but not completely successful. I think this can be done using the OOPS method.
      DATA: it_event_exit TYPE  slis_t_event_exit.
      DATA: w_exit TYPE slis_event_exit.
      w_exit-ucomm = '&ODN'.
      w_exit-before = 'X'.
      CLEAR w_exit-after.
      APPEND w_exit TO it_event_exit.
      w_exit-ucomm = '&OUP'.
      w_exit-before = 'X'.
      CLEAR w_exit-after.
      APPEND w_exit TO it_event_exit.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program          = w_repid
          i_callback_top_of_page      = 'ALV_TOP_OF_PAGE'
          i_callback_html_top_of_page = 'ALV_HTML_TOP_OF_PAGE'
          i_callback_user_command     = 'USER_COMMAND'  <- User command form
          is_layout                   = wm_layout
          it_fieldcat                 = wt_fieldcat
          it_events                   = i_events
          it_event_exit               = it_event_exit    <- Need to fill
          it_sort                     = wt_sort
          i_default                   = 'X'
    Now you can capture this events in the user command
    FORM user_command  USING r_ucomm LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
      IF r_ucomm = '&OUP' and rs_selfield-SEL_TAB_FIELD = 'Your field name'.
      ENDIF.
    ENDFORM.                    "user_command
    In this form you will get the function code in 'r_ucomm' and the field selected for sorting in 'rs_selfield-SEL_TAB_FIELD'. But reseting 'r_ucomm' will not work.
    May be somebody else can give some help on this.
    But this will work if you follow the oop method.
    Please see this document for more info.
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an easy reference for alv grid control.pdf
    Thanks
    Vinod

Maybe you are looking for

  • Lenovo Model 17305 - No Vista Recovery CD

    Hi, I bought a Lenovo 17305 yesterday. I only received 2 cd's with general software and drivers with the notebook. I've looked on the notebook, but I don't see an option to create a recovery cd for Vista (Vista Home Premium). How can I create one? or

  • Re: Using double quotes with CellWrapper parameter on rwservlet

    I'm on 11.1.2 on Windows 2008 and I cannot for the life of me get a delimited report to generate with a double-quote cell wrapper. I've tried every suggestion that I can find, including the ones in this thread, but nothing seems to work. I reliably u

  • Reg editing alv in output mode

    Hi, Cud any one let me know how to edit alv ? im using fcat-edit = 'x' option in function module approach....but even then im not able to edit columns/fields....? how to edit columns/rows using function modules and OOPs methos in alv???? Thanks Jay

  • LaserJet P2055dn is not printing the last page

    Hello! Our LaserJet P2055dn prints all pages in a multipage document but not the last one. When a new document is sent to the printer, it first prints the final page of the previous document, then the new document (again without the last page). If a

  • Cannot enter event time in Calendar 6.0

    I recently updgraded to Mountain Lion, and when I try to enter a new event into Calendar (by double clicking on day, week or month and unchecking all day option), there is no option to enter the specific event time.  Also, Calendar is randomnly chang