Trying to add header using REUSE_ALV_COMMENTARY_WRITE', it is showing blank

Hi,
I am trying to add header to my ALV grid report using the FM REUSE_ALV_COMMENTARY_WRITE'
It is displaying a blank window.
My code is
*& Report  YGTSPRODUCT
*& Author : Krishna Chaitanya Nandimandalam
*& Desc :   Display Products by Product Characteristics
REPORT  YGTSPRODUCT.
*& Structure declarations
type-pools : slis.
TYPES  : BEGIN OF TY_CTSNUMC,
         GUID_CTSNUMC TYPE /SAPSLL/CTSNUMC-GUID_CTSNUMC, "Primary Key as GUID in "RAW" Format
         GUID_MOBJ    TYPE /SAPSLL/CTSNUMC-GUID_MOBJ,    "Primary Key as GUID in "RAW" Format
         STCTS        TYPE /SAPSLL/CTSNUMC-STCTS,        "Numbering Scheme for Customs Tariff System
         CCNGN        TYPE /SAPSLL/CTSNUMC-CCNGN,        "Number (Generic/Structured)
         CRTSP        TYPE /SAPSLL/PRGEN-CRTSP,         "UTC Time Stamp When Object Was Added
         CHTSP        TYPE /SAPSLL/PRGEN-CHTSP,          "UTC Time Stamp When Object Was Changed
       END OF TY_CTSNUMC.
TEST --CREATING ANOTHER STUCTURE TO GET THE COMMON FIELD FOR GUID_PR
TYPES : BEGIN OF TY_PRCTSC,
        GUID_PRCTSC  TYPE /SAPSLL/PRCTSC-GUID_PRCTSC,   "Primary Key as GUID in "RAW" Format
        GUID_PR      TYPE /SAPSLL/PRCTSC-GUID_PR,  "Primary Key as GUID in "RAW" Format
        STCTS        TYPE /SAPSLL/PRCTSC-STCTS,   "Numbering Scheme for Customs Tariff System
        GUID_CTSNUMC TYPE /SAPSLL/PRCTSC-GUID_CTSNUMC, "Primary Key as GUID in "RAW" Format
        END OF TY_PRCTSC.
TYPES : BEGIN OF TY_PRGEN,
      GUID_PRGEN TYPE  /SAPSLL/PRGEN-GUID_PRGEN, "Primary Key as GUID in "RAW" Format
      GUID_PR    TYPE  /SAPSLL/PR-GUID_PR,       "Primary Key as GUID in "RAW" Format
      ATTR20A    TYPE  /SAPSLL/PRGEN-ATTR20A,    "Substance ID
      ATTR05A    TYPE  /SAPSLL/PRGEN-ATTR05A,    "Materail Type
      ATTR10A    TYPE  /SAPSLL/PRGEN-ATTR10A,    "Materail Group
      ATTR05B    TYPE  /SAPSLL/PRGEN-ATTR05B,    "Sub-Family
       END OF TY_PRGEN.
TYPES : BEGIN OF TY_PNTPR,
       GUID_PR TYPE /SAPSLL/PR-GUID_PR,
       PRVSY TYPE /SAPSLL/PNTPR-PRVSY,   "R3 MATERIAL NUMBER
       GRVSY TYPE /SAPSLL/PNTPR-GRVSY,   "LOGICAL SYSTEM GROUP
       END OF TY_PNTPR.
*TYPES : D_PSUI TYPE /SAPSLL/PRODUCT_SELECT_UI_S-QUAL_STA.  "PRODUCT STATUS
*TYPES : BEGIN OF D_CORSTA,
       GUID_MOBJ TYPE /SAPSLL/CORSTA-GUID_MOBJ,
       QUAL_STA TYPE /SAPSLL/CORSTA-QUAL_STA,
       CHTSP TYPE /SAPSLL/CORSTA-CHTSP,
       END OF D_CORSTA.
>PRODUCT STAUS
*DATA  : BEGIN OF T_CORSTA OCCURS 0,
       GUID_MOBJ TYPE /SAPSLL/CORSTA-GUID_MOBJ,
       QUAL_STA TYPE /SAPSLL/CORSTA-QUAL_STA,
       END OF T_CORSTA.
TYPES : BEGIN OF TY_PR,
        GUID_PR TYPE /SAPSLL/PR-GUID_PR,  "Primary Key as GUID in "RAW" Format
        CRTSP   TYPE /SAPSLL/PR-CRTSP, "PRODUCT CREATED ON
        CHTSP   TYPE /SAPSLL/PR-CHTSP, "PRODUCT CHANGED ON
        END OF TY_PR.
TYPES : BEGIN OF TY_PRT,
       GUID_PR TYPE /SAPSLL/PRT-GUID_PR, "Primary Key as GUID in "RAW" Format
       PRTXT   TYPE /SAPSLL/PRT-PRTXT,    "Materail description
        END OF TY_PRT.
TYPES : BEGIN OF TY_FINAL,
*T_PRCTSC
         GUID_PRCTSC  TYPE /SAPSLL/PRCTSC-GUID_PRCTSC,   "Primary Key as GUID in "RAW" Format
         GUID_PR      TYPE /SAPSLL/PRCTSC-GUID_PR,  "Primary Key as GUID in "RAW" Format
         STCTS        TYPE /SAPSLL/PRCTSC-STCTS,   "Numbering Scheme for Customs Tariff System
         GUID_CTSNUMC TYPE /SAPSLL/PRCTSC-GUID_CTSNUMC, "Primary Key as GUID in "RAW" Format
*T_CTSNUMC
        GUID_CTSNUMC TYPE /SAPSLL/CTSNUMC-GUID_CTSNUMC, "Primary Key as GUID in "RAW" Format
         GUID_MOBJ    TYPE /SAPSLL/CTSNUMC-GUID_MOBJ,    "Primary Key as GUID in "RAW" Format
        STCTS        TYPE /SAPSLL/CTSNUMC-STCTS,        "Numbering Scheme for Customs Tariff System
         CCNGN        TYPE /SAPSLL/CTSNUMC-CCNGN,        "Number (Generic/Structured)
        CRTSP        TYPE /SAPSLL/PRGEN-CRTSP,         "UTC Time Stamp When Object Was Added
        CHTSP        TYPE /SAPSLL/PRGEN-CHTSP,          "UTC Time Stamp When Object Was Changed
*T_PRGEN
         GUID_PRGEN TYPE  /SAPSLL/PRGEN-GUID_PRGEN, "Primary Key as GUID in "RAW" Format
        GUID_PR    TYPE  /SAPSLL/PR-GUID_PR,       "Primary Key as GUID in "RAW" Format
         ATTR20A    TYPE  /SAPSLL/PRGEN-ATTR20A,    "Substance ID
         ATTR05A    TYPE  /SAPSLL/PRGEN-ATTR05A,    "Materail Type
         ATTR10A    TYPE  /SAPSLL/PRGEN-ATTR10A,    "Materail Group
         ATTR05B    TYPE  /SAPSLL/PRGEN-ATTR05B,    "Sub-Family
*T_PNTPR
        GUID_PR    TYPE /SAPSLL/PR-GUID_PR,  "Primary Key as GUID in "RAW" Format
         PRVSY      TYPE /SAPSLL/PNTPR-PRVSY,   "R3 MATERIAL NUMBER
         GRVSY      TYPE /SAPSLL/PNTPR-GRVSY,   "LOGICAL SYSTEM GROUP
T_PR
       GUID_PR TYPE /SAPSLL/PR-GUID_PR,  "Primary Key as GUID in "RAW" Format
        CRTSP   TYPE /SAPSLL/PR-CRTSP, "PRODUCT CREATED ON
        CHTSP   TYPE /SAPSLL/PR-CHTSP, "PRODUCT CHANGED ON
*T_PRT
        GUID_PR TYPE /SAPSLL/PRT-GUID_PR, "Primary Key as GUID in "RAW" Format
         PRTXT   TYPE /SAPSLL/PRT-PRTXT,    "Materail description
        END OF TY_FINAL.
*& INTERNAL TABLE AND WORK AREA DECLARATIONS
DATA :
      T_CTSNUMC TYPE STANDARD TABLE OF TY_CTSNUMC INITIAL SIZE 0,
      T_PRCTSC   TYPE STANDARD TABLE OF TY_PRCTSC INITIAL SIZE 0, "TEST INCLUDED NEW STRUCTURE TO GET GUID_PR
      T_PRGEN TYPE STANDARD TABLE OF TY_PRGEN INITIAL SIZE 0,
      T_PNTPR TYPE STANDARD TABLE OF TY_PNTPR INITIAL SIZE 0,
      T_PR TYPE STANDARD TABLE OF TY_PR INITIAL SIZE 0,
      T_PRT TYPE STANDARD TABLE OF TY_PRT INITIAL SIZE 0,
     T_CORSTA TYPE STANDARD TABLE OF D_CORSTA INITIAL SIZE 0,
      T_FINAL TYPE STANDARD TABLE OF TY_FINAL INITIAL SIZE 0.
DATA :
       WA_CTSNUMC TYPE TY_CTSNUMC,
       WA_PRCTSC   TYPE TY_PRCTSC,   "TEST INCLUDED NEW STRUCTURE TO GET GUID_PR
       WA_PRGEN   TYPE TY_PRGEN,
       WA_PNTPR  TYPE TY_PNTPR,
       WA_PR TYPE TY_PR,
       WA_PRT TYPE TY_PRT,
      WA_CORSTA TYPE D_CORSTA,
       WA_FINAL TYPE TY_FINAL.
*& ALV DATA DECLARATIONS
DATA : lt_fieldcat TYPE slis_t_fieldcat_alv,
       lw_fieldcat LIKE LINE OF lt_fieldcat,
       lt_fieldcat1 TYPE slis_t_fieldcat_alv,
       lw_fieldcat1 LIKE LINE OF lt_fieldcat,
       lt_listheader TYPE slis_t_listheader,
       lw_listheader LIKE LINE OF lt_listheader,       lt_events TYPE slis_t_event,
       lw_events LIKE LINE OF lt_events.
*& DATA DECLARATIONS FOR SELECTION SCREEN
DATA : G_STCTS   TYPE /SAPSLL/CTSNUMC-STCTS, "NUMBER SCHEME
       G_ATTR20A TYPE /SAPSLL/PRGEN-ATTR20A, "SUBSTANCE ID
       G_PRVSY   TYPE /SAPSLL/PNTPR-PRVSY,   "R3 MATERIAL NUMBER
       G_GRVSY   TYPE /SAPSLL/PNTPR-GRVSY,   "LOGICAL SYS GROUP
     G_QSTA    TYPE /SAPSLL/PRODUCT_SELECT_UI_S-QUAL_STA, "PRODUCT STATUS
       G_CORSTA  TYPE /SAPSLL/CORSTA-QUAL_STA,  "PRODUCT STATUS
       G_CRTSP   TYPE /SAPSLL/PR-CRTSP,      "PRODUCT CREATED ON
       G_CHSTP   TYPE /SAPSLL/PR-CHTSP.      "PRODUCT CHANGED ON
*& SELECTION-SCREEN DECLARATIONS
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_STCTS FOR G_STCTS OBLIGATORY,      "NUMBER SCHEME
                 S_AT20A FOR G_ATTR20A,    "SUBSTANCE ID
                 S_PRVSY FOR G_PRVSY,      "R3 MATERIAL NUMBER
                 S_GRVSY FOR G_GRVSY,      "LOGICAL SYS GROUP
                S_QSTA FOR G_QSTA,        "PRODUCT STATUS
                 S_CORSTA FOR G_CORSTA,    "PRODUCT STATUS
                 S_CRTSP FOR G_CRTSP,      "PRODUCT CREATED ON
                 S_CHSTP FOR G_CHSTP.      "PRODUCT CHANGED ON
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME. " TITLE. " TEXT-002.
PARAMETERS : BOTH  RADIOBUTTON GROUP RG1,
             EXICLASS RADIOBUTTON GROUP RG1.
SELECTION-SCREEN END OF BLOCK B2.
*& INITIALIZATION
INITIALIZATION .
  CLEAR : WA_CTSNUMC,
          WA_PRCTSC,
          WA_PRGEN,
          WA_PNTPR,
          WA_PR,
          WA_PRT,
          WA_FINAL.
  REFRESH : T_CTSNUMC,
            T_PRCTSC,
            T_PRGEN,
            T_PNTPR,
            T_PR,
            T_PRT,
            T_FINAL.
*&      START OF SELECTION
START-OF-SELECTION.
  LW_EVENTS-NAME = 'TOP_OF_PAGE' .
  LW_EVENTS-FORM = 'SUB' .
  APPEND LW_EVENTS TO LT_EVENTS .  PERFORM LIST_HEADER.
IF BOTH EQ 'X'.
  PERFORM VALIDATE_NSCHEME.
  PERFORM GET_DATA.
  PERFORM BUILD_FIELDCAT.
  PERFORM LIST_HEADER.
PERFORM f_events CHANGING lt_events.
  PERFORM DISP_ALV_DATA.
ENDIF.
*&      Form  VALIDATE_NSCHEME
*&            VALIDATE NUMBER SCHEME
FORM VALIDATE_NSCHEME .
  DATA : L_STCTS TYPE /SAPSLL/CTSNUMC-STCTS.
  SELECT SINGLE STCTS FROM /SAPSLL/CTSNUMC INTO L_STCTS
        WHERE STCTS IN S_STCTS .
  IF SY-SUBRC <> 0.
    MESSAGE 'Invalid Numbering Scheme for Customs Tariff System'
           TYPE 'E'.
  ENDIF .
ENDFORM.                    " VALIDATE_NSCHEME
*&      Form  GET_DATA
     GET DATA INTO FINAL TABLE
FORM GET_DATA .
  SELECT GUID_CTSNUMC "Primary Key as GUID in "RAW" Format
         GUID_MOBJ    "Primary Key of Main Object
         STCTS        "Numbering Scheme for Customs Tariff System
         CCNGN        "Number (Generic/Structured)
         CRTSP        "UTC Time Stamp When Object Was Added
         CHTSP        "UTC Time Stamp When Object Was Changed
         FROM /SAPSLL/CTSNUMC
         INTO TABLE T_CTSNUMC
         WHERE STCTS IN S_STCTS.
*DELETE ADJACENT DUPLICATES FROM T_CTSNUMC COMPARING GUID_CTSNUMC.
  IF T_CTSNUMC IS NOT INITIAL.
GET GUID_PR FOR THE CORRESPONDING GUID_CTSNUMC
    SELECT GUID_PRCTSC  "Primary Key as GUID in "RAW" Format
           GUID_PR      "Primary Key as GUID in "RAW" Format
           STCTS        "Numbering Scheme for Customs Tariff System
           GUID_CTSNUMC "Primary Key as GUID in "RAW" Format
           FROM /SAPSLL/PRCTSC
           INTO TABLE T_PRCTSC
           for all entries in t_ctsnumc
           WHERE GUID_CTSNUMC EQ T_CTSNUMC-GUID_CTSNUMC.
IF T_PRCTSC IS NOT INITIAL.
GET FIELDS FROM PRGEN BASED ON THE GUID_PR
    SELECT GUID_PRGEN "Primary Key as GUID in "RAW" Format
           GUID_PR    "Primary Key as GUID in "RAW" Format
           ATTR20A    "SUBSTANCE ID
           ATTR05A    "Materail Type
           ATTR10A    "Materail Group
           ATTR05B    "Sub-Family
           FROM /SAPSLL/PRGEN
           INTO TABLE T_PRGEN
           FOR ALL ENTRIES IN T_PRCTSC
           WHERE GUID_PR EQ T_PRCTSC-GUID_PR.
DELETE ADJACENT DUPLICATES FROM T_PRGEN COMPARING GUID_PR.
GET FIELDS FROM PNTPR BASED ON THE GUID_PR
    SELECT GUID_PR    "Primary Key as GUID in "RAW" Format
           PRVSY      "R3 MATERIAL NUMBER
           GRVSY      "LOGICAL SYSTEM GROUP
           FROM /SAPSLL/PNTPR
           INTO TABLE T_PNTPR
           FOR ALL ENTRIES IN T_PRCTSC
           WHERE GUID_PR EQ T_PRCTSC-GUID_PR.
*DELETE ADJACENT DUPLICATES FROM T_PRGEN COMPARING GUID_PR.
GET CORSTA-QUAL_STA FOR STATUS CATEGORY BESED ON THE T_CTSNUMC-GUID_MOBJ
*SELECT GUID_MOBJ
      QUAL_STA
      FROM /SAPSLL/CORSTA
      INTO TABLE T_CORSTA
      FOR ALL ENTRIES IN T_CTSNUMC
      WHERE GUID_MOBJ EQ T_CTSNUMC-GUID_MOBJ.
MISSING FIELD >>>>>>>PRODUCT STATUS
GET CRSTP CHSTP FROM PR BASED ON GUID_PR
    SELECT GUID_PR   "Primary Key as GUID in "RAW" Format
           CRTSP     "PRODUCT CREATED ON
           CHTSP     "PRODUCT CHANGED ON
           FROM /SAPSLL/PR
           INTO TABLE T_PR
           FOR ALL ENTRIES IN T_PRCTSC
           WHERE GUID_PR EQ T_PRCTSC-GUID_PR.
*DELETE ADJACENT DUPLICATES FROM T_PR COMPARING GUID_PR.
GET PRTXT FROM PRT BASED ON GUID_PR
    SELECT GUID_PR "Primary Key as GUID in "RAW" Format
           PRTXT   "MATERIAL DESCRIPTION
           FROM /SAPSLL/PRT
           INTO TABLE T_PRT
           FOR ALL ENTRIES IN T_PRCTSC
           WHERE GUID_PR EQ T_PRCTSC-GUID_PR.
*DELETE ADJACENT DUPLICATES FROM T_PRT COMPARING GUID_PR.
   ENDIF.
  ENDIF.
FILLING DATA INTO T_FINAL
REFRESH T_FINAL.
    LOOP AT T_PRCTSC INTO WA_PRCTSC.
      WA_FINAL-GUID_PRCTSC  = WA_PRCTSC-GUID_PRCTSC.
      WA_FINAL-GUID_PR      = WA_PRCTSC-GUID_PR.
      WA_FINAL-STCTS        = WA_PRCTSC-STCTS.
      WA_FINAL-GUID_CTSNUMC = WA_PRCTSC-GUID_CTSNUMC.
READ TABLE T_CTSNUMC INTO WA_CTSNUMC WITH KEY GUID_CTSNUMC = WA_PRCTSC-GUID_CTSNUMC.
IF SY-SUBRC = 0.
   WA_FINAL-GUID_CTSNUMC = WA_CTSNUMC-GUID_CTSNUMC.
     WA_FINAL-GUID_MOBJ    = WA_CTSNUMC-GUID_MOBJ.
   WA_FINAL-STCTS        = WA_CTSNUMC-STCTS.
     WA_FINAL-CCNGN        = WA_CTSNUMC-CCNGN.
   WA_FINAL-CRTSP        = WA_CTSNUMC-CRTSP.
   WA_FINAL-CHTSP        = WA_CTSNUMC-CHTSP.
ENDIF.
    READ TABLE T_PRGEN INTO WA_PRGEN WITH KEY GUID_PR = WA_PRCTSC-GUID_PR.
    IF SY-SUBRC = 0.
      WA_FINAL-GUID_PRGEN = WA_PRGEN-GUID_PRGEN.
      WA_FINAL-GUID_PR    = WA_PRGEN-GUID_PR.
      WA_FINAL-ATTR20A    = WA_PRGEN-ATTR20A.
      WA_FINAL-ATTR05A    = WA_PRGEN-ATTR05A.
      WA_FINAL-ATTR10A    = WA_PRGEN-ATTR10A.
      WA_FINAL-ATTR05B    = WA_PRGEN-ATTR05B.
    ENDIF.
    READ TABLE T_PNTPR INTO WA_PNTPR WITH KEY GUID_PR = WA_PRCTSC-GUID_PR.
    IF SY-SUBRC = 0.
     WA_FINAL-GUID_PR    = WA_PNTPR-GUID_PR.
      WA_FINAL-PRVSY      = WA_PNTPR-PRVSY.
      WA_FINAL-GRVSY      = WA_PNTPR-GRVSY.
    ENDIF.
    READ TABLE T_PR INTO WA_PR WITH KEY GUID_PR = WA_PRCTSC-GUID_PR.
    IF SY-SUBRC = 0.
     WA_FINAL-GUID_PR = WA_PR-GUID_PR.
      WA_FINAL-CRTSP   = WA_PR-CRTSP.
      WA_FINAL-CHTSP   = WA_PR-CHTSP.
    ENDIF.
    READ TABLE T_PRT INTO WA_PRT WITH KEY GUID_PR = WA_PRCTSC-GUID_PR.
    IF SY-SUBRC = 0.
     WA_FINAL-GUID_PR = WA_PRT-GUID_PR.
      WA_FINAL-PRTXT   = WA_PRT-PRTXT.
    ENDIF.
    APPEND WA_FINAL TO T_FINAL.
   DELETE ADJACENT DUPLICATES FROM T_FINAL COMPARING ATTR20A.
    CLEAR WA_FINAL.
  ENDLOOP.
ENDFORM.                    " GET_D
*&      Form  BUILD_FIELDCAT
      text
-->  p1        text
<--  p2        text
FORM BUILD_FIELDCAT .
REFRESH LT_FIELDCAT.
  lw_fieldcat-col_pos = 1.
  lw_fieldcat-tabname = 'T_FINAL'.
  lw_fieldcat-fieldname = 'ATTR20A'.
  lw_fieldcat-seltext_m = 'SUBSTANCE ID'.
  lw_fieldcat-outputlen = '15'.
  lw_fieldcat-FIX_COLUMN = 'X'.
lw_fieldcat-KEY = 'X'.
  APPEND lw_fieldcat TO lt_fieldcat.
  lw_fieldcat-col_pos = 2.
  lw_fieldcat-tabname = 'T_FINAL'.
  lw_fieldcat-fieldname = 'PRVSY'.
  lw_fieldcat-seltext_m = 'R3 MAT NBR'.
  lw_fieldcat-outputlen = '14'.
  lw_fieldcat-FIX_COLUMN = 'X'.
  APPEND lw_fieldcat TO lt_fieldcat.
  lw_fieldcat-col_pos = 3.
  lw_fieldcat-tabname = 'T_FINAL'.
  lw_fieldcat-fieldname = 'PRTXT'.
  lw_fieldcat-seltext_m = 'MAT DESCRIPTION'.
  lw_fieldcat-outputlen = '19'.
  APPEND lw_fieldcat TO lt_fieldcat.
  lw_fieldcat-col_pos = 4.
  lw_fieldcat-tabname = 'T_FINAL'.
  lw_fieldcat-fieldname = 'GRVSY'.
  lw_fieldcat-seltext_m = 'LOGICAL SYS GRP'.
  lw_fieldcat-outputlen = '21'.
  APPEND lw_fieldcat TO lt_fieldcat.
lw_fieldcat-col_pos = 5.
lw_fieldcat-tabname = 'T_FINAL'.
lw_fieldcat-fieldname = 'QUAL_STA'.
lw_fieldcat-seltext_m = 'PRODUCT STATUS'.
  lw_fieldcat-outputlen = 'x'.
APPEND lw_fieldcat TO lt_fieldcat.
  lw_fieldcat-col_pos = 6.
  lw_fieldcat-tabname = 'T_FINAL'.
  lw_fieldcat-fieldname = 'CRTSP'.
  lw_fieldcat-seltext_m = 'PRODUCT CREATED ON'.
  lw_fieldcat-outputlen = '21'.
  APPEND lw_fieldcat TO lt_fieldcat.
  lw_fieldcat-col_pos = 7.
  lw_fieldcat-tabname = 'T_FINAL'.
  lw_fieldcat-fieldname = 'CHTSP'.
  lw_fieldcat-seltext_m = 'PRODUCT CHANGED ON'.
  lw_fieldcat-outputlen = '21'.
  APPEND lw_fieldcat TO lt_fieldcat.
  lw_fieldcat-col_pos = 8.
  lw_fieldcat-tabname = 'T_FINAL'.
  lw_fieldcat-fieldname = 'ATTR05A'.
  lw_fieldcat-seltext_m = 'MATERIAL TYPE'.
  lw_fieldcat-outputlen = '18'.
  APPEND lw_fieldcat TO lt_fieldcat.
  lw_fieldcat-col_pos = 9.
  lw_fieldcat-tabname = 'T_FINAL'.
  lw_fieldcat-fieldname = 'ATTR10A'.
  lw_fieldcat-seltext_m = 'MATERIAL GRP'.
  lw_fieldcat-outputlen = '18'.
  APPEND lw_fieldcat TO lt_fieldcat.
  lw_fieldcat-col_pos = 10.
  lw_fieldcat-tabname = 'T_FINAL'.
  lw_fieldcat-fieldname = 'ATTR05B'.
  lw_fieldcat-seltext_m = 'SUB-FAMILY'.
  lw_fieldcat-outputlen = '18'.
  APPEND lw_fieldcat TO lt_fieldcat.
lw_fieldcat-col_pos = 11.
lw_fieldcat-tabname = 'T_FINAL'.
lw_fieldcat-fieldname = 'CCNGN'.
lw_fieldcat-seltext_m = 'SUBID CLASSIFICATION'.
APPEND lw_fieldcat TO lt_fieldcat.
lw_fieldcat-col_pos = 12.
lw_fieldcat-tabname = 'T_FINAL'.
lw_fieldcat-fieldname = 'CCNGN'.
lw_fieldcat-seltext_m = 'SUBID CLASSIFICATION'.
APPEND lw_fieldcat TO lt_fieldcat.
lw_fieldcat-col_pos = 13.
lw_fieldcat-tabname = 'T_FINAL'.
lw_fieldcat-fieldname = 'CCNGN'.
lw_fieldcat-seltext_m = 'SUBID CLASSIFICATION'.
APPEND lw_fieldcat TO lt_fieldcat.
CLEAR LW_FIELDCAT.
ENDFORM.                    " BUILD_FIELDCAT
*&      Form  LIST_HEADER
      text
-->  p1        text
<--  p2        text
FORM LIST_HEADER .
DATA :  LT_LISTHEADER TYPE slis_t_listheader,
        LW_LISTHEADER LIKE LINE OF lt_listheader.
  LW_LISTHEADER-TYP = 'H'.
  LW_LISTHEADER-INFO = 'DISPLAY PRODUCTS BY PRODUCT CHARACTERISTIC'.
  APPEND LW_LISTHEADER TO LT_LISTHEADER.
  LW_LISTHEADER-TYP = 'S' .
  LW_LISTHEADER-KEY = 'TIME' .
  LW_LISTHEADER-INFO = SY-UZEIT .
  APPEND LW_LISTHEADER TO LT_LISTHEADER.
  LW_LISTHEADER-TYP = 'S' .
  LW_LISTHEADER-KEY = 'DATE' .
  LW_LISTHEADER-INFO = SY-DATUM .
  APPEND LW_LISTHEADER TO LT_LISTHEADER.
  LW_LISTHEADER-TYP = 'S' .
  LW_LISTHEADER-KEY = 'CLIENT' .
  LW_LISTHEADER-INFO = SY-MANDT .
  APPEND LW_LISTHEADER TO LT_LISTHEADER.
ENDFORM.                    " LIST_HEADER
*&      Form  DISP_ALV_DATA
      text
-->  p1        text
<--  p2        text
FORM DISP_ALV_DATA .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
  I_BUFFER_ACTIVE                   = ' '
    I_CALLBACK_PROGRAM                = 'I_REPID'
  I_CALLBACK_TOP_OF_PAGE            = 'TOP-OF-PAGE1'
  I_STRUCTURE_NAME                  =
  I_BACKGROUND_ID                   = ' '
   I_GRID_TITLE                      = 'GTS Substance- Product Classification Report'.
  I_GRID_SETTINGS                   =
  IS_LAYOUT                         =
    IT_FIELDCAT                       = LT_FIELDCAT
  IT_EXCLUDING                      =
  IT_SPECIAL_GROUPS                 =
  IT_SORT                           =
  IT_FILTER                         =
  IS_SEL_HIDE                       =
  I_DEFAULT                         = 'X'
  I_SAVE                            = ' '
  IS_VARIANT                        =
    IT_EVENTS                         = LT_EVENTS
IMPORTING
  E_EXIT_CAUSED_BY_CALLER           =
  ES_EXIT_CAUSED_BY_USER            =
  TABLES
    T_OUTTAB                          = T_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.                    " DISP_ALV_DATA
FORM SUB.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
  EXPORTING
    IT_LIST_COMMENTARY       = LT_LISTHEADER.
  I_LOGO                   =*
  I_END_OF_LIST_GRID       =*
  I_ALV_FORM               =*
ENDFORM.
Any suggestions and help will be appreciated!
Regards,
Kittu

Hi Ram,
When I had put a Break point on the FM Reuse_alv_grid_display
The parameter IT_EVENTS is not getting populated and it is not calling the FORM SUB.
But LT_EVENTS is holding the data 'TOP_OF_PAGE' and the form name as SUB.
FORM DISP_ALV_DATA .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
  I_BUFFER_ACTIVE                   = ' '
    I_CALLBACK_PROGRAM                = 'I_REPID'
  I_CALLBACK_TOP_OF_PAGE            = 'TOP-OF-PAGE1'
  I_STRUCTURE_NAME                  =
  I_BACKGROUND_ID                   = ' '
   I_GRID_TITLE                      = 'GTS Substance- Product Classification Report'.
  I_GRID_SETTINGS                   =
  IS_LAYOUT                         =
    IT_FIELDCAT                       = LT_FIELDCAT
  IT_EXCLUDING                      =
  IT_SPECIAL_GROUPS                 =
  IT_SORT                           =
  IT_FILTER                         =
  IS_SEL_HIDE                       =
  I_DEFAULT                         = 'X'
  I_SAVE                            = ' '
  IS_VARIANT                        =
    IT_EVENTS                         = LT_EVENTS
IMPORTING
  E_EXIT_CAUSED_BY_CALLER           =
  ES_EXIT_CAUSED_BY_USER            =
  TABLES
    T_OUTTAB                          = T_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.                    " DISP_ALV_DATA
FORM SUB.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
  EXPORTING
    IT_LIST_COMMENTARY       = LT_LISTHEADER.
  I_LOGO                   =
  I_END_OF_LIST_GRID       =
  I_ALV_FORM               =
ENDFORM.
Any suggestions will be apprectiated.
Regards,
Kittu

Similar Messages

  • I continue to get an error message when trying to add Header

    I continue to get an error message when trying to add Header & Footer.  Therefore I am unable to add page numbers to my pdf.  Help!!

    Sounds like the PDF has an issue. You can try to save it, close, and reopen to see if that fixes it. If there are no tags or other markup, you could print it to a new PDF and try on the new file.

  • Add Header Footer page will NOT show 100% horizontally

    Using Acobat X ver 10.1.13 on WIN 8.1 - new install
    when trying to use Add Headers Footers , the page will not show the Right side of the HeadersFooters page (pls see image attached) That is as wide as it will go, even on a large external monitor - so you are unable to enter
    information in the other fields.
    TIA
    Doug

    Post a link to the page please. Did you upload the Scripts
    folder? If not,
    then join the THOUSANDS of others who have made the same
    mistake and gotten
    their comeuppance here on this board.... (hint, hint)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "techmanheffley" <[email protected]> wrote
    in message
    news:g9rumt$p3i$[email protected]..
    > Trying to add a flash file in page. Will not show up on
    website.
    >
    > It works if I do a F12 within dreamweaver (preview in
    browser). But it
    > does not work when I go to my website (tried IE7 and
    Safari)

  • While installing BI system tried to add-on bi704 cont but patch shows error

    hi Experts ,
    here i installed one BI system and after i try to add BI 704 cont to that system
    in saint i added that BI cont, after some time it shows error in the phase of IMPORT_PROPER AND the error message is in below 
    please reply what is the solution for below error
    WARNING: /usr/sap/trans/tmp/SAPKK-704IFINBICONT.LSD is already in use (71580), I'm waiting 4 sec (20100927115806). My name: p
    id 708834 on server name
    WARNING: /usr/sap/trans/tmp/SAPKK-704IFINBICONT.LSD is already in use (71590), I'm waiting 3 sec (20100927115836). My name: p
    id 708834 on name server
    WARNING: /usr/sap/trans/tmp/SAPKK-704IFINBICONT.LSD is already in use (71600), I'm waiting 4 sec (20100927115908). My name: p
    id 708834 on name server
    WARNING: /usr/sap/trans/tmp/SAPKK-704IFINBICONT.LSD is already in use (71610), I'm waiting 1 sec (20100927115940). My name: p
    id 708834 on name server
    WARNING: /usr/sap/trans/tmp/SAPKK-704IFINBICONT.LSD is already in use (71620), I'm waiting 5 sec (20100927120013). My name: p
    id 708834 on name server
    WARNING: /usr/sap/trans/tmp/SAPKK-704IFINBICONT.LSD is already in use (71630), I'm waiting 4 sec (20100927120050). My name: p
    id 708834 on name server
    ERROR: RFC function TRINT_PROGRESS_INDICATOR returned 18
    ERROR SAPK-704IFINBICONT   LSD I 0012 20100927120107 BICONTUSER   SAP_BASIS    labidev 20100924201404
    STOP  MAIN IMPORT          LSD I      20100927120107              SAP_BASIS    labidev 20100924201404
    ERROR: stopping on error 12 during MAIN IMPORT
    STOP  imp all              LSD   0012 20100927120107              SAP_BASIS    labidev 20100924201404
    ERROR: RFC function TRINT_PROGRESS_INDICATOR returned 18
    ERROR SAPK-704IFINBICONT   LSD I 0012 20100927120109 BICONTUSER   SAP_BASIS    labidev 20100924225043
    STOP  MAIN IMPORT          LSD I      20100927120109              SAP_BASIS    labidev 20100924225043
    ERROR: stopping on error 12 during MAIN IMPORT
    STOP  imp all              LSD   0012 20100927120109              SAP_BASIS    labidev 20100924225043
    Regards

    Dear sarath,
    thanks for your cool responce
    now i strucked at import_proper
    and the error message is
    Main import
    Transport request   : SAPK-704IFINBICONT
    System              : LSD
    tp path             : tp
    Version and release: 372.04.08 700
    sap_dext called with msgnr 1:
         db call info
    function:   db_report_interface
    fcode:      CLOSE_LINE_MODE
    tabname:    SOURCE
    len (char): 40
    key:        /MAP/LFG_SSM01F04
    retcode:    1
    SQL error 1089 accessing  : ORA-01089: immediate shutdown in progress - no ope
    Main import
    End date and time : 20100930095406
    Ended with return code:  ===> 12 <===
    and so please let me can i reset queue for applying new version or can i do as per your previous mail
    Regards

  • Tried to add a Telerik Report . Designer showing an error

    Projectitem unavailable
    Instances of this error (1)
    1.
    Hide Call Stack
    at EnvDTE.ProjectItem.get_FileCount()
    at Microsoft.VisualStudio.Design.Serialization.ResXGlobalObjectProvider.GetFileNameForProjectItem(ProjectItem item)
    at Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.BuildType()
    at Microsoft.VisualStudio.Design.Serialization.ResXGlobalObject.GetObjectType()
    at Microsoft.VisualStudio.Shell.Design.GlobalType.get_ObjectType()
    at Microsoft.VisualStudio.Shell.Design.GlobalObject.GetHashCode()
    at System.Collections.Generic.ObjectEqualityComparer`1.GetHashCode(T obj)
    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
    at Microsoft.VisualStudio.Shell.Design.GlobalObjectService.TrackGlobal(GlobalObjectProvider p, GlobalType g)
    at Microsoft.VisualStudio.Shell.Design.GlobalObjectService.GetGlobalObjects(Type baseType)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetTypeFromGlobalObjects(String name, Boolean throwOnError, Boolean ignoreCase)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.GetRuntimeType(String typeName)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.GetSerializer(Type objectType, Type serializerType)
    at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.GetSerializer(Type objectType, Type serializerType)
    at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
    at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload) 

    Hi Seeker78,
    The Telerik Report in Visual Studio is not supported here. Please recreate a new case under the following forum:
    http://www.telerik.com/forums/reporting/telerik-reporting
    Regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Iphoto closes when trying to add my music to a slide show

    Anyone haveing trouble addin music to iphoto slideshow? mine keeps closingwhen I do?

    Try, if any of the fixes described here will help:
         iOS: Troubleshooting applications purchased from the App Store
    Do you have enough free space on your iPhone? iPhoto needs plenty of working space, i.e. slideshows with music.
    If all fails, try the three R's - Restart, Reset, Restore: http://support.apple.com/kb/TS3281

  • Add attachments using workflow api throwing error

    Hi,
    I am getting the following error when i am trying to add attachments using worklist API.
         Missing class: invokeBPEL.MetaData
         Dependent class: com.evermind.io.ClassLoaderObjectInputStream
         Loader: oc4j:10.1.3
         Code-Source: /D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar
    This load was initiated at hw_services.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2068) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1679) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@10469011]
         at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at java.lang.Class.forName0 (Native method) [unknown, by unknown]
         at java.lang.Class.forName (Class.java:242) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at com.evermind.io.ClassLoaderObjectInputStream.resolveClass (ClassLoaderObjectInputStream.java:33) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at java.io.ObjectInputStream.readNonProxyDesc (ObjectInputStream.java:1538) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at java.io.ObjectInputStream.readClassDesc (ObjectInputStream.java:1460) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at java.io.ObjectInputStream.readOrdinaryObject (ObjectInputStream.java:1693) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at java.io.ObjectInputStream.readObject0 (ObjectInputStream.java:1299) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at java.io.ObjectInputStream.readObject (ObjectInputStream.java:339) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at com.evermind.server.rmi.RMIProtocol$Version.unmarshallParameterDirectly (RMIProtocol.java:402) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.rmi.RMIProtocol$Version_1_0.unmarshallParameter (RMIProtocol.java:471) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.rmi.RMIProtocol.readObject (RMIProtocol.java:80) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.rmi.RMIProtocol.readValue (RMIProtocol.java:161) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.rmi.ServerRmiMessageHandler.handleMethodInvocation (ServerRmiMessageHandler.java:514) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.rmi.ServerRmiMessageHandler.handleOrmiRequest (ServerRmiMessageHandler.java:272) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.rmi.ServerRmiMessageHandler.dispatchRequest (ServerRmiMessageHandler.java:241) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.rmi.RMIServerConnection.processReceivedCommand (RMIServerConnection.java:176) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.rmi.RMIConnection.handleCommand (RMIConnection.java:152) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands (RMIConnection.java:127) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.rmi.RMIServerConnection.listenForOrmiCommands (RMIServerConnection.java:390) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.rmi.RMIConnection.run (RMIConnection.java:107) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:303) [D:/product/10.1.3.1/OracleAS_1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in D:\product\10.1.3.1\OracleAS_1\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap:1.5.0_06]
    Exception in thread "main"
    This is the code i used
         String userId = "oc4jadmin";
         String password = "welcome1";
         String sTaskId = "";
         IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
         System.out.println("Before getting TaskService");
         ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
         System.out.println("After getting TaskService");
         IWorkflowContext wfCtx = querySvc.authenticate(userId,password,"jazn.com",null);
         System.out.println("Last out");
         Predicate pred = new Predicate(TableConstants.WFTASK_STATE_COLUMN,Predicate.OP_EQ,IWorkflowConstants.TASK_STATE_ASSIGNED);
         List queryColumns = new ArrayList();
         queryColumns.add("TITLE");
         queryColumns.add("PRIORITY");
         queryColumns.add("STATE");
         queryColumns.add("TASKID");
         queryColumns.add("TASKNUMBER");
         List tasks = querySvc.queryTasks(wfCtx,
                   queryColumns,
                   null, //Do not query addtional info
                   ITaskQueryService.ASSIGNMENT_FILTER_MY_AND_GROUP,
                   null, //No keywords
                   pred, //No custom predicate
                   null, //No special ordering
                   0, //Do not page the query result
                   0);
         System.out.println("Task Size !!" +tasks.size());
         if (tasks != null)
         String[] taskList = new String[tasks.size()];
         for (int i=0; i< tasks.size(); i++)
         Task t = (Task)tasks.get(i);
         taskList[i] = t.getSystemAttributes().getTaskId();
         System.out.println("Found task: "+taskList);
         sTaskId = taskList[i];
         else
         System.out.println("Did not find any tasks");
         Task task = querySvc.getTaskDetailsById(wfCtx, sTaskId);
         //Add Attachments
         FileInputStream fs = new FileInputStream("D:/Test.txt");
         ITaskService itask = wfSvcClient.getTaskService();
         MetaData mdata = new MetaData();
         mdata.setMimeType("text/html");
         mdata.setContent("D:/Test.txt");
         mdata.setInputStream(fs);
         mdata.setName("Test Document");
         itask.addAttachment(wfCtx, sTaskId, mdata);
         if (task != null)
         System.out.println("Completing task: "+task.getTitle());
         wfSvcClient.getTaskService().updateTaskOutcome(wfCtx, task, "APPROVE");
    Kindly let me know how to solve this issue.
    Thanks,
    Gomathi

    hi,
    Actually i have used AttachmentType..MetaData is the class which i created for implementing AttachmentType as it is Interface Class. Here is the code of MetaData class.
    public class MetaData implements AttachmentType,java.io.Serializable{
         public String getBoundary() {
              // TODO Auto-generated method stub
              return null;
         public String getContent() {
              // TODO Auto-generated method stub
              return null;
         public InputStream getInputStream() {
              // TODO Auto-generated method stub
              return null;
         public String getMimeType() {
              // TODO Auto-generated method stub
              return null;
         public String getName() {
              // TODO Auto-generated method stub
              return null;
         public String getSystemVersionFlag() {
              // TODO Auto-generated method stub
              return null;
         public String getTaskId() {
              // TODO Auto-generated method stub
              return null;
         public String getURI() {
              // TODO Auto-generated method stub
              return null;
         public String getUpdatedBy() {
              // TODO Auto-generated method stub
              return null;
         public int getVersion() {
              // TODO Auto-generated method stub
              return 0;
         public void setBoundary(String arg0) {
              // TODO Auto-generated method stub
         public void setContent(String arg0) {
              String cont = null;
              cont = arg0;
         public void setInputStream(InputStream arg0) {
              InputStream sStream = null;
              sStream = arg0;
         public void setMimeType(String arg0) {
              String mime = null;
              mime = arg0;
         public void setName(String arg0) {
              String sname = null;
              sname = arg0;
         public void setSystemVersionFlag(String arg0) {
              // TODO Auto-generated method stub
         public void setTaskId(String arg0) {
              // TODO Auto-generated method stub
         public void setURI(String arg0) {
              // TODO Auto-generated method stub
         public void setUpdatedBy(String arg0) {
              // TODO Auto-generated method stub
         public void setVersion(int arg0) {
              // TODO Auto-generated method stub
    kindly tell me how can i solve this issue.
    Thanks,
    Gomathi
    Edited by: user647559 on Sep 23, 2008 10:05 PM

  • Trying to add a contact

    I did NOT mean to give a kudo -- Skype sucks when it comes to customer service!
    I'm trying to talk to a live HUMAN BEING because your posted "answers" are useless!!  I'm trying to add a contact that doesn't show up in the Skype directory, though she swears she is in it.  Then the "directions" after typing her Skype address  "In the top right corner of the window, click Add to Contacts and enter some text to introduce yourself. This is important to let your friend know that you’re adding them as your Skype contact. When you’re done, just click Send."  Well, folks it AIN'T showing anything there!  I have looked all over the site and can't find anything like that.  THAT is why I need to speak with a live, breathing, human being!
    Post transferred to create its own new thread.
    Subject/title amended accordingly.

    Hi, Gvaleskie, and welcome to the Community,
    Please post back with the details of which version of Skype you are using and on which device or computer and its operating system.  Your post reads like you have found the user guides, so we here in the Community will need more information before we can assist.
    Skype does not have a call-in customer support facility.  Here is a link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service
    As you know you intend to contact Customer Service, skip past Step 2 of the instruction where several articles from the FAQ library will appear for you to review, and proceed to Step 3, Continue Support Request (the "button" appears at the lower right corner of the website page). You may also skip past in Step 4 where you will be referred back here to the Community; no need to do this as the Community is where you started.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Global Navigation: How to add heading as non active link?

    Dear guys,
    I really want to add non active link in global navigation. How it will be done?
    I tried to add heading without any link but it's appearing in current navigation, how can i add it in global (front menu) navigation.
    Please tell me the solution to resolve this problem.
    The basic objective to apply this function is: I have various non constructed pages, but i want to show hirarachi in navigation.
    Br,
    Ayesha

    Click on Modify Navigation -> click on Global Navigation -> Click Add Heading --> Give only title , no need to give the url.
    By the way i think you are also following the same procedure.
    Let me know if you mean something else.

  • I am trying to add movies from my Panasonic lumix to I photo but they aren't showing up.  If I try to import into Imovie they also don't show up on the sd card as importable movies.  I am using I photo 9.2 on 10.6.8 and never had a problem before.

    My camera can be set to record as motion JPEG or light AVCHD.  It was set for AVCHD.  Could that be affecting it?  If so, can you think of any way I can load these.  I am trying to add them to an IMovie I started from a different source.

    Stevomacrocket wrote:
    I had this problem.
    The answer is to close iphoto (you might have to force quit iphoto if it starts automatically when you connect the camera or insert the SD card) and open imovie.
    Imovie then presents an import page which easily imports the video into imovie.
    It is a real bad idea to "force Quit" iPhoto - if it has any update activity going on that you interrupt you can corrupt your library an close data or even photos - Force quit should ONLY be used in an emergency where there is no other alternative and you are positive that nothing is going on in iPhoto
    LN

  • How to add header line in a file from XI system using file adapters

    Hi All,
    I need to add header line (Column names) in a file coming from XI system.
    I am using file adapters.
    Thanks & Regards,
    Gaurav Mittal

    The Receiver File Adapter is configured, using the following settings:
    1) Choose File Content Conversion as the Message Protocol.
    2) You give the ‘addHeaderLine’ parameter as 1
    3) For the ‘fieldSeparator’ parameter you need to give field separator for both list and substructure (referring to the data type above). For eg: it may be a ‘,’ (comma) for substructure in a comma separated file.
    4) The ‘endSeparator’ parameter needs to given for substructure only. For eg: it may be a ‘nl’ (new line)
    5) Give the file name, the directory and the Construction mode. Activate all the settings. Receiver File Adapter with F.C.C. is configured.
    please visit the blog.
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

  • I have four devices on one Apple ID, i have separate emails and phone numbers for each device but when I tried to add one to my iPod, it said that the email was already in use.

    I have four devices on one Apple ID, i have seperate emails and phone numbers for each device but when I tried to add one to my iPod, it said that the email was already in use.  I have tried many things and the only guess I have is that either someone else has this email as their iMessage but is fake or it wasn't taken off my old iPod when I reset it.  Any ideas on what to do?

    Thanks but that doesn't give me the information I need.  I am putting an email on my ipod for people to contact me for iMessage and FaceTime but when I put the email in, it gives me an error saying that the email cannot be veirified because it is already in use.  My Apple ID can be varified, just not the email that they will contact me with.

  • HT5022 I'm trying to add a "new client" to my wireless network using Airport Utility, but I can't find that option in the new version.  I've downloaded all available updates of the OS and the utility..  Help!

    I'm trying to add my HP wireless printer as a "new client" to my wireless network using Airport Utility, but I can't find that option in the new version.  I've downloaded all available updates of the OS and the utility..  Help!

    Why would you need to ADD a new Client. Unless the APE sytem is completely different then any other Wireless router the printer should get an IP address from the router. That is IF the printer is setup to get an IP from the LAN DHCP server.
    Now you may want to make that IP it does get a Staticly assign IP address so it never changes, which will screw up printing if it does change. But i don't know if you can do that with APE routers.

  • Using OLE add Header to MS Word Document in ABAP Program

    Dear Friends,
    I have a requirement where I want to add Header and Footer to MS Word through OLE in ABAP Program
    I am able to open the word document, through OLE,
    I am stuck @ the following step.
    CALL METHOD OF LO_APPLICATION 'ActiveDocument' = LO_DOCUMENT.
      IF SY-SUBRC <> 0.     EXIT.   ENDIF.
      CALL METHOD OF LO_DOCUMENT 'Sections' = LO_SECTIONS.
      IF SY-SUBRC <> 0.     EXIT.   ENDIF.
    Please let me know.
    Thanks
    Rajesh

    Hi Rajesh,
    You have to use GET PROPERTY & SET PROPERTY  attributes of OLE2_OBJECT to use headers.
    Just a sample code snippet for your reference :-
    DATA : GS_TABLE TYPE OLE2_OBJECT ,
          GS_RANGE TYPE OLE2_OBJECT,
         GS_CELLTYPE OLE2_OBJECT,
    CALL METHOD OF GS_TABLE  'Cell' = gs_cell
       EXPORTING #1 = '1'
                         #2 = '1'.
       GET PROPERTY OF gs_cell 'Range' = gs_range.
       SET PROPERTY OF gs_range 'Text' = 'VGUID'.
       CALL METHOD OF gs_table 'Cell' = gs_cell
       EXPORTING #1 = '1'
                         #2 = '2'.
    For more details search on SCN for code on creating MS word document using OLE automation.
    Regards
    Abhii

  • How can i add a table header using DefaultTableModel?

    Im having problems finding examples of creating a table header using the DefaultTableModel. Can anyone point me in the right direction?
    so far i am able to create a table and add rows, but i need the first row to be the header with title and i am not able to do that with this model.
    Below is an excerpt of what i have thus far...
    JTableHeader header = new JTableHeader();
            checkOutTable.setModel(tableModel);
            checkOutTable.setRowSelectionAllowed(true);
    private DefaultTableModel tableModel = new DefaultTableModel(
                new Object [][] {
                        {"Item ID", "Title", "Type", "Serial ID", "Status", "Response", "Print"},
                    new String [] {
                        "TITLE 1", "TITLE 2", "TITLE 3", "TITLE 4", "TITLE 5", "TITLE 6", "TITLE 7"
                ){Class[] types = new Class[] { java.lang.Object.class,
                        java.lang.Object.class, java.lang.Object.class,
                        java.lang.Object.class, java.lang.Object.class,
                        java.lang.Object.class, java.lang.Object.class };
                public Class getColumnClass(int columnIndex) {
                    return types[columnIndex];
                }};

    Use the constructor that takes a Vector of column names and a row count.
    http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/table/DefaultTableModel.html#DefaultTableModel(java.util.Vector,%20int)

Maybe you are looking for

  • Is it possible to access two separate CC accounts on the same computer?

    I use two separate CC accounts  - 1) work 2) personal. I have access to Photoshop through the work account and recently purchased Premiere via my personal account. Seems like activating my personal account deactivated my work account because I no lon

  • Macbook Pro will not print on HP 7310 all-in-one

    I recently opened my HP all-in-one 7310 printer/fax/scanner, its been in storage for a for years but is bran new. I could always just plug in my USB and print completely fine. However I wanted to scan a document, the HP all-in-one needed me to instal

  • PDF 1.5/Acrobat 6.0 indexing

    (Posted in the Oracle Text forum - Posting here too, as it is related to CMSDK) Hello folks, There is an interesting new feature in pdf 1.5 which is the possibility to capture both the full layout of a scanned document AND its OCR'ed version (the tex

  • Sound system not working,

    can not talk on skype, sound system not working

  • A feature with assets

    I'm in a project group that is working on a designing application. It contains a menu and a canvas in which user can move certain elements (assets), png-pictures. What might be the easiest way to create a feature that when the user moves a new object