ALV development in SAP 4.5

Hi
Has anyone done any development on ALV interactive report on SAP version 4.5? Possible to provide me pointer. The interactive ALV report include checkbox to perform certain task once the save button is clicked.

Hi Min,
*& Report  Z_REPORTFROMKNA1ANDT005T
REPORT  Z_REPORTFROMKNA1ANDT005T
                  LINE-SIZE 180
                  MESSAGE-ID ZZ.
TABLES:EKKO.
TYPE-POOLS : SLIS.
      Internal table for ALV
DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,     "Field catalog
       WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,       "WA for Field catalog
       IT_EVENT TYPE SLIS_T_EVENT,               "events
       WA_EVENT TYPE SLIS_ALV_EVENT,             "WA for events
       IT_COMMENT TYPE SLIS_T_LISTHEADER,        "Header details
       WA_COMMENT TYPE SLIS_LISTHEADER,          "WA for header details
       WA_LAYOUT TYPE SLIS_LAYOUT_ALV,           "Layout
       IT_SORT TYPE SLIS_T_SORTINFO_ALV,         "Sort table
       WA_SORT TYPE SLIS_SORTINFO_ALV,           "WA for sort table
       IT_KEYINFO TYPE SLIS_KEYINFO_ALV.         "Pass key value
DATA : V_REPID LIKE SY-REPID.
V_REPID = SY-REPID.
DATA : V_DATE LIKE SY-DATUM.
color management.
DATA  : IT_COLOR TYPE TABLE OF LVC_S_SCOL.       "Color management.
      Internal table declearation
DATA:BEGIN OF IT_EKKO OCCURS 0,
  EBELN LIKE EKKO-EBELN,
  BUKRS  LIKE EKKO-BUKRS,
  AEDAT  LIKE EKKO-AEDAT,
END OF IT_EKKO.
DATA : BEGIN OF IT_EKPO OCCURS 0,
  EBELN LIKE EKPO-EBELN,
  EBELP LIKE EKPO-EBELP,
  MATNR LIKE EKPO-MATNR,
  MENGE LIKE EKPO-MENGE,
  MEINS LIKE EKPO-MEINS,
  NETPR LIKE EKPO-NETPR,
  NETWR LIKE EKPO-MENGE,
END OF IT_EKPO.
DATA : BEGIN OF IT_EKBE OCCURS 0,
       EBELN LIKE EKBE-EBELN,
       EBELP LIKE EKBE-EBELP,
       BELNR LIKE EKBE-BELNR,
       MENGE LIKE EKBE-MENGE,
       MATNR LIKE EKBE-MATNR,
  END OF IT_EKBE.
DATA : BEGIN OF IT_FINAL OCCURS 0,
  EBELN LIKE EKPO-EBELN,
  EBELP LIKE EKPO-EBELP,
  MATNR LIKE EKPO-MATNR,
  MENGE LIKE EKPO-MENGE,
  MEINS LIKE EKPO-MEINS,
  NETPR LIKE EKPO-NETPR,
  NETWR LIKE EKPO-NETWR,
  LINE_COLOR(4) TYPE C,     "Used to store row color attributes
END OF IT_FINAL.
SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS:S_EBELN FOR EKKO-EBELN.
PARAMETERS : RB1 RADIOBUTTON GROUP G1 MODIF ID Z1,
             RB2 RADIOBUTTON GROUP G1 MODIF ID Z2,
             RB3 RADIOBUTTON GROUP G1 MODIF ID Z3.
SELECTION-SCREEN END OF BLOCK BLK.
AT SELECTION-SCREEN OUTPUT.
  PERFORM MODIFY_SCREEN.
START-OF-SELECTION.
  PERFORM GET_DETAILS.
  PERFORM GET_ALV.
*&      Form  modify_screen
      text
-->  p1        text
<--  p2        text
FORM MODIFY_SCREEN .
IF RB1 = 'X'.
   LOOP AT SCREEN.
     IF SCREEN-GROUP1 = 'Z1' .
       SCREEN-INVISIBLE = 1.
       SCREEN-ACTIVE = 0.
     ELSE.
       SCREEN-INVISIBLE = 0.
       SCREEN-ACTIVE = 1.
     ENDIF.
     MODIFY SCREEN.
   ENDLOOP.
ENDIF.
ENDFORM.                    " modify_screen
*&      Form  GET_DETAILS
      Get the details
FORM GET_DETAILS .
  DATA: LD_COLOR(1) TYPE C.
  SELECT EBELN
         BUKRS
         AEDAT
    FROM EKKO
    INTO TABLE IT_EKKO
   WHERE EBELN IN S_EBELN.
  IF SY-SUBRC = 0.
    SORT IT_EKKO BY EBELN.
  ELSE.
    MESSAGE E000 WITH 'DATA NOT FOUND'.
  ENDIF.
  IF NOT IT_EKKO[] IS INITIAL.
    SELECT EBELN
           EBELP
           MATNR
           MENGE
           MEINS
           NETPR
           NETWR
      FROM EKPO
      INTO TABLE IT_EKPO
       FOR ALL ENTRIES IN IT_EKKO
     WHERE EBELN = IT_EKKO-EBELN.
    IF SY-SUBRC = 0.
      SORT IT_EKPO BY EBELN.
    ENDIF.
  ENDIF.
  LOOP AT IT_EKPO.
    IT_FINAL-EBELN = IT_EKPO-EBELN.
    IT_FINAL-EBELP = IT_EKPO-EBELP.
    IT_FINAL-MATNR = IT_EKPO-MATNR.
    IT_FINAL-MENGE = IT_EKPO-MENGE.
    IT_FINAL-MEINS = IT_EKPO-MEINS.
    IT_FINAL-NETPR = IT_EKPO-NETPR.
    IT_FINAL-NETWR = IT_EKPO-NETWR.
    ON CHANGE OF IT_FINAL-EBELN.
      LD_COLOR = 7.
      CONCATENATE 'C' LD_COLOR '10' INTO IT_FINAL-LINE_COLOR.
    ENDON.
    APPEND IT_FINAL.
    CLEAR IT_FINAL.
  ENDLOOP.
ENDFORM.                    " GET_DETAILS
*&      Form  GET_ALV
      text
FORM GET_ALV .
  PERFORM GENERATE_FIELDCAT.
  PERFORM GENERATE_LAYOUT.
  PERFORM GENERATE_EVENTS.
  PERFORM GENERATE_SORT.
  PERFORM ALV_GRID_DISPLAY.
ENDFORM.                    " GET_ALV
*&      Form  GENERATE_FIELDCAT
      Field catalog
FORM GENERATE_FIELDCAT .
  IF RB1 = 'X' OR RB2 = 'X'.
    WA_FIELDCAT-FIELDNAME = 'EBELN'.
    WA_FIELDCAT-COL_POS = '1'.
    WA_FIELDCAT-JUST = 'R'.
    WA_FIELDCAT-SELTEXT_L = 'PO Number'.
    WA_FIELDCAT-LOWERCASE = 'X'.
    WA_FIELDCAT-DO_SUM = 'X'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'EBELP'.
    WA_FIELDCAT-COL_POS = '2'.
    WA_FIELDCAT-JUST = 'C'.
    WA_FIELDCAT-SELTEXT_L = 'Item Number'.
    WA_FIELDCAT-LOWERCASE = 'X'.
    WA_FIELDCAT-EDIT = 'X'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'MATNR'.
    WA_FIELDCAT-COL_POS = '3'.
    WA_FIELDCAT-JUST = 'C'.
    WA_FIELDCAT-SELTEXT_L = 'Material Number'.
    WA_FIELDCAT-LOWERCASE = 'X'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'MENGE'.
    WA_FIELDCAT-COL_POS = '4'.
    WA_FIELDCAT-JUST = 'C'.
    WA_FIELDCAT-SELTEXT_L = 'PO Quantity'.
    WA_FIELDCAT-LOWERCASE = 'X'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'MEINS'.
    WA_FIELDCAT-COL_POS = '5'.
    WA_FIELDCAT-JUST = 'C'.
    WA_FIELDCAT-SELTEXT_L = 'Order unit'.
    WA_FIELDCAT-LOWERCASE = 'X'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'NETPR'.
    WA_FIELDCAT-COL_POS = '6'.
    WA_FIELDCAT-JUST = 'C'.
    WA_FIELDCAT-SELTEXT_L = 'Net price'.
    WA_FIELDCAT-LOWERCASE = 'X'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'NETWR'.
    WA_FIELDCAT-COL_POS = '7'.
    WA_FIELDCAT-JUST = 'C'.
    WA_FIELDCAT-SELTEXT_L = 'Net order value'.
    WA_FIELDCAT-LOWERCASE = 'X'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
   wa_fieldcat-fieldname = 'CHK'.
   wa_fieldcat-col_pos = '8'.
   wa_fieldcat-just = 'C'.
   wa_fieldcat-seltext_l = 'Check Box'.
   wa_fieldcat-lowercase = 'X'.
   wa_fieldcat-checkbox = 'X'.
   wa_fieldcat-edit = 'X'.
   append wa_fieldcat to it_fieldcat.
  ELSE.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
     EXPORTING
       I_PROGRAM_NAME               = V_REPID
       I_INTERNAL_TABNAME           = 'IT_EKKO'
    I_STRUCTURE_NAME             = I_STRUCTURE_NAME
    I_CLIENT_NEVER_DISPLAY       = 'X'
       I_INCLNAME                   = V_REPID
    I_BYPASSING_BUFFER           = I_BYPASSING_BUFFER
    I_BUFFER_ACTIVE              = I_BUFFER_ACTIVE
      CHANGING
        CT_FIELDCAT                  = IT_FIELDCAT
     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.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
     EXPORTING
       I_PROGRAM_NAME               = V_REPID
       I_INTERNAL_TABNAME           = 'IT_EKPO'
  I_STRUCTURE_NAME             = I_STRUCTURE_NAME
  I_CLIENT_NEVER_DISPLAY       = 'X'
       I_INCLNAME                   = V_REPID
  I_BYPASSING_BUFFER           = I_BYPASSING_BUFFER
  I_BUFFER_ACTIVE              = I_BUFFER_ACTIVE
      CHANGING
        CT_FIELDCAT                  = IT_FIELDCAT
     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.
  ENDIF.
ENDFORM.                    " GENERATE_FIELDCAT
*&      Form  GENERATE_EVENTS
      Generate Events
FORM GENERATE_EVENTS .
  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    IMPORTING
      ET_EVENTS       = IT_EVENT
    EXCEPTIONS
      LIST_TYPE_WRONG = 1
      OTHERS          = 2.
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  IF NOT IT_EVENT[] IS INITIAL.
    READ TABLE IT_EVENT INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
    IF SY-SUBRC = 0.
      WA_EVENT-FORM = 'TOP_OF_PAGE'.
      MODIFY IT_EVENT FROM WA_EVENT INDEX SY-TABIX.
    ENDIF.
  ENDIF.
ENDFORM.                    " GENERATE_EVENTS
*&      Form  TOP_OF_PAGE
      TOP_OF_PAGE
FORM TOP_OF_PAGE.
  DATA : V_CONCATE(50) TYPE C.
  DATA : V_SPACE(10) TYPE C.
  CONCATENATE 'VIKRANTH' 'RAJESH' INTO V_CONCATE.
  WA_COMMENT-TYP = 'S'.
  WA_COMMENT-KEY = 'USER :'.
  WA_COMMENT-INFO = V_CONCATE.
  APPEND WA_COMMENT TO IT_COMMENT.
  WA_COMMENT-TYP = 'S'.
  WA_COMMENT-KEY = 'DATE:'.
  WA_COMMENT-INFO = SY-DATUM.
  APPEND WA_COMMENT TO IT_COMMENT.
  WA_COMMENT-TYP = 'S'.
  WA_COMMENT-KEY = 'TIME:'.
  WA_COMMENT-INFO = SY-TIMLO.
  APPEND WA_COMMENT TO IT_COMMENT.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      IT_LIST_COMMENTARY = IT_COMMENT.
  CLEAR IT_COMMENT.
ENDFORM.                    "TOP_OF_PAGE
*&      Form  ALV_GRID_DISPLAY
      Grid display
FORM ALV_GRID_DISPLAY .
  IF RB1 = 'X'.
    PERFORM GRID_DISPLAY.
  ELSEIF RB2 = 'X'.
    PERFORM LIST_DISPLAY.
  ELSE.
    PERFORM HIERSEQ_DISPLAY.
  ENDIF.
ENDFORM.                    " ALV_GRID_DISPLAY
*&      Form  GENERATE_LAYOUT
      LAYOUT
FORM GENERATE_LAYOUT .
  WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.           "OPTIMIZING FIELD WIDTH
  WA_LAYOUT-ZEBRA = 'X'.                       "PUTTING ZEBRA COLORS
  WA_LAYOUT-TOTALS_TEXT = 'Total'.
  WA_LAYOUT-SUBTOTALS_TEXT = 'SUB TOTAL'.
  WA_LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
ENDFORM.                    " GENERATE_LAYOUT
*&      Form  GENERATE_SORT
      SORT
FORM GENERATE_SORT .
  WA_SORT-FIELDNAME = 'EBELN'.
  WA_SORT-SPOS = '1'.
  WA_SORT-UP = 'X'.
  WA_SORT-SUBTOT = 'X'.
  APPEND WA_SORT TO IT_SORT.
ENDFORM.                    " GENERATE_SORT
*&      Form  GRID_DISPLAY
      GRID DISPLAY
FORM GRID_DISPLAY .
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
  I_INTERFACE_CHECK                 = ' '
  I_BYPASSING_BUFFER                = ' '
  I_BUFFER_ACTIVE                   = ' '
   I_CALLBACK_PROGRAM                = V_REPID
  I_CALLBACK_PF_STATUS_SET          = ' '
   I_CALLBACK_USER_COMMAND           = 'IT_USER_COMMAND'
  I_CALLBACK_TOP_OF_PAGE            = ' '
  I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
  I_CALLBACK_HTML_END_OF_LIST       = ' '
  I_STRUCTURE_NAME                  =
  I_BACKGROUND_ID                   = ' '
   I_GRID_TITLE                      = 'Purchase Order Details'
  I_GRID_SETTINGS                   = I_GRID_SETTINGS
   IS_LAYOUT                         = WA_LAYOUT
   IT_FIELDCAT                       = IT_FIELDCAT
  IT_EXCLUDING                      = IT_EXCLUDING
  IT_SPECIAL_GROUPS                 = IT_SPECIAL_GROUPS
   IT_SORT                           = IT_SORT
  IT_FILTER                         = IT_FILTER
  IS_SEL_HIDE                       = IS_SEL_HIDE
  I_DEFAULT                         = 'X'
  I_SAVE                            = ' '
  IS_VARIANT                        = IS_VARIANT
   IT_EVENTS                         = IT_EVENT
  IT_EVENT_EXIT                     = IT_EVENT_EXIT
  IS_PRINT                          = IS_PRINT
  IS_REPREP_ID                      = IS_REPREP_ID
  I_SCREEN_START_COLUMN             = 0
  I_SCREEN_START_LINE               = 0
  I_SCREEN_END_COLUMN               = 0
  I_SCREEN_END_LINE                 = 0
  I_HTML_HEIGHT_TOP                 = 0
  I_HTML_HEIGHT_END                 = 0
  IT_ALV_GRAPHICS                   = IT_ALV_GRAPHICS
  IT_HYPERLINK                      = IT_HYPERLINK
  IT_ADD_FIELDCAT                   = IT_ADD_FIELDCAT
  IT_EXCEPT_QINFO                   = IT_EXCEPT_QINFO
  IR_SALV_FULLSCREEN_ADAPTER        = IR_SALV_FULLSCREEN_ADAPTER
IMPORTING
  E_EXIT_CAUSED_BY_CALLER           = E_EXIT_CAUSED_BY_CALLER
  ES_EXIT_CAUSED_BY_USER            = ES_EXIT_CAUSED_BY_USER
    TABLES
      T_OUTTAB                          = IT_FINAL
EXCEPTIONS
   PROGRAM_ERROR                     = 1
   OTHERS                            = 2
  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.                    " GRID_DISPLAY
*&      Form  LIST_DISPLAY
      LIST DISPLAY
FORM LIST_DISPLAY .
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
   EXPORTING
    I_INTERFACE_CHECK              = ' '
    I_BYPASSING_BUFFER             = I_BYPASSING_BUFFER
    I_BUFFER_ACTIVE                = ' '
     I_CALLBACK_PROGRAM             = V_REPID
    I_CALLBACK_PF_STATUS_SET       = ' '
     I_CALLBACK_USER_COMMAND        = 'IT_USER_COMMAND'
    I_STRUCTURE_NAME               = I_STRUCTURE_NAME
     IS_LAYOUT                      = WA_LAYOUT
     IT_FIELDCAT                    = IT_FIELDCAT
    IT_EXCLUDING                   = IT_EXCLUDING
    IT_SPECIAL_GROUPS              = IT_SPECIAL_GROUPS
     IT_SORT                        = IT_SORT
    IT_FILTER                      = IT_FILTER
    IS_SEL_HIDE                    = IS_SEL_HIDE
    I_DEFAULT                      = 'X'
    I_SAVE                         = ' '
    IS_VARIANT                     = IS_VARIANT
     IT_EVENTS                      = IT_EVENT
    IT_EVENT_EXIT                  = IT_EVENT_EXIT
    IS_PRINT                       = IS_PRINT
    IS_REPREP_ID                   = IS_REPREP_ID
    I_SCREEN_START_COLUMN          = 0
    I_SCREEN_START_LINE            = 0
    I_SCREEN_END_COLUMN            = 0
    I_SCREEN_END_LINE              = 0
    IR_SALV_LIST_ADAPTER           = IR_SALV_LIST_ADAPTER
    IT_EXCEPT_QINFO                = IT_EXCEPT_QINFO
    I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
  IMPORTING
    E_EXIT_CAUSED_BY_CALLER        = E_EXIT_CAUSED_BY_CALLER
    ES_EXIT_CAUSED_BY_USER         = ES_EXIT_CAUSED_BY_USER
    TABLES
      T_OUTTAB                       = IT_FINAL
   EXCEPTIONS
     PROGRAM_ERROR                  = 1
     OTHERS                         = 2
  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.                    " LIST_DISPLAY
*&      Form  HIERSEQ_DISPLAY
      HIERSEQ DISPLAY
FORM HIERSEQ_DISPLAY .
  IT_KEYINFO-HEADER01 = 'EBELN'.
  IT_KEYINFO-ITEM01 = 'EBELN'.
  CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
    EXPORTING
  I_INTERFACE_CHECK              = ' '
     I_CALLBACK_PROGRAM             = V_REPID
  I_CALLBACK_PF_STATUS_SET       = ' '
  I_CALLBACK_USER_COMMAND        = ' '
     IS_LAYOUT                      = WA_LAYOUT
     IT_FIELDCAT                    = IT_FIELDCAT
  IT_EXCLUDING                   = IT_EXCLUDING
  IT_SPECIAL_GROUPS              = IT_SPECIAL_GROUPS
     IT_SORT                        = IT_SORT
  IT_FILTER                      = IT_FILTER
  IS_SEL_HIDE                    = IS_SEL_HIDE
  I_SCREEN_START_COLUMN          = 0
  I_SCREEN_START_LINE            = 0
  I_SCREEN_END_COLUMN            = 0
  I_SCREEN_END_LINE              = 0
  I_DEFAULT                      = 'X'
  I_SAVE                         = ' '
  IS_VARIANT                     = IS_VARIANT
     IT_EVENTS                      = IT_EVENT
  IT_EVENT_EXIT                  = IT_EVENT_EXIT
      I_TABNAME_HEADER               = 'IT_EKKO'
      I_TABNAME_ITEM                 = 'IT_EKPO'
  I_STRUCTURE_NAME_HEADER        = I_STRUCTURE_NAME_HEADER
  I_STRUCTURE_NAME_ITEM          = I_STRUCTURE_NAME_ITEM
      IS_KEYINFO                     = IT_KEYINFO
  IS_PRINT                       = IS_PRINT
  IS_REPREP_ID                   = IS_REPREP_ID
  I_BYPASSING_BUFFER             = I_BYPASSING_BUFFER
  I_BUFFER_ACTIVE                = I_BUFFER_ACTIVE
  IR_SALV_HIERSEQ_ADAPTER        = IR_SALV_HIERSEQ_ADAPTER
  IT_EXCEPT_QINFO                = IT_EXCEPT_QINFO
  I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
IMPORTING
  E_EXIT_CAUSED_BY_CALLER        = E_EXIT_CAUSED_BY_CALLER
  ES_EXIT_CAUSED_BY_USER         = ES_EXIT_CAUSED_BY_USER
    TABLES
      T_OUTTAB_HEADER                = IT_EKKO
      T_OUTTAB_ITEM                  = IT_EKPO
   EXCEPTIONS
     PROGRAM_ERROR                  = 1
     OTHERS                         = 2
  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.                    " HIERSEQ_DISPLAY
*& Form IT_USER_COMMAND
text
FORM IT_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                           RS_SELFIELD TYPE SLIS_SELFIELD.
  FREE IT_FIELDCAT.
  CASE R_UCOMM.
    WHEN '&IC1'.
      READ TABLE IT_FINAL INDEX RS_SELFIELD-TABINDEX.
      PERFORM GET_EKBE.
      PERFORM GET_FIELD_CATALOG.
      PERFORM GET_LIST.
  ENDCASE.
ENDFORM.                               "IT_USER_COMMAND
*&      Form  GET_EKBE
      text
FORM GET_EKBE .
  IF NOT IT_FINAL[] IS INITIAL.
    SELECT EBELN
           EBELP
           BELNR
           MENGE
           MATNR
      INTO TABLE IT_EKBE
      FROM EKBE
       FOR ALL ENTRIES IN IT_FINAL
     WHERE EBELN = IT_FINAL-EBELN
       AND EBELP = IT_FINAL-EBELP.
  ENDIF.
ENDFORM.                    " GET_EKBE
*&      Form  GET_FIELD_CATALOG
      text
FORM GET_FIELD_CATALOG .
  WA_FIELDCAT-FIELDNAME = 'EBELN'.
  WA_FIELDCAT-COL_POS = '1'.
  WA_FIELDCAT-JUST = 'R'.
  WA_FIELDCAT-SELTEXT_L = 'PO Number'.
  WA_FIELDCAT-LOWERCASE = 'X'.
  WA_FIELDCAT-DO_SUM = 'X'.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
  WA_FIELDCAT-FIELDNAME = 'EBELP'.
  WA_FIELDCAT-COL_POS = '2'.
  WA_FIELDCAT-JUST = 'R'.
  WA_FIELDCAT-SELTEXT_L = 'Item Number'.
  WA_FIELDCAT-LOWERCASE = 'X'.
  WA_FIELDCAT-DO_SUM = 'X'.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
  WA_FIELDCAT-FIELDNAME = 'BELNR'.
  WA_FIELDCAT-COL_POS = '3'.
  WA_FIELDCAT-JUST = 'R'.
  WA_FIELDCAT-SELTEXT_L = 'Material Document'.
  WA_FIELDCAT-LOWERCASE = 'X'.
  WA_FIELDCAT-DO_SUM = 'X'.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
  WA_FIELDCAT-FIELDNAME = 'MENGE'.
  WA_FIELDCAT-COL_POS = '4'.
  WA_FIELDCAT-JUST = 'R'.
  WA_FIELDCAT-SELTEXT_L = 'Quantity'.
  WA_FIELDCAT-LOWERCASE = 'X'.
  WA_FIELDCAT-DO_SUM = 'X'.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
  WA_FIELDCAT-FIELDNAME = 'MATNR'.
  WA_FIELDCAT-COL_POS = '5'.
  WA_FIELDCAT-JUST = 'R'.
  WA_FIELDCAT-SELTEXT_L = 'Material Number'.
  WA_FIELDCAT-LOWERCASE = 'X'.
  WA_FIELDCAT-DO_SUM = 'X'.
  APPEND WA_FIELDCAT TO IT_FIELDCAT.
ENDFORM.                    " GET_FIELD_CATALOG
*&      Form  get_list
      text
FORM GET_LIST .
  IF RB1 = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
     EXPORTING
    I_INTERFACE_CHECK                 = ' '
    I_BYPASSING_BUFFER                = ' '
    I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = V_REPID
    I_CALLBACK_PF_STATUS_SET          = ' '
    I_CALLBACK_USER_COMMAND           = ' '
    I_CALLBACK_TOP_OF_PAGE            = ' '
    I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    I_CALLBACK_HTML_END_OF_LIST       = ' '
    I_STRUCTURE_NAME                  = I_STRUCTURE_NAME
    I_BACKGROUND_ID                   = ' '
       I_GRID_TITLE                      = 'SECONDARY LIST'
    I_GRID_SETTINGS                   = I_GRID_SETTINGS
    IS_LAYOUT                         = IS_LAYOUT
       IT_FIELDCAT                       = IT_FIELDCAT
    IT_EXCLUDING                      = IT_EXCLUDING
    IT_SPECIAL_GROUPS                 = IT_SPECIAL_GROUPS
    IT_SORT                           = IT_SORT
    IT_FILTER                         = IT_FILTER
    IS_SEL_HIDE                       = IS_SEL_HIDE
    I_DEFAULT                         = 'X'
    I_SAVE                            = ' '
    IS_VARIANT                        = IS_VARIANT
    IT_EVENTS                         = IT_EVENTS
    IT_EVENT_EXIT                     = IT_EVENT_EXIT
    IS_PRINT                          = IS_PRINT
    IS_REPREP_ID                      = IS_REPREP_ID
    I_SCREEN_START_COLUMN             = 0
    I_SCREEN_START_LINE               = 0
    I_SCREEN_END_COLUMN               = 0
    I_SCREEN_END_LINE                 = 0
    I_HTML_HEIGHT_TOP                 = 0
    I_HTML_HEIGHT_END                 = 0
    IT_ALV_GRAPHICS                   = IT_ALV_GRAPHICS
    IT_HYPERLINK                      = IT_HYPERLINK
    IT_ADD_FIELDCAT                   = IT_ADD_FIELDCAT
    IT_EXCEPT_QINFO                   = IT_EXCEPT_QINFO
    IR_SALV_FULLSCREEN_ADAPTER        = IR_SALV_FULLSCREEN_ADAPTER
  IMPORTING
    E_EXIT_CAUSED_BY_CALLER           = E_EXIT_CAUSED_BY_CALLER
    ES_EXIT_CAUSED_BY_USER            = ES_EXIT_CAUSED_BY_USER
      TABLES
        T_OUTTAB                          = IT_EKBE
     EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    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.
  IF RB2 = 'X'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
     EXPORTING
  I_INTERFACE_CHECK              = ' '
  I_BYPASSING_BUFFER             = I_BYPASSING_BUFFER
  I_BUFFER_ACTIVE                = ' '
       I_CALLBACK_PROGRAM             = V_REPID
  I_CALLBACK_PF_STATUS_SET       = ' '
  I_CALLBACK_USER_COMMAND        = ' '
  I_STRUCTURE_NAME               = I_STRUCTURE_NAME
  IS_LAYOUT                      = IS_LAYOUT
       IT_FIELDCAT                    = IT_FIELDCAT
  IT_EXCLUDING                   = IT_EXCLUDING
  IT_SPECIAL_GROUPS              = IT_SPECIAL_GROUPS
  IT_SORT                        = IT_SORT
  IT_FILTER                      = IT_FILTER
  IS_SEL_HIDE                    = IS_SEL_HIDE
  I_DEFAULT                      = 'X'
  I_SAVE                         = ' '
  IS_VARIANT                     = IS_VARIANT
  IT_EVENTS                      = IT_EVENTS
  IT_EVENT_EXIT                  = IT_EVENT_EXIT
  IS_PRINT                       = IS_PRINT
  IS_REPREP_ID                   = IS_REPREP_ID
  I_SCREEN_START_COLUMN          = 0
  I_SCREEN_START_LINE            = 0
  I_SCREEN_END_COLUMN            = 0
  I_SCREEN_END_LINE              = 0
  IR_SALV_LIST_ADAPTER           = IR_SALV_LIST_ADAPTER
  IT_EXCEPT_QINFO                = IT_EXCEPT_QINFO
  I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
IMPORTING
  E_EXIT_CAUSED_BY_CALLER        = E_EXIT_CAUSED_BY_CALLER
  ES_EXIT_CAUSED_BY_USER         = ES_EXIT_CAUSED_BY_USER
      TABLES
        T_OUTTAB                       = IT_EKBE
     EXCEPTIONS
       PROGRAM_ERROR                  = 1
       OTHERS                         = 2
    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.
ENDFORM.                    " get_list
Thanks
Vikranth Khimavath

Similar Messages

  • How to Register as a Developer on SAP NetWeaver ABAP 7.02 Trial Version

    Hi Everyone,
    I was following a tutorial on ABAP and this centred on "Hello World" application. I got a message that I haven't been registered as a Developer on the system and that I need some code from OSS. I have tried checking here for any clues but it seemed none existed. Can't SAP be a bit more simplified like MS? It really requires lots of effort to get the right help and even at that, helps are not easily come by. I really which someone would point me in the right direction this time.
    Thank you.

    plz can u answer me to solve my problem... i download SAP Netweaver 7.02 and install it ...... when log on to SAP i can not make any think ..... SAP tell me You are not registered as a developer ... please register in the online service system (OSS). in the OSS you will receive an access key.
    i log on by
    DDIC and BCUSER
    and i have the same problem
    PLZ tell me how can registered my self as a developer on sap to get access key ..?

  • Anyone know of an ALV report in SAP that has Hotspot logic?

    Howdy,
    Does Anyone know of an ALV report in SAP that has Hotspot logic?
    I just need to implement this logic into my report and I thought I'd copy what was there.
    Also, anyone know of a report where buttons are available in the cells of an ALV grid?
    Thanksing you kindly.

    Hi Steve,
    it'a a report with alv grid, where i use hot spot event,
    i hope it helps you.
    bye
    *& Report  ZMONITOR_IP                                                 *
    REPORT  zmonitor_ip                             .
    TABLES: mapl, plko
    *****SELECTION-SCREEN.
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_matnr  FOR mapl-matnr,
                    s_plnty  FOR mapl-plnty,
                    s_zaehl  FOR plko-zaehl,
                    s_verwe  FOR plko-verwe,
                    s_plnnr  FOR plko-plnnr,
                    s_plnal  FOR plko-plnal,
                    s_plnty2 FOR plko-plnty.
    SELECTION-SCREEN: END OF BLOCK b1.
    **********TYPES:
    TYPES: BEGIN OF str_data,
             matnr    TYPE mapl-matnr,
             werks    TYPE plko-werks,
             plnal    TYPE plko-plnal,
             plnnr    TYPE plko-plnnr,
           END OF str_data.
    TYPES: BEGIN OF str_data2,
            prueflos TYPE qals-prueflos,
            art      TYPE qals-art,
            herkunft TYPE qals-herkunft,
            enstehdat TYPE qals-enstehdat,
            END OF str_data2.
    ****Global data.
    DATA: tb_plko TYPE TABLE OF plko,
          wa_plko TYPE plko,
          tb_mapl TYPE TABLE OF mapl,
          wa_mapl TYPE TABLE OF mapl,
          tb_data TYPE TABLE OF str_data,
          wa_data TYPE str_data,
          pos1 TYPE i,
          pos2 TYPE i,
          pos3 TYPE i,
          pos4 TYPE i,
          pos5 TYPE i,
          okcode_100 TYPE sy-ucomm,
          tb_data2 TYPE TABLE OF str_data2.
    ***********************VARIABILI E STRUTTURE PER ALV********************
    *       CLASS lcl_event_handler DEFINITION
    CLASS lcl_event_handler DEFINITION .
      PUBLIC SECTION .
        METHODS:
    *To add new functional buttons to the ALV toolbar
    *Hotspot click control
    handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
                         IMPORTING e_row_id e_column_id es_row_no,
    *Double-click control
    handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
                        IMPORTING e_row e_column es_row_no.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    *       CLASS lcl_event_handler IMPLEMENTATION
    CLASS lcl_event_handler IMPLEMENTATION.
      METHOD handle_hotspot_click.
    *Handle Hotspot Click METHOD handle_hotspot_click .
        PERFORM handle_hotspot_click USING e_row_id e_column_id es_row_no .
      ENDMETHOD .                    "lcl_event_handler
    *Handle Double Click
      METHOD handle_double_click .
        PERFORM handle_double_click USING e_row e_column es_row_no .
      ENDMETHOD .                    "handle_double_click
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    *--- ALV Grid instance reference
    DATA gr_alvgrid TYPE REF TO cl_gui_alv_grid.
    DATA gr_alvgrid2 TYPE REF TO cl_gui_alv_grid.
    *--- Name of the custom control added on the screen
    DATA gc_custom_control_name TYPE scrfname VALUE 'CC_ALV'.
    DATA gc_custom_control_name2 TYPE scrfname VALUE 'CC_ALV2'.
    *--- Customer contanier instance reference
    DATA gr_ccontainer TYPE REF TO cl_gui_custom_container.
    DATA gr_ccontainer2 TYPE REF TO cl_gui_custom_container.
    *--- Field catalog table
    DATA gt_fieldcat TYPE lvc_t_fcat.
    DATA gt_fieldcat2 TYPE lvc_t_fcat.
    *--- Layout structure
    DATA gs_layout TYPE lvc_s_layo.
    DATA gs_layout2 TYPE lvc_s_layo.
    DATA ls_variant       TYPE disvariant.
    DATA gr_event_handler TYPE REF TO lcl_event_handler .
    ****INITIALIZZATION
    INITIALIZATION.
      pos1 = 4.
      pos2 = pos1 + 20.
      pos3 = pos2 + 10.
      pos4 = pos3 + 10.
      pos5 = pos4 + 10.
    *****TOP OF PAGE
    TOP-OF-PAGE.
      WRITE AT /pos1 'Material'.
      WRITE AT pos2  'Plan'.
      WRITE AT pos3 'Group'.
      WRITE AT pos4 'Group Count'.
      SKIP 1.
    *****AT USER COMMAND.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'BACK'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    AT LINE-SELECTION.
      PERFORM select_line.
    *****START-OF-SELECTION.
    START-OF-SELECTION.
      PERFORM select_data.
      PERFORM output.
    END-OF-SELECTION.
    ****END-OF-SELCTION.
    *&      Form  select_data
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM select_data .
      SELECT   b~werks b~plnal b~plnnr a~matnr
               FROM plko AS b
               JOIN mapl AS a
               ON ( a~plnty = b~plnty AND
                   a~plnnr = b~plnnr AND
                   a~plnal = b~plnal )
               INTO CORRESPONDING FIELDS OF TABLE tb_data
               WHERE
                 a~matnr IN s_matnr  AND
                 a~plnty IN s_plnty  AND
                 b~zaehl IN s_zaehl  AND
                 b~verwe IN s_verwe  AND
                 b~plnnr IN s_plnnr  AND
                 b~plnal IN s_plnal  AND
                 b~plnty IN s_plnty2 .
    ENDFORM.                    " select_data
    *&      Form  OUTPUT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM output .
      CALL SCREEN '0100'.
    ENDFORM.                    " OUTPUT
    *&      Form  SELECT_LINE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM select_line .
      DATA line TYPE i.
      CLEAR wa_data.
      GET CURSOR LINE line.
      READ LINE line FIELD VALUE wa_data-matnr  INTO wa_data-matnr.
      READ LINE line FIELD VALUE wa_data-werks  INTO wa_data-werks.
      READ LINE line FIELD VALUE wa_data-plnnr  INTO wa_data-plnnr.
      READ LINE line FIELD VALUE wa_data-plnal  INTO wa_data-plnal.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      SET PARAMETER ID 'MAT' FIELD wa_data-matnr.
      SET PARAMETER ID 'WRK' FIELD wa_data-werks.
      SET PARAMETER ID 'QHK' FIELD '89'.
      SET PARAMETER ID 'PLN' FIELD wa_data-plnnr.
      SET PARAMETER ID 'PAL' FIELD wa_data-plnal.
      CALL TRANSACTION 'QA01' AND SKIP FIRST SCREEN.
      SET PARAMETER ID 'PLN' FIELD ' '.
      SET PARAMETER ID 'PAL' FIELD ' '.
    ENDFORM.                    " SELECT_LINE
    *&      Form  prepare_field_catalog
    *       text
    *      -->PT_FIELDCATtext
    FORM prepare_field_catalog CHANGING pt_fieldcat TYPE lvc_t_fcat .
      DATA ls_fcat TYPE lvc_s_fcat .
      ls_fcat-fieldname = 'MATNR' .
    *  ls_fcat-inttype = 'C' .
      ls_fcat-outputlen = '18' .
      ls_fcat-hotspot = 'X'.
      ls_fcat-coltext = 'Material' .
      ls_fcat-seltext = 'Material' .
      APPEND ls_fcat TO pt_fieldcat .
      CLEAR ls_fcat .
      ls_fcat-fieldname = 'WERKS' .
    *  ls_fcat-outputlen = '30' .
      ls_fcat-coltext = 'Plant' .
      ls_fcat-seltext = 'Plant' .
      APPEND ls_fcat TO pt_fieldcat .
      CLEAR ls_fcat .
      ls_fcat-fieldname = 'PLNNR' .
    *  ls_fcat-outputlen = '6' .
      ls_fcat-coltext = 'Orig. IP' .
      ls_fcat-seltext = 'Orig. IP' .
      APPEND ls_fcat TO pt_fieldcat .
      CLEAR ls_fcat .
      ls_fcat-fieldname = 'PLNAL' .
    *  ls_fcat-outputlen = '6' .
      ls_fcat-coltext = 'Orig. IP Conuter' .
      ls_fcat-seltext = 'Orig. IP Conuter' .
      APPEND ls_fcat TO pt_fieldcat .
      CLEAR ls_fcat .
    ENDFORM .                    "prepare_field_catalog
    *&      Form  prepare_layout
    *       text
    *      -->PS_LAYOUT  text
    FORM prepare_layout CHANGING ps_layout TYPE lvc_s_layo.
      ps_layout-zebra = 'X' .
      ps_layout-grid_title = '' .
      ps_layout-smalltitle = 'X' .
      ps_layout-sel_mode = 'B'.
    ENDFORM. " prepare_layout
    *&      Module  DISPLAY  OUTPUT
    *       text
    MODULE display OUTPUT.
    ***ALV.
      IF gr_alvgrid IS INITIAL AND
         gr_alvgrid2 IS INITIAL.
    *----Creating custom container instance
        CREATE OBJECT gr_ccontainer
           EXPORTING
           container_name = gc_custom_control_name
           EXCEPTIONS
           cntl_error = 1
           cntl_system_error = 2
           create_error = 3
           lifetime_error = 4
           lifetime_dynpro_dynpro_link = 5
           OTHERS = 6 .
        CREATE OBJECT gr_ccontainer2
            EXPORTING
            container_name = gc_custom_control_name2
            EXCEPTIONS
            cntl_error = 1
            cntl_system_error = 2
            create_error = 3
            lifetime_error = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS = 6 .
    *----creating alv grid instance
        CREATE OBJECT gr_alvgrid
        EXPORTING
        i_parent = gr_ccontainer
        EXCEPTIONS
        error_cntl_create = 1
        error_cntl_init = 2
        error_cntl_link = 3
        error_dp_create = 4
        OTHERS = 5 .
        CREATE OBJECT gr_event_handler .
        SET HANDLER gr_event_handler->handle_hotspot_click FOR gr_alvgrid .
        SET HANDLER gr_event_handler->handle_double_click FOR gr_alvgrid .
    *----Preparing field catalog.
        PERFORM prepare_field_catalog CHANGING gt_fieldcat .
    *----Preparing layout structure
        PERFORM prepare_layout CHANGING gs_layout .
    *----Here will be additional preparations
    *--e.g. initial sorting criteria, initial filtering criteria, excluding
    *--functions
        CALL METHOD gr_alvgrid->set_table_for_first_display
        EXPORTING
    * I_BUFFER_ACTIVE =
    * I_CONSISTENCY_CHECK =
    * I_STRUCTURE_NAME =
    is_variant = ls_variant
    i_save = 'A'
    * I_DEFAULT = 'X'
        is_layout = gs_layout
    * IS_PRINT =
    * IT_SPECIAL_GROUPS =
    * IT_TOOLBAR_EXCLUDING =
    * IT_HYPERLINK =
        CHANGING
        it_outtab = tb_data
        it_fieldcatalog = gt_fieldcat
    * IT_SORT =
    * IT_FILTER =
        EXCEPTIONS
        invalid_parameter_combination = 1
        program_error = 2
        too_many_lines = 3
        OTHERS = 4 .
      ELSE .
        CALL METHOD gr_alvgrid->refresh_table_display
    * EXPORTING
    * IS_STABLE =
    * I_SOFT_REFRESH =
        EXCEPTIONS
        finished = 1
        OTHERS = 2 .
      ENDIF .
    ENDMODULE.                 " DISPLAY  OUTPUT
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'MONITOR'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE okcode_100.
        WHEN 'BACK'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  handle_hotspot_click
    *       text
    *      -->I_ROW_ID   text
    *      -->I_COLUMN_IDtext
    *      -->IS_ROW_NO  text
    FORM handle_hotspot_click USING i_row_id TYPE lvc_s_row
                                    i_column_id TYPE lvc_s_col
                                    is_row_no TYPE lvc_s_roid.
      READ TABLE tb_data INDEX is_row_no-row_id INTO wa_data.
      SELECT * FROM qals INTO CORRESPONDING FIELDS OF TABLE tb_data2
                WHERE selmatnr = wa_data-matnr AND
                      werk     = wa_data-werks .
      IF gr_alvgrid2 IS INITIAL.
        CREATE OBJECT gr_alvgrid2
      EXPORTING
      i_parent = gr_ccontainer2
      EXCEPTIONS
      error_cntl_create = 1
      error_cntl_init = 2
      error_cntl_link = 3
      error_dp_create = 4
      OTHERS = 5 .
    *----preparing field catalog.
        PERFORM prepare_field_catalog2 CHANGING gt_fieldcat2 .
    *----Preparing layout structure
        PERFORM prepare_layout CHANGING gs_layout2 .
    *----Here will be additional preparations
    *--e.g. initial sorting criteria, initial filtering criteria, excluding
    *--functions
        CALL METHOD gr_alvgrid2->set_table_for_first_display
        EXPORTING
    * I_BUFFER_ACTIVE =
    * I_CONSISTENCY_CHECK =
    * I_STRUCTURE_NAME =
    is_variant = ls_variant
    i_save = 'A'
    * I_DEFAULT = 'X'
        is_layout = gs_layout2
    * IS_PRINT =
    * IT_SPECIAL_GROUPS =
    * IT_TOOLBAR_EXCLUDING =
    * IT_HYPERLINK =
        CHANGING
        it_outtab = tb_data2
        it_fieldcatalog = gt_fieldcat2
    * IT_SORT =
    * IT_FILTER =
        EXCEPTIONS
        invalid_parameter_combination = 1
        program_error = 2
        too_many_lines = 3
        OTHERS = 4 .
      ELSE.
        CALL METHOD gr_alvgrid2->refresh_table_display
    * EXPORTING
    * IS_STABLE =
    * I_SOFT_REFRESH =
      EXCEPTIONS
      finished = 1
      OTHERS = 2 .
      ENDIF.
    *  call screen 100.
    ENDFORM .                    "handle_hotspot_click
    *&      Form  prepare_field_catalog2
    *       text
    *      <--P_GT_FIELDCAT2  text
    FORM prepare_field_catalog2 CHANGING pt_fieldcat TYPE lvc_t_fcat .
      DATA ls_fcat TYPE lvc_s_fcat .
      ls_fcat-fieldname = 'PRUEFLOS' .
      ls_fcat-outputlen = '23' .
      ls_fcat-coltext = 'Inspection Lot Number' .
      ls_fcat-seltext = 'Inspection Lot Number' .
      APPEND ls_fcat TO pt_fieldcat .
      CLEAR ls_fcat .
      ls_fcat-fieldname = 'ART' .
      ls_fcat-coltext = 'Inspection Type' .
      ls_fcat-seltext = 'Inspection Type' .
      APPEND ls_fcat TO pt_fieldcat .
      CLEAR ls_fcat .
      ls_fcat-fieldname = 'HERKUNFT' .
      ls_fcat-coltext = 'Inspection Lot Origin' .
      ls_fcat-seltext = 'Inspection Lot Origin' .
      APPEND ls_fcat TO pt_fieldcat .
      CLEAR ls_fcat .
      ls_fcat-fieldname = 'ENSTEHDAT' .
      ls_fcat-coltext = 'Date of Lot Creation' .
      ls_fcat-seltext = 'Date of Lot Creation' .
      APPEND ls_fcat TO pt_fieldcat .
      CLEAR ls_fcat .
    ENDFORM.                    " prepare_field_catalog2
    *&      Form  handle_double_click
    *       text
    *      -->I_ROW      text
    *      -->I_COLUMN   text
    *      -->IS_ROW_NO  text
    FORM handle_double_click USING i_row TYPE lvc_s_row
                                   i_column TYPE lvc_s_col
                                   is_row_no TYPE lvc_s_roid.
      CLEAR wa_data.
      READ TABLE tb_data INDEX i_row-index INTO wa_data.
      SET PARAMETER ID 'MAT' FIELD wa_data-matnr.
      SET PARAMETER ID 'WRK' FIELD wa_data-werks.
      SET PARAMETER ID 'QHK' FIELD '89'.
      SET PARAMETER ID 'PLN' FIELD wa_data-plnnr.
      SET PARAMETER ID 'PAL' FIELD wa_data-plnal.
      CALL TRANSACTION 'QA01' AND SKIP FIRST SCREEN.
      SET PARAMETER ID 'PLN' FIELD ' '.
      SET PARAMETER ID 'PAL' FIELD ' '.
    ENDFORM .                    "handle_double_click

  • Regarding A2A & B2B Scenario development in SAP PI /XI?

    Hello Experts,
    Kindly clarify my doubt regarding A2A & B2B Scenario's development in SAP PI / XI.
    I mean when to use & which adapter user in which scenario & specifically what difference does it make when we use one adapter in one scenario meant for another one. Will it work?
    The Question may be quite Naive to all of you but still want to clear some thing from my head.
    Best Regards
    Priyesh Shah

    Hi Inaki Vila,
    Thanks for Reply, i did searched SDN before raising this question. i stumble upon this difference between A2A and B2B scenarios.but the question still remain in my head what adapters should i use for B2B scenario is it necessary that i should use EDIFACT for B2B & not for A2A. Here in my company we are handling a client which has several legacy system in landscape which are integrated to SAP ERP with SAP PI here they mostly used File Adapters, what happens if i use File Adapters for B2B scenario.
    Best Regards
    Priyesh Shah

  • What is the protal development in sap-hr

    hi gurus,
    can u plz tel me what is the use of portal development in sap-hr and how can i navigate it 7 how to configure it.

    Hi,
    MGE (Management of Global Employees) supports the international transfers of employees.
    Via External Person ID, distinct personnel assignments are linked together to keep track of the career of the employee.
    PY - processing can be supported by Global Payroll.
    Check CCURE - parameters in T77S0 (CCURE GLEMP etc.)
    (both functionalities are supported by a number of IT's, look in 0700 - series).
    Look in IMG for required steps, furthermore  check some OSS - notes related to this topic (SAP note 662136, 517071 and 518503).
    Wilfred.

  • How to delete developer's SAP UserID and his SSCR key on SMP?

    How to delete developer's SAP UserID and his SSCR key on SMP?
    Dear Experts,
    Background:
    I want to delete developer's SAP UserID and SSCR key in QAS and SMP.
    Because as I known, developer's SAP UserID(registered SSCR key) is belonging to the SAP License measurement.
    I want to rid of the useless developer's SAP userID and the SSCR key registered on SMP.
    ====================Here below is the message I created===================
    Dear Expert,
    One of our developers whom registered SSCR key left, I want to delete
    his SAP UserID and his SSCR key.Can you pls tell me how to implement?
    What might have happened(expecially the downside) in the corresponding
    SAP Client if I delete the developer's SAP UserID and SSCR key? Will
    it cause our system screw up?
    I've searched the answer on SDN. Someone told me I should carry out the
    follow steps below:
    (1)Delete the Developer's SSCR key on Service Market Place(SMP).
    (2)Cancel all the Jobs defined by the Developer in DEV.
    (3)SU01, Replace the value 'Developer' with Blank at the 'LicenceData'
    lable.
    (4)Delte corresponding item of the Developer in 'DEVACCESS' table.
    (5)Lock/Delete the Developer.
    Is that right?
    Thanks!
    Jason   
    ====================Here below is the reply from SAP===================
    Dear Customer,
    When the SSCR Developer/Object keys are transfered to the system, the
    keys are stored in the following tables:
    o DEVACCESS : Developer keys
    o ADIRACCESS: Object keys
    But we do not have any report programs to delete the entries from these
    tables. If the customer wants to delete the entries, he has to write a
    local program to delete the table entries.
    SAP does not recommend ever cleaning out these developer keys, as long
    as the user ID is Locked / Deleted, that is the main thing.
    please Cancel all the Jobs defined by the Developer in DEV.
    So my recommendation to you is to first lock the user id of the user.
    Then Assign him a new userid which is not identical to the first one andthen subsequently delete the old userid.
    If you have an absolute need to delete a developer key without deleting
    a user then the easiest way to do this is probably to
    write a report with the instruction :
    delete from DEVACCESS where UNAME = ....
    Please note :
    There is no recording, who did what in the table, that is why SAP strong-ly does not recommend this, and customers will have to take responsibil-ity for this action.
    Thanks
    ====================My question is:===================
    Do you have any better suggestions?

    Hi,Rahul,Raghunandan
    Thank you very much!
    Her below were the SAP Support's main suggestions:
    1. Lock the user id of the user, then Assign him a new userid which is not identical to the first one and then subsequently delete the old userid.
    2. If you have an absolute need to delete a developer key without deleting a user then the easiest way to do this is probably to write a report.
    I want to know if I can delete the SSCR key directly via a particular TX? If I can, what is it? (I just want to know. For safety, I think I won't delete the SSCR key directly remained in 'DEVACCESS'.)
    Thanks!
    Jason

  • RE: Help on Development Consultant SAP Netweaver 2004 u0096 Enterprise Portal

    Hi ,
      I am planning to take Certification on Certification ID for Development Consultant SAP Netweaver 2004 – Enterprise Portal  {(Booking code): C_TEP15_04}. Can someone help me regarding the material availability.
    Thanks
    Venkat

    Hello Venkat,
    Exactly what kind of "material" are you looking for? The following site, https://www.sdn.sap.com/irj/sdn/developerareas/ep, has a Sneak Preview of SAP NetWeaver for downloading and eLearning material for you to go through to prepare yourself by going through the sample.  Does that help?
    Regards,
    John Ta

  • How to register as a developer in SAP

    hi
    how to register as a developer in SAP,
    i got to make soe chages to the extract structure for that i need the access key.
    any one can please give me the required information.
    regards
    sampath.

    Hi,
    you need to goto the service marketplace http://www.service.sap.com
    There you can register as a developer in your system (you need the installation no. of your system for that -->system->status) and you get access key for sap objects if necessary.
    kind regards
    Siggi

  • Need documentation about "Model Driven Development within SAP Netweaver"

    Hi All,
    in my dissertation there is a topic called "Model Driven Development within SAP Netweaver" and I am looking for documentation (literature) pointing on this.
    I'd prefer internet sources since I don't have time to order a book anymore.
    Thanks, Johannes

    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=modelDrivenDevelopment&cat=sdn_all
    Regards

  • SAP NetWeaver Developer Workplace & SAP NetWeaver Developer Studio

    Hi All
    1. What is the difference between SAP NetWeaver Developer Workplace  & SAP NetWeaver Developer Studio. Which area  JDI (Java Developer Infrastructure) fall in.
    2. Is  SAP NetWeaver Developer Workplace & SAP NetWeaver Developer Studio
    are tool for Enterprise Portal development/customizing Only  or can you use also use to customize  XI/BW/SRM etc..applications.
    3. Is SAP NetWeaver Developer Workplace  & SAP NetWeaver Developer Studio are replacement of old ABAP programming
    Thanks everyone.

    Julio,
    To answer your third question, No, NetWeaver Developer Studio (NDS) isn't to replace ABAP or ABAP workbench. NDS helps in creating Java based applications to compliment with the ABAP programs and enable them accessible via the Enterprise Portal. ABAP would stay to be the primary development language for SAP systems. The newest version of NetWeaver software also come with an option of ABAP stack where in you can develop web based applications (accessible via the portal) using ABAP
    Cheers,
    Kiran

  • Development Consultant SAP NetWeaver 2004

    Hi,
    I am a certified ABAP consultant with Certification 2000.  I would like to upgrade my certification to Development Consultant SAP NetWeaver 2004 - Application Development Focus ABAP.  Does anyone know where I can find study material for the certification exam?
    Thanks.

    Hello Corina
    I have taken both exams. Even at the Netweaver exam (6.40) which I passed 10 month ago a big portion of the questions were dealing with "basic" stuff. I you have not taken any exams yet I like to mention that you do not have to write down any answers but it is a multiple-choice test:
    - either a single answer is correct (then you will see radio-buttons at each possible answer) or
    - serveral answers are correct (checkboxes)
    Sample question: "Which modifications are possible with sorted internal tables?" => Of course you cannot append to such a table but must insert your entries.
    So, if you have a firm stand on BC430 (ABAP Dictionary), have developed quite a lot (-> BC400 basics of ABAP) and have some general understanding of ABAP-OO (BC401) you will be on the safe side. Also, have a general knowledge of the SAP Technology (guess corresponding to BC050) like the client-server technology.
    Official documents like the BC401 documents cannot be shared because SAP would not allow this. In any case, you will find plenty of information in the SAP online help.
    Finally, I highly recommend the weblog <a href="/people/thomas.jung3/blog/2005/05/15/abap-46c-to-640-delta-training 46C to 640 Delta Training"</a> by Thomas Jung. You need not to know these topics in detail, yet they might be useful for some questions.
    Regards
    Uwe

  • Development Consultant SAP Netweaver 2004 u0096 Enterprise Portal   Questions

    Hi
    I am planning to complete Development Consultant SAP Netweaver 2004 – Enterprise Portal
    I want to know the Cost for this Certifiation
    Guide lines how to prepare for this certification
    Please help me regarding this
    Thanks
    Venkat

    Hello Venkat,
    Exactly what kind of "material" are you looking for? The following site, https://www.sdn.sap.com/irj/sdn/developerareas/ep, has a Sneak Preview of SAP NetWeaver for downloading and eLearning material for you to go through to prepare yourself by going through the sample.  Does that help?
    Regards,
    John Ta

  • Development Consultant SAP NetWeaver u009104 - Enterprise Portal,

    Hi Friends,
    I am appearing for the SAP Consultant Certification
    Development Consultant SAP NetWeaver ‘04 - Enterprise Portal, in October , if anybody , who has taken the exam can help with some sample questions or the type of questions it would be of great help, or you can mail the sample/tentative qustions on my email [email protected]
    Any kind of help or guidance on the questions,would be highly appreciated.
    Thanks
    Paras

    Hi paras,
    you can find practice questions on Enterprise Portal at the below link,
    http://www.braincert.com/portal/
    Best Of luck for Exam.
    Regards,
    Kamaljeet Singh
    Pls don't forget to assign reward points when you feel that the answers to your questions are valuable.

  • Can Adobe forms developed under SAP NetWeaver be used in SAP Rel. 4.7 ?

    Hello,
    I was asked by a customer whether it is possible to use an adobe form  in SAP Release 4.7 which was developed in SAP NetWeaver or not.

    Hello,
    I think the key component you need for Adobe forms is ADS (Adobe document services) which you will only get with Netweaver.
    Please see the following link for SAP recommended environments for Adobe forms:
    http://help.sap.com/saphelp_nw04s/helpdata/EN/e4/9e7cf580ac401086a172a70e3c038b/frameset.htm
    Hope this helps,
    Harman

  • Apple iTunes developed by SAP?

    Is it true that iTunes was developed by SAP? How much and which parts were developed by SAP if I may ask since I know quite many users who have difficulties in syncing their mobile devices using iTunes on Mac and PC. Is iTunes an "Apple product" or a "SAP product" so to speak?

    artnative wrote:
    Is it true that iTunes was developed by SAP?
    Hello Art,
    No, that is not true.  The original software was called SoundJam.  It was developed by ex-Apple employees who had moved to a start-up.  It was later acquired by Apple and revamped into iTunes.  At no time has it had anything to do with SAP.

Maybe you are looking for

  • OCR and voting disks on ASM, problems in case of fail-over instances

    Hi everybody in case at your site you : - have an 11.2 fail-over cluster using Grid Infrastructure (CRS, OCR, voting disks), where you have yourself created additional CRS resources to handle single-node db instances, their listener, their disks and

  • How can set the responsiblity name and operatingunit name at header level y

    Dear all Good Morning i have to set the respname and org name at header level i taken the item at page level userinfo it is coming the right side of the page i want to be set at header level only in left side top only... is there any item style for t

  • After updating to 10.4.11 unable to access certain site.

    Since I updated to 10.4.11 I am unable to access the site: www.wdwinfo.com. My wife would listen to a podcast hosted by the site. iTunes just keeps spinning away that it's looking. I tried all four browsers on my machine to see if I could reach the s

  • Development of Calender

    Hi how to develop calender by using JAVA SWING ? Here conditions are one textbox and one small button are needed for this application.whenever i click on small button small calender window will be open and select on particular date the selected data

  • How to delete cost/profit centers and groups

    I am looking for a way to mass delete profit centers, cost centers, profit center groups and cost center groups. KS14 and 0ke2 works for centers but not groups. Are there any other t-codes or function modules?