Headers getting repeated while running the report in background

Hi,
I have a report which uses ALV grid display for output display.
I have displayed a heder in the top_of_page option. while running the program in foregound the header gets displayed only once. but when executing in background the header is getting displayed for each and every page.
can any one tell me how to get the header displayed only once in the background also.

REPORT  ZBACKORD MESSAGE-ID VZ
                              NO STANDARD PAGE HEADING.
*& TABLES AND TYPE-POOLS                                               *
Tables used
TABLES : VBAK,    "Sales Document: Header Data
         VBAP,    "Sales Document: Item Data
         VBPA.    "Sales Document Partner
For ALV Display
TYPE-POOLS: SLIS.  "Globale Typen für generische Listbausteine
*& CONSTANTS                                                           *
Constants Used
CONSTANTS:
           C_X         VALUE 'X',           "Order status
           C_TAPA(4)   VALUE 'TAPA',        "For Material Determination
           C_0001(4)   VALUE '0001',        "Etenr value
           C_A         VALUE 'A',           "Enable Save
           C_US(3)  VALUE 'US$',            "US DOLLAR.
           C_B         VALUE 'B',           "for Partially processed
           C_E         VALUE 'E',           "Language
           C_C         VALUE 'C',           "for completely processed
           C_BLANK     VALUE ' ',           "Blank
           C_IC1(4) VALUE '&IC1',           "for user command
           C_ZR(2)     VALUE 'ZR',          "Cs ReP No
           C_BP(2)     VALUE 'RE',          "Bill to party
           C_SH(2)     VALUE 'WE',          "Sold to party
          C_6(6)      VALUE '000000',      "For item number
           C_20(2)  TYPE N VALUE '20',      "For the length of the field
           C_S(1)   TYPE C VALUE 'S',       "STOCK
           C_H      VALUE 'H',              "Header
           C_COL(1) TYPE C VALUE ':',       " COLUMN FOR DATA AND TIME
           C_TOP    TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
                                           "For TOP_OF_PAGE
           C_USER   TYPE SLIS_FORMNAME VALUE 'USER_COMMAND'.
" For USER_COMMAND
*& TYPE DEFINITIONS                                                    *
*FOR Sales Document: Header Data
TYPES: BEGIN OF TP_VBAK,
         VBELN TYPE VBELN_VF,   "Sales Document
         ERDAT TYPE ERDAT,      "Date on which the record was created
         AUART TYPE AUART,      "Sales document type
         LIFSK TYPE LIFSK,      "Delivery block
         VKORG TYPE VKORG,      "Sales organization
         VTWEG TYPE VTWEG,      "Distribution channel
       END OF TP_VBAK.
*FOR Sales Document Business Data
TYPES :BEGIN OF TP_VBKD,
        VBELN TYPE VBELN,      "Sales and distribution document number
        POSNR TYPE POSNR,      "Item number of the SD document
        INCO1 TYPE INCO1,      "Incoterms
        ZTERM TYPE DZTERM,     "Terms of payment key
        BSTKD TYPE BSTKD,      "Customer purchase order number
      END OF TP_VBKD.
TYPES : BEGIN OF TP_VBFA,
          VBELV TYPE VBELN_VON,
          POSNV TYPE POSNR_VON,
        END OF TP_VBFA.
*FOR Sales Document: Partner
TYPES : BEGIN OF TP_VBPA,
          VBELN TYPE VBELN,    "Sales and distribution
          PARVW TYPE PARVW,    "Partner function
          KUNNR TYPE KUNNR,    "Customer Number 1
          ADRNR TYPE ADRNR,    "address
        END OF TP_VBPA.
*FOR Addresses (Business Address Services)
TYPES : BEGIN OF TP_ADRC,
          ADDRNUMBER TYPE AD_ADDRNUM,  "Address
          DATE_FROM TYPE AD_DATE_FR,   "Date valid from
          NATION TYPE AD_NATION,       "International address
          NAME1 TYPE AD_NAME1,         "name
        END OF TP_ADRC.
*FOR Sales Document: Item Data
TYPES: BEGIN OF TP_VBAP,
        VBELN TYPE VBELN_VA,   "Sales document
        POSNR TYPE POSNR_VA,   "Sales document item
        MATNR TYPE MATNR,      "Material Number
        PSTYV TYPE PSTYV,      "Sales document item category
        KDMAT TYPE MATNR_KU,   "Material number used by customer
        VRKME TYPE VRKME,      "Sales unit
        WERKS TYPE WERKS_EXT,  "Plant (Own or External)
        VSTEL TYPE VSTEL,      "Shipping point /Receiving point
        NETPR TYPE NETPR,      "Net p
        NETWR TYPE NETWR_AP,
        WAERK TYPE VBAP-WAERK,"Target outline doc currency
     END OF TP_VBAP.
*for Sales Document: Schedule Line Data
TYPES: BEGIN OF TP_VBEP,
        VBELN TYPE VBELN_VA,   "Sales document
        POSNR TYPE POSNR_VA,   "Sales Document Item
        ETENR TYPE ETENR,      "Schedule line
        EDATU TYPE EDATU,      "Schedule line data
        WMENG TYPE WMENG,      "Order quantity in sales unit
        BMENG TYPE BMENG,      "Confirmed quantity
        LMENG TYPE LMENG,      "Required quantity
        WADAT TYPE WADAT,      "Goods issue date
        LIFSP TYPE LIFSP_EP,   "Schedule line blocked for delivery
      END OF TP_VBEP.
*For Sales Document: Header Status and Administrative Data
TYPES : BEGIN OF TP_VBUK,
          VBELN TYPE VBELN,  "Sales and Distribution Document Number
          SPSTG TYPE SPSTG,  "Overall blocked status
          CMGST TYPE CMGST,
        END OF TP_VBUK.
TYPES : BEGIN OF TP_TVLST,
          LIFSP TYPE LIFSP,  "Default delivery block
          VTEXT TYPE BEZEI_LIFSP, "Description
        END OF TP_TVLST.
*FOR Sales Document: Item Status
TYPES : BEGIN OF TP_VBUP,
          VBELN TYPE VBELN,      "Sales and distribution
          POSNR TYPE POSNR,      "Item number of the SD
          LFGSA TYPE LFGSA,      "Overall delivery status of item
        END OF TP_VBUP.
For ALV Display-if  cs rep is checked
TYPES: BEGIN OF TP_DISPC,
          VBELN TYPE VBELN,       "Sales and distribution Doc
          VKORG TYPE VKORG,       "Sales organization
          VTWEG TYPE VTWEG,       "Distribution channel
          AUART TYPE AUART,       "Sales document type
          BSTKD TYPE BSTKD,       "Customer purchase order
          KUNNR_1 TYPE KUNNR,     "Cs Rep Number
          NAME1_1 TYPE NAME1,     "Cs Rep Name
          KUNNR_2 TYPE KUNNR,     "Bill to Number
          NAME1_2 TYPE NAME1,     "Bill to Party
          KUNNR_3 TYPE KUNNR,     "Ship to Number
          NAME1_3 TYPE NAME1,     "Ship to Party
          POSNR TYPE POSNR_VA,    "Item number of the SD
          MATNR TYPE MATNR,       "Material Number
          KDMAT TYPE MATNR_KU,    "Material number used by
          VSTEL TYPE VSTEL,       "Shipping point /Receiving
          NETPR TYPE NETPR,       "Net price
          NETWR TYPE NETWR_AP,
          WAERK TYPE WAERK,       "Currency
          ZTERM TYPE DZTERM,      "Terms of payment key
          WMENG TYPE WMENG,       "Order quantity in sales unit
          LOGIC_1 TYPE WMENG,     "BackOrder Quantity
          VRKME TYPE STRING,      "Sales Unit
          WADAT TYPE EDATU,       "Goods issue date
          WADAT1 TYPE EDATU,
          EDATU TYPE EDATU,       "Schedule line data
          VRKME_1 TYPE STRING,    "Sales Unit
          INCO1 TYPE INCO1,       "Incoterms
          LFGSA TYPE STRING,      "Overall delivery status of item
          LIFSP TYPE STRING,      "Line Item Block
          LIFSK TYPE STRING,      "Header block
          SPSTG TYPE STRING,      "Overall blocked status
         END OF TP_DISPC.
For ALV Display-if plant is checked
TYPES: BEGIN OF TP_DISPP,
          VBELN TYPE VBELN,       "Sales and distribution Doc
          VKORG TYPE VKORG,       "Sales organization
          VTWEG TYPE VTWEG,       "Distribution channel
          AUART TYPE AUART,       "Sales document type
          BSTKD TYPE BSTKD,       "Customer purchase order
          KUNNR_2 TYPE KUNNR,     "Cs rep number
          NAME1_2 TYPE NAME1,     "Cs rep Name
          KUNNR_3 TYPE KUNNR,     "Ship to Number
          NAME1_3 TYPE NAME1,     "Ship to Party Name
          POSNR TYPE POSNR_VA,    "Item number of the SD
          MATNR TYPE MATNR,       "Material Number
          KDMAT TYPE MATNR_KU,    "Material number used by customer
          VSTEL TYPE VSTEL,       "Shipping point /Receiving point
          NETPR TYPE NETPR,       "Net price
          NETWR TYPE NETWR_AP,
*}MOD02
          WAERK TYPE WAERK,       "Currency
          ZTERM TYPE DZTERM,      "Terms of payment key
          WMENG TYPE WMENG,       "Order quantity in sales unit
          LOGIC_1 TYPE WMENG,     "Backorder Quantity
          VRKME TYPE STRING,      "Sales unit
          WADAT TYPE EDATU,       "Goods issue date
          WADAT1 TYPE EDATU,
          EDATU TYPE EDATU,       "Schedule line data
          VRKME_1 TYPE STRING,    "Sales Unit
          INCO1 TYPE INCO1,       "Incoterms
          LFGSA TYPE STRING,      "Overall delivery status of item
          LIFSP TYPE STRING,      "Line Item Block
          LIFSK TYPE STRING,      "Header block
          SPSTG TYPE STRING,      "Overall blocked status
          WERKS TYPE WERKS_EXT,   "Plant (Own or External)
       END OF TP_DISPP.
For ALV Display-if cs rep and palnt is checked
TYPES: BEGIN OF TP_DISP,
          VKORG TYPE VKORG,        "Sales organization
          VTWEG TYPE VTWEG,        "Distribution channel
          AUART TYPE AUART,        "Sales document type
          VBELN TYPE VBELN,        "Sales and distribution Doc no
          BSTKD TYPE BSTKD,        "Customer purchase order number
          KUNNR_1 TYPE KUNNR,      "Cs Rep Number
          NAME1_1 TYPE NAME1,      "Cs Rep Name
          KUNNR_2 TYPE KUNNR,      "Bill to Number
          NAME1_2 TYPE NAME1,      "Bill to Name
          KUNNR_3 TYPE KUNNR,      "Ship to Number
          NAME1_3 TYPE NAME1,      "Ship to Name
          POSNR TYPE POSNR_VA,     "Item number of the SD
          MATNR TYPE MATNR,        "Material Number
          KDMAT TYPE MATNR_KU,     "Material number used
          VSTEL TYPE VSTEL,        "Shipping point /Receiving
          NETPR TYPE NETPR,        "Net price
          NETWR TYPE NETWR_AP,
          WAERK TYPE WAERK,        "Currency
          ZTERM TYPE DZTERM,       "Terms of payment key
          WMENG TYPE WMENG,        "Order quantity in sales
          LOGIC_1 TYPE WMENG,      "Backorder Quantity
          VRKME TYPE STRING,       "Sales unit
          WADAT TYPE EDATU,        "Goods issue date
          WADAT1 TYPE EDATU,
          VRKME_1 TYPE STRING,     "Sales Unit
          EDATU TYPE EDATU,        "Schedule line date
          INCO1 TYPE INCO1,        "Incoterms
          LFGSA TYPE STRING,       "Overall delivery status of
          LIFSP TYPE STRING,       "Line Item Block
          LIFSK TYPE STRING,       "Header block
          SPSTG TYPE STRING,       "Overall blocked status
          WERKS TYPE WERKS_EXT,    "Plant (Own or External)
       END OF TP_DISP.
*& INTERNAL TABLES                                                     *
Internal Tables used for Data Selection
DATA: T_VBAK TYPE STANDARD TABLE OF TP_VBAK WITH HEADER LINE,
      T_VBPA TYPE STANDARD TABLE OF TP_VBPA WITH HEADER LINE,
      T_VBAP TYPE STANDARD TABLE OF TP_VBAP WITH HEADER LINE,
      T_VBKD TYPE STANDARD TABLE OF TP_VBKD WITH HEADER LINE,
      T_VBEP TYPE STANDARD TABLE OF TP_VBEP WITH HEADER LINE,
      T_VBEP1 TYPE STANDARD TABLE OF TP_VBEP WITH HEADER LINE,
      T_VBUP TYPE STANDARD TABLE OF TP_VBUP WITH HEADER LINE,
      T_ADRC TYPE STANDARD TABLE OF TP_ADRC WITH HEADER LINE,
      T_DISPC TYPE STANDARD TABLE OF TP_DISPC WITH HEADER LINE,
      T_DISPP TYPE STANDARD TABLE OF TP_DISPP WITH HEADER LINE,
      T_DISP TYPE STANDARD TABLE OF TP_DISP WITH HEADER LINE.
{23-8-2007
DATA: T_VBUK TYPE STANDARD TABLE OF TP_VBUK WITH HEADER LINE,
      T_TVLST TYPE STANDARD TABLE OF TP_TVLST WITH HEADER LINE,
      T_TVLST1 TYPE STANDARD TABLE OF TP_TVLST WITH HEADER LINE,
      T_VBFA TYPE STANDARD TABLE OF TP_VBFA WITH HEADER LINE.
            Variables used for ALV Display                           *
DATA:
      W_REPID TYPE SY-REPID,               " Report name
      W_POS   TYPE I VALUE 0,              " Column position indicator
      W_LAYOUT TYPE SLIS_LAYOUT_ALV,       " Layout
      W_DATUM(10) TYPE C,                  " Run date
      W_TIME(8)   TYPE C.                  " Run time
            Tables used for ALV Display                              *
DATA  :   T_GROUP TYPE SLIS_T_SP_GROUP_ALV WITH HEADER LINE,
                                             "Grouping of field
          T_SORT TYPE SLIS_T_SORTINFO_ALV WITH HEADER LINE,
                                             "sorting of the field
          T_FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
                                            " Field description
          T_TOP TYPE SLIS_T_LISTHEADER.      " Header for the ALV
            Work Area used for ALV Display
DATA : WA_TOP LIKE LINE OF T_TOP.            " Work Area for Header
*& SELECTION SCREEN                                                    *
Selection
SELECTION-SCREEN BEGIN OF BLOCK B01 WITH FRAME TITLE TEXT-T01.
"Sales Organization details
SELECT-OPTIONS: S_VKORG FOR VBAK-VKORG OBLIGATORY.
"Sales Organization
SELECT-OPTIONS: S_VTWEG FOR VBAK-VTWEG .
"Distribution Channel
SELECT-OPTIONS: S_KUNNR1 FOR VBPA-KUNNR .             "CS Rep Number
SELECT-OPTIONS: S_WERKS FOR VBAP-WERKS.               "Plant
SELECTION-SCREEN END OF BLOCK B01.
SELECTION-SCREEN BEGIN OF BLOCK B02 WITH FRAME TITLE TEXT-T02.
"Additional Selections
SELECT-OPTIONS: S_KUNNR2 FOR VBPA-KUNNR .      "Bill to party
SELECT-OPTIONS: S_KUNNR3 FOR VBPA-KUNNR .      "Ship to party
SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN .       "Saler Order
SELECT-OPTIONS: S_MATNR FOR VBAP-MATNR .       "Material Number
SELECT-OPTIONS: S_KDMAT FOR VBAP-KDMAT .       "Customer Material Number
SELECT-OPTIONS: S_AUART FOR VBAK-AUART .       "Sales Order Type
SELECTION-SCREEN END OF BLOCK B02.
SELECTION-SCREEN BEGIN OF BLOCK B03 WITH FRAME TITLE TEXT-T03.
"Date Selection
SELECT-OPTIONS: S_ERDAT FOR VBAK-ERDAT OBLIGATORY.
"Order Creation Date
PARAMETER: P_PLANT AS CHECKBOX.                 "Backorder Plant
PARAMETER: P_CSREP AS CHECKBOX.                 "Backorder CSREP number
SELECTION-SCREEN END OF BLOCK B03.
*& AT SELECTION SCREEN                                                 *
*Validation Sales Organisation
AT SELECTION-SCREEN ON S_VKORG.
  IF NOT S_VKORG[] IS INITIAL.
    SELECT VKORG UP TO 1 ROWS FROM TVKO
    BYPASSING BUFFER
    INTO S_VKORG
    WHERE VKORG IN S_VKORG.
    ENDSELECT.
    IF SY-SUBRC NE 0.
      MESSAGE E000 WITH TEXT-E01.
      "Enter a valid Sales Organization
    ENDIF.
  ENDIF.
*Validation Distribution Channel
AT SELECTION-SCREEN ON S_VTWEG.
  IF NOT S_VTWEG[] IS INITIAL.
    SELECT VTWEG UP TO 1 ROWS FROM TVTW
     BYPASSING BUFFER
  INTO S_VTWEG
   WHERE VTWEG IN S_VTWEG.
    ENDSELECT.
    IF SY-SUBRC NE 0.
      MESSAGE E000 WITH TEXT-E02.
      "Enter a valid Distribution channel
    ENDIF.
  ENDIF.
*Validation Customer service rep number
AT SELECTION-SCREEN ON S_KUNNR1.
  IF NOT S_KUNNR1[] IS INITIAL.
    SELECT KUNNR UP TO 1 ROWS FROM KNA1
    INTO S_KUNNR1
    WHERE KUNNR IN S_KUNNR1.
    ENDSELECT.
    IF SY-SUBRC NE 0.
      MESSAGE E000 WITH TEXT-E03.
      "Enter a valid Customer Service rep number
    ENDIF.
  ENDIF.
*Validation Plant
AT SELECTION-SCREEN ON S_WERKS.
  IF NOT S_WERKS[] IS INITIAL.
    SELECT WERKS UP TO 1 ROWS
    FROM T001W
    INTO S_WERKS
    BYPASSING BUFFER
    WHERE WERKS IN S_WERKS.
    ENDSELECT.
    IF SY-SUBRC NE 0.
      MESSAGE E000 WITH TEXT-E04.  "Enter a valid Plant
    ENDIF.
  ENDIF.
*Validation Bill to number
AT SELECTION-SCREEN ON S_KUNNR2.
  IF NOT S_KUNNR2[] IS INITIAL.
    SELECT KUNNR UP TO 1 ROWS FROM KNA1
    INTO S_KUNNR2
    WHERE KUNNR IN S_KUNNR2.
    ENDSELECT.
    IF SY-SUBRC NE 0.
      MESSAGE E000 WITH TEXT-E05.  "Enter a valid Bill to number
    ENDIF.
  ENDIF.
*Validation Ship to Number
AT SELECTION-SCREEN ON S_KUNNR3.
  IF NOT S_KUNNR3[] IS INITIAL.
    SELECT KUNNR UP TO 1 ROWS FROM KNA1
    INTO S_KUNNR3
    WHERE KUNNR IN S_KUNNR3.
    ENDSELECT.
    IF SY-SUBRC NE 0.
      MESSAGE E000 WITH TEXT-E06.  "Enter a valid Ship to number
    ENDIF.
  ENDIF.
*Validation Order Number
AT SELECTION-SCREEN ON S_VBELN.
  IF NOT S_VBELN[] IS INITIAL.
    SELECT VBELN UP TO 1 ROWS FROM VBUK
    INTO S_VBELN
    WHERE VBELN IN S_VBELN.
    ENDSELECT.
    IF SY-SUBRC NE 0.
      MESSAGE E000 WITH TEXT-E07.  "Enter a valid Order number
    ENDIF.
  ENDIF.
*Validation Material Number
AT SELECTION-SCREEN ON S_MATNR.
  IF NOT S_MATNR[] IS INITIAL.
    SELECT MATNR UP TO 1 ROWS FROM MARA
    INTO S_MATNR
    WHERE MATNR IN S_MATNR.
    ENDSELECT.
    IF SY-SUBRC NE 0.
      MESSAGE E000 WITH TEXT-E08.  "Enter a valid Material number
    ENDIF.
  ENDIF.
*Validation Customer Material Number
AT SELECTION-SCREEN ON S_KDMAT.
  IF NOT S_KDMAT[] IS INITIAL.
    SELECT KDMAT UP TO 1 ROWS
    FROM KNMT
    INTO S_KDMAT
    WHERE VKORG IN S_VKORG AND
          VTWEG IN S_VTWEG AND
          KDMAT IN S_KDMAT.
    ENDSELECT.
    IF SY-SUBRC NE 0.
      MESSAGE E000 WITH TEXT-E09.
      "Enter a valid Customer Material number
    ENDIF.
  ENDIF.
*Validation Salea order type
AT SELECTION-SCREEN ON S_AUART.
  IF NOT S_AUART[] IS INITIAL.
    SELECT AUART UP TO 1 ROWS FROM TVAK
    INTO S_AUART
    BYPASSING BUFFER
    WHERE AUART IN S_AUART.
    ENDSELECT.
    IF SY-SUBRC NE 0.
      MESSAGE E000 WITH TEXT-E10.
      "Enter a valid Sales Order type
    ENDIF.
  ENDIF.
*Validation for Plant / CS rep .
AT SELECTION-SCREEN .
  IF NOT ( ( P_PLANT = C_X ) OR ( P_CSREP = C_X ) ).
    MESSAGE E000 WITH TEXT-E12.  "Choose the Plant or CSrep
  ENDIF.
  IF  ( P_PLANT = C_X ) AND S_WERKS IS INITIAL.
    MESSAGE E000 WITH TEXT-E13.  "Enter Plant
  ENDIF.
  IF  ( P_CSREP = C_X ) AND S_KUNNR1 IS INITIAL.
    MESSAGE E000 WITH TEXT-E14. " Enter CSREP number
  ENDIF.
*& START OF SELECTION                                                  *
START-OF-SELECTION.
Clear Work Areas/Variables and Clear/Refresh Internal Tables
  PERFORM CLEAR_REFRESH.
Selection of Data as per inputs
  PERFORM DATA_SELECTION.
Populate Internal table for display
  PERFORM DATA_FILL_FOR_DISPLAY.
*& END OF SELECTION                                                  *
END-OF-SELECTION.
  IF NOT T_DISP[] IS INITIAL.
*Populating the field catalog for ALV Display if plant and csrep is
*checked.
    PERFORM POPULATE_FIELD_CATALOG.
    PERFORM DISPLAY.
  ELSEIF T_DISPP[] IS NOT INITIAL.
*Populating the field catalog for ALV Display if plant is checked.
    PERFORM POPULATE_FIELD_CATALOG.
    PERFORM DISPLAY.
  ELSEIF T_DISPC[] IS NOT INITIAL.
*Populating the field catalog for ALV Display if csrep is checked.
    PERFORM POPULATE_FIELD_CATALOG.
    PERFORM DISPLAY.
  ELSE.
    MESSAGE I000 WITH TEXT-E15. "No Data found for Selection Criteria
  ENDIF.
Clear Work Areas/Variables and Clear/Refresh Internal Tables
  PERFORM CLEAR_REFRESH.
*&      Form  CLEAR_REFRESH
      Clear Work Areas/Variables and Clear/Refresh Internal Tables
FORM CLEAR_REFRESH .
Clear Variables/Work Areas/Internal Tables
  CLEAR: W_REPID,
         W_POS,
         W_LAYOUT,
         W_DATUM,
         W_TIME,
         T_VBAK,
         T_VBKD,
         T_VBPA,
         T_VBAP,
         T_VBEP,
         T_VBUP,
         T_DISPC,
         T_DISPP,
         T_DISP,
         T_VBUK,
         T_TVLST,
         T_TVLST1.
Refresh Internal Tables
  REFRESH: T_VBAK,
           T_VBKD,
           T_VBPA,
           T_VBAP,
           T_VBEP,
           T_VBUP,
           T_DISPC,
           T_DISPP,
           T_DISP,
           T_VBUK,
           T_TVLST,
           T_TVLST1.
ENDFORM.                    " CLEAR_REFRESH
*&      Form  DATA_SELECTION
      Selection of Data as per inputs
FORM DATA_SELECTION .
*Obtain Sales and distribution document number,Date on which the record
*was created
*Sales document type,Delivery block,Sales organisation,
Distribution channel based on selection criteria
  SELECT VBELN                            "Sales and distribution Doc no
         ERDAT
         "Date on which the record was created
         AUART                            "Sales document type
         LIFSK                            "Delivery block
         VKORG                            "Sales organisation
         VTWEG                            "Distribution channel
         FROM VBAK
         INTO TABLE T_VBAK
         WHERE VBELN IN S_VBELN AND
               ERDAT IN S_ERDAT AND
               AUART IN S_AUART AND
               VKORG IN S_VKORG AND
               VTWEG IN S_VTWEG.
  IF SY-SUBRC EQ 0.
    SORT T_VBAK BY VBELN .
*Obtain Sales document ,Sales document item,Material Number,Material
*number used by customer
Safer point ,Plant (Own or External),Shipping point /Receiving point
Net price based on selection criteria
    SELECT A~VBELN        "Sales document
           A~POSNR        "Sales document item
           MATNR        "Material Number
           PSTYV        "Sales document item category
           KDMAT        "Material number used by customer
           VRKME        "Sales unit
           WERKS        "Plant (Own or External)
           VSTEL        "Shipping point /Receiving point
           NETPR        "Net price
*MOD02 {
           NETWR
*}MOD02
           WAERK        "Target outline doc currency
           FROM  VBAP AS A JOIN VBUP AS B
           ON ( AVBELN = BVBELN
               AND APOSNR = BPOSNR )
           INTO TABLE T_VBAP
           FOR ALL ENTRIES IN T_VBAK
           WHERE A~VBELN = T_VBAK-VBELN AND
                 A~MATNR IN S_MATNR AND
                 A~PSTYV NE C_TAPA AND
                 A~KDMAT IN S_KDMAT AND
                 A~WERKS IN S_WERKS AND
                 A~ABGRU EQ SPACE AND
                 B~LFSTA NE 'C'.
    IF SY-SUBRC EQ 0.
      SORT T_VBAP BY VBELN POSNR.
    ENDIF.
   SELECT VBELV
          POSNV
          FROM VBFA
          INTO TABLE T_VBFA
          FOR ALL ENTRIES IN T_VBAP
          WHERE VBELV = T_VBAP-VBELN
          AND POSNV = T_VBAP-POSNR
          AND VBTYP_N = 'J'.
   IF SY-SUBRC = 0.
     SORT T_VBFA BY VBELV POSNV.
     LOOP AT T_VBAP.
*READ TABLE T_VBFA WITH KEY VBELV = T_VBAP-VBELN POSNV = T_VBAP-POSNR.
       IF SY-SUBRC = 0.
         DELETE T_VBAP.
       ENDIF.
     ENDLOOP.
   ENDIF.
{ 23-8-2007
    SELECT LIFSP
           VTEXT
           FROM TVLST
           INTO TABLE T_TVLST
           FOR ALL ENTRIES IN T_VBAK
           WHERE SPRAS EQ C_E AND
                 LIFSP = T_VBAK-LIFSK.
    IF SY-SUBRC EQ 0.
      SORT T_TVLST BY LIFSP.
    ENDIF.
*Obtain Sales and distribution document number,Item number of the SD
*document ,Incoterms,Terms of payment key,Customer purchase order number
*based on selection criteria
    SELECT VBELN                 "Sales and distribution document number
           POSNR                 "Item number of the SD document
           INCO1                 "Incoterms
           ZTERM                 "Terms of payment key
           BSTKD                 "Customer purchase order number
           FROM VBKD INTO TABLE T_VBKD
           FOR ALL ENTRIES IN T_VBAK
           WHERE VBELN = T_VBAK-VBELN.
    IF SY-SUBRC EQ 0.
      SORT T_VBKD BY VBELN .
    ENDIF.
*Obtain Sales document,Sales Document Item,Schedule line,Schedule line
*data, Order quantity in sales unit,Confirmed quantity,Goods issue date,
*Schedule line blocked for delivery based on selection criteria
    SELECT VBELN                    "Sales document
            POSNR                   "Sales Document Item
            ETENR                   "Schedule line
            EDATU                   "Schedule line data
            CMENG                   "Order quantity in sales unit
            BMENG                   "Confirmed quantity
            LMENG
            WADAT                   "Goods issue date
            LIFSP                   "Schedule line blocked for delivery
            FROM VBEP INTO TABLE T_VBEP
            FOR ALL ENTRIES IN T_VBAK
            WHERE VBELN = T_VBAK-VBELN AND
                  ETENR = C_0001.
    IF SY-SUBRC EQ 0.
      SORT T_VBEP BY VBELN POSNR ETENR.
{ 23-8-2007
      SELECT LIFSP
             VTEXT
             FROM TVLST
             INTO TABLE T_TVLST1
             FOR ALL ENTRIES IN T_VBEP
             WHERE SPRAS EQ C_E AND
                   LIFSP = T_VBEP-LIFSP.
      IF SY-SUBRC EQ 0.
        SORT T_TVLST1 BY LIFSP.
      ENDIF.
    ENDIF.
    SELECT VBELN                    "Sales document
                POSNR                   "Sales Document Item
                ETENR                   "Schedule line
                EDATU                   "Schedule line data
                CMENG                   "Order quantity in sales unit
                BMENG                   "Confirmed quantity
                LMENG
                WADAT                   "Goods issue date
                LIFSP
                "Schedule line blocked for delivery
                FROM VBEP INTO TABLE T_VBEP1
                FOR ALL ENTRIES IN T_VBAK
                WHERE VBELN = T_VBAK-VBELN .
    IF SY-SUBRC EQ 0.
      SORT T_VBEP1 BY VBELN POSNR .
    ENDIF.
{ 23-8-2007
    SELECT    VBELN    "Sales and Distribution Document Number
              SPSTG    "Overall blocked status
*MOD02 {
              CMGST
*}MOD02
        FROM VBUK
        INTO TABLE T_VBUK
        FOR ALL ENTRIES IN T_VBAK
       WHERE VBELN = T_VBAK-VBELN
       AND ( CMGST = 'A' OR CMGST = 'D' ).
    IF SY-SUBRC EQ 0.
      SORT T_VBUK BY VBELN .
    ENDIF.
*Obtain Sales and distribution Doc no,Item number of the SD document
Overall delivery status of item
    SELECT    VBELN    "Sales and distribution Doc no
              POSNR    "Item number of the SD document
              LFGSA    "Overall delivery status of item
        FROM VBUP
        INTO TABLE T_VBUP
        FOR ALL ENTRIES IN T_VBAK
       WHERE VBELN = T_VBAK-VBELN.
    IF SY-SUBRC EQ 0.
      SORT T_VBUP BY VBELN POSNR.
    ENDIF.
*Obtain Sales and distribution document number,Partner function
Customer Number 1,address based on selection criteria
    SELECT    VBELN   "Sales and distribution Doc no
              PARVW   " Patner function
              KUNNR   "Customer No1
              ADRNR   "address
                FROM VBPA
                INTO TABLE T_VBPA
                FOR ALL ENTRIES IN T_VBAP
               WHERE VBELN = T_VBAP-VBELN AND
                    ( ( KUNNR IN S_KUNNR1 ) OR
                     ( KUNNR IN S_KUNNR2 )  OR
                      ( KUNNR IN S_KUNNR3 ) ) AND
                       ( ( PARVW = C_ZR ) OR
                         ( PARVW = C_BP ) OR
                         ( PARVW = C_SH ) ).
    IF SY-SUBRC EQ 0.
      SORT T_VBPA BY VBELN PARVW.
      IF NOT T_VBPA[] IS INITIAL.
*Obtain  Address number ,name
        SELECT  ADDRNUMBER  "Address number
                DATE_FROM   "Date valid from
                NATION      "International address version ID
                NAME1        "name
          FROM ADRC
          INTO TABLE T_ADRC
          FOR ALL ENTRIES IN T_VBPA
          WHERE ADDRNUMBER = T_VBPA-ADRNR.
        IF SY-SUBRC EQ 0.
          SORT T_ADRC BY ADDRNUMBER.
        ENDIF.
      ENDIF.
    ELSE.
      MESSAGE I000 WITH TEXT-S02."No Data For the Entered CS rep number
      STOP.
    ENDIF.
  ELSE.
    MESSAGE I000 WITH TEXT-S01.
    "No data found for the selection criteria
    STOP.
  ENDIF.
ENDFORM.                    " DATA_SELECTION
*&      Form  DATA_FILL_FOR_DISPLAY
      Populate Internal table for display
FORM DATA_FILL_FOR_DISPLAY .
  DATA: L_NETPR TYPE NETPR.    "For net amount
  DATA: L_DATE TYPE EDATU.     "For Date Field
  DATA: L_WMENG TYPE WMENG.    "For Confirmed Quantity
  DATA: L_BMENG TYPE BMENG.    "For Delivered Quantity
  DATA : L_LAST_DATE TYPE EDATU.
  DATA : W_FG TYPE C.
  DATA : L_TABIX TYPE SY-TABIX.
  DATA: L_CNT TYPE I,
        L_NETWR TYPE NETWR.
*If plant and csrep are selected.
  IF ( ( P_PLANT = C_X ) AND ( P_CSREP = C_X ) ).
    LOOP AT T_VBAP.
      CLEAR W_FG.
      CLEAR L_CNT.
*MOD02 {
      READ TABLE T_VBUK WITH KEY VBELN = T_VBAP-VBELN.
      IF SY-SUBRC = 0.
*}MOD02
        LOOP AT T_VBEP1 WHERE VBELN = T_VBAP-VBELN AND POSNR =
        T_VBAP-POSNR.
          L_CNT = L_CNT + 1.
          IF L_LAST_DATE IS NOT INITIAL AND W_FG NE 'X'.
            IF L_LAST_DATE NE T_VBEP1-WADAT.
              W_FG = 'X'.
            ENDIF.
          ENDIF.
          L_LAST_DATE = T_VBEP1-WADAT.
        ENDLOOP.
        IF L_CNT = 1 AND T_VBEP1-BMENG = 0.
          W_FG = 'X'.
        ENDIF.
        IF W_FG = 'X'.
          READ TABLE T_VBEP WITH KEY VBELN = T_VBAP-VBELN
                                     POSNR = T_VBAP-POSNR
                                      BINARY SEARCH.
          IF SY-SUBRC EQ 0.
*Move Order quantity in sales unit to final internal table
            MOVE T_VBEP-WMENG TO T_DISP-WMENG.
            MOVE T_VBEP-WADAT TO T_DISP-WADAT1.
*Move Goods issue date to final internal table
            MOVE T_VBEP-EDATU TO T_DISP-WADAT.
{ 23-8-2007
            READ TABLE T_TVLST1 WITH KEY LIFSP = T_VBEP-LIFSP
                                      BINARY SEARCH.
            IF SY-SUBRC EQ 0.
              CONCATENATE T_VBEP-LIFSP
                              T_TVLST1-VTEXT
                              INTO T_DISP-LIFSP
                              SEPARATED BY SPACE.
            ENDIF.
*Move the Schedule line blocked for delivery
to final internal table.
          ENDIF.
*LOOP AT T_VBEP1 WHERE VBELN = T_VBAP-VBELN AND POSNR = T_VBAP-POSNR.
          LOOP AT T_VBEP1 WHERE VBELN = T_VBAP-VBELN AND POSNR =
          T_VBAP-POSNR.
            L_WMENG = T_VBEP1-WMENG + L_WMENG.
            L_BMENG = T_VBEP1-BMENG + L_BMENG.
       IF NOT L_DATE IS INITIAL.
         IF ( L_DATE < T_VBEP1-EDATU ).
           L_DATE = T_VBEP1-EDATU.
         ENDIF.
       ELSE.
         L_DATE = T_VBEP1-EDATU.
       ENDIF.
            AT END OF POSNR.
              READ TABLE T_VBEP1 INDEX SY-TABIX.
              IF SY-SUBRC = 0.
                L_DATE = T_VBEP1-EDATU.
              ENDIF.
            ENDAT.
          ENDLOOP.
          IF T_VBEP1-WMENG EQ T_VBEP1-BMENG.
            T_DISP-LOGIC_1 = 0.
            T_DISP-EDATU = T_VBEP1-EDATU.
          ELSEIF   L_WMENG EQ L_BMENG  .
            T_DISP-EDATU = L_DATE.
            T_DISP-LOGIC_1 = L_WMENG.
          ELSE.
            T_DISP-EDATU = C_BLANK.
            T_DISP-LOGIC_1 = L_WMENG.
          ENDIF.
*Move the Sales document item to final internal table.
          MOVE T_VBAP-POSNR TO T_DISP-POSNR.
*Move the Material Number to final internal table.
          MOVE T_VBAP-MATNR TO T_DISP-MATNR.
*Move the Material number used by customer to final internal table.
          MOVE T_VBAP-KDMAT TO T_DISP-KDMAT.
*Move the Shipping point to final internal table.
          MOVE T_VBAP-VSTEL TO T_DISP-VSTEL.
*Move the Sales unit to final internal table.
          PERFORM UNIT1 USING T_VBAP-VRKME CHANGING T_VBAP-VRKME.
          MOVE T_VBAP-VRKME TO T_DISP-VRKME.
          MOVE T_VBAP-VRKME TO T_DISP-VRKME_1.
*Move the Plant (Own or External) to final internal table.
          MOVE T_VBAP-WERKS TO T_DISP-WERKS.
          MOVE T_VBAP-WAERK TO T_DISP-WAERK.
*Move the Net price to final internal table.
          IF  T_VBAP-WAERK = C_US   .
            L_NETPR = T_VBAP-NETPR.
            L_NETPR = L_NETPR / 100.
            T_DISP-NETPR = L_NETPR.
            CLEAR L_NETPR.
          ELSE.
            MOVE T_VBAP-NETPR TO T_DISP-NETPR.
          ENDIF.
          CLEAR L_NETPR.
*MOD02{
          IF  T_VBAP-WAERK = C_US   .
            L_NETWR = T_VBAP-NETWR.
            L_NETWR = L_NETWR / 100.
            T_DISP-NETWR = L_NETWR.
            CLEAR L_NETWR.
          ELSE.
            MOVE T_VBAP-NETWR TO T_DISP-NETWR.
          ENDIF.
          CLEAR L_NETWR.
*}MOD02
*READ THE TABLE VBAK TO FETCH Sales Order Number,sales
*organisation,distribution channel,Document type,Delivery block
          READ TABLE T_VBAK WITH KEY VBELN = T_VBEP-VBELN BINARY SEARCH.
          IF SY-SUBRC EQ 0.
*Move the Sales order number to final internal table.
            MOVE T_VBAK-VBELN TO T_DISP-VBELN.
            PERFORM DELETE_LEADING_ZEROES CHANGING T_DISP-VBELN.
*Move the Sales organisation to final internal table.
            MOVE T_VBAK-VKORG TO T_DISP-VKORG.
*Move the Distribution channel to final internal table.
            MOVE T_VBAK-VTWEG TO T_DISP-VTWEG.
*Move the Document type to final internal table.
            MOVE T_VBAK-AUART TO T_DISP-AUART.
{23-8-2007
            READ TABLE T_TVLST WITH KEY LIFSP = T_VBAK-LIFSK
                                        BINARY SEARCH.
            IF SY-SUBRC EQ 0.
              CONCATENATE T_VBAK-LIFSK
                          T_TVLST-VTEXT
                          INTO T_DISP-LIFSK
                          SEPARATED BY SPACE.
            ENDIF.
          ENDIF.
*READ THE TABLE VBKD TO FETCH Incoterms,Terms of payment key,Customer
*purchase order number
          READ TABLE T_VBKD WITH KEY VBELN = T_VBAP-VBELN
            BINARY SEARCH.
          IF SY-SUBRC EQ 0.
*Move the Customer purchase order number to final internal table.
            MOVE T_VBKD-BSTKD TO T_DISP-BSTKD.
*Move the Incoterms to final internal table.
            MOVE T_VBKD-INCO1 TO T_DISP-INCO1.
*Move the Terms of payment to final internal table.
            MOVE T_VBKD-ZTERM TO T_DISP-ZTERM.
          ENDIF.
{ 23-8-2007
          READ TABLE T_VBUK WITH KEY VBELN = T_VBEP-VBELN
          BINARY SEARCH.
          IF SY-SUBRC EQ 0.
            IF T_VBUK-SPSTG EQ SPACE.
              T_DISP-SPSTG = TEXT-TE1. "Not Blocked
            ELSEIF T_VBUK-SPSTG EQ C_C.
              T_DISP-SP

Similar Messages

  • Getting warning while running the report

    hi all am getting warning while running the report .
    the log file is given below
    +---------------------------------------------------------------------------+
    Process Manufacturing Inventory: Version : 11.5.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXVIS_OPM_STOCK_STATEMENT module: Visaka RG1 Register
    +---------------------------------------------------------------------------+
    Current system time is 11-OCT-2011 20:42:05
    +---------------------------------------------------------------------------+
    **Starts**11-OCT-2011 20:42:05
    **Ends**11-OCT-2011 20:43:25
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    Executing request completion options...
    +------------- 1) PUBLISH -------------+
    Unable to find an Output Post Processor service to post-process request 15845789.
    Check that the Output Post Processor service is running.
    +--------------------------------------+
    +------------- 2) PRINT   -------------+
    Not printing the output of this request because post-processing failed.
    +--------------------------------------+
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 11-OCT-2011 20:43:25
    +---------------------------------------------------------------------------+what is mean by output post processor?
    why am getting this problem?
    Please help me to fix this problem .
    Thanks for all in advance

    Hi;
    Unable to find an Output Post Processor service to post-process request 15845789.
    Check that the Output Post Processor service is running.Check OPP Cm are up and run. Please also check logs for can see why you are getting this message
    Regard
    Helios

  • Getting warninig while running the report

    hi all am getting warning while running the report .
    am getting following errors in log file .
    log file is given below
    please help me
    +---------------------------------------------------------------------------+
    Process Manufacturing Inventory: Version : 11.5.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXVIS_OPM_STOCK_STATEMENT module: Visaka RG1 Register
    +---------------------------------------------------------------------------+
    Current system time is 11-OCT-2011 20:35:56
    +---------------------------------------------------------------------------+
    **Starts**11-OCT-2011 20:35:57
    **Ends**11-OCT-2011 20:37:26
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    Executing request completion options...
    +------------- 1) PUBLISH -------------+
    Unable to find an Output Post Processor service to post-process request 15845786.
    Check that the Output Post Processor service is running.
    +--------------------------------------+
    +------------- 2) PRINT   -------------+
    Not printing the output of this request because post-processing failed.
    +--------------------------------------+
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 11-OCT-2011 20:37:26
    +---------------------------------------------------------------------------+
    [\code]
    thanks for all in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Ask this in the Oracle eBusiness Suite forum. This doesn't look like a Reports problem.

  • Getting variation while running the report S_ALR_87012386

    Hi,
    We made a posting in AP  based in USD  (value xxx  USD;   Local Amount :  361,65 u20AC )
    Due to the nature of the TAX Transaction, it was applied the Vat Code  XX  (to aplly / deduct VAT  at 23%  - Services from Other Markets). The posting is OK;  according to the rules:
    However while executing the report :S_ALR_87012386(Advance return for tax on sales/purchases Portugal) there is abnormal situation that shows wrong VAT base amounts and 23% tax also not calculating the Base amounts.
    I have posted the same document with local currency but there is no problem with Local currency because document and Tax amount calculated correctly in both transaction and report.
    Doc with local currency:  CR    31 vendor                10000
                                              DR   40 GL account                  10000
                                              CR   50 23% tax ammount  2300
                                              DR   40 23%tax amount             2300
    Above line items are showing correctly in report also same as it is.
    Below line items are correct but in report it is showing wrongly.
    Doc with F currency:      CR    31 vendor                     $520        Local: 350.52
                                              DR   40 GL account                 $ 520   Local: 350.52
                                              CR   50 23% tax ammount  $82.62      Local:  82.62
                                              DR   40 23%tax amount           $ 80.62   Local:80.62   
    Local Base amount     showing as 269.90 & 431.14 respectively and it is not calculating the 23% tax like above line items.                             
    It seems that only occured with Foreign Currency.
    Pleas let me know if you need further inputs or anything...
    Please help me out in this...
    KMR

    Ask this in the Oracle eBusiness Suite forum. This doesn't look like a Reports problem.

  • Error While Running the report in oracle apps

    Hi All,
    I got an error while running the report.The error is
    "FDPSTP failed due to ORA-06510: PL/SQL: unhandled user-defined exception".
    Please anyone give ur idea to resolve this issue as it is urgent.
    Thnaks
    Surya

    Hi;
    I got an error while running the report.The error is
    "FDPSTP failed due to ORA-06510: PL/SQL: unhandled user-defined exception".
    Please anyone give ur idea to resolve this issue as it is urgent.What is EBS version? You get this error on which steps or report? If you make search at metalik as FDPSTP failed due to ORA-06510: PL/SQL: there are 35 similar docs avaliable
    Regard
    Helios

  • Getting error while running SSRS report in SharePoint 2010

    Hi,
    I am getting below error while running a SSRS reports in SharePoint. Your help will be appreciated
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
    Timestamp: Wed, 5 Nov 2014 11:58:42 UTC
    Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 503
    Line: 5
    Char: 62123
    Code: 0
    Thanks,
    Manjunath

    Hi,
    According to your post, my understanding is that you get error while running SSRS reports.
    Basically, If the Request Management service is enabled, it manages all incoming requests by evaluating logic rules against the user requests in order to determine what\which action to take and which machine or machines (targets) in the farm should handle
    the request.
    By default the Request time out value for Request Management service are as follows,
    RequestTimeout                    : 00:01:40
    RequestExecutionTimeout       : 01:00:00
    So the error throws from RM service for those reports who take more than 1 minute to generate the report.
    To solve this issue, we can stop the Request Management service.
    Or increase the time out
    value by making use of following PowerShell  script.
    $waUrl = "URLofWEbApp"
    $wa = Get-SPWebApplication $waUrl
    $rmSettings = $wa | Get-SPRequestManagementSettings
    $req=$wa.RequestManagementSettings
    $timeout2= New-TimeSpan -minutes 5
    Sreq.Requesttimeout=$timeout2
    $req.update()
    For more information:
    http://blogs.technet.com/b/sajiths/archive/2014/08/19/ssrs-reports-timed-out-with-39-503-39-error-sharepoint-2013.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • While running the report from oracle apps

    Hi,
    While running the report from oracle apps i am getting the below error.
    First time when i ran it it works fine in the second time it is giving the below error like
    MSG-00001: After SRWINIT
    MSG-01000: Label sets failed
    MSG-01000: ORA-06502: PL/SQL: numeric or value error
    REP-1419: 'beforereport': PL/SQL program aborted
    Can anyone please give your kind advice on it.
    Thanks
    Surya...

    what is the application version ?
    is it seeded report ? or customized
    regards

  • Error while running the Report

    Hi ,
    I am trying to run the Report in Bex Analyzer. and once I enter the value for the variable, it gives me message that "Element is not correctly define (please check query)" and when i click on the error it gives me detail message as below :
    <b><b>Diagnosis
    Additional elements that do not have the same dimension, such as quantities and amounts or amounts and ratios, are added to element Sales Qty Gallons .
    Procedure
    Check your definition.
    If you still want to use this addition, you can suppress the dimensionality of one or both subexpressions by using the 'NODIM' operator. The system then interprets this or these subexpressions as nondimensional numbers.
    In the executed query, you can use the Key Figure Definition function to analyze element Sales Qty Gallons .</b></b>
    Now the thing is I am already using "NODIM" operator to add those elements. and I m not sure why this error is coming up now because I have created this query a while ago and it wasnt giving me any error at that time but now I have make some changes into it and it;s giving me this error while running the Report. But the thing is I didnt change anything in the element for which it;s showing me error.
    Thanks,
    Naitik

    Naitik,
    There are two or more key figures in your report. They are defined by different dimensions and somewhere you have a formula with both these key figure.
    Edit your query and select the Check Query icon. It will tell you which calculation you have the problem with. Edit this calculation to see which key figures are present.
    If the formula is logically correct, best thing to do is to put a NODIM( ) on your key figures that make up the formula, and then change you formula to look at the NODIM( ) version.
    That will fix things for you,
    Regards
    Gill

  • Error happened while running the report-BIRT

    Eclipse version - Luna
    that is-Eclipse IDE for Java and Report Developers
    version-4.4.2.20150219-0708
    Code in script open menu is-
    query="select"
    +"department_name, office_id, office_name,"
    +"sum(total_empl_count) as total_empl_count,"
    +"sum(pb_count) as Total_paybill_count, "
    +"sum (case when status = 'Approved' then pb_count else 0 end) as Approved,"
    +"sum (case when status = 'Ecs Processed' then pb_count else 0 end) as Ecs_Processed,"
    +"sum (case when status = 'Open' OR status= 'Rejected' then pb_count else 0 end) as Pendind_on_DDO,"
    +"sum (case when status = 'REVIEW I' then pb_count else 0 end) as REVIEW_I, "
    +"sum (case when status = 'REVIEW II' then pb_count else 0 end) as REVIEW_II, "
    +"sum (case when status = 'REVIEW III' then pb_count else 0 end) as REVIEW_III, "
    +"sum (case when status = 'REVIEW IV' then pb_count else 0 end) as REVIEW_IV"
    +"FROM ("
    +"select distinct ep.office_id as office_id, ep.department_name as department_name, ep.office_name as office_name, pb.status, "
    +"count(distinct ep.party_id) as total_empl_count, count(distinct pb.party_id) as pb_count"
    +"from"
    +"empl_position ep"
    +"inner join party pty on ep.party_id = pty.party_id "
    +"left outer join party_group pgo on ep.office_id = pgo.party_id "
    +"left outer join party_relationship pr on pr.party_id_to = pgo.party_id"
    +"left outer join party_group pgz on pr.party_id_from = pgz.party_id "
    +"left outer join"
    +"("
    +"select pb.party_id, pbs.status"
    +"from pay_bill pb "
    +" inner join pay_bill_summary pbs on pb.pay_bill_id = pbs.pay_bill_id"
    +" ) pb on ep.party_id = pb.party_id"
    +"where "
    +"ep.status_id = 'EMPL_POS_ACTIVE'"
    +"and pty.party_type_id = 'PERSON' "
    +"and pgo.group_name = 'Office'"
    +"and pgz.group_name = 'Zone'"
    +" and pr.status_id = 'PARTY_REL_ACTIVE' "
    +"group by ep.office_id, ep.department_name, ep.office_name, pb.status"
    +") zone_report"
    +"group by department_name,office_name,office_id"
    +"order by department_name"+params["Zone ID"]+params["Month"]+params["Year"];
    resportList=new Packages.org.ofbiz.example.GenerateReport();
    list=resportList.getReportData(query);
    itr=list.iterator();
    Problem- 1. I can't test my query.
    it reports error - java.lang.ExceptionInInitializerError
    at org.ofbiz.entity.config.EntityConfigUtil.getXmlRootElement(EntityConfigUtil.java:62)
    at org.ofbiz.entity.config.EntityConfigUtil.<clinit>(EntityConfigUtil.java:78)
    at org.ofbiz.entity.transaction.TransactionFactory.getTransactionFactory(TransactionFactory.java:47)
    at org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFactory.java:96)
    at org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java:77)
    at org.ofbiz.example.GenerateReport.getReportData(GenerateReport.java:102)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
    at org.mozilla.javascript.gen.c12._c1(/report/data-sets/script-data-set[@id="8"]/method[@name="open"]:44)
    at org.mozilla.javascript.gen.c12.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
    at org.mozilla.javascript.gen.c6._c0(/report/data-sets/script-data-set[@id="8"]/method[@name="open"]:0)
    at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.gen.c6.exec(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawScript(JavascriptEvalUtil.java:99)
    at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScript(JavascriptEvalUtil.java:138)
    at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:993)
    at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript(JSMethodRunner.java:138)
    at org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(DtEScriptExecutor.java:90)
    at org.eclipse.birt.report.engine.script.internal.DataSetScriptExecutor.handleJS(DataSetScriptExecutor.java:256)
    at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:98)
    at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open(ScriptDataSetRuntime.java:80)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.java:247)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:223)
    at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:1222)
    at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:233)
    at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:178)
    at org.eclipse.birt.report.engine.api.impl.ExtractionResults.nextResultIterator(ExtractionResults.java:157)
    at org.eclipse.birt.report.designer.data.ui.dataset.DataSetPreviewer.preview(DataSetPreviewer.java:69)
    at org.eclipse.birt.report.designer.data.ui.dataset.ResultSetPreviewPage$5.run(ResultSetPreviewPage.java:366)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
    Caused by: java.util.MissingResourceException: Can't find bundle for base name cache, locale en_IN
    at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:163)
    at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:159)
    at org.ofbiz.base.util.cache.UtilCache.<init>(UtilCache.java:119)
    at org.ofbiz.base.util.cache.UtilCache.createUtilCache(UtilCache.java:666)
    at org.ofbiz.base.config.ResourceLoader.<clinit>(ResourceLoader.java:38)
    ... 39 more
    [b]Problem 2[\b]-
    While opening web viewer for my report the error is -
    org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
    at org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2380)
    at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:277)
    at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:86)
    at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1325)
    at org.eclipse.birt.report.service.BirtViewerReportService.runReport(BirtViewerReportService.java:158)
    at org.eclipse.birt.report.service.actionhandler.BirtRunReportActionHandler.__execute(BirtRunReportActionHandler.java:81)
    at org.eclipse.birt.report.service.actionhandler.BirtChangeParameterActionHandler.runReport(BirtChangeParameterActionHandler.java:58)
    at org.eclipse.birt.report.service.actionhandler.AbstractChangeParameterActionHandler.__execute(AbstractChangeParameterActionHandler.java:52)
    at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
    at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
    at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
    at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleChangeParameter(BirtDocumentProcessor.java:100)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
    at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
    at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
    at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
    at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:360)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    at org.eclipse.jetty.server.Server.handle(Server.java:370)
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
    at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ExceptionInInitializerError
    at org.ofbiz.entity.config.EntityConfigUtil.getXmlRootElement(EntityConfigUtil.java:62)
    at org.ofbiz.entity.config.EntityConfigUtil.(EntityConfigUtil.java:78)
    at org.ofbiz.entity.transaction.TransactionFactory.getTransactionFactory(TransactionFactory.java:47)
    at org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFactory.java:96)
    at org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java:77)
    at org.ofbiz.example.GenerateReport.getReportData(GenerateReport.java:102)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
    at org.mozilla.javascript.gen.c10._c1(/report/data-sets/script-data-set[@id="8"]/method[@name="open"]:4)
    at org.mozilla.javascript.gen.c10.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
    at org.mozilla.javascript.gen.c6._c0(/report/data-sets/script-data-set[@id="8"]/method[@name="open"]:0)
    at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.gen.c6.exec(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawScript(JavascriptEvalUtil.java:99)
    at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScript(JavascriptEvalUtil.java:138)
    at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:993)
    at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript(JSMethodRunner.java:138)
    at org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(DtEScriptExecutor.java:90)
    at org.eclipse.birt.report.engine.script.internal.DataSetScriptExecutor.handleJS(DataSetScriptExecutor.java:256)
    at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:98)
    at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open(ScriptDataSetRuntime.java:80)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.java:247)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:223)
    at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:1222)
    at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:233)
    at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:178)
    at org.eclipse.birt.report.engine.data.dte.QueryResultSet.(QueryResultSet.java:98)
    at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:168)
    at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:83)
    at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:275)
    at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1947)
    at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)
    at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)
    at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
    at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:46)
    at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
    at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
    at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)
    at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
    at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
    at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
    at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:249)
    at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:269)
    ... 61 more
    Caused by: java.util.MissingResourceException: Can't find bundle for base name cache, locale en_IN
    at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:163)
    at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:159)
    at org.ofbiz.base.util.cache.UtilCache.(UtilCache.java:119)
    at org.ofbiz.base.util.cache.UtilCache.createUtilCache(UtilCache.java:666)
    at org.ofbiz.base.config.ResourceLoader.(ResourceLoader.java:38)
    ... 113 more
    [b]Please help ! [\b]

    Eclipse version - Luna
    that is-Eclipse IDE for Java and Report Developers
    version-4.4.2.20150219-0708
    Code in script open menu is-
    query="select"
    +"department_name, office_id, office_name,"
    +"sum(total_empl_count) as total_empl_count,"
    +"sum(pb_count) as Total_paybill_count, "
    +"sum (case when status = 'Approved' then pb_count else 0 end) as Approved,"
    +"sum (case when status = 'Ecs Processed' then pb_count else 0 end) as Ecs_Processed,"
    +"sum (case when status = 'Open' OR status= 'Rejected' then pb_count else 0 end) as Pendind_on_DDO,"
    +"sum (case when status = 'REVIEW I' then pb_count else 0 end) as REVIEW_I, "
    +"sum (case when status = 'REVIEW II' then pb_count else 0 end) as REVIEW_II, "
    +"sum (case when status = 'REVIEW III' then pb_count else 0 end) as REVIEW_III, "
    +"sum (case when status = 'REVIEW IV' then pb_count else 0 end) as REVIEW_IV"
    +"FROM ("
    +"select distinct ep.office_id as office_id, ep.department_name as department_name, ep.office_name as office_name, pb.status, "
    +"count(distinct ep.party_id) as total_empl_count, count(distinct pb.party_id) as pb_count"
    +"from"
    +"empl_position ep"
    +"inner join party pty on ep.party_id = pty.party_id "
    +"left outer join party_group pgo on ep.office_id = pgo.party_id "
    +"left outer join party_relationship pr on pr.party_id_to = pgo.party_id"
    +"left outer join party_group pgz on pr.party_id_from = pgz.party_id "
    +"left outer join"
    +"("
    +"select pb.party_id, pbs.status"
    +"from pay_bill pb "
    +" inner join pay_bill_summary pbs on pb.pay_bill_id = pbs.pay_bill_id"
    +" ) pb on ep.party_id = pb.party_id"
    +"where "
    +"ep.status_id = 'EMPL_POS_ACTIVE'"
    +"and pty.party_type_id = 'PERSON' "
    +"and pgo.group_name = 'Office'"
    +"and pgz.group_name = 'Zone'"
    +" and pr.status_id = 'PARTY_REL_ACTIVE' "
    +"group by ep.office_id, ep.department_name, ep.office_name, pb.status"
    +") zone_report"
    +"group by department_name,office_name,office_id"
    +"order by department_name"+params["Zone ID"]+params["Month"]+params["Year"];
    resportList=new Packages.org.ofbiz.example.GenerateReport();
    list=resportList.getReportData(query);
    itr=list.iterator();
    Problem- 1. I can't test my query.
    it reports error - java.lang.ExceptionInInitializerError
    at org.ofbiz.entity.config.EntityConfigUtil.getXmlRootElement(EntityConfigUtil.java:62)
    at org.ofbiz.entity.config.EntityConfigUtil.<clinit>(EntityConfigUtil.java:78)
    at org.ofbiz.entity.transaction.TransactionFactory.getTransactionFactory(TransactionFactory.java:47)
    at org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFactory.java:96)
    at org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java:77)
    at org.ofbiz.example.GenerateReport.getReportData(GenerateReport.java:102)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
    at org.mozilla.javascript.gen.c12._c1(/report/data-sets/script-data-set[@id="8"]/method[@name="open"]:44)
    at org.mozilla.javascript.gen.c12.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
    at org.mozilla.javascript.gen.c6._c0(/report/data-sets/script-data-set[@id="8"]/method[@name="open"]:0)
    at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.gen.c6.exec(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawScript(JavascriptEvalUtil.java:99)
    at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScript(JavascriptEvalUtil.java:138)
    at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:993)
    at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript(JSMethodRunner.java:138)
    at org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(DtEScriptExecutor.java:90)
    at org.eclipse.birt.report.engine.script.internal.DataSetScriptExecutor.handleJS(DataSetScriptExecutor.java:256)
    at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:98)
    at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open(ScriptDataSetRuntime.java:80)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.java:247)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:223)
    at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:1222)
    at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:233)
    at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:178)
    at org.eclipse.birt.report.engine.api.impl.ExtractionResults.nextResultIterator(ExtractionResults.java:157)
    at org.eclipse.birt.report.designer.data.ui.dataset.DataSetPreviewer.preview(DataSetPreviewer.java:69)
    at org.eclipse.birt.report.designer.data.ui.dataset.ResultSetPreviewPage$5.run(ResultSetPreviewPage.java:366)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
    Caused by: java.util.MissingResourceException: Can't find bundle for base name cache, locale en_IN
    at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:163)
    at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:159)
    at org.ofbiz.base.util.cache.UtilCache.<init>(UtilCache.java:119)
    at org.ofbiz.base.util.cache.UtilCache.createUtilCache(UtilCache.java:666)
    at org.ofbiz.base.config.ResourceLoader.<clinit>(ResourceLoader.java:38)
    ... 39 more
    [b]Problem 2[\b]-
    While opening web viewer for my report the error is -
    org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
    at org.eclipse.birt.report.engine.api.impl.EngineTask.handleFatalExceptions(EngineTask.java:2380)
    at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:277)
    at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:86)
    at org.eclipse.birt.report.service.ReportEngineService.runReport(ReportEngineService.java:1325)
    at org.eclipse.birt.report.service.BirtViewerReportService.runReport(BirtViewerReportService.java:158)
    at org.eclipse.birt.report.service.actionhandler.BirtRunReportActionHandler.__execute(BirtRunReportActionHandler.java:81)
    at org.eclipse.birt.report.service.actionhandler.BirtChangeParameterActionHandler.runReport(BirtChangeParameterActionHandler.java:58)
    at org.eclipse.birt.report.service.actionhandler.AbstractChangeParameterActionHandler.__execute(AbstractChangeParameterActionHandler.java:52)
    at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
    at org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
    at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
    at org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleChangeParameter(BirtDocumentProcessor.java:100)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
    at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
    at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
    at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
    at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:360)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    at org.eclipse.jetty.server.Server.handle(Server.java:370)
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
    at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ExceptionInInitializerError
    at org.ofbiz.entity.config.EntityConfigUtil.getXmlRootElement(EntityConfigUtil.java:62)
    at org.ofbiz.entity.config.EntityConfigUtil.(EntityConfigUtil.java:78)
    at org.ofbiz.entity.transaction.TransactionFactory.getTransactionFactory(TransactionFactory.java:47)
    at org.ofbiz.entity.transaction.TransactionFactory.getConnection(TransactionFactory.java:96)
    at org.ofbiz.entity.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java:77)
    at org.ofbiz.example.GenerateReport.getReportData(GenerateReport.java:102)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
    at org.mozilla.javascript.gen.c10._c1(/report/data-sets/script-data-set[@id="8"]/method[@name="open"]:4)
    at org.mozilla.javascript.gen.c10.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
    at org.mozilla.javascript.gen.c6._c0(/report/data-sets/script-data-set[@id="8"]/method[@name="open"]:0)
    at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    at org.mozilla.javascript.gen.c6.call(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.mozilla.javascript.gen.c6.exec(/report/data-sets/script-data-set[@id="8"]/method[@name="open"])
    at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateRawScript(JavascriptEvalUtil.java:99)
    at org.eclipse.birt.core.script.JavascriptEvalUtil.evaluateScript(JavascriptEvalUtil.java:138)
    at org.eclipse.birt.data.engine.script.ScriptEvalUtil.evaluateJSAsExpr(ScriptEvalUtil.java:993)
    at org.eclipse.birt.data.engine.script.JSMethodRunner.runScript(JSMethodRunner.java:138)
    at org.eclipse.birt.report.engine.script.internal.DtEScriptExecutor.handleJS(DtEScriptExecutor.java:90)
    at org.eclipse.birt.report.engine.script.internal.DataSetScriptExecutor.handleJS(DataSetScriptExecutor.java:256)
    at org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleOpen(ScriptDataSetScriptExecutor.java:98)
    at org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.open(ScriptDataSetRuntime.java:80)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.open(PreparedScriptDSQuery.java:247)
    at org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:223)
    at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:1222)
    at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:233)
    at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:178)
    at org.eclipse.birt.report.engine.data.dte.QueryResultSet.(QueryResultSet.java:98)
    at org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:168)
    at org.eclipse.birt.report.engine.data.dte.DataGenerationEngine.doExecuteQuery(DataGenerationEngine.java:83)
    at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:275)
    at org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1947)
    at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)
    at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)
    at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
    at org.eclipse.birt.report.engine.internal.executor.emitter.ReportItemEmitterExecutor.execute(ReportItemEmitterExecutor.java:46)
    at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
    at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
    at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)
    at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
    at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
    at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
    at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:249)
    at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:269)
    ... 61 more
    Caused by: java.util.MissingResourceException: Can't find bundle for base name cache, locale en_IN
    at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:163)
    at org.ofbiz.base.util.cache.UtilCache.setPropertiesParams(UtilCache.java:159)
    at org.ofbiz.base.util.cache.UtilCache.(UtilCache.java:119)
    at org.ofbiz.base.util.cache.UtilCache.createUtilCache(UtilCache.java:666)
    at org.ofbiz.base.config.ResourceLoader.(ResourceLoader.java:38)
    ... 113 more
    [b]Please help ! [\b]

  • Error message while running the report RFUMSV50 (Service Tax)

    Hi Experts,
    I have occured the following error while running the Report for for transferring the Service Tax from Interim to Final Account.
    F107: Restrict Period
    F7566
    I have executed the report RFUMSV50 by T.Code SE38
    Please help me in this matter.
    Thanks
    Priya

    Hi
    have you checked
    1. Global Parameters for Company Code
    . Currency Trln Rate set as '2' (WhichMeans exchange rate determined using posting date)
    2. Deferred Tax code Z0 created with Target Tax Code Z1
    Cya
    udayakumar.k

  • Problem while running the program in background

    hi SDNs,
    i have problem while i run report in background. in background, last three columns  are not appearing in the report. whereas it showing all columns in foreground.
    i have increased the line-size, even then it is giving truncating last some columns.
    could you any one pls help me out, what to do ?
    Thanking you,
    Ramakrishna S

    hi prakash ramu,
    even it is not working. it is directly talking me to spool request..
    i think it is not possible, while ur running the report in background.,
    any how if possible could u pls send me the code...
    thanks
    ramu

  • Error F107:Restrict Period while running the report RFUMSV50

    Hello Experts,
    I am facing the problem while runing the report RFUMSV50.
    I am running it first time and getting this error F107:Restrict Period
    Kindly guide me
    Regards
    Naveen

    Hi Naveen
    Before execute select the variant which is already defined.
    Regards,
    Anji.
    Edited by: anjiee on May 11, 2010 1:17 PM

  • Error While Running the Report(WIS 10901)

    Hi Champs,
    I am facing an Error while running my Report which is "The Database Error Occurred .The Database Error Text Is :The Supplied XML is not Valid [Measures].[41RK910OO62ME7S8AOB9IEJ7F].WIS 10901.
    This reports was running fine earlier but Not we are facing this issue and wen I remove that measure whose key is mentioned in the Error above then the Error is thrown for other Measures which are available in the Query.
    What could be the Possible solution for this ?

    Hi,
    Are you sure nothing has changed in the universe?
    Thanks

  • Getting error while running crystal reports on SAP BW Query

    Hi
    I have installed Crystal Reports 2008 SP3 and then SAP Integration Kit. I'm able to connect to SAP BW but after adding the query to crystal and while refreshing the report i'm getting an error
    Database Connection Error: 'BAPI Error #:0' Error occured when starting the parser: timeout during allocate/CPIC-CALL:'ThSAPCMRCV'.
    Please help how to overcome this error.
    Thanks
    Raghavendra.G

    Check the following SAP note
    https://service.sap.com/sap/support/notes/1032461
    Regards,
    Stratos

  • Getting error while running the Interface using AGENT

    Hi All,
    i am not able to run the interface using Agent service which running in the another machine, while running i am getting error message like
    java.lang.Exception: Error during Session launching
         at com.sunopsis.dwg.dbobj.SnpSession.remoteExecute(SnpSession.java)
         at com.sunopsis.graphical.l.or.e(or.java)
         at com.sunopsis.graphical.r.z.actionPerformed(z.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    i ran the Agent services in Comment prompt, there i am getting the error like follows
    java.lang.NullPointerException
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.h.y(h.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Unknown Source)
    here i have mentioned the steps which i followed for creating agent service.
    i have two machine namely A and B both having the ODI
    i am going to use the B machine as a centralized server. so i edited the odiparams.bat file in B machine in ODI locaiton and filled the repository information
    from A machine i opened the Topology and created the Agent service there i mentioned the HOST name as "B" and port number 20300. and i configure the logical agent aswell
    from B machine i started the Agent service like agentscheduler "-port=20300".
    Agent service launched seccessfully.
    From A machine i tested the Agent. that also shown the successful window message.
    then i started running the interface using the agent i am getting the error which i have mention in the beginging.
    Interface which i ran will do the text file to table loading, so i kept that file in particular location in B machine( i have configure this location when i created the file data store in topology in A machine).
    Please help me to solve the problem...
    thanks
    nidhi
    Edited by: knidhi on Nov 26, 2009 6:54 PM

    Thanks For your Reply,
    I ran the agent as you said. here is my observation
    from the Machine B where agent is actually running, i could able to run the interface using agent service.
    but from the machine A while running the interface i am getting the following error message
    java.lang.Exception: Error during Session launching : Error during Session Preparation : You are trying to execute a session with an agent that is undefined in your repository. Please check the agent -NAME parameter.
         at com.sunopsis.dwg.dbobj.SnpSession.remoteExecute(SnpSession.java)
         at com.sunopsis.graphical.l.or.e(or.java)
         at com.sunopsis.graphical.r.z.actionPerformed(z.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    i have created both physical and logical agent with the same name "DEMO_AGENT", and i ran the agent in the Machine B like
    agentscheduler "-port=20301" "-name=DEMO_AGENT"
    Please help me to solvethe issue...
    Thanks
    Nidhi
    Edited by: knidhi on Nov 27, 2009 11:04 AM
    Edited by: knidhi on Nov 27, 2009 11:04 AM
    Edited by: knidhi on Nov 27, 2009 11:05 AM

Maybe you are looking for

  • Free goods for SO

    Hi, We have free goods which are delivered to the customers if they purchases 1 business kit get 2 different goods with each. Exp: purchase 1 qty business kit 1 qty product A (FREE) 1 qty product B (FREE) I understand that this free good set in VBN1.

  • Can we change the value of a variable in the driver program from sapscript?

    Hello Experts, I am currently developing a form wherein I need to change the value of a variable defined in the standard driver program through the sapscript form. Unfortunately, I cannot customize this standard program since this is used by many oth

  • How to Split the message content?

    Hi ....     I am having an input File like below format. <?xml version="1.0" encoding="UTF-8"?> <ns0:MT_ISO8583 xmlns:ns0="http://axis.com/bank_statement">    <Field1></Field1> - 0 to 1    <Filed2></Filed2> - 0 to 1    <Filed3></Filed3> - 0 to unboun

  • ITunes sharing - using AirTunes and older Mac (Firewall)

    iTunes lives on my 27" iMac and I would like share the library out to home computers. I plan to have an older iMac G4 publicly accessible so visitors can control the music on the home stereo. I can access iTunes via the iMac G4, I can get to my main

  • Background behind Presenter

    Hi, need some advice on a backgrounds ? I have to shoot a colleague at work presenting the company news and i would like to put a digital background behind her comprising of the company logo and maybe image, can anyone tell me the best way to go abou