RG1 Report requirements

Hi all,
Following is the clients requirements for RG1 report,
1. When there is opening qnty for materials,but no transactions(production or issues) the report should show the details of opening & closing stock of FG stocks,
where as the above requirement is notmet with stanard RG1 report,palnning to go for ABAP custom developmwnt,
can anyone provide inputs how to handle the same through ABAP?
Moderator message - Please do not simply post yourr clients requirements and hope that someone will do your work for you - post locked
Edited by: Rob Burbank on Sep 1, 2009 9:20 AM

Hi,
1. Fetch all the material details from the table j_1iRG1(it contains rg1 transaction details) with desired inputs (plant, date range, excise group ect.) to itab1
2. Sort  or delete material which are not FG from itab1.
3. Fetch the opening & closing balance for sorted FG materials details from table j_2irg1bal for corresponding input details and put in itab2.
4. Compare two internal table and collect materials details in the third internal table which are not found itab1.
5. Display final internal table as output
Hope this will be helpful.

Similar Messages

  • Any tips at this Reporting requirement gathering stage?

    Hello Experts,
    I have 10 different sources of data which will mostly come to me in flat files.
    Some of the data coming to me for <b>UPDATE</b> will be
    1. daily,           (3 of the sources)
    2. weekly,       (2 of the sources) 
    3. monthly      (2 of the sources) 
    4. quarterly.   (2 of the sources)
    Some of the reporting requirements are <b>(GENERATE REPORTS)</b>:
    a) As needed i.e. on demand by managers
    b) Monthly
    c) Quarterly
    I am still in the report requirement gathering phase and I would like some hints here:
    Q1. What are the Dos and Don’ts?
    Q2. Does it matter whether the various sources are loaded into Cubes or ODSes? Which is the better choices and for what reasons?
    Q3. Any special guide on the frequency of Updates?
    Q4. Can the data elements from the 10 sources be all placed in say, 2 or 3 dimensions and within a single Cube?  Any advantages of this?
    Q5. Can each of the data elements from the 10 sources be placed in say, 10 different ODSes? Any advantages of this?
    Thanks in Advance.

    Hi Amanda,
    Actually, I’d split the process into those stages:
    1.     gathering report forms that users want to have and a frequency of report generation.
    2.     collection information on available sources of data
    3.     analysis: do the sources will provide all data for forms required – simultaneously the list of reports that would be possible to create is made. Here you can take into account not only availability of resources, but also budget/time/work force limitation. It’ll determine the scope of implementation.
    4.     Conceptual model (with parallel excersises in BW).
    •     If some reports (and data in them) are completely different, don’t having common information, then consider creating separate data providers. 
    •     If some reports (and data in them) have something in common, then consider creating separate data providers with a multiprovider on them.
    •     If all data are linked to some key(s) (for example a document number), then consider creating a single cube
    •     Determine time granularity (are your weekly, monthly and quarterly data may be derived from the daily data? If yes, maybe these data (except daily) are redundant. If not, then probably these data supply some additional information to daily? – consider merging this additional info into daily cube (or probably through separate ODS or cubes).
    So, it’s a somewhat an answer to Q2 and Q5.
    Q3. You may load data just before (say a several days) the reports generation.
    Q4. See above about single cube. Additionally, the rule of thumb is to have more little dimensions than few huge dimensions. Consider spreading out your chars into different dimensions. If you’ll be able to have all data in a single cube, it would give you an enormous flexibility in building reports (especially, not mandatory ones, but ad-hoc reports on demand).
    Also you can visit www.saptips.com site. I downloaded “Tips on Implementing a BW-Based Management Reporting Solution (and Getting Your Users to Use It!)” but cannot find it in inet. If you want I can send it to you along with “SAP BW projects: dos and donts” (ppt-demo and transcript).
    Best regards,
    Eugene

  • FICO:What are the critical reporting requirements of a finance department?

    Hi Experts,
    Can you help me identify all the reporting requirements of a finance departmentn when it comes to the use of BW?
    i. From a reporting perpective, what does the finance department need from BI to say that BI is a worthwhile investiment?
    ii. Does BI provide any of the answers provided in i. (above) through its business content objects? If so, can you discuss how BI provides each of the solutions? (I will apprecaite a discussion for the "finance team" and not neccessarily for the IT team)
    iii. If all the requirements of a finance department are already available with a newly installed BI, then
    what are the typical functions of a BI consultant  to a finance department? i.e. why will a finance department find the need to bring in a BI consutant to advise them on how best to use BW in their environment?
    iv. How does the above discussion pertain to CO. i.e. If your discussion above is strictly for FI, can you address i, ii, iii for CO?
    Thanks and Happy Holiday.

    Hi
    From a reporting perpective, what does the finance department need from BI to say that BI is a worthwhile investiment?
    Normally Financial reports needed for the customer will be P&L, Balance sheet, Cashflow statements and the AR, AP and also Controlling and the Turn over Ratios to know about the financial funding stage about their organization based on their functional requirements.
    ii. Does BI provide any of the answers provided in i. (above) through its business content objects? If so, can you discuss how BI provides each of the solutions? (I will apprecaite a discussion for the "finance team" and not neccessarily for the IT team)
    Better to talk to your FI CO team for this to understand better at ECC functional level to know what would be the best extractors that you can report on. BI content is already there for almost FI CO reports.
    http://help.sap.com/saphelp_nw70/helpdata/EN/2d/955a73da4d6d41a0a6128caf274ce8/frameset.htm
    and everything mentioned clearly in that why , how , what.
    iii. If all the requirements of a finance department are already available with a newly installed BI, then
    what are the typical functions of a BI consultant to a finance department? i.e. why will a finance department find the need to bring in a BI consutant to advise them on how best to use BW in their environment?
    Though the Finance team has every Extractor at ECC side its only BI consultant who has to work on Modeling , Extraction, Reporting Part for BEx Reports. You have to Map the Fields even though its BI Content some of the Customized objects like Routines, Formulas would be there for each and every project .
    iv. How does the above discussion pertain to CO. i.e. If your discussion above is strictly for FI, can you address i, ii, iii for CO?
    http://help.sap.com/saphelp_nw70/helpdata/EN/d6/563b2203ef11d4a7400060087a7a87/frameset.htm
    Hope it helps

  • RG1 Report

    Hi All,
    We developed a report to display RG1 report, currently in that we are facing a problem.
    The problem is when we run the report fro the current month its is not displaying the closing balnce done for the material in the previous month. (i.e.) If the report is run for the January month and if not transaction is performed in the December month the report is supose to fetch the last last transaction performed inthe November month.
    The thing is it fetching the value for January month and not the value of November month.
    Below we have pasted the logic used for this issue.
    The Bold sentence is what used for the specific logic.
    *& Report  ZFI_IN01_RG1_REPORT
    REPORT  ZFI_IN01_RG1_REPORT LINE-SIZE 265.
    TYPE-POOLS : SLIS.
    TABLES : ZIN01_RG1BASE, "RG1 Base Table
             MAKT,          " Material Descriptions
             J_1ICHIDTX.    " Chapter id and Text
    TYPES: BEGIN OF TP_RG1BASE,
    MBLNR           LIKE ZIN01_RG1BASE-MBLNR,
    REF_DOC       LIKE ZIN01_RG1BASE-REF_DOC,
    MATNR           LIKE ZIN01_RG1BASE-MATNR,
    ZEILE           LIKE ZIN01_RG1BASE-ZEILE,
    J_1ICHID        LIKE ZIN01_RG1BASE-J_1ICHID,         " CHAPTER ID
    J_1ICHT1        LIKE J_1ICHIDTX-J_1ICHT1,         " CHAPTER ID DESC
    BUDAT           LIKE ZIN01_RG1BASE-BUDAT,
    BWART           LIKE ZIN01_RG1BASE-BWART,
    KZBEW           LIKE ZIN01_RG1BASE-KZBEW,
    CPUTM           like ZIN01_RG1BASE-CPUTM,
    SPLIT_ID        like ZIN01_RG1BASE-SPLIT_ID,
    MENGE           LIKE ZIN01_RG1BASE-MENGE,
    CLOSE_BAL_PRD   LIKE ZIN01_RG1BASE-CLOSE_BAL_PRD,
    EXPIND          LIKE ZIN01_RG1BASE-EXPIND,
    ZKZBEW          LIKE ZIN01_RG1BASE-ZKZBEW,
    REF_MTYPE       LIKE ZIN01_RG1BASE-REF_MTYPE,
    END OF TP_RG1BASE.
    DATA : IG_RG1BASE TYPE STANDARD TABLE OF TP_RG1BASE WITH HEADER LINE
                                 INITIAL SIZE 100 WITH DEFAULT KEY,
           WG_RG1BASE LIKE LINE OF IG_RG1BASE,
           IG_RG1BASE_COPY LIKE TABLE OF IG_RG1BASE,
           WG_RG1BASE_COPY LIKE LINE OF IG_RG1BASE,
           IG_SUBCONT TYPE STANDARD TABLE OF TP_RG1BASE WITH HEADER LINE
                                 INITIAL SIZE 100 WITH DEFAULT KEY.
          WG_SUBCONT LIKE LINE OF IG_RG1BASE.
    DATA : G_OPEN_BAL LIKE ZIN01_RG1BASE-CLOSE_BAL_PRD,
           G_CLOSE_BAL  LIKE ZIN01_RG1BASE-CLOSE_BAL_PRD,
           G_FLAG .
    <b>DATA : IG_SORT        TYPE TABLE OF ZIN01_RG1BASE ,
                WG_SORT        TYPE ZIN01_RG1BASE,
                IG_ZIN01_RG1BASE LIKE TABLE OF ZIN01_RG1BASE WITH HEADER LINE.</b>
    Selection Screen
    SELECTION-SCREEN : BEGIN OF BLOCK BLOCK1 WITH FRAME.
    PARAMETERS      : PF_BUDAT LIKE MKPF-BUDAT OBLIGATORY ,                     " FROM DATE
                      PT_BUDAT LIKE MKPF-BUDAT OBLIGATORY.                      " TO DATE
    SELECTION-SCREEN : END OF BLOCK BLOCK1.
    AT Selection Screen
    AT SELECTION-SCREEN.
    SELECT SINGLE * FROM ZIN01_RG1BASE WHERE BUDAT BETWEEN PF_BUDAT AND PT_BUDAT AND CANC_IND <> 'C'.
    IF SY-SUBRC <> 0.
    MESSAGE E006(ZIN01_FI).
    ENDIF.
    START OF SELECTION
    START-OF-SELECTION.
    SELECT MBLNR REF_DOC     MATNR ZEILE A~J_1ICHID J_1ICHT1 BUDAT BWART KZBEW CPUTM
           SPLIT_ID MENGE CLOSE_BAL_PRD EXPIND ZKZBEW REF_MTYPE FROM ZIN01_RG1BASE AS A INNER JOIN J_1ICHIDTX AS B
                                                            ON A~J_1ICHID = B~J_1ICHID
                                                            INTO TABLE IG_RG1BASE
                                                            WHERE BUDAT BETWEEN PF_BUDAT AND PT_BUDAT AND CANC_IND <> 'C'
                                                            AND B~LANGU = SY-LANGU+0(1) AND BWART <> '602'
                                                                                    AND BWART <> '262'
                                                                                    AND BWART <> '202'
                                                                                    AND BWART <> '123'
                                                                                    AND BWART <> '162'
                                                                                    AND BWART <> '102'
                                                                                    AND BWART <> '502'
                                                                                    AND BWART <> '532'.
    IF SY-SUBRC <> 0.
    MESSAGE E006(ZIN01_FI).
    ELSE.
    SELECT  A~MBLNR A~XBLNR B~RDOC1 B~ZEILE B~RITEM1 B~EXBAS B~MENGE INTO TABLE IG_EXCISE FROM MKPF AS A INNER JOIN
                                                      J_1IEXCDTL AS B  ON A~XBLNR = B~RDOC1
                                                      FOR ALL ENTRIES IN IG_RG1BASE
                                                      WHERE  A~MBLNR = IG_RG1BASE-MBLNR  AND B~STATUS <> 'R'.
    IF SY-SUBRC <> 0.
    MESSAGE E006(ZIN01_FI).
    ELSE.
    SELECT VBELN POSNN INTO TABLE IG_VBFA FROM VBFA  FOR ALL ENTRIES IN IG_EXCISE
                                          WHERE VBELV = IG_EXCISE-RDOC1 AND POSNV = IG_EXCISE-RITEM1 AND VBTYP_N = 'M'.
    SORT IG_RG1BASE BY MATNR .
    IG_RG1BASE_COPY[] = IG_RG1BASE[].
    DELETE ADJACENT DUPLICATES FROM IG_RG1BASE_COPY COMPARING MATNR.
    <b>SORT IG_RG1BASE BY MATNR BUDAT CPUTM SPLIT_ID.
    SELECT * FROM ZIN01_RG1BASE INTO IG_ZIN01_RG1BASE.
    IG_SORT[] = IG_ZIN01_RG1BASE[].
    SORT IG_SORT BY MATNR BUDAT  DESCENDING.</b>
    *for 122 AND 161 movement type : if the refdoc is 101 f , subtract 122 menge from 101 menge.
    LOOP AT IG_RG1BASE_COPY INTO WG_RG1BASE_COPY.
    CLEAR G_FLAG.
    LOOP AT IG_RG1BASE INTO WG_RG1BASE WHERE MATNR = WG_RG1BASE_COPY-MATNR.
    <b>IF G_FLAG = ' '.
    PERFORM OPENING_BALANCE.
    WG_MAIN-OPEN_BAL   =  G_OPEN_BAL.
    ELSE.
    WG_MAIN-OPEN_BAL   = G_CLOSE_BAL.
    ENDIF.</b>
    APPEND WG_MAIN TO IG_MAIN.
    CLEAR : WG_MAIN, WG_RG1BASE.
    ENDLOOP.
    CLEAR WG_RG1BASE_COPY.
    ENDLOOP.
    PERFORM OPENING_BAL_CHANGE.
    PERFORM DISPLAY.
    *&      Form  OPENING_BALANCE
          text
    FORM OPENING_BALANCE.
    G_FLAG = ‘F’.
    <b>READ TABLE IG_SORT INTO WG_SORT WITH KEY MATNR = WG_MATERIAL-MATNR.
    IF SY-SUBRC = 0.
    *RECIPT +
    IF WG_RG1BASE-BWART = '101' AND WG_RG1BASE-KZBEW = 'F' OR WG_RG1BASE-BWART = '501' OR WG_RG1BASE-BWART = '561' OR WG_RG1BASE-BWART = '531'.
    G_OPEN_BAL = WG_SORT-CLOSE_BAL_PRD  - WG_RG1BASE-MENGE.
    *ISSUES
    ELSEIF WG_RG1BASE-REF_MTYPE = '101' AND WG_RG1BASE-ZKZBEW  = 'F' .
    G_OPEN_BAL = WG_SORT-CLOSE_BAL_PRD  + WG_RG1BASE-MENGE.
    ELSEIF  WG_RG1BASE-REF_MTYPE = '501' OR WG_RG1BASE-REF_MTYPE = '561' OR WG_RG1BASE-REF_MTYPE = '531'.
    G_OPEN_BAL = WG_SORT-CLOSE_BAL_PRD  + WG_RG1BASE-MENGE.
    ELSE.
    G_OPEN_BAL = WG_SORT-CLOSE_BAL_PRD.
    ENDIF.
    ELSE.
    G_OPEN_BAL = 0.
    ENDIF.</b>
    ENDFORM.
    Suggestions and Help will be much appreciated.
    Regards.
    Ramesh.

    Hi,
    I am having already this report please use this coding.
    REPORT YMS_EXDET MESSAGE-ID E4 NO STANDARD PAGE HEADING LINE-SIZE 350.
    *REPORT  ZMM_EXIN_DOC_ALV_HEADER .
    TABLES : J_1IEXCHDR,      " header table
             J_1IEXCDTL,      " item table
             J_1IPART1,       " Excise part I detials
             J_1IPART2,       " Excise Part II details
             LFA1,            " vendor master table
             J_1IMOVEND,      " vendor excise details table
             MSEG,            " Document Segment: Material
             MKPF,            " Header: Material Document
             DD07T,           " domain text table
             T001W.           " Plant and Branch Details
    DATA : BEGIN OF IT_CHDR OCCURS 100,
           SERIALNO   LIKE J_1IPART1-SERIALNO,
           DOCNO      LIKE J_1IEXCHDR-DOCNO,
           DOCYR      LIKE J_1IEXCHDR-DOCYR,
           EXNUM      LIKE J_1IEXCHDR-EXNUM,
           EXDAT      LIKE J_1IEXCHDR-EXDAT,
           WERKS      LIKE J_1IEXCHDR-WERKS,
           EXBED      LIKE J_1IEXCHDR-EXBED,
           EXCCD      LIKE J_1IEXCHDR-EXCCD,
           ECS        LIKE J_1IEXCHDR-ECS,
           STATUS LIKE J_1IEXCHDR-STATUS, "CHALLAN STATUS
           END OF IT_CHDR.
    DATA : BEGIN OF IT_CDTL OCCURS 100,
           SERIALNO LIKE J_1IPART1-SERIALNO,
           DOCYR  LIKE J_1IEXCDTL-DOCYR,
           DOCNO  LIKE J_1IEXCDTL-DOCNO,
           EXNUM  LIKE J_1IEXCDTL-EXNUM,
           EXDAT  LIKE J_1IEXCDTL-EXDAT,
           LIFNR  LIKE J_1IEXCDTL-LIFNR,
           MATNR  LIKE J_1IEXCDTL-MATNR,
           MAKTX  LIKE J_1IEXCDTL-MAKTX,
           CHAPID LIKE J_1IEXCDTL-CHAPID,
           EXBAS  LIKE J_1IEXCDTL-EXBAS,
           EXBED  LIKE J_1IEXCDTL-EXBED,
           ECS    LIKE J_1IEXCDTL-ECS,
           MENGE  LIKE J_1IEXCDTL-MENGE,
           MEINS  LIKE J_1IEXCDTL-MEINS,
           RDOC2  LIKE J_1IEXCDTL-RDOC2,
           EXGRP  LIKE J_1IEXCDTL-EXGRP,
           RDOC1  LIKE J_1IEXCDTL-RDOC1,
           STATUS LIKE J_1IEXCDTL-STATUS, "CHALLAN STATUS
           END OF IT_CDTL.
    DATA TEXT(10).
    DATA : BEGIN OF IT_OUT OCCURS 0,
           SERIALNO LIKE J_1IPART1-SERIALNO,
           TEXT1    LIKE TEXT,
           EXNUM    LIKE J_1IEXCDTL-EXNUM,
           EXDAT    LIKE J_1IEXCDTL-EXDAT,
           NAME     LIKE LFA1-NAME1,
           DDTEXT   LIKE DD07T-DDTEXT,
           EXCCD    LIKE J_1IEXCHDR-EXCCD,
           BUDAT    LIKE MKPF-BUDAT,
           EXBAS    LIKE IT_CDTL-EXBAS,
           EXBED    LIKE IT_CDTL-EXBED,
           ECS      LIKE IT_CDTL-ECS,
           MATNR    LIKE IT_CDTL-MATNR,
           MAKTX    LIKE IT_CDTL-MAKTX,
           CHAPID   LIKE IT_CDTL-CHAPID,
           MENGE    LIKE IT_CDTL-MENGE,
           MEINS    LIKE IT_CDTL-MEINS,
           DEL_IND(1),
           END OF IT_OUT.
    DATA IT_PART2 LIKE J_1IPART1 OCCURS 0 WITH HEADER LINE.
    DATA S_NO(4) .
    DATA DB_CNT LIKE SY-TABIX.
    DATA EBELN_T LIKE MSEG-EBELN .
    TYPE-POOLS : SLIS.
    DATA : AFIELD TYPE SLIS_FIELDCAT_ALV.
    DATA : LIST_HEADER   TYPE SLIS_T_LISTHEADER,
           FIELDCAT      TYPE SLIS_T_FIELDCAT_ALV,
           LS_FTCAT      TYPE LVC_S_FCAT,
           SORTCAT       TYPE SLIS_T_SORTINFO_ALV,
           SORTCAT_LN    LIKE LINE OF SORTCAT,
           G_REPID LIKE SY-REPID,
           G_BACK_GROUND(70),  "like bapibds01-objkey,
           GS_VARIANT LIKE DISVARIANT,
           G_SAVE ,
           GT_EVENTS TYPE SLIS_T_EVENT,
           ALV_EVENT TYPE SLIS_ALV_EVENT,
           EVENTCAT             TYPE SLIS_T_EVENT,
           EVENTCAT_LN          LIKE LINE OF EVENTCAT,
           LAYOUT_IN            TYPE SLIS_LAYOUT_ALV,
           LAYOUT_IN1           TYPE SLIS_LAYOUT_ALV.
    CONSTANTS : GC_FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE
    'TOP_OF_PAGE',
                GC_FORMNAME_USER_COMMAND TYPE SLIS_FORMNAME VALUE
    'USER_COMMAND',
                GC_FORMNAME_BEFORE_OUTPUT TYPE SLIS_FORMNAME VALUE
    'BEFORE_OUTPUT'.
      ALV_EVENT TYPE SLIS_ALV_EVENT,
    DATA EX_NO LIKE IT_CHDR-EXNUM VALUE 0.
    DATA REGTYP_1 LIKE J_1IPART1-REGTYP.
    SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME.
    PARAMETERS  WERKS TYPE J_1IEXCHDR-WERKS.
    SELECT-OPTIONS : BUDAT FOR J_1IEXCHDR-EXDAT.
    PARAMETERS : R1 RADIOBUTTON GROUP GRP DEFAULT 'X',
                 R2 RADIOBUTTON GROUP GRP.
    SELECTION-SCREEN END OF BLOCK B.
    INITIALIZATION.
      G_REPID = SY-REPID.
      G_SAVE = 'A'.
    PERFORM BUILD_EVENT USING GT_EVENTS[].
      PERFORM ALV_EVENT_INIT.
    AT SELECTION-SCREEN.
      REFRESH LIST_HEADER.
      PERFORM TOP_OF_PAGE_LIST_HEADER USING LIST_HEADER.
    START-OF-SELECTION.
    PERFORM ALV_EVENT_INIT.
      G_REPID = SY-REPID.
      G_BACK_GROUND = ' ' .
      IF R1 = 'X'.
        CLEAR R2. CLEAR : REGTYP_1.
        REGTYP_1 = 'A'.
         set titlebar 'BALAJI' with DB_CNT.
      ELSEIF R2 = 'X'.
        CLEAR R1.CLEAR : REGTYP_1.
        REGTYP_1 = 'C'.
         set titlebar 'BALAJI1' with DB_CNT.
      ENDIF.
    SELECT * FROM J_1IPART1
                      INTO CORRESPONDING FIELDS OF TABLE IT_PART2
                      WHERE REGTYP = REGTYP_1 AND
                            TRNTYP = 'GRPO'.
                            AND BUDAT IN BUDAT.
                              DOCYR = IT_CDTL-DOCYR AND
                              DOCNO = IT_CDTL-DOCNO.
    LOOP AT IT_PART2.
       SELECT SINGLE * FROM J_1IEXCHDR
                 INTO CORRESPONDING FIELDS OF IT_CHDR
                         WHERE  TRNTYP = 'GRPO' AND
                          STATUS NE ' ' AND
                         STATUS EQ ' ' AND
                         DOCYR = IT_PART2-DOCYR AND
                         DOCNO = IT_PART2-DOCNO AND
                         WERKS = WERKS AND
                         EXDAT IN BUDAT.
                       ORDER BY EXDAT.
       IF SY-SUBRC = 0.
         APPEND IT_CHDR.
       ELSE.
         CONTINUE.
       ENDIF.
    IF SY-SUBRC <> 0.
       MESSAGE E084.
    ENDIF.
    ENDLOOP.
    *******************SPD****************
    SELECT * INTO CORRESPONDING FIELDS OF IT_CDTL FROM J_1IEXCDTL WHERE
                                   TRNTYP = 'GRPO' AND WERKS = WERKS AND
                                    EXDAT IN BUDAT AND STATUS NE 'B'.
    SELECT SINGLE * FROM J_1IPART1 WHERE DOCNO = IT_CDTL-DOCNO AND
                                         DOCYR = IT_CDTL-DOCYR AND
                                         REGTYP = REGTYP_1.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM J_1IPART2 WHERE DOCNO = IT_CDTL-DOCNO AND
                                             DOCYR = IT_CDTL-DOCYR.
      IF SY-SUBRC NE 0.
        IT_CDTL-SERIALNO = J_1IPART1-SERIALNO.
        APPEND IT_CDTL.
      ENDIF.
    ENDIF.
    ENDSELECT.
    ***************SPD********************
    SELECT BDOCNO BDOCYR BEXNUM BEXDAT BWERKS BEXBED B~EXCCD
           B~ECS
           B~STATUS
           A~SERIALNO
           FROM J_1IPART1 AS A INNER JOIN J_1IEXCHDR AS B
           ON ADOCYR = BDOCYR AND ADOCNO = BDOCNO INTO CORRESPONDING
           FIELDS OF TABLE IT_CHDR WHERE B~TRNTYP = 'GRPO' AND
           BWERKS = WERKS AND BEXDAT IN BUDAT AND
           B~STATUS = ' ' AND
           B~STATUS = 'C' AND
           A~REGTYP = REGTYP_1.
    SORT IT_PART2 BY SERIALNO.
    LOOP AT IT_CHDR.
       SELECT * FROM J_1IEXCDTL
                 INTO CORRESPONDING FIELDS OF IT_CDTL
                FOR ALL ENTRIES IN IT_CHDR
                        WHERE
                         TRNTYP = 'GRPO' AND
                          STATUS EQ ' ' AND
                          STATUS EQ 'C' AND
                         STATUS NE 'P' AND
                         DOCNO  = IT_CHDR-DOCNO AND
                         DOCYR  = IT_CHDR-DOCYR AND
                         EXNUM  = IT_CHDR-EXNUM AND
                         EXDAT  = IT_CHDR-EXDAT AND
                         WERKS  = IT_CHDR-WERKS.
         IF SY-SUBRC = 0.
           APPEND IT_CDTL.
           CLEAR  IT_CDTL.
         ELSE.
           CONTINUE.
         ENDIF.
       ENDSELECT.
    MODIFY IT_CDTL INDEX SY-TABIX.
    CLEAR IT_CDTL.
    ENDLOOP.
    *****spd change**********
    *LOOP AT IT_CDTL.
    *SELECT SINGLE * FROM J_1IPART2 WHERE DOCNO = IT_CDTL-DOCNO AND
                                        DOCYR = IT_CDTL-DOCYR.
    *IF SY-SUBRC = 0.
    DELETE IT_CDTL INDEX SY-TABIX.
    *ENDIF.
    *ENDLOOP.
    **SELECT
    *******spd ****************
    SORT IT_CDTL BY  EXNUM EXDAT.
    DELETE ADJACENT DUPLICATES FROM IT_CDTL COMPARING MATNR EXNUM EXDAT.
      LOOP AT IT_CDTL.
        CLEAR TEXT.
        DB_CNT = DB_CNT + 1.
        READ TABLE IT_CHDR WITH KEY EXNUM = IT_CDTL-EXNUM DOCNO =
    IT_CDTL-DOCNO.
       READ TABLE IT_PART2 WITH KEY DOCNO = IT_CDTL-DOCNO .
       IT_OUT-SERIALNO = IT_PART2-SERIALNO.
        SELECT SINGLE NAME1 FROM LFA1
                        INTO IT_OUT-NAME
                        WHERE LIFNR = IT_CDTL-LIFNR.
        SELECT SINGLE * FROM LFA1
                          WHERE LIFNR = IT_CDTL-LIFNR.
        IF LFA1-LAND1 EQ 'IN'.
          TEXT = 'INVOICE'.
          IT_OUT-TEXT1 = TEXT.
        ELSE.
          TEXT = 'BOE'.
          IT_OUT-TEXT1 = TEXT.
        ENDIF.
        SELECT SINGLE * FROM J_1IMOVEND
                        WHERE LIFNR = IT_CDTL-LIFNR.
        SELECT SINGLE * FROM DD07T
                       INTO IT_OUT-DDTEXT
                        WHERE DOMNAME = 'J_1IVTYP' AND
                              DDLANGUAGE = 'EN' AND
                              DOMVALUE_L = J_1IMOVEND-J_1IVTYP.
      IF DD07T-DDTEXT = 'First Stage Dealer of indigenous excisable goods'
    OR
        DD07T-DDTEXT = 'Second Stage Dealer of indigenous excisablegoods'.
          DD07T-DDTEXT = 'Dealer'.
        ENDIF.
        IT_OUT-DDTEXT = DD07T-DDTEXT.
       ELSEIF DD07T-DDTEXT = 'Second Stage Dealer of indigenous excisable
    *goods'.
          DD07T-DDTEXT =
        CLEAR EBELN_T.
        SELECT SINGLE LFBNR FROM MSEG
                            INTO EBELN_T
                            WHERE MBLNR = IT_CDTL-RDOC2 .
        SELECT SINGLE * FROM MSEG
                          WHERE BWART EQ '106' AND
                                LFBNR = EBELN_T ."and
                               ebeln = ebeln_t.
        IF SY-SUBRC = 0.
          IT_OUT-DEL_IND = 'X'.
        ELSE.
          IT_OUT-DEL_IND = ' '.
        ENDIF.
        SELECT SINGLE BUDAT FROM MKPF
                          INTO IT_OUT-BUDAT
                          WHERE MBLNR = EBELN_T  ."MSEG-LFBNR.
        IT_OUT-EXNUM = IT_CDTL-EXNUM.
        IT_OUT-EXDAT = IT_CDTL-EXDAT.
        IT_OUT-EXCCD = IT_CHDR-EXCCD.
       IT_OUT-SERIALNO = IT_CHDR-SERIALNO.
        IT_OUT-SERIALNO = IT_CDTL-SERIALNO.
        IT_OUT-EXBAS = IT_CDTL-EXBAS.
        IT_OUT-EXBED = IT_CDTL-EXBED.
        IT_OUT-ECS   = IT_CDTL-ECS.
        IT_OUT-MATNR = IT_CDTL-MATNR.
        IT_OUT-MAKTX = IT_CDTL-MAKTX.
        IT_OUT-CHAPID = IT_CDTL-CHAPID.
        IT_OUT-MENGE = IT_CDTL-MENGE.
        IT_OUT-MEINS = IT_CDTL-MEINS.
        APPEND IT_OUT.
       EX_NO = IT_CDTL-EXNUM.
      ENDLOOP.
    Title Portion
      IF REGTYP_1 = 'A'.
        SET TITLEBAR 'BALAJI' WITH DB_CNT.
      ELSEIF REGTYP_1 = 'C'.
        SET TITLEBAR 'BALAJI1' WITH DB_CNT.
      ENDIF.
      AFIELD-COL_POS = 1.
      AFIELD-FIELDNAME = 'SERIALNO'.
      AFIELD-SELTEXT_L = 'SERIAL NO.'.
      AFIELD-JUST = 'L'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 2.
      AFIELD-FIELDNAME = 'TEXT1'.
      AFIELD-SELTEXT_L = 'TYPE OF DOC'.
      AFIELD-JUST = 'L'.
      AFIELD-DECIMALS_OUT = '0'.
      AFIELD-NO_ZERO = 'X'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 3.
      AFIELD-FIELDNAME = 'EXNUM'.
      AFIELD-SELTEXT_L = 'DOC.NO'.
      AFIELD-JUST = 'L'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 4.
      AFIELD-FIELDNAME = 'EXDAT'.
      AFIELD-SELTEXT_L = 'DOC.DATE'.
      AFIELD-JUST = 'C'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 5.
      AFIELD-FIELDNAME = 'NAME'.
      AFIELD-SELTEXT_L = 'NAME OF THE SUPPLIER'.
      AFIELD-NO_ZERO = 'X'.
      AFIELD-JUST = 'L'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 6.
      AFIELD-FIELDNAME = 'DDTEXT'.
      AFIELD-SELTEXT_L = 'TYPE-OF-SUPPLIER'.
      AFIELD-JUST = 'L'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 7.
      AFIELD-FIELDNAME = 'EXCCD'.
      AFIELD-SELTEXT_L = 'ECC OF THE SUPPLIER'.
      AFIELD-NO_ZERO = 'X'.
      AFIELD-JUST = 'L'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 8.
      AFIELD-FIELDNAME = 'BUDAT'.
      AFIELD-SELTEXT_L = 'INPUT RECV DATE'.
      AFIELD-JUST = 'C'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 9.
      AFIELD-FIELDNAME = 'EXBAS'.
      AFIELD-SELTEXT_L = 'ASSESSABLE-VALUE'.
      AFIELD-DO_SUM             = 'X'.
      AFIELD-JUST = 'R'.
      AFIELD-DECIMALS_OUT = '2'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 10.
      AFIELD-FIELDNAME = 'EXBED'.
      AFIELD-SELTEXT_L = 'DET OF CREDIT TAKEN CENVAT'.
      AFIELD-JUST = 'R'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 11.
      AFIELD-FIELDNAME = 'ECS'.
      AFIELD-SELTEXT_L = 'DET OF CREDIT TAKEN E-CESS'.
      AFIELD-JUST = 'R'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 12.
      AFIELD-FIELDNAME = 'MATNR'.
      AFIELD-SELTEXT_L = 'MATERIAL-CODE'.
      AFIELD-JUST = 'L'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 13.
      AFIELD-FIELDNAME = 'MAKTX'.
      AFIELD-SELTEXT_L = 'DESCRIPTION'.
      AFIELD-JUST = 'L'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 14.
      AFIELD-FIELDNAME = 'CHAPID'.
      AFIELD-SELTEXT_L = 'TARIFF-ID'.
      AFIELD-JUST = 'L'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 15.
      AFIELD-FIELDNAME = 'MENGE'.
      AFIELD-SELTEXT_L = 'QUANTITY'.
      AFIELD-JUST = 'R'.
      AFIELD-DO_SUM             = ' '.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 16.
      AFIELD-FIELDNAME = 'MEINS'.
      AFIELD-SELTEXT_L = 'UOM'.
      AFIELD-JUST = 'C'.
      APPEND AFIELD TO FIELDCAT.
      AFIELD-COL_POS = 17.
      AFIELD-FIELDNAME = 'DEL_IND'.
      AFIELD-SELTEXT_L = 'Deleted'.
      AFIELD-JUST = 'C'.
      APPEND AFIELD TO FIELDCAT.
    AFIELD-COL_POS = 18.
    AFIELD-FIELDNAME = 'PO NO'.
    AFIELD-SELTEXT_L = 'PURDOCNO'.
    AFIELD-JUST = 'C'.
    APPEND AFIELD TO FIELDCAT.
    * LAYOUT FOR ZEBRA CATLOG
      LAYOUT_IN-COLWIDTH_OPTIMIZE = 'X'.
      LAYOUT_IN-ZEBRA             = 'X'.
      LAYOUT_IN-GET_SELINFOS      = 'X'.
      LAYOUT_IN-CONFIRMATION_PROMPT = 'X'.
      LAYOUT_IN-DETAIL_POPUP = 'X' .
    SORTCAT-decimals     = '0'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM      = G_REPID
          I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
          I_SAVE                  = G_SAVE
          IS_VARIANT              = GS_VARIANT
          IT_FIELDCAT             = FIELDCAT
          IT_SORT                 = SORTCAT
          IS_LAYOUT               = LAYOUT_IN
          IT_EVENTS               = EVENTCAT
         I_BACKGROUND_ID         = g_back_ground
        TABLES
          T_OUTTAB                = IT_OUT.
    *&      Form  TOP_OF_PAGE_LIST_HEADER
          text
         -->LIST_HEADERtext
    FORM TOP_OF_PAGE_LIST_HEADER USING LIST_HEADER TYPE SLIS_T_LISTHEADER.
      DATA : HLINE TYPE SLIS_LISTHEADER,
             TEXT(60) TYPE C.
      CLEAR : HLINE,TEXT.
      HLINE-TYP = 'H'.
      HLINE-INFO = TEXT.
      APPEND HLINE TO LIST_HEADER.
      SELECT SINGLE * FROM T001W WHERE WERKS = WERKS.
      CLEAR : HLINE,TEXT.
      HLINE-TYP = 'H'.
      WRITE 'PLANT :' TO TEXT.
      WRITE WERKS TO TEXT+8.
      HLINE-INFO = TEXT.
      APPEND HLINE TO LIST_HEADER.
      CLEAR : HLINE,TEXT.
      HLINE-TYP = 'H'.
      WRITE T001W-NAME1 TO TEXT.
      HLINE-INFO = TEXT.
      APPEND HLINE TO LIST_HEADER.
      CLEAR : HLINE,TEXT.
      HLINE-TYP = 'H'.
      WRITE T001W-STRAS TO TEXT.
      HLINE-INFO = TEXT.
      APPEND HLINE TO LIST_HEADER.
      CLEAR : HLINE,TEXT.
      HLINE-TYP = 'H'.
      WRITE T001W-ORT01 TO TEXT.
      HLINE-INFO = TEXT.
      APPEND HLINE TO LIST_HEADER.
      CLEAR : HLINE,TEXT.
      HLINE-TYP = 'H'.
      WRITE 'DATE :' TO TEXT.
      WRITE BUDAT-LOW TO TEXT+7.
      IF BUDAT-HIGH NE ''.
        WRITE 'TO' TO TEXT+18.
        WRITE BUDAT-HIGH TO TEXT+22.
      ENDIF.
      HLINE-INFO = TEXT.
      APPEND HLINE TO LIST_HEADER.
    ENDFORM.                    "TOP_OF_PAGE_LIST_HEADER
    *&      Form  ALV_EVENT_INIT
          text
    FORM ALV_EVENT_INIT .
      CLEAR ALV_EVENT.
      ALV_EVENT-NAME = SLIS_EV_TOP_OF_PAGE.
      ALV_EVENT-FORM = 'ALV_TOP_OF_PAGE'.
      APPEND ALV_EVENT TO EVENTCAT.
      CLEAR ALV_EVENT.
      ALV_EVENT-NAME = SLIS_EV_TOP_OF_LIST.
      ALV_EVENT-FORM = 'ALV_TOP_OF_LIST'.
      APPEND ALV_EVENT TO EVENTCAT.
       CLEAR ALV_EVENT.
       ALV_EVENT-NAME = SLIS_EV_END_OF_LIST.
       ALV_EVENT-FORM = 'ALV_END_OF_LIST'.
       APPEND ALV_EVENT TO GT_EVENTS.
       CLEAR ALV_EVENT.
       ALV_EVENT-NAME = SLIS_EV_END_OF_PAGE.
       ALV_EVENT-FORM = 'ALV_END_OF_PAGE'.
       APPEND ALV_EVENT TO GT_EVENTS.
    ENDFORM.                    "ALV_EVENT_INIT
    *&      Form  ALV_TOP_OF_PAGE
          text
    FORM ALV_TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY = LIST_HEADER
          I_LOGO             = 'ENJOYSAP_LOGO'.
    ENDFORM.                    "ALV_TOP_OF_PAGE
    *&      Form  BUILD_EVENT
          text
         -->P_GT_EVENTS[]  text
    FORM BUILD_EVENT USING P_EVENTS TYPE SLIS_T_EVENT.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          I_LIST_TYPE     = 0
        IMPORTING
          ET_EVENTS       = P_EVENTS
        EXCEPTIONS
          LIST_TYPE_WRONG = 1
          OTHERS          = 2.
      READ TABLE P_EVENTS WITH KEY NAME = SLIS_EV_USER_COMMAND INTO
    ALV_EVENT.
      IF SY-SUBRC = 0.
        MOVE GC_FORMNAME_USER_COMMAND TO ALV_EVENT-FORM.
        APPEND ALV_EVENT TO P_EVENTS.
      ENDIF.
      READ TABLE P_EVENTS WITH KEY NAME = SLIS_EV_BEFORE_LINE_OUTPUT INTO
    ALV_EVENT.
      IF SY-SUBRC = 0.
        MOVE GC_FORMNAME_BEFORE_OUTPUT TO ALV_EVENT-FORM.
        APPEND ALV_EVENT TO P_EVENTS.
      ENDIF.
    ENDFORM.                    " BUILD_EVENT
    Thanks,
    Shankar

  • Standard Report requirement

    Hi Guys
    In my current implementation i have one report requirement.
    Iam giving lot of benefits to my employees. I like to capture all the expenses employee wise.
    I have already uploaded the employee personel number and during transactions we are entering the personel number
    But we i go and check the report, in the dynamic selection the personel number is not available
    Is it possible to take a standard report based on personnel number. If i give a personel number - i should get all the expnese gl accounts done for that employee
    Warm Regards
    Bala

    Hi:
    I have a suggestion.
    Create Employees as Employee vendors in Accounts payable.While creating vendor master, In the accounting information tab, assign the personel no.You have a separate reconciliation account for this employee vendors.
    Make Payments to vendor by using T.code F-53 . You can view the report of all employees to whom payment was made.
    You can view the standard reports to see the payments made to the employees.
    S_ALR_87012103 - List of Vendor Line Items
    S_ALR_87012083 - List of Vendor Open Items for Printing
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

  • Report requirement from BW

    Hi ,
    I need to execute the scenario in bw for report requirement.
    the report requirement is:
    The Fields are material, Batch, internal char, char value.
    Here the logic is the field Internal char no have values vintage,Bill of entry and the field char value have 222, 333-7876 for correponding field.
       Material        Batch          Internal Char no.         Char vlue
       2009822       58938         Vintage                        222
                                               Bill of entry                  333-7876
    They need bw report like
    Material             Batch          Vintage             Billof entry
    2009822           58938           222                  333- 7876
    Can any one give idea.
    Thanks,
    Satya

    Hi Satya,
    Follow the below given steps,
    1) Goto rows area and right click to create new formula variable.
    2) In the edit step of your formula, remove the default description and put a &, you will get different options. select the new text variable.
    3) Give the variable name, description and select the type as replacement path.
    4) On the next screen select your characteristics i.e. Internal cost type (first char).
    5) on the next screen select replace variable with Key or text value whichever you want.
    6) Here we are done with heading part.
    Now for defination of formula variable,
    1) Right click on Formual variable tree and create a new variable.
    2) Select type as replacement path and on next screen select the other characteristics i.e. Internal cost value i.e. 222.
    3) Again on next screen replace variable with key.
    4) Finally select Dimension indicator as Number.
    5) We are ready to use the variable. In the defination part use newly created variable.
    Now you will get the output in exactly required format.
    Regards,
    Durgesh.

  • Report requirement, for count before the input selection.

    Hi All,
    I have a requirement:
    And in infoprovider we have :
    in 07.2011, 10 records were created.
    in 08.2011, 40 records were created.
    in 09.2011, 50 records were created.
    in 10.2011, 70 records were created.
    User enters month interval like 07.2011 - 10.2011
    and wants outout like:
    Calmonth:... 07.2011....08.2011.......09.2011.......10.2011
    Count  : ........30010.......30050...........30100..........30170
    Means.in report  07.2011 should show all the count upto 07.2011,
    Similarly 08.2011 show all counts upto 08.2011 month. And in same way others also.
    Since input is  07.2011 to 10.2011, so report is considering  only data between this range only.
    How do i get count before 07.2011 in report and meet report requirement.
    Please suggest and let me know if more information is required.
    Thanks,
    Jitender.

    Hi Jitender,
    It is not possible to generate the query columns dynamically in the output based on the user input.
    For getting the aggregated value what you can do is, create a customer exit variable on fiscal period and restrict it from some starting period till user entered period.
    In your example let us say you have data from 07.2009 then your customer exit variable will have range from 07.2009 till 07.2011. Use this variable in a RKF with count as key figure and period as customer exit variable here you will get the output as 30010.
    For getting the next columns you can change the period range by using offset. But you will have to create different columns beforehand in the query design itself. The only thing you can do is based on the user input different columns will be populated even you can keep the dynamic text using text variable so that you will get dynamic period heading but dynamic creation of columns is not possible.
    Regards,
    Durgesh.

  • For financial report requirment can we consider secondary cost element cost

    For financial reporting requirment can we consider secondary cost element cost to profit and loss a/c

    In our senario _ cost is booking cost centers and revenues booking concern profit centers .
    for Financial reporting requirment can I include secondary cost to profit and loss a/c
    what is the impact on the report
    exp: salary booking in primary cost,than Per hour man hour cost computed by costing dept for allocate to concern department
    it is cost center activity price we specify in kp26 at the time of pm order confirm it will confim the activity quandity price will from planning area only,  so for salaries in primary g/ls already captured, if we consider secondary it may double booking
    srinivasa reddy

  • Reporting requirements to Filter on query results

    Hi Everyone,
    Part of our reporting requirements for Billing Data is to display all Invoices Created till the 15th of the Month. Users want to trend analyze Invoice created till 15th of each month for last 6 months. The report has a time filter to get Invoices for last 6 months.
    How do we further filter all Invoices created till 15th of each month?
    Thanks for all your answers in Advance.
    CM

    HI,
    I think the best way would be - create an infoobject containing the day  (from your date). Then you use calmonth and the new infoobject as time characteristics and restrict both (calmonth on the calmonth, calmonth - 1,...) and "day" as fix filter value for 1 to 15.
    This will work.
    If you can't extend you cube, you should try it with an virtuel cube where you use your original cube as source. the virtual cube contains the new infoobject "day".
    Cheers
    J
    Edited by: Jürgen Sauer on Apr 11, 2011 9:35 AM

  • RG1 report-Ztable_entries insertion

    Hi Folks,
    Inorder to create a RG1 report the previous development team has created a ztable of the same strcuture as J_2IRG1BAL.But I was not able to find out how they are inserting the entires into this ztable.
    1.Is there any  possibility that they would have return any bdc to populate this ztable?
    2.J_2IRG1BAL needs two transactions to be run for the table to have the entries( I heard),so does the same logic applies for the ztable too?
    3.What are the ways to find how a ztable is getting populated?
    K.Kiran.

    Hi Man,
    Poppulating Entries for RG1 Related tables is bit tricky. It gets poppulated when u run tcode J2I5. For this SAP is having many considerations like updating RG1BAL Table and other related tables.
    Hope this answers your query. for RG1 and CIN you can contact me on email or mobile given in my profile.
    Regards,
    Darshan
    <i><b>**Reward Points to helpful answers; it motivates us to answer more</b></i>

  • RG1 Report printing.

    Hi All,
    We r not getting proper RG1 report print on A4 size with all records
    and format. Quantity are not coming on print view through J2iln
    transaction.
    Yusuf

    Hi
    Can you see the quantity on the print preview screen?
    If yes then that report is not meant for A4 size.
    If no then you will have to check with your ABAPer as to why the quantity is not seen.
    Regards
    Sandy

  • RG1 Report Tables

    Hi,
    Can any one please provide the list tables/views which used RG1 Report.Kindly let me know.

    RG-1 register, i.e. daily stock account of excisable goods.
    We have seeded report oracle EBS ,but unable find the table/views of reports.kindly let me know the solution.

  • Rebate reporting requirement

    Hi Gurus,
    We have report requirement related to rebate, where in we need to show the follwing field in the output.
    Rebate No:
    Total Accruals posted:
    Accruals reversed:
    Credit note amount.
    Can any one throw some light in which table and field the values are stored.
    Regards,
    Anand

    Hi,
    Please find the relevant tables
    T6B1 Rebate : Rebate Agreement Types
    T6B2 Rebate : Group of permitted Condition Types/Tables
    T6B2F Rebate : Permitted Condition Types/Tables per Group
    Regards
    Ram Pedarla

  • Project System Restructuring -- Reporting Requirement

    Hi All,
    Due to Restructuring in our client.Our Project System is adopting the following method and asking for BI input on this please let me know if anyone has come across this situation.
    Projects are going to move from one Company Code to another Company Code. So they are closing the existing projects in Old Comp. Code and new projects are being created in New Comp. Code . In doing so they are closing the Old Projects(say  P1 u2013 total budget 100) consumed 60 and then new project they will create with remaining balance 40. (say P2). Also
    Reporting Requirement :
    Then when they run the report for the New Project P2 then it should bring the information of P1 also.
    Please let me if it is  possible to achieve this.
    Regards,
    Mayank

    interesting, load previous data in a cube completely for all the previous years and have the new data load in another cube and create a multiprovider to join them. and in your selection for wbs use both data selection...thats all i can think of on top of my head..

  • OBIEE Reporting Requirement

    OBIEE Reporting Requirement
    I have the following OBIEE reporting requirement that I am needing assistance with:
    I have to produce a report from the following table.
    CUSTOMER_ID|     EARNINGS |     CATEGORY
    A1234     |     1000     |     A
    A1234     |     2000     |     B
    B1234     |     1000     |     C
    C1234     |     0     |     D
    D1234     |     2500     |     E
    E1234     |     0     |     F
    Report Layout:
    Category     | Category A | Other Category | Category A & Other Category |
    Earned     |     100 |     120     | 100 |
    Unearned     |     150 |     150     | 200 |
    So the report above basically displays a count of the customers who have earnings or no earnings in the 2 categories which are "Category A" and "Other Category." Other Category is everything else grouped together except Category A i.e. (B, C, D, E, F). The 3rd column is counting customers who are in both column 1 and 2. I have modeled the repository for the 1st 2 columns but am stuck with how to come up with the 3rd column. Repository has been set up as follows:
    Fact: Distinct Count of CUSTOMER_ID
    Dimension:
    CASE WHEN Category = A THEN Category A
    ELSE WHEN Category <> A THEN Other Category END
    In Answers I have 2 calculated columns:
    FILTER(Customer Count) USING Earnings > 0 (Earned)
    FILTER(Customer Count) USING Earnings <= 0 (Uneared)
    How can I solution this to get the 3rd column of Category A & Other Category? Thanks in advance.

    Yes that is correct. Below is the expected output I am trying to get to.
         | Category A | Other Category | Category A & Other Category |
    Earned       | 100         | 120                 | 100                                    |
    Unearned   | 150           | 150                 | 200                                    |

Maybe you are looking for

  • Strange SQL statement in my PL/SQL session

    Hi all, i found a very strange SQL statement in my session. SELECT 1 FROM SYS.streams$_prepare_ddl p WHERE ( (p.global_flag = 1 AND :1 IS NULL) OR (p.global_flag = 0 AND p.usrid = :2) AND ROWNUM = 1; This statement is waiting latch wait event but con

  • Trying to use a query as the p_value in a SELECT_LIST_FROM_QUERY default

    Hi, I have a SELECT_LIST_FROM_QUERY and the select for the LIST shows the list as ought to. The select for the p_value does not set the default to the value I want. If I hardcode to 132, as the query should retrieve, it sets the default as should. I

  • 11gRel2 DBCA - using compatible parameter 10.2.0.3.0 results in ORA-00201

    Hi guys, Following is the scenario: 1. Oracle DB Binaries: 11.2.0.2.2 2. Using dbca to create General Purpose Database and then modify initialization parameter "COMPATIBLE from 11.2.0.0.0 to 10.2.0.3.0" in the "All Initialization Parameters" window.

  • N95 - Won't Recognise Incoming Calls

    Just got the N95 so this might be finger problems or I might have missed a setting somewhere .... When I get an incoming call it doesn't seem to tie it up with existing contacts. It simply shows the incoming number rather than contact name. When I tr

  • Calling ECC Program from BW by passing values

    Hi, We have a requirement where we need to call ECC Program through BW Process Chain and whenever we execute Program the Date Parameter Value should always be current date. Please let me know how we can achieve this? Regards Sushma