Prob. with ALV_GRID

Hi Experts...
     well i've an ALV REPORT..
The problem I am facing is that when i execute it....it displays the whole list...
but i use some buttons available above list....(like Copying output into Excel list...etc)...n it is working for some buttons and for some it is showing errors...
like for displaying Sub-total button it is givin me a dump..
can some1 get my problem solved..?
pts wil b rewrd..

$----
*$ TYPE-POOLS
$----
TYPE-POOLS :  slis.
$----
*$ TYPES
$----
TYPES: BEGIN OF  ty_cond,
          kposn TYPE konv-kposn,
          kwert TYPE konv-kwert,
       END OF ty_cond.
$----
*$ internal tables
$----
DATA : it_vbap           TYPE TABLE OF zsd_equipment_costing.
DATA : it_vbap1          TYPE TABLE OF zsd_equipment_costing.
DATA : it_konv           TYPE TABLE OF ty_cond.
DATA : ltext1                TYPE TABLE OF tline .
DATA : ltext2                TYPE TABLE OF tline.
DATA : ltext3                TYPE TABLE OF tline.
DATA : ltext4                 TYPE TABLE OF  tline .
DATA : ltext5                 TYPE TABLE OF  tline.
DATA : ltext6                 TYPE TABLE OF  tline.
DATA : ltext7                 TYPE TABLE OF  tline.
DATA : lit_fieldcatalog  TYPE          slis_t_fieldcat_alv.
DATA : gt_top_of_page    TYPE slis_t_listheader.
DATA : it_events     TYPE  slis_t_event,
       it_events_f   TYPE  slis_t_event,
       it_commentary TYPE  slis_t_listheader.
$----
*$ work-areas
$----
DATA : wa_konv           LIKE LINE OF it_konv.
DATA : wa_vbap           LIKE LINE OF it_vbap.
DATA : wa_fieldcatalog   TYPE         slis_fieldcat_alv.
DATA : wa_layout         TYPE         slis_layout_alv.
DATA : w_text1         LIKE         tline.
DATA : w_text2         LIKE         tline.
DATA : w_text3         LIKE         tline.
DATA : w_text4          LIKE         tline.
DATA : w_text5          LIKE         tline.
DATA : w_text6          LIKE         tline.
DATA : w_text7          LIKE         tline.
DATA : wa_fieldcat   TYPE slis_fieldcat_alv,
       wa_events     TYPE slis_alv_event,
       wa_commentary TYPE slis_listheader.
$----
*$ work-variables
$----
DATA : w_result     TYPE     thead-tdname.
DATA : wrk_repid    LIKE   sy-repid.
DATA : wrk_tabix    TYPE   sy-tabix.
DATA : wrk_index    TYPE   sy-index.
DATA : i            TYPE   n VALUE 1.
DATA : wrk_des1     TYPE   tvm1t-bezei.
DATA : wrk_des2     TYPE   tvm2t-bezei.
DATA : wrk_knumv    TYPE   vbak-knumv.
DATA : wrk_pgrm        TYPE sy-repid.
wrk_repid = sy-repid.
CONSTANTS : c_top_of_page TYPE char30 VALUE 'TOP_OF_PAGE',
            c_end_of_page TYPE char30 VALUE  'END_OF_PAGE',
            c_form_name   TYPE char30 VALUE  'F_COMMENTARY',
            c_form_end    TYPE char30 VALUE 'F_END_OF_LIST',
            c_conh        TYPE char1 VALUE 'H',
            c_cons        TYPE char1 VALUE 'S'.
$----
*$ selection criteria
$----
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-015.
PARAMETERS:     p_vbeln LIKE vbap-vbeln OBLIGATORY.
SELECTION-SCREEN END OF BLOCK a1.
$----
*$ performs
$----
PERFORM select_data.
PERFORM read_text_data.
PERFORM create_field_catalog.
PERFORM display_list.
*&      Form  select_data
      text
-->  p1        text
<--  p2        text
FORM select_data .
  SELECT vbeln
         posnr
         matnr
         kdmat
         arktx
         abgru
         pstyv
         kwmeng
         mvgr1
         mvgr2
         FROM vbap
         INTO CORRESPONDING FIELDS OF TABLE it_vbap
         WHERE vbeln = p_vbeln.
  DELETE  it_vbap WHERE abgru IS  NOT INITIAL.
  LOOP AT it_vbap INTO wa_vbap.
    wa_vbap-chkbox = 'X'.
    MODIFY it_vbap FROM wa_vbap TRANSPORTING  chkbox.
  ENDLOOP.
  SELECT SINGLE knumv
                FROM vbak
                INTO wrk_knumv
                WHERE vbeln = p_vbeln.
  SELECT kposn
         kwert
         FROM konv
         INTO CORRESPONDING FIELDS OF TABLE it_konv
         WHERE knumv = wrk_knumv
         AND kschl = 'ZEK2'.
  LOOP AT it_konv INTO wa_konv.
    wrk_tabix = sy-tabix.
    LOOP AT it_vbap INTO wa_vbap WHERE posnr = wa_konv-kposn.
      wa_vbap-kwert = wa_konv-kwert.
      MODIFY it_vbap FROM wa_vbap INDEX wrk_tabix.
    ENDLOOP.
  ENDLOOP.
  LOOP AT it_vbap INTO wa_vbap.
    SELECT SINGLE bezei
                  FROM tvm1t
                  INTO wrk_des1
                  WHERE mvgr1 = wa_vbap-mvgr1.
    wa_vbap-des1 = wrk_des1.
    MODIFY it_vbap FROM wa_vbap TRANSPORTING des1.
  ENDLOOP.
  LOOP AT it_vbap INTO wa_vbap.
    SELECT SINGLE bezei
                  FROM tvm2t
                  INTO wrk_des2
                  WHERE mvgr2 = wa_vbap-mvgr2.
    wa_vbap-des2 = wrk_des2.
    MODIFY it_vbap FROM wa_vbap TRANSPORTING des2.
  ENDLOOP.
ENDFORM.                    " select_data
*&      Form  create_field_catalog
      text
-->  p1        text
<--  p2        text
FORM create_field_catalog .
  IF NOT it_vbap IS INITIAL.
    CLEAR lit_fieldcatalog.
    REFRESH lit_fieldcatalog.
    wa_fieldcatalog-fieldname = 'CHKBOX'.               " Check box
    wa_fieldcatalog-outputlen = '3'.
    wa_fieldcatalog-col_pos   = '1'.
    wa_fieldcatalog-seltext_m = text-002.
    wa_fieldcatalog-checkbox  = 'X'.
    wa_fieldcatalog-edit      = 'X'.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'POSNR'.                " Item number
    wa_fieldcatalog-outputlen = '6'.
    wa_fieldcatalog-col_pos   = '2'.
    wa_fieldcatalog-seltext_m = text-004.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'DES1'.                " Section
    wa_fieldcatalog-outputlen = '13'.
    wa_fieldcatalog-col_pos   = '3'.
    wa_fieldcatalog-seltext_m = text-003.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'DES2'.                " Category
    wa_fieldcatalog-outputlen = '15'.
    wa_fieldcatalog-col_pos   = '4'.
    wa_fieldcatalog-seltext_m = text-010.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'KWERT'.                " cost
    wa_fieldcatalog-outputlen = '15'.
    wa_fieldcatalog-col_pos   = '5'.
    wa_fieldcatalog-seltext_m = text-013.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'ARKTX'.                " Material
    wa_fieldcatalog-outputlen = '40'.
    wa_fieldcatalog-col_pos   = '6'.
    wa_fieldcatalog-seltext_m = text-005.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'BRIEF'.                " Brief description
    wa_fieldcatalog-outputlen = '10'.
    wa_fieldcatalog-col_pos   = '7'.
    wa_fieldcatalog-seltext_m = text-006.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'KDMAT'.                " TAG NUMBER
    wa_fieldcatalog-outputlen = '15'.
    wa_fieldcatalog-col_pos   = '8'.
    wa_fieldcatalog-seltext_m = text-011.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'MOC'.                " MOC
    wa_fieldcatalog-outputlen = '10'.
    wa_fieldcatalog-col_pos   = '9'.
    wa_fieldcatalog-seltext_m = text-007.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'KWMENG'.               " Quantity
    wa_fieldcatalog-outputlen =  '16'.
    wa_fieldcatalog-col_pos   = '10'.
    wa_fieldcatalog-seltext_m = text-008.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'INSU'.               " INSU
    wa_fieldcatalog-outputlen = '3'.
    wa_fieldcatalog-col_pos   = '11'.
    wa_fieldcatalog-seltext_m = text-016.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'ELEC'.               " elec
    wa_fieldcatalog-outputlen = '3'.
    wa_fieldcatalog-col_pos   = '12'.
    wa_fieldcatalog-seltext_m = text-017.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'SCOPE'.               " SCOPE
    wa_fieldcatalog-outputlen = '3'.
    wa_fieldcatalog-col_pos   = '13'.
    wa_fieldcatalog-seltext_m = text-018.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'REV.NO.'.               " revno
    wa_fieldcatalog-outputlen = '3'.
    wa_fieldcatalog-col_pos   = '14'.
    wa_fieldcatalog-seltext_m = text-019.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'REMARK'.                " REMARK
    wa_fieldcatalog-outputlen = '10'.
    wa_fieldcatalog-col_pos   = '15'.
    wa_fieldcatalog-seltext_m = text-009.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
  ENDIF.
ENDFORM.                    " create_field_catalog
*&      Form  display_list
      text
-->  p1        text
<--  p2        text
FORM display_list .
  IF NOT it_vbap IS INITIAL.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program       = wrk_repid
        i_callback_pf_status_set = 'PF_STATUS'
        i_callback_user_command  = 'USER_COMMAND'
        is_layout                = wa_layout
        it_fieldcat              = lit_fieldcatalog
      TABLES
        t_outtab                 = it_vbap
      EXCEPTIONS
        program_error            = 1
        OTHERS                   = 2.
    IF sy-subrc = 0.
    ENDIF.
  ENDIF.
ENDFORM.                    " display_list
*&      Form  status
      text
     -->ITAB       text
FORM pf_status USING itab  TYPE any.
  SET PF-STATUS 'ZSTANDARD'.
ENDFORM.                    "status
*&      Form  user_command
      text
     -->PA_1       text
     -->PA_2       text
FORM user_command USING pa_1 TYPE any pa_2 TYPE slis_selfield.
  DATA ref1 TYPE REF TO cl_gui_alv_grid.
  CASE sy-ucomm.
    WHEN 'PRINT'.                                         " print
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = ref1.
      CALL METHOD ref1->check_changed_data.           " Obtain list rows from screen
      FREE it_vbap1.
      it_vbap1 = it_vbap.
      DELETE it_vbap1 WHERE chkbox IS INITIAL.
      SORT it_vbap1 BY mvgr1 mvgr2.
      IF NOT it_vbap1 IS INITIAL.
        PERFORM new_alv.                        " show new alv
      ELSE.
        MESSAGE s000(zmsg_class).
      ENDIF.
  ENDCASE.
ENDFORM.                    "user_command
*&      Form  print_smartform
      text
-->  p1        text
<--  p2        text
FORM print_smartform .
  CALL FUNCTION '/1BCDWB/SF00000041'
EXPORTING
  ARCHIVE_INDEX              =
  ARCHIVE_INDEX_TAB          =
  ARCHIVE_PARAMETERS         =
  CONTROL_PARAMETERS         =
  MAIL_APPL_OBJ              =
  MAIL_RECIPIENT             =
  MAIL_SENDER                =
  OUTPUT_OPTIONS             =
  USER_SETTINGS              = 'X'
IMPORTING
  DOCUMENT_OUTPUT_INFO       =
  JOB_OUTPUT_INFO            =
  JOB_OUTPUT_OPTIONS         =
    TABLES
      it_vbap1                   = it_vbap1[]
EXCEPTIONS
  FORMATTING_ERROR           = 1
  INTERNAL_ERROR             = 2
  SEND_ERROR                 = 3
  USER_CANCELED              = 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.
ENDFORM.                    " print_smartform
*&      Form  read_text_data
      text
-->  p1        text
<--  p2        text
FORM read_text_data .
  w_result = p_vbeln.
  LOOP AT it_vbap INTO wa_vbap.
  wrk_tabix = sy-tabix.
    CONCATENATE p_vbeln wa_vbap-posnr INTO  w_result.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        client                  = sy-mandt
        id                      = 'Z001'
        language                = sy-langu
        name                    = w_result
        object                  = 'VBBP'
      TABLES
        lines                   = ltext1
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
    IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT ltext1 INTO w_text1.
      CONCATENATE wa_vbap-brief w_text1-tdline INTO wa_vbap-brief SEPARATED BY space.
    ENDLOOP.
    MODIFY it_vbap FROM wa_vbap INDEX wrk_tabix.
    FREE ltext1.
   READ TABLE ltext1 INTO w_text1 INDEX 1.
   IF sy-subrc = 0.
     wa_vbap-brief = w_text1-tdline.
     MODIFY it_vbap FROM wa_vbap TRANSPORTING brief.
     FREE ltext1.
     CLEAR : wa_vbap-brief.
   ENDIF.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        client                  = sy-mandt
        id                      = 'Z002'
        language                = sy-langu
        name                    = w_result
        object                  = 'VBBP'
      TABLES
        lines                   = ltext2
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
    IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT ltext2 INTO w_text2.
      CONCATENATE wa_vbap-moc w_text2-tdline INTO wa_vbap-moc SEPARATED BY space.
    ENDLOOP.
    MODIFY it_vbap FROM wa_vbap INDEX wrk_tabix.
FREE ltext2.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        client                  = sy-mandt
        id                      = 'Z003'
        language                = sy-langu
        name                    = w_result
        object                  = 'VBBP'
      TABLES
        lines                   = ltext3
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
    IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT ltext3 INTO w_text3.
      CONCATENATE wa_vbap-remark w_text3-tdline INTO wa_vbap-remark SEPARATED BY space.
    ENDLOOP.
    MODIFY it_vbap FROM wa_vbap INDEX wrk_tabix.
FREE ltext3.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        client                  = sy-mandt
        id                      = 'Z004'
        language                = sy-langu
        name                    = w_result
        object                  = 'VBBP'
      TABLES
        lines                   = ltext4
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
    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 ltext4 INTO w_text4 INDEX 1.
    IF sy-subrc = 0.
      wa_vbap-insu = w_text4-tdline.
      MODIFY it_vbap FROM wa_vbap TRANSPORTING insu.
      FREE ltext4.
      CLEAR  : wa_vbap-insu.
    ENDIF.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        client                  = sy-mandt
        id                      = 'Z005'
        language                = sy-langu
        name                    = w_result
        object                  = 'VBBP'
      TABLES
        lines                   = ltext5
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
    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 ltext5 INTO w_text5 INDEX 1.
    IF sy-subrc = 0.
      wa_vbap-elec = w_text5-tdline.
      MODIFY it_vbap FROM wa_vbap TRANSPORTING elec.
      FREE ltext5.
      CLEAR  : wa_vbap-elec.
    ENDIF.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        client                  = sy-mandt
        id                      = 'Z006'
        language                = sy-langu
        name                    = w_result
        object                  = 'VBBP'
      TABLES
        lines                   = ltext6
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
    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 ltext6 INTO w_text6 INDEX 1.
    IF sy-subrc = 0.
      wa_vbap-scope = w_text6-tdline.
      MODIFY it_vbap FROM wa_vbap TRANSPORTING scope.
      FREE ltext6.
      CLEAR  : wa_vbap-scope.
    ENDIF.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        client                  = sy-mandt
        id                      = 'Z007'
        language                = sy-langu
        name                    = w_result
        object                  = 'VBBP'
      TABLES
        lines                   = ltext7
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
    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 ltext7 INTO w_text7 INDEX 1.
    IF sy-subrc = 0.
      wa_vbap-revno = w_text7-tdline.
      MODIFY it_vbap FROM wa_vbap TRANSPORTING revno.
      FREE ltext7.
      CLEAR  : wa_vbap-revno.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " read_text_data
*&      Form  new_alv
      text
-->  p1        text
<--  p2        text
FORM new_alv .
  PERFORM build_events.
  PERFORM create_field_catalog_new.
  PERFORM get_layout.
  PERFORM display_list_new.
ENDFORM.                    " new_alv
*&      Form  create_field_catalog_new
      text
-->  p1        text
<--  p2        text
FORM create_field_catalog_new .
  IF NOT it_vbap1 IS INITIAL.
    CLEAR lit_fieldcatalog.
    REFRESH lit_fieldcatalog.
   wa_fieldcatalog-fieldname = 'POSNR'.                " Item number
   wa_fieldcatalog-outputlen = '6'.
   wa_fieldcatalog-col_pos   = '2'.
   wa_fieldcatalog-seltext_m = text-004.
   APPEND wa_fieldcatalog TO lit_fieldcatalog.
   CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'DES1'.                " Section
    wa_fieldcatalog-outputlen = '13'.
    wa_fieldcatalog-col_pos   = '1'.
    wa_fieldcatalog-seltext_m = text-003.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'DES2'.                " Category
    wa_fieldcatalog-outputlen = '15'.
    wa_fieldcatalog-col_pos   = '2'.
    wa_fieldcatalog-seltext_m = text-010.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'KWERT'.                " cost
    wa_fieldcatalog-outputlen = '15'.
    wa_fieldcatalog-col_pos   = '3'.
    wa_fieldcatalog-seltext_m = text-013.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'ARKTX'.                " Material
    wa_fieldcatalog-outputlen = '40'.
    wa_fieldcatalog-col_pos   = '6'.
    wa_fieldcatalog-seltext_m = text-005.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'BRIEF'.                " Brief description
    wa_fieldcatalog-outputlen = '10'.
    wa_fieldcatalog-col_pos   = '7'.
    wa_fieldcatalog-seltext_m = text-006.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'KDMAT'.                " TAG NUMBER
    wa_fieldcatalog-outputlen = '15'.
    wa_fieldcatalog-col_pos   = '8'.
    wa_fieldcatalog-seltext_m = text-011.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'MOC'.                " MOC
    wa_fieldcatalog-outputlen = '10'.
    wa_fieldcatalog-col_pos   = '9'.
    wa_fieldcatalog-seltext_m = text-007.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'KWMENG'.               " Quantity
    wa_fieldcatalog-outputlen = '16'.
    wa_fieldcatalog-col_pos   = '10'.
    wa_fieldcatalog-seltext_m = text-008.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'INSU'.               " INSU
    wa_fieldcatalog-outputlen = '3'.
    wa_fieldcatalog-col_pos   = '11'.
    wa_fieldcatalog-seltext_m = text-016.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'ELEC'.               " elec
    wa_fieldcatalog-outputlen = '3'.
    wa_fieldcatalog-col_pos   = '12'.
    wa_fieldcatalog-seltext_m = text-017.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'SCOPE'.               " SCOPE
    wa_fieldcatalog-outputlen = '3'.
    wa_fieldcatalog-col_pos   = '13'.
    wa_fieldcatalog-seltext_m = text-018.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'REV.NO.'.               " revno
    wa_fieldcatalog-outputlen = '3'.
    wa_fieldcatalog-col_pos   = '14'.
    wa_fieldcatalog-seltext_m = text-019.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
    wa_fieldcatalog-fieldname = 'REMARK'.                " REMARK
    wa_fieldcatalog-outputlen = '10'.
    wa_fieldcatalog-col_pos   = '11'.
    wa_fieldcatalog-seltext_m = text-009.
    APPEND wa_fieldcatalog TO lit_fieldcatalog.
    CLEAR wa_fieldcatalog.
  ENDIF.
ENDFORM.                    " create_field_catalog_new
*&      Form  display_list_new
      text
-->  p1        text
<--  p2        text
FORM display_list_new .
  IF NOT it_vbap1 IS INITIAL.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program          = wrk_repid
        i_callback_html_end_of_list = ' '
        i_callback_pf_status_set    = 'STATUS'
       i_callback_user_command     = 'USER_COMMAND'
        is_layout                   = wa_layout
        it_fieldcat                 = lit_fieldcatalog
        it_events                   = it_events
      TABLES
        t_outtab                    = it_vbap1
      EXCEPTIONS
        program_error               = 1
        OTHERS                      = 2.
    IF sy-subrc = 0.
    ENDIF.
  ENDIF.
ENDFORM.                    " display_list_new
*&      Form  status
      text
     -->ITAB       text
FORM status USING itab  TYPE any.
  SET PF-STATUS 'ZSTANDARD1'.
ENDFORM.                    "status
*&      Form  build_events
      text
-->  p1        text
<--  p2        text
FORM build_events .
  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
      i_list_type     = 0
    IMPORTING
      et_events       = it_events
    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.
  READ TABLE it_events INTO wa_events WITH KEY name = c_top_of_page.
  IF sy-subrc = 0.
    CLEAR wa_events.
    wa_events-name = c_top_of_page.
    wa_events-form = c_form_name.
    APPEND wa_events TO it_events_f.
  ENDIF.
ENDFORM.                    " build_events
*&      Form  f_commentary1
      text
FORM f_commentary1 .
  DATA: ls_name TYPE char50,
        ls_add  TYPE char100.
  REFRESH it_commentary.
  CLEAR   wa_commentary.
--Header details-----
  wa_commentary-typ  = c_conh.
  wa_commentary-info = text-111.
  APPEND wa_commentary TO it_commentary.
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
             it_list_commentary = it_commentary
         I_LOGO             =
         I_END_OF_LIST_GRID =
ENDFORM.                    "f_commentary1
*&      Form  get_layout
      text
-->  p1        text
<--  p2        text
FORM get_layout .
  wrk_pgrm                    = sy-repid.
  wa_layout-zebra             = 'X'.
  wa_layout-colwidth_optimize = 'X'.
endform.

Similar Messages

  • Prob. with iTunes, Phone won't shut off.  Tks.

    3GS with 6.1.3 Prob. with iTunes.  When I want to close out of iTunes after a Podcast the App will not close out when I hit Home. All other Apps shut down, only prob. is with iTunes.  Cant turn phone off goes back ti iTunes when turned on again.  Tks.

    I hope the previous replies are wrong. It was my understanding that even when Match is turned off in iTunes, music previously matched or uploaded to iCloud will stay there, associated with my Apple ID, even through a cold boot etc. If you want to remove songs from iCloud, but keep them locally, do this:
    1. Click "Store" in the iTunes top Menu
    2. Select "Turn on iTunes Match" (if it isn't already turned on)
    3. Close iTunes.
    4. Hold down the Shift key while you open iTunes - this will prompt you to choose or create a (new, locally empty) Library in a different folder from your main Library.
    5. Now you should see ONLY music that is stored in iCloud.
    6. Delete them all. iTunes will show a checkbox or button for you to click to delete the selected items from iCloud.
    7. Turn off iTunes Match (see #1)
    8. Restart iTunes with the Shift key again, so you can get back to your main Library - with Match turned off.

  • I have copied my iTunes library onto a new computer, but when I play back the songs there seems to be random "miss" or "drop out".  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    I have copied my iTunes library onto a new computer, but when I play back the songs using the new computer, there seems to be random "miss" or "drop out" during play back, similar to a small scratch on a vinyl record.  Although when I play the same song over again, the "miss" occurs in a different location during the song.  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    You don't say which version of iTunes you are using, but the symptoms you describe have been encountered by some users with the 64-bit version of iTunes 12.1.
    There is an alternative version for 64-bit editions of Windows here:
    iTunes 12.1 for Windows (64-bit — for older video cards)
    that seems to address the most of the playback issues that some users have been reporting with the full 64-bit version of 12.1.0.77 - including problems with Bluetooth speakers where either sound is degraded or completely absent.  The alternative installer here is the same architecture as most previous "64-bit" versions of iTunes, i.e., a 32-bit application with a 64-bit installer.  The "for older video cards" label appears to be something of a misnomer as some people have reported that this corrects problems found on current / high-spec systems.
    Some users have reported that after installing this alternative version it is necessary to adjust the "Play audio using" selection (normally to "Direct Sound" rather than "Windows Audio Session", though this may vary based on your audio hardware/drivers) in Edit > Preferences > Playback to restore glitch-free audio (one part of the reported symptoms is that the "Direct Sound" choice isn't available, usually in Windows 8).  It may also be necessary to ensure that your Bluetooth speakers are active and selected as the default audio device before you run iTunes.
    If this doesn't address the issue, you may want to think about reverting to iTunes 12.0 - see Turingtest2's notes on Troubleshooting issues with iTunes for Windows updates for steps needed to completely remove all installed iTunes components, and for links to the 12.0 installers.

  • Prob with decode function

    hi iam having prob with the following decode function
    declare
    c varchar2(20);
    begin
    select decode(deptno,
    10, 'accounting',
    20,'Research',
    30 ,'sales',
    40,'operations','UNKNOWN') into c from dept where loc='DALLAS';
    dbms_output.put_line('DEPARTMENT in DALLAS'||c);
    select decode(deptno,
    10, 'accounting',
    20,'Research',
    30 ,'sales',
    40,'operations','UNKNOWN') into c from dept where loc='INDIA';
    dbms_output.put_line('DEPARTMENT IN INDIA'||c);
    end;
    iam getting no_data_found exception which is reasonable..but what happened to 'unknown' clause in decode function.
    thank u
    rajiv

    Please see the responses to your prob in decode function
    John

  • Airport connection probs with Mac Pro and 10.4.8  too.

    This prob is not just related to iMacs or MacBooks as published in the knowledge base doc. I have exactly the same prob with my 2.66 GHz Mac Pro. I have to reconnect this beast to my wlan router manually every time.
    PLZ Apple fix this asap!

    I had a similar problem which I've fixed!
    I have four machines here which can connect to my Netgear DG834N via Aiport. (I say can because they normally connect via ethernet.) My MacBook Pro always used to be fine when connected wirelessly but recently, not aware of any changes I've made, it connects for about 10 seconds then disconnects. All other machines are fine and hold the connection.
    This is what I tried before finding my solution:
    1) Deleted all references to the network in the keychain and remade them.
    2) Created another user to try
    3) Changed channels on the router even though I can't see any neighbour's networks.
    4) Made sure computer and router were up to date with firmware/software.
    I'm assuming that it has to be a computer problem as the PowerMac, iMac and iPod Touch have no issues at all. However, the cure was in the router.
    I run with SSID broadcast turned off, WPA2 encryption and MAC address filtering. Allowing broadcast of the SSID cures my problem. Turn it off and the computer connects then drops it ten seconds later. Turn broadcast on and it maintains the connection. I've tried it all afternoon, leaving it connected for about 30 minutes at a time before turning SSID broadcast off again. Works every time! Broadcast SSID - fine, no broadcast - drops after ten seconds.
    Now, if only I knew why! And why only the laptop?

  • Hey, i have very strange prob with my iphone 5(latest version/updated), after resetting it, so it doesn't connect to my laptop, even it doesn't charge too. it does charge from wall charger i try all the possible methods but still i am facing the prob

    Hey, i have very strange prob with my iphone 5(latest version/updated), after resetting it, so it doesn't connect to my laptop, even it doesn't charge too. it does charge from wall charger i try all the possible methods but still i am facing the prob any fix/solution for it.. Helppppp!!!!!!!!!!!!!!!!!!!!!!!! As soon as possible, it will be gratefulness,
                                Thnksssssss....

    So you are saying that you followed all of the steps in the support document for problems with connection, including removing and reinstalling iTunes? You do not say what you have tried, so it is hard to make recommendations. If this is the case, then you have tried resolving driver issues? What if you go to Device Manager and look for the iPhone. You should be able to click on it and see about drivers. You can update/reinstall the device driver.

  • Function module Prob with kostl

    hi,good day guys.
    Iam using K_ORDER_SRULE_ADD for settelment rules. In this other function module  for read the fields one whic is K_DEFAULT_RULE_READ.. This is k_order_srule_add f.m source code as below as.
    .default rule table TKB2C is maintained as 'I_SRULES' therefore
    *.....aditional work area is needed.
          i_srules = srules.
    *.....fill COBL to find KONTY
          cobl-kokrs        = ld_kokrs.
          cobl-gsber        = srules-bus_area.
          cobl-bukrs        = srules-comp_code.
          cobl-saknr        = srules-gl_account.
          cobl-prctr        = srules-profit_ctr.
          cobl-kostl        = srules-costcenter.                     "here iam getting the cost center value
          cobl-aufnr        = srules-orderid.
          CALL FUNCTION 'CJPN_EXTERN_TO_INTERN_CONV'
            EXPORTING
              ext_num       = srules-wbs_element
            IMPORTING
              int_num       = cobl-ps_psp_pnr
            EXCEPTIONS
              error_message = 2
              OTHERS        = 1.
            EXIT.
          ENDIF.
          cobl-anln1        = srules-asset_no.
          cobl-anln2        = srules-sub_number.
          cobl-nplnr        = srules-network.
          cobl-vornr        = srules-activity.
          cobl-kdauf        = srules-sales_ord.
          cobl-kdpos        = srules-s_ord_item.
          cobl-kstrg        = srules-cost_obj.
          cobl-prznr        = srules-co_busproc.
    *.....get ASSIGN information in IT_DFTAB
          CLEAR konty.
          CALL FUNCTION 'K_DEFAULT_RULE_READ'        "this FM reads the fields and assining to the lt_dftab
            EXPORTING
              dfreg         = 'BAP'
              obart         = 'OR'
              i_cobl        = cobl
            IMPORTING
              e_konty       = konty
            TABLES
              dftab         = it_dftab                                           "iam not getting the costcenter[kostl] field..
            EXCEPTIONS
              error_message = 2
              OTHERS        = 1.
          IF ( sy-subrc <> 0 ).
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                    RAISING error_occurred.
            flg_leave = 'X'.
            EXIT.
          ENDIF.
    Based on lt_dftab fields. K_POSTING_RULE_INSERT f.m willbe insert the values.prob with costcenter.
    Edited by: balaji kiran on Apr 14, 2010 7:55 AM
    Edited by: balaji kiran on Apr 14, 2010 7:57 AM

    Hi,
    Could you explain how you did it?
    -Thanks

  • ACE HTTP Probe with regex

    ACE HTTP Probe with regex
    Hi,
    I'm trying to setup a HTTP probe with expected string rather then a code (config below). I do a GET for the page then a search for a string in the response however it's not working, as probe appears as failed.
    I've tested the connection to the server by using telneting and then looking at the page displayed to make sure the string I want to match is in the response.
    probe http HTTP-PROBE
    port 43050
    interval 30
    passdetect interval 30
    passdetect count 1
    request method get url /action=help
    open 43050
    expect regex action=help
    Q. Is there anything wrong with this configuration and what I'm trying to achive?
    Thanks,
    Pritesh

    Use "expect status" under probe config. expect regex doesnt work if expect status is not configured.
    expect regex work flawlessly with static pages. It doesnt work all the time with dynamic pages.
    Specially if "content-length" header is missing from Server response.
    Hope it helps
    Syed Iftekhar Ahmed

  • I Was trying to update my apps, then i got an alert that said sign in required. I pressed continue, then it took me to my acct settings and it said there was a prob with my previous purchase and I havent purchased anything???

    I Was trying to update my apps when i got a sign in required alert,
    i signed in and it took me to my account settings ]it said there was a prob with a previous purchase and i havent purchased anything?

    http://support.apple.com/kb/ht1808

  • Since I'm having probs with ios6 and Safari, would the Atomic browser be worth a try?

    Since i'm having probs with ios6 and Safari (Autofill and loss of Wi Fi), would the Atomic browser be worth a try?  trouble is, I'm a bit of a 'newbie' when it comes to the 'clever' stuff, so need a bit of expert advice here.

    I use the Atomic browser for some things. I feel it's main advantage is that you can set the type of browser that Atomic reports. I set mine to Internet Explorer and that allows me to visit regular websites without being redirected to a tablet version. Its free so why not download it and give it a try. If you find it wanting just delete it.

  • I'm a photoshop user on Mac and I was obliged to uninstall Photoshop because prob with generator. Now it's impossible for me to re-download Photoshop. Can you Help? Please

    I'm a photoshop user on Mac and I was obliged to uninstall Photoshop because prob with generator. Now it's impossible for me to re-download Photoshop. Can you Help? Please

    Run the cleaner tool and try again.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

  • ACE Appliance HTTP Probe with "POST" query

    Does the ACE support HTTP Probe with a "POST" query?
    Thanks
    Joe

    Hi Joe,
    The ACE only supports GET and HEAD
    Here is the documentation related to this:
    http://www.cisco.com/en/US/customer/docs/interfaces_modules/services_modules/ace/vA5_1_0/configuration/slb/guide/probe.html#wp1031485
    Cesar R

  • SD card reader prob with L530 on Win 7

    this forum is so crowded, incredible. sorry to say that. have a serious prob with the integrated SD card reader with my L530 on Win 7:
    - not showing in device manager with/without card
    - not showing in explorer, when card inserted (tried different cards, no worries)
    - installed all available lenovo&win7 card reader driver, no change
    - not even LED light flickering or anything, just off, no function
    - no option in power management to enable card reader (as suggested in some forums)
    would be a shame if i couldnt use the in-built lenovo hardware.
    thanks for help
    klingsor

    Hi, klingsor
    I would firstly make sure that the Card Reader is enabled in BIOS. This can be done by entering BIOS (hit Enter at splash screen, then hit F1 when the menu pops up.) From here, select Security and then I/O Port Access. Make sure the Card Reader here is set to Enabled. 
    I would also recommened making sure your BIOS has been updated, as this can sometimes cause some issues with peripherals not working as intended. The latest version can be found here.
    Best,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • Two probs with my imac need help with

    Hi all I bought my first mac for the wife but we have two probs with it we cant get on top of
    One is every time we try to access her mac that is on the same network it asking for a password
    But none of the pcs have a password on
    And the second prob is the mac losers sound on email but we are not on an imap account
    So I have read that it is something to do with the idle setting but we can not find the settings
    Can anybody help and I must say the mac is the best PC I have every used that's if I can get the wife off it

    al22,
    You have 90 days of free AppleCare telephone support. If your machine is within the 90 days or you have already bought AppleCare (STRONGLY recommended) give them a call. The support is excellent, nothing like what you are used to with a PC.
    Because you did not complete your profile we have no idea where you are located, what machine you have or the version of OS X installed. Please complete your profile, you can find it under Your Stuff in the upper right.
    http://support.apple.com/kb/HE57

  • I am having a prob with PB10

    hi,
    i am having a prob with authorizations, when am creating a user RAJ and this user i had given a transaction code PB10 it will work on 4.7, but in ECC 5.0 when its ( PB10, PB20 ) giving its not working means u r not having authorizations to access this T_Code.  give some solutions for this very very urgent.
    regards,
    Ramesh.

    try to read the Su53 report for the error

Maybe you are looking for

  • I am looking to order replacement media for a CS6 master collection Install in India; Where can I bu

    I have a User Group Manager looking to order replacement media for a CS6 master collection Install in India; Where can I buy the DVDs to do a local install, in India? I cannot find it on the Adobe.com site? This page is not update nor is it helpful.

  • XMII Portal Login Page

    Hi , I am unable to view the login screen for the xMII portal. I tried to access the login page from the system where the xmII server is installed. When i type in the url -- http://<server>/Lighthammer/Login.jsp it directs me to the menu page without

  • How do i insert javascript stuff into dreamweaver?

    okay, first of all, im a total idiot when it comes to javascript and CSS, so please expect me to ask a lot of stupid questions. basically, i want to know how to insert a javascript file into your dreamweaver website. for example, i have a drop down m

  • Web Dynpro & Adobe Forms: Context Mapping

    Hi Experts, By assigning a form to a view via templateSource the option to automatically generate context. With sample data, implemented in the view its working fine. Now I want to use data out of the component controllers' context, but I can't map t

  • Mail (OS 10.8.2) hangs and spins continually. have to force quit and restart.

    I stopped using Outlook (Office for Mac) on my MacAir because it would hang and spin.  But Mail is doing it too.  I used to have four accounts attached (icloud, entourage, outlook, gmail) but took off gmail and outlook and now have only entourage and