ALV class include?

I wrote alv program as below.
i dont know where to put this below CLASS in dynpro
module. either PBO or PAI.
when i keep this in ordinary report it works fine.
but when i use in dynpro screen its not working.
could you pls suggest.
CLASS lcl_event_receiver DEFINITION DEFERRED.
DATA:
  go_grid TYPE REF TO cl_gui_alv_grid,
  go_custom_container TYPE REF TO cl_gui_custom_container,
  o_event_receiver TYPE REF TO lcl_event_receiver.
CLASS lcl_event_receiver DEFINITION.
  PUBLIC SECTION.
    METHODS:
     handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
       IMPORTING
       e_object e_interactive,
       handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
       IMPORTING e_ucomm.
ENDCLASS.
      CLASS lcl_event_receiver IMPLEMENTATION
CLASS lcl_event_receiver IMPLEMENTATION.
  METHOD handle_toolbar.
Event handler method for event toolbar.
    CONSTANTS:
Constants for button type
      c_button_normal           TYPE i VALUE 0,
      c_menu_and_default_button TYPE i VALUE 1,
     c_menu                    TYPE i VALUE 2,
      c_separator               TYPE i VALUE 3,
      c_radio_button            TYPE i VALUE 4,
      c_checkbox                TYPE i VALUE 5,
      c_menu_entry              TYPE i VALUE 6.
    DATA:
        ls_toolbar  TYPE stb_button.
  Append seperator to the normal toolbar
    CLEAR ls_toolbar.
    MOVE c_separator TO ls_toolbar-butn_type..
    APPEND ls_toolbar TO e_object->mt_toolbar.
  Append a new button that to the toolbar. Use E_OBJECT of
  event toolbar. E_OBJECT is of type CL_ALV_EVENT_TOOLBAR_SET.
  This class has one attribute MT_TOOLBAR which is of table type
  TTB_BUTTON. The structure is STB_BUTTON
    CLEAR ls_toolbar.
    MOVE 'REFRESH'  TO ls_toolbar-function.
    MOVE  icon_REFRESH   TO ls_toolbar-icon.
    MOVE 'Change flight' TO ls_toolbar-quickinfo.
    MOVE 'Refresh'       TO ls_toolbar-text.
    MOVE ' '             TO ls_toolbar-disabled.
    APPEND ls_toolbar    TO e_object->mt_toolbar.
  ENDMETHOD.
  METHOD handle_user_command.
  Handle own functions defined in the toolbar
    CASE e_ucomm.
      WHEN 'REFRESH'.
Read data from table SFLIGHT
       SELECT * FROM sflight INTO TABLE gi_sflight.
      CALL METHOD go_grid->refresh_table_display.
     CALL METHOD cl_gui_cfw=>flush.
LEAVE TO SCREEN 0.
    ENDCASE.
  ENDMETHOD.
ENDCLASS.
*&      Module  STATUS_0300  OUTPUT
      text
MODULE STATUS_0300 OUTPUT.
Create objects
     IF go_custom_container IS INITIAL.
       CREATE OBJECT go_custom_container
         EXPORTING container_name = 'ZCUSTOM'.
       CREATE OBJECT go_grid
         EXPORTING
         i_parent = go_custom_container.
       CREATE OBJECT o_event_receiver.
       SET HANDLER o_event_receiver->handle_user_command FOR go_grid.
       SET HANDLER o_event_receiver->handle_toolbar FOR go_grid.
       Perform Loaddata.
     ENDIF.
ENDMODULE.                 " STATUS_0300  OUTPUT
FORM Loaddata.
Read data from table SFLIGHT
       SELECT * FROM sflight INTO TABLE gi_sflight.
Load data into the grid and display them
       CALL METHOD go_grid->set_table_for_first_display
       EXPORTING i_structure_name = 'SFLIGHT'
       CHANGING  it_outtab        = gi_sflight.
       CALL METHOD go_grid->set_toolbar_interactive.
ENDFORM.

am sorry,I have put the real code below.
I commented all Class and event methods.
i am passing date from before screen to this grid screen by name IMPODAY.
when first time i select date and pass to query,query works out and displaying well.
when i get back to original screen and again select different date
its giving previous display itself.(not getting new query output.)
i debugged the program till the select query internal table its working fine
even in internal table i am holding the values but its not displaying
in GRID. I am wondering why.
MODULE REPORTSTATUS_PBO200 OUTPUT.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
  EXPORTING
   I_STRUCTURE_NAME             = 'ZMW0001'
  CHANGING
    CT_FIELDCAT                  = FIELDCATALOG_TMP
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.
PERFORM FIELDCATALOG_OPP.
   CREATE OBJECT G_CUSTOM_CONTAINER
           EXPORTING CONTAINER_NAME = G_CONTAINER.
    CREATE OBJECT GRID_REPORT
           EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
   PERFORM PREPARE_LAYOUT.
   PERFORM HIDE_TOOLBAR.
    SELECT * FROM ZMW0001
     INTO TABLE SDYN_ITAB WHERE IMPORTDAY = IMPODAY.
     SORT SDYN_ITAB BY STATUS.
    CALL METHOD GRID_REPORT->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
              it_toolbar_excluding = lt_toolbar_excluding
              is_layout            = ps_layout
    CHANGING  IT_FIELDCATALOG  = FIELDCATALOG
              IT_OUTTAB        = SDYN_ITAB
    EXCEPTIONS
     invalid_parameter_combination = 1
     program_error                 = 2
     too_many_lines                = 3
     others                        = 4.
ENDMODULE.

Similar Messages

  • ALV Class Double click event

    Hi All,
    I have created an alv report using alv class. I have handled the double click event in that i am calling transaction using row currenlty selected. But after doing subtotalling the list and then i double click a line it is passing wrong data.
    Points are awarded,
    Regards,
    Bharat Mistry
    Message was edited by: Bharat Mistry

    Hi Bharat,
    Read the internal table contents in double click event with e_row-index , then you will get the data of that particular row.
    check below code :
    local class to handle semantic checks
    CLASS lcl_event_receiver DEFINITION DEFERRED.
    DATA: g_event_receiver TYPE REF TO lcl_event_receiver.
    LOCAL CLASS Definition
    *§4.Define and implement event handler to handle event DATA_CHANGED.
    CLASS lcl_event_receiver DEFINITION.
      public section.
        METHODS:
          handle_double_click
                 FOR EVENT double_click OF cl_gui_alv_grid
                 IMPORTING e_row e_column.
    ENDCLASS.
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_double_click.
      read table gt_outtab index e_row-index into
    Regards
    Appana
    *Reward Points for helpful answers
    Message was edited by: L Appana

  • Not able to create a java class included in custom jar from script

    Hi,
    We need to call a third-party web service from within SAP Sourcing and so we have created and deployed a custom JAR. However I am not able to create any of the custom classes included in this object. I have created a simple JAR file having just a "Hello World" message and got our BASIS team to deploy this (they deployed using the steps mentioned in Installation Guide Section 4.2.4 - we are using Sourcing Wave 9). I have added the required import statement in my test script and included this line:
    HelloWorld test = new HelloWorld();
    When this script executes, it gives the error:
    Class:HelloWorld not found in namespace.
    Can you please give your suggestions on how to fix this error?
    Thanks,
    Gayathri

    The issue was fixed after including the custom jar in esourcing90/lib folder and redeploying

  • Doubt in alv classes program

    plz check the following code using class. i want to display the output. i have declared an instance called pav1. im getting short dump. wht i have to give in 'i_parent = ' int his case.
    DATA:PAV1 TYPE REF TO CL_GUI_ALV_GRID.
    tables:mara.
    data:begin of itab occurs 0,
         matnr like mara-matnr,
         mtart like mara-mtart,
         matkl like mara-matkl,
    end of itab.
    PARAMETERS: s_matnr LIKE mara-matnr.
    INTIALIZATION EVENT
      initialization.
      MOVE '38' TO S_MATNR.
    *move '38' to s_matnr-low.
    *append s_matnr.
    *move '679' to s_matnr-high.
    *append s_matnr.
    *AT SELECTION SCREEN EVENT.
    at selection-screen.
    IF S_MATNR NE '38'.
    MESSAGE i000.
    ENDIF.
    *START OF SELECTION EVENT
    start-of-selection.
    select matnr mtart matkl from mara into corresponding fields of table
    itab where matnr = s_matnr.
    IF SY-SUBRC NE 0.
    WRITE:/ 'SORRY'.
    ENDIF.
    *TOP OF PAGE EVENT
    top-of-page.
    write:/ 'TOP OF PAGE'.
    *END OF SELECTION EVENT
    END-OF-SELECTION.
    WRITE:/'SELECTION ENDED.'.
    create object pav1  exporting i_parent =  mara.
    CALL METHOD PAV1->set_table_for_first_display
      EXPORTING
       I_BUFFER_ACTIVE               =
       I_BYPASSING_BUFFER            =
       I_CONSISTENCY_CHECK           =
        I_STRUCTURE_NAME              = 'mara'
       IS_VARIANT                    =
       I_SAVE                        =
       I_DEFAULT                     = 'X'
       IS_LAYOUT                     =
       IS_PRINT                      =
       IT_SPECIAL_GROUPS             =
       IT_TOOLBAR_EXCLUDING          =
       IT_HYPERLINK                  =
       IT_ALV_GRAPHICS               =
       IT_EXCEPT_QINFO               =
      CHANGING
        it_outtab                     = itab[].
       IT_FIELDCATALOG               =
       IT_SORT                       =
       IT_FILTER                     =
    EXCEPTIONS
       INVALID_PARAMETER_COMBINATION = 1
       PROGRAM_ERROR                 = 2
       TOO_MANY_LINES                = 3
       others                        = 4
    IF sy-subrc ne 0.
    write:/ 'sorry u didnt call the method correctly'.
    ENDIF.

    You have to create a object for custom container for the class cl_gui_custom_container.Then you have to give the i_parent for the ALV class object as <custom container object>
    create object <custom container>
    create object <alv grid>
    importing i_parent = <custom container>.

  • Varient display in ALV Classes

    Hi
    I am using ALV Classes. I need to use varient for selection screen parameter. In this case, I need to pass group of values for this parameter. how to implement this requirement. Cud u pls suggest this.
    Regards,
    Naseer

    well when u enter the input once,
    go for save button,there they will ask to process in background,or like front,choose any one relently,the input will be saved as varient
    and will apper every time u come on selection screen
    rewards if useful.

  • Alv class

    CALL METHOD go_grid->set_table_for_first_display
    EXPORTING i_structure_name = 'SFLIGHT'
    CHANGING it_outtab = gi_sfligt
    iam new to alv class, plss help
    i want to know how will i get the class method go_grid?
    do i have to click on pattern?
    can anyone tell me the steps...to call the
    class method set_table_for_first_display?
    its urgent do reply

    Hai Chauhan
    Check the following Code
    REPORT ZALV_SALES_HEADER_DETAIL MESSAGE-ID Z50650(MSG) .
    TABLES
    TABLES: VBAK . "SALES DOCUMENT HEADER
    DATA OBJECTS DECLARATION
    DATA: IT_VBAK TYPE STANDARD TABLE OF ZVBAK_STRUC,
    IT_VBAP TYPE STANDARD TABLE OF ZVBAP_STRUC,
    GS_LAYOUT TYPE LVC_S_LAYO,
    GS1_LAYOUT TYPE LVC_S_LAYO,
    GRID TYPE REF TO CL_GUI_ALV_GRID,
    CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
    VBAK_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
    VBAP_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
    WA_VBAK LIKE LINE OF IT_VBAK,
    WA_VBAP LIKE LINE OF IT_VBAP,
    SPLITTER TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
    TOP_OF_PAGE_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
    GRID_VBAP TYPE REF TO CL_GUI_ALV_GRID,
    TOP_PAGE TYPE REF TO CL_DD_DOCUMENT,
    FLAG(1).
    *"EVENT RECIEVER CLASS DEFINITION
    CLASS LCL_EVENT_RECIEVER DEFINITION DEFERRED.
    DATA: OBJ_EVENT TYPE REF TO LCL_EVENT_RECIEVER.
    SELECTION-SCREEN
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.
    PARAMETERS: P_VBTYP LIKE VBAK-VBTYP DEFAULT 'C'.
    SELECTION-SCREEN: END OF BLOCK B1.
    CLASS DEFINITION AND DECLARATIONS
    CLASS LCL_EVENT_RECIEVER DEFINITION.
    PUBLIC SECTION.
    EVENTS:DOUBLE_CLICK,
    TOP_OF_PAGE.
    METHODS:HANDLE_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
    IMPORTING E_ROW .
    METHODS: HANDLE_TOP_OF_PAGE FOR EVENT TOP_OF_PAGE OF CL_GUI_ALV_GRID.
    ENDCLASS. "LCL_EVENT_RECIEVER DEFINITION
    CLASS LCL_EVENT_RECIEVER IMPLEMENTATION
    CLASS LCL_EVENT_RECIEVER IMPLEMENTATION.
    METHOD: HANDLE_DOUBLE_CLICK.
    READ TABLE IT_VBAK INDEX E_ROW-INDEX INTO WA_VBAK.
    PERFORM FETCH_ITEM_DETAILS USING WA_VBAK.
    PERFORM ALV_GRID.
    ENDMETHOD. "HANDLE_DOUBLE_CLICK
    METHOD: HANDLE_TOP_OF_PAGE.
    CALL METHOD TOP_PAGE->ADD_TEXT
    EXPORTING
    TEXT = 'SALES HEADER & ITEM DETAILS'.
    CALL METHOD TOP_PAGE->DISPLAY_DOCUMENT
    EXPORTING
    PARENT = TOP_OF_PAGE_CONTAINER.
    ENDMETHOD. "HANDLER_TOP_OF_PAGE
    ENDCLASS. "LCL_EVENT_RECIEVER IMPLEMENTATION
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN.
    IF S_VBELN IS NOT INITIAL.
    SELECT COUNT(*)
    FROM VBAK
    WHERE VBELN IN S_VBELN.
    IF SY-DBCNT = 0.
    MESSAGE E000 WITH 'NO TABLE ENTRIES FOUND FOR LOW KEY SPECIFIED'.
    ENDIF.
    ENDIF.
    START-OF-SELECTION.
    START-OF-SELECTION.
    PERFORM FETCH_SALES_HEADER_RECORD.
    PERFORM CREATE_CALL. "CREATION OF OBJECTS & CALLING METHODS
    END-OF-SELECTION.
    END-OF-SELECTION.
    *& Module STATUS_0100 OUTPUT
    text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'ZSTATUS'.
    SET TITLEBAR 'xxx'.
    ENDMODULE. " STATUS_0100 OUTPUT
    *& Form FETCH_SALES_HEADER_RECORD
    text
    --> p1 text
    <-- p2 text
    FORM FETCH_SALES_HEADER_RECORD .
    SELECT
    VBELN
    AUDAT
    VBTYP
    AUART
    AUGRU
    NETWR
    WAERK
    FROM VBAK
    INTO CORRESPONDING FIELDS OF TABLE IT_VBAK
    WHERE VBELN IN S_VBELN
    AND VBTYP = P_VBTYP.
    ENDFORM. " FETCH_SALES_HEADER_RECORD
    *& Form CREATE_CALL
    text
    --> p1 text
    <-- p2 text
    FORM CREATE_CALL .
    IF CUSTOM_CONTAINER IS INITIAL.
    CREATE OBJECT CUSTOM_CONTAINER
    EXPORTING
    PARENT =
    CONTAINER_NAME = 'CUSTOM_CONTAINER'
    STYLE =
    LIFETIME = lifetime_default
    REPID =
    DYNNR =
    NO_AUTODEF_PROGID_DYNNR =
    EXCEPTIONS
    CNTL_ERROR = 1
    CNTL_SYSTEM_ERROR = 2
    CREATE_ERROR = 3
    LIFETIME_ERROR = 4
    LIFETIME_DYNPRO_DYNPRO_LINK = 5
    OTHERS = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CREATE OBJECT SPLITTER
    EXPORTING
    TOP = 5
    PARENT = CUSTOM_CONTAINER
    ROWS = 3
    COLUMNS = 1
    EXCEPTIONS
    CNTL_ERROR = 1
    CNTL_SYSTEM_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.
    CALL METHOD SPLITTER->GET_CONTAINER
    EXPORTING
    ROW = 1
    COLUMN = 1
    RECEIVING
    CONTAINER = TOP_OF_PAGE_CONTAINER.
    CALL METHOD SPLITTER->GET_CONTAINER
    EXPORTING
    ROW = 2
    COLUMN = 1
    RECEIVING
    CONTAINER = VBAK_CONTAINER.
    CALL METHOD SPLITTER->GET_CONTAINER
    EXPORTING
    ROW = 3
    COLUMN = 1
    RECEIVING
    CONTAINER = VBAP_CONTAINER.
    CREATE OBJECT GRID
    EXPORTING
    I_SHELLSTYLE = 0
    I_LIFETIME =
    I_PARENT = VBAK_CONTAINER
    I_APPL_EVENTS = space
    I_PARENTDBG =
    I_APPLOGPARENT =
    I_GRAPHICSPARENT =
    I_NAME =
    EXCEPTIONS
    ERROR_CNTL_CREATE = 1
    ERROR_CNTL_INIT = 2
    ERROR_CNTL_LINK = 3
    ERROR_DP_CREATE = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    GS_LAYOUT-GRID_TITLE = 'SALES HEADER DETAILS.'(100).
    CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
    I_BUFFER_ACTIVE =
    I_BYPASSING_BUFFER =
    I_CONSISTENCY_CHECK =
    I_STRUCTURE_NAME = 'ZVBAK_STRUC'
    IS_VARIANT =
    I_SAVE =
    I_DEFAULT = 'X'
    IS_LAYOUT = GS_LAYOUT
    IS_PRINT =
    IT_SPECIAL_GROUPS =
    IT_TOOLBAR_EXCLUDING =
    IT_HYPERLINK =
    IT_ALV_GRAPHICS =
    IT_EXCEPT_QINFO =
    CHANGING
    IT_OUTTAB = IT_VBAK
    IT_FIELDCATALOG =
    IT_SORT =
    IT_FILTER =
    EXCEPTIONS
    INVALID_PARAMETER_COMBINATION = 1
    PROGRAM_ERROR = 2
    TOO_MANY_LINES = 3
    OTHERS = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    CREATE OBJECT OBJ_EVENT .
    SET HANDLER OBJ_EVENT->HANDLE_DOUBLE_CLICK FOR GRID.
    SET HANDLER OBJ_EVENT->HANDLE_TOP_OF_PAGE FOR GRID.
    CREATE OBJECT TOP_PAGE
    EXPORTING
    STYLE = 'ALV_GRID'
    CALL METHOD TOP_PAGE->INITIALIZE_DOCUMENT.
    CALL METHOD GRID->LIST_PROCESSING_EVENTS
    EXPORTING
    I_EVENT_NAME = 'TOP_OF_PAGE'
    I_DYNDOC_ID = TOP_PAGE.
    CALL SCREEN 100.
    ENDFORM. " CREATE_CALL
    *& Module USER_COMMAND_0100 INPUT
    text
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Form FETCH_ITEM_DETAILS
    text
    --> p1 text
    <-- p2 text
    FORM FETCH_ITEM_DETAILS USING WA_VBAK TYPE ZVBAK_STRUC .
    SELECT
    VBELN
    POSNR
    MATNR
    MATWA
    PMATN
    CHARG
    FROM VBAP
    INTO TABLE IT_VBAP
    WHERE VBELN = WA_VBAK-VBELN.
    IF SY-SUBRC <> 0.
    MESSAGE E000 WITH 'NO RECORDS FOUND FOR SPECIFIED KEY'.
    ENDIF.
    ENDFORM. " FETCH_ITEM_DETAILS
    *& Module STATUS_0200 OUTPUT
    text
    MODULE STATUS_0200 OUTPUT.
    SET PF-STATUS 'ZSTATUS'.
    SET TITLEBAR 'xxx'.
    ENDMODULE. " STATUS_0200 OUTPUT
    *& Module USER_COMMAND_0200 INPUT
    text
    MODULE USER_COMMAND_0200 INPUT.
    CASE SY-UCOMM.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0200 INPUT
    *& Form alv_grid
    text
    --> p1 text
    <-- p2 text
    FORM ALV_GRID .
    IF FLAG = ''.
    FLAG = 'X'.
    CREATE OBJECT GRID_VBAP
    EXPORTING
    I_SHELLSTYLE = 0
    I_LIFETIME =
    I_PARENT = VBAP_CONTAINER
    I_APPL_EVENTS = space
    I_PARENTDBG =
    I_APPLOGPARENT =
    I_GRAPHICSPARENT =
    I_NAME =
    EXCEPTIONS
    ERROR_CNTL_CREATE = 1
    ERROR_CNTL_INIT = 2
    ERROR_CNTL_LINK = 3
    ERROR_DP_CREATE = 4
    others = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    GS1_LAYOUT-GRID_TITLE = 'SALES ITEM DETAILS.'(100).
    CALL METHOD GRID_VBAP->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
    I_BUFFER_ACTIVE =
    I_BYPASSING_BUFFER =
    I_CONSISTENCY_CHECK =
    I_STRUCTURE_NAME = 'ZVBAP_STRUC'
    IS_VARIANT =
    I_SAVE =
    I_DEFAULT = 'X'
    IS_LAYOUT = GS1_LAYOUT
    IS_PRINT =
    IT_SPECIAL_GROUPS =
    IT_TOOLBAR_EXCLUDING =
    IT_HYPERLINK =
    IT_ALV_GRAPHICS =
    IT_EXCEPT_QINFO =
    CHANGING
    IT_OUTTAB = IT_VBAP
    IT_FIELDCATALOG =
    IT_SORT =
    IT_FILTER =
    EXCEPTIONS
    INVALID_PARAMETER_COMBINATION = 1
    PROGRAM_ERROR = 2
    TOO_MANY_LINES = 3
    OTHERS = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " alv_grid
    Thanks & regards
    Sreenivasulu P

  • ALV Classes

    I need to implement ALV Classes for one of requirement. In which I have to take few fields from database table, define fieldcatalog for each field  and display them.
    can u pls help on this.  
    Regards,
    Naseer.

    REPORT ZALVcls .
    data: okcode like sy-ucomm,
          t_mara type standard table of mara,
          custom1 type ref to cl_gui_custom_container,
          grid1 type ref to cl_gui_alv_grid.
    start-of-selection.
    set screen '0100'.
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE USER_COMMAND_0100 INPUT.
    case okcode.
    when 'EXIT'.
    set screen '0'.
    endcase.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
    MODULE STATUS_0100 OUTPUT.
    CREATE OBJECT CUSTOM1
      EXPORTING
        CONTAINER_NAME              = 'MYCUSTOM'.
    CREATE OBJECT GRID1
      EXPORTING
        I_PARENT          = custom1.
    perform loaddata.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Form  loaddata
    FORM loaddata.
    select * from mara into table t_mara.
    CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
       I_STRUCTURE_NAME              = 'mara'
      CHANGING
        IT_OUTTAB                     = t_mara
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " loaddata

  • How to slection screen fields in  output of the  report by using alv classe

    hi all,
    i want to get all the fields in the selection screen to be displayed in the output layout.i am developing report by using alv grid classes can any one help me.
    answers are rewarded

    Hello
    u first place some dictionary input/output fields in your screen and
    below that u place ur custom control,
    so what ever input u are giving in those fields  , u seelct data accordingly,
    for example.
    in screen there is one icon 'dictionary/program fields, click that and give some table , suppose u want to extract data from kna1 table using kunnr, select kunnr and press enter, then along withn cursor u get one frame, take that on to screen and place it ,
    now in the program write
    tables: kna1.
    select  *  from kna1 into it_kna1  where kunnr = kna1-kunnr. 
    now u get the data into it_kna1.
    it will work , try this.
    bye.

  • Why aren't some of my SJProfile0 classes included in the deployment?

    Hey all,
    I've seen variations of this question being asked before in this
    discussion forum but none that has helped me.
    I'm developing some stored procedures using SQLJ in JDeveloper
    3.2.3 and I want to deploy them on an Oracle 8.1.7 EE DB.
    However when I preview which classes the Deployment Wizard
    includes (the window entitled Dependencies) based on which .java
    and .sqlj files I check, the xxx_SJProfile0.class files are
    missing for four of the .sqlj files.
    My first guess was that it had to do with the dependencies that
    exist within the package; maybe those four files weren't needed.
    But having gotten a truck load of error messages saying that the
    file xxx_SJProfile0.class is missing has changed my mind.
    Does it have anything to do with circular references between the
    classes? Do you have to specify every dependency manually? Or is
    the cause of my trouble something completely different?
    Is it possible to specify manually which files that will be
    included in the deployment?
    Thank's in advance,
    Johan Behrenfeldt
    Decerno AB

    Hey again,
    I've traced the problem to be that one of the classes causes a
    ORA-29509 error (incorrectly formed Java binary class definition)
    although no errors appear during the compilation.
    That in turn leads to an ORA-04043 error (object does not exist)
    for the class.
    The three other files' not being included in the deployment may
    very well be tha cause of the one which is incorrectly formed.
    Hope this might help in determining the root of all my hassle.
    Johan Behrenfeldt
    Decerno AB

  • Flex Gumbo - Library Path "Include all classes" includes ActionScript Files

    I've added an "Actionscript File", i.e. a File with no package/class that is included in an actionscript class.
    In FlexBuilder 3, since there was no option to include all classes, I could optionally choose actionscript files.
    So, Make Flashbuilder's "include all classes" option to not include Actionscript Files by default.

    I opened a bug on jira.
    http://bugs.adobe.com/jira/browse/FB-22228

  • How to manage two editable checkboxes in ALV class

    Hi all,
    I need to make two checkboxes fields appear only in some rows and I found this link:
    ALV one  cell as checkbox based on some conditions
    but it's not completely what I need, because I have to make the second checkbox editable only when the first one has been flagged, so it would be more useful a class alv.
    How can I solve my problem?
    Thanks,
       Francesco

    Try this:
    1-http://www.sapfans.com/forums/viewtopic.php?t=84933
    2-http://www.sapfans.com/forums/viewtopic.php?t=69878
    3-http://www.sapfans.com/forums/viewtopic.php?t=88376
    4-http://www.sapfans.com/forums/viewtopic.php?t=40968
    5-http://www.sapfans.com/forums/viewtopic.php?t=6919
    Regards
    Neha

  • Client Jar packing with common-ant.xml - Why is (EJ)Bean class included ?

    Hi,
    I'm using for all my projects the same build mechanism as in the samples.
    This property
    <property name="add.ejbjarclasses.to.clientjar" value="true"/> let Ant copy the EJB classes into the client jar. Fine so far.
    But I've seen in my projects and in the samples, that the client jars not only contain the necessary home and remote classes, they also contain the (EJ) Bean class.
    Why?
    *1.)* Is this just a snugness in the ant tasks of common-ant.xml or is there good reason for this?
    *2.)* Are you ignoring that or do you prevent somehow, that this not necessary class is in the client jar.
    best regards

    The <empty> target list will appear whenever JDeveloper has trouble parsing the Ant XML document. In this case, it is because of the reference to the common-build.xml file. See the thread named "Building with Ant" in this forum, where this issue was recently discussed:
    Re: How to bold a label ?
    The end result of that discussion was that, due to a bug in JDeveloper, you need to specify the full URI to the included file. In a future release we will allow the use of relative URI's.
    -Matt Hawkins, JDeveloper Team

  • Javadoc comments for classes included in the sdk

    My question is pretty simple: For any class that I come across in the online java documention provided on this site, can I assume if the javadoc page does not include a @since tag, that it has been there since java 1.0?
    Specifically, I'm wondering about java.text.ChoiceFormat
    Thanks

    API of package java.text:
    Since: JDK1.1
    I guess this includes ChoiceFormat.

  • Inner Class included in build.xml

    I am trying to get my build.xml to include an inner class that gets created when my web service class is compiled. How do I make this file a part of the final ear file in the build.xml file?? I can add it by hand afterwards but that seems too complicated. Thanks.

    Sorry about leaving out the build file. Here is the whole file:
    <project name="TestProgram" default="all" basedir=".">
    <property name="source" value="."/>
    <property name="build" value="${source}/build"/>
    <property name="war_file" value="TestProgram.war" />
    <property name="ear_file" value="TestProgram.ear" />
    <property name="namespace" value="http://www.test.com"/>
    <target name="all" depends="clean, compile, ear"/>
    <target name="clean">
    <delete dir="${build}"/>
    </target>
    <target name="compile">
    <mkdir dir="${build}"/>
    <javac srcdir="${source}" destdir="${build}" includes="TestProgram.java"/>
    </target>
    <target name="ear">
    <servicegen
    destEar="${build}/${ear_file}"
    warName="${war_file}">
    <service
    javaClassComponents="TestProgram.agents.TestProgram"
    targetNamespace="${namespace}"
    serviceName="TestProgram"
    serviceURI="/TestProgram"
         generateTypes="True"
    expandMethods="True">
    </service>
    <classpath>
    <pathelement path="${build}"/>
    <pathelement path="${java.class.path}"/>
    </classpath>
    </servicegen>
    </target>
    </project>
    The TestProgram class has an inner class that is a Comparator. The TestProgram needs the inner class but the client program that is calling TestProgram doesn't. Thanks for the help.

  • Java GUI class included in class diagram?

    Hi,
    i have a gui.java that creates a GUI user interface.
    Do i include that class in the class diagram?
    Thanks
    Rahul

    im not really sure but if classes go ina class diagram u gotta do it

Maybe you are looking for

  • Question about the weight of widgets

    This is a supposition: if I have a widget that cause a pop up window to open and the widget is 1KB in size on the idisk. Would a page containing 40 or 50 of them be problematic? Would it be faster or slower than a page with an iFrame and a widget tha

  • How to tune this SQL (takes long time to come up with results)

    Dear all, I have sum SQL which takes long time ... can any one help me to tune this.... thank You SELECT SUM (n_amount) FROM (SELECT DECODE (v_payment_type, 'D', n_amount, 'C', -n_amount ) n_amount, v_vou_no FROM vouch_det a, temp_global_temp b WHERE

  • Seeking help for PXI card Installati​on Procedure Guidance

     I have PXI-1042 Chassis with PXI Card numbers 2503 MUX , DIO and AIO cards.  We are running LabWindows CVI with TestStand 3.0.I have to load all of the above into a new system.  I wanna know the step wise procedure i need to follow for using these a

  • Is it possible to return to Mountain Lion once using Mavericks?

    So I have recently updated to Mavericks on my MacBook Air, but everything has gone wrong! I can no longer open Pages documents which I created with Pages 4.3, and when I transfer a file which I created using Page 5 to a friend, they can't open it wit

  • WebUtil ORA-06508

    Hi all, I'm trying to setup webutil on Forms And Reports Services 10g with database 10g on RHEL 2. When I'm trying to run the demo form: WU_DEMO.fmx(compiled on the server machine) I am getting this error: FRM:40735: WHEN-CUSTOM-ITEM-EVENT trigger ra