Contract Analysis Report - Help needed pls.
Hi Gurus,
I have below requirement.
To analyze the contracts created in purchasing(in SAP). The report shall help to analyse the Contracts that are due to expire in next 12 months.
Now I need a suitable datasource and business content ods/cube.
Required characters are: Contract no, Vendor, Purchasing group, created on,start date,end date etc.
Report to run for contract end date between today's date and next year. For ex if user is running report on 05-oct-2007, the report should display all the contracts having end date between 05-oct-2007 and 04-oct-2008.
Please help me.
Thanks,
Sasi
Hi
Take the <b>VBRK-KNUMV field and pass it to KONV-KNUMV</b> table field along with all the Condition types (KSCHL) fields to get the amounts (KBETR and KWERT) fields
Regards
Anji
Similar Messages
-
SAP PS Module Report, Help needed for the Right Logic.
Hi,
I have to develop a PS module Report . This spec of this report is when you enter , project # , month , date , proj type it should display all the projects and only the billing levels with different fiels like ITD cost, ITD sales, ytd cost, sales, awards etc etc.
Right now Iam getting the O/P : in the following manner, There are many fields I am just showing the desired ones which have to be changed.
Proj, Title, award, ITDsales, ITD cost , ytd sales, ytd costs,
14148, New prj 123 -- --- -
14148-B01, bill1 -
234 -
456 -
14148-B02, bill2 -
789 -
123 -
14148.001 wbs1 -
123 -
456
14148.001 wbs2 -
567 -
890
But for me the desired output must be only for project and the billing levels. It shouldnt be for WBS elements xxxx.001 and xxxx.002.
Desired output:
Proj, Title, award, ITDsales, ITD cost , ytd sales, ytd costs,
14148, New prj 123 -- 690 -
1346
14148-B01, bill1 -
234 -
456 -
14148-B02, bill2 -
789 -
123 -
The ITD costs and YTD costs must be added 123 + 567 = 690 and
456+890 = 1346.
And these values must come on the project level.
P.S: I can restrict the values for wbs elements , means I can filter them at PRPS table by giving prps-stufe LE 2. Then I wont get the wbs level, But I want the values of these to be added up and then show it on the project level.
Please go through this code and let me know where exactly I need to put the right logic to work in the desired manner.
Thanks in advance
Dan
Code Below************************
[code]TABLES: PROJ, "Project Definition
PRPS, "WBS Elements
prhi,
CEPC, " Profit Center w/ Group Head info
BPGE, "Plans (12, 13, etc.)
COSP, "Primary Cost Element (Bill Sales, DPC)
COSS, "Secondary Cost Element (Shrd Sls,Sal,etc)
COSB, "Results Analysis Cost Elements (Unbil Sls)
COOI, "Commitments management: Line items
JEST, "Project Status
TCJ04, "Person Responsible for Project
zpclasses, "Project classes.
New Added
CRCO, " Assignment of Work Center to Cost Center
CRHD. " Work Center Header
Record Layout of extracted data
TYPES: BEGIN OF EXDEF, "Data definition of extract data
X_BU(2) TYPE C, "Business Unit
X_CNTR(10) TYPE C, " Profit Center
X_PROJ(24) TYPE C, "Project def (Prj)
X_CREP(30) TYPE C, "Contract Rep.
X_BDREP(25) TYPE C, "BD Rep. name
X_GRPH(15) TYPE C, "Tech Rep employee name
X_ACTREP(15) TYPE C, "Acct Rep employee name
X_PMGR(15) TYPE C, "PM employee name
X_TTLE(35) TYPE C, "Title
X_CLNT(20) TYPE C, "Client
X_POCN(20) TYPE C, "Prime Contract Number
X_TYPE(13) TYPE C, "Order Type Sarnoff
X_OPEN(10) TYPE C, "Open Date
X_CLOSE(10) TYPE C, "Close Date
X_CGT(4) TYPE C, "CO, GV, TC
X_DISTR(2) TYPE C, "Distribution Channel
X_CONTR(6) TYPE C, "Percentage contribution
X_AWRD(14) TYPE C, "Award (Plan 11)
X_P12R(14) TYPE C, "Auth Revenue (Plan 12 @ Rev)
X_P12C(14) TYPE C, "Auth Cost (Plan 12 @ Cost)
X_P13R(14) TYPE C, "Auth Revenue (Plan 13 @ Rev)
X_P13C(14) TYPE C, "Auth Cost (Plan 13 @ Cost)
X_ITDS(14) TYPE C, "ITD Sales
X_ITDC(14) TYPE C, "ITD Costs
X_YTDS(14) TYPE C, "YTD Sales
X_YTDC(14) TYPE C, "YTD Costs
X_MTHS(14) TYPE C, "Current Month Sales
X_MTHC(14) TYPE C, "Current Month Costs
X_ITDB(14) TYPE C, "ITD Billed Sales
X_YTDB(14) TYPE C, "YTD Billed Sales
X_MTHB(14) TYPE C, "Current Month Billed Sales
X_COMM(14) TYPE C, "Commitments
X_STAT(6) TYPE C, "Active or Inactive (REL, TECO, or CLSD)
X_ZPROJCLASS(12),
X_MTHIC(14) TYPE C, "Current Month Incremental Costs
X_YTDIC(14) TYPE C, "YTD Incremental Costs
X_ITDIC(14) TYPE C, "ITD Incremental Costs
X_ZSCURVE(10) TYPE C, "S-CURVE Status
New Added
X_CM_COST(20) TYPE C,
X_AM_COST(20) TYPE C,
X_TL_COST(20) TYPE C,
X_KP_COST(20) TYPE C,
X_PM_COST(20) TYPE C,
END OF EXDEF.
Data declarations
FIELD-SYMBOLS <MNT> .
DATA: ETAB TYPE EXDEF OCCURS 100 WITH HEADER LINE.
DATA: X1_PM_COST(20) TYPE C,
X1_TL_COST(20) TYPE C,
X1_AM_COST(20) TYPE C,
X1_CM_COST(20) TYPE C,
X1_KP_COST(20) TYPE C.
DATA: KOKRS_FIXED LIKE PROJ-VKOKR VALUE 'DSRC', "Controlling Area
TOTAL_AWARD LIKE BPGE-WTGES,
TOTAL_AUTHR12 LIKE BPGE-WTGES,
TOTAL_AUTHC12 LIKE BPGE-WTGES,
TOTAL_AUTHR13 LIKE BPGE-WTGES,
TOTAL_AUTHC13 LIKE BPGE-WTGES,
TOTAL_ITDSALES LIKE BPGE-WTGES,
TOTAL_ITDCOSTS LIKE BPGE-WTGES,
TOTAL_ITDICOSTS LIKE BPGE-WTGES,
TOTAL_YTDSALES LIKE BPGE-WTGES,
TOTAL_YTDCOSTS LIKE BPGE-WTGES,
TOTAL_YTDICOSTS LIKE BPGE-WTGES,
TOTAL_MTHSALES LIKE BPGE-WTGES,
TOTAL_MTHCOSTS LIKE BPGE-WTGES,
TOTAL_MTHICOSTS LIKE BPGE-WTGES,
TOTAL_ITDBILLED LIKE BPGE-WTGES,
TOTAL_YTDBILLED LIKE BPGE-WTGES,
TOTAL_MTHBILLED LIKE BPGE-WTGES,
TOTAL_COMMITMENT LIKE COOI-WTGBTR,
HOLD_PRART LIKE PRPS-PRART,
COUNT_PROJECTS TYPE I,
MNT_INDX(20) TYPE C,
HLD_INDX(3) TYPE N,
YYYY_MM(10) TYPE C,
TEMP-DATE(8) TYPE C.
Selection Screen
SELECTION-SCREEN SKIP 3.
SELECTION-SCREEN BEGIN OF BLOCK XEXTRPM WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN SKIP 2.
PARAMETERS MONTH(2) TYPE N OBLIGATORY.
PARAMETERS YEAR(4) TYPE N OBLIGATORY.
SELECT-OPTIONS: EXTRPRJ FOR PROJ-PSPID. " Range of Projects
SELECT-OPTIONS: EXTRTYP FOR PRPS-PRART. "Project Types (CO,GV,etc.*)
SELECT-OPTIONS: EXTRPCTR FOR PROJ-PRCTR. " Range of Profit centers
SELECTION-SCREEN SKIP 2.
PARAMETERS: OPT1 RADIOBUTTON GROUP OPTN,
OPT2 RADIOBUTTON GROUP OPTN DEFAULT 'X'.
select-options : s_pc for proj-zprojclass. "project class
SELECTION-SCREEN END OF BLOCK XEXTRPM.
Select Tables
START-OF-SELECTION.
write: / 'Sales data (Unshared) extracted on: ', sy-datum.
uline.
CLEAR: COUNT_PROJECTS,
TOTAL_AWARD,
TOTAL_AUTHR12,
TOTAL_AUTHC12,
TOTAL_AUTHR13,
TOTAL_AUTHC13,
TOTAL_ITDSALES,
TOTAL_ITDCOSTS,
TOTAL_YTDSALES,
TOTAL_YTDCOSTS,
TOTAL_MTHSALES,
TOTAL_MTHCOSTS,
TOTAL_ITDBILLED,
TOTAL_YTDBILLED,
TOTAL_MTHBILLED,
TOTAL_COMMITMENT,
ETAB.
PROJ Table Project Definition
SELECT * FROM PROJ "Project Definition
WHERE PSPID IN EXTRPRJ AND " Range of Project Numbers
PRCTR IN EXTRPCTR and " Range of Profit center
zprojclass in s_pc. "project class
SELECT * FROM PRPS WHERE "WBS Elements
PRART IN EXTRTYP " Range of Proj.Types (CO,GV,TC..
and PSPHI = PROJ-PSPNR.
HOLD_PRART = ' '. "clears project type
CLEAR ETAB.
ETAB-X_PROJ = PRPS-POSID.
ETAB-X_BU = PRPS-PRCTR(2). "Business Unit
ETAB-X_PMGR = PROJ-VERNA. "Project Manager
IF PRPS-PRCTR(2) = '01'.
ETAB-X_CNTR = PRPS-PRCTR. " Profit Center
CONCATENATE SPACE PRPS-PRCTR INTO ETAB-X_CNTR SEPARATED BY SPACE.
ELSE.
ETAB-X_CNTR = PRPS-PRCTR. " Profit Center
ENDIF.
ETAB-X_TTLE = PRPS-POST1. "Title
CLEAR TEMP-DATE.
TEMP-DATE = PROJ-PLFAZ. "Project planned start date
CONCATENATE TEMP-DATE4(2) '/' TEMP-DATE6(2) '/'
TEMP-DATE+0(4) INTO ETAB-X_OPEN.
TEMP-DATE = PROJ-PLSEZ. "Project planned finish date
CONCATENATE TEMP-DATE4(2) '/' TEMP-DATE6(2) '/'
TEMP-DATE+0(4) INTO ETAB-X_CLOSE.
Tech Lead
will comment below
SELECT SINGLE VERNA FROM TCJ04 "Tech Lead name from TCJ04
INTO (ETAB-X_GRPH) WHERE VERNR = PROJ-ZGRPHD.
End Of Tech Lead
Account Manager
SELECT SINGLE VERNA FROM TCJ04 "Acct Manager from TCJ04
INTO (ETAB-X_BDREP) WHERE VERNR = PROJ-ZBUSDEV.
******End Of Account Manager
Key Personnel
SELECT SINGLE VERNA FROM TCJ04 "Account Rep name from TCJ04
INTO (ETAB-X_ACTREP) WHERE VERNR = PROJ-ZRESPDIR.
********End of Key Personnel
**Contract Manager
SELECT SINGLE VERNA FROM TCJ04 "Contract Rep name from TCJ04
INTO (ETAB-X_CREP) WHERE VERNR = PROJ-ZCNTREP.
End of Contract Manager
PRPS Table WBS's attached to the Project
SELECT * FROM PRPS WHERE "WBS Elements
PRART IN EXTRTYP "Range of Proj.Types (CO,GV,TC..
AND PSPHI = PROJ-PSPNR.
order by posid stufe. "Sort by WBS & Level (needed?)
get info from level 1 of the WBS
IF PRPS-STUFE EQ 1. "top-level WBS element
HOLD_PRART = PRPS-PRART. "save project type for later
ETAB-X_STAT = '????'. "set ? as the default status
get Status for level 1
SELECT * FROM JEST "use JEST to determine Status
WHERE OBJNR = PRPS-OBJNR
AND INACT EQ SPACE. "space denotes an active status
CASE JEST-STAT. "find the system status (Ixxx)
WHEN 'I0001'.
ETAB-X_STAT = 'CRTD'. "Created
WHEN 'I0002'.
ETAB-X_STAT = 'REL'. "Released
WHEN 'I0045'.
ETAB-X_STAT = 'TECO'. "Technically Complete
WHEN 'I0046'.
ETAB-X_STAT = 'CLSD'. "Closed
ENDCASE.
ENDSELECT.
Select only active projects (ie; those not with TECO or CLSD)
IF OPT2 EQ 'X'
AND ( ETAB-X_STAT EQ 'TECO'
OR ETAB-X_STAT EQ 'CLSD' ).
EXIT.
ENDIF.
*comment Contract Rep and Proj man because we get them from PROJ now
etab-x_crep = prps-zzcont. "Contract Rep.
etab-x_pmgr = prps-verna. "Program Manager Name
ETAB-X_CLNT = PRPS-ZZMANDT. "Client Name
ETAB-X_CGT = PRPS-PRART. "CO, GV, TC, etc
ETAB-X_DISTR = PRPS-ZZVTWEG. "Distrib Channel (ie; GP, etc.)
ETAB-X_CONTR = PRPS-USR04. "Contribution %
ETAB-X_POCN = PRPS-ZZPOCN. "Contract Number
ETAB-X_TYPE = PRPS-ZZORDT. "Order Type Sarnoff
Award and Authorization (Revenue & Cost)
SELECT * FROM BPGE
WHERE OBJNR = PRPS-OBJNR
AND LEDNR = '0001' "Budget / Planning Ledger
AND TRGKZ = 'N' "Object indicator
AND WRTTP = '01' "Value Type
AND ( VERSN = '011' "011 = Award
OR VERSN = '012' "012 = Billing Authorization
OR VERSN = '013' ). "013 = RA Authorization
"010 = Funding Authorization
Award Plan 11
IF BPGE-VERSN = '011'. "Plan 11 = Award
CASE BPGE-VORGA.
WHEN 'KSTP'. "KSTP = Cost level
ETAB-X_AWRD = ETAB-X_AWRD + BPGE-WTGES.
ENDCASE.
ENDIF.
IF prps-stufe eq '2'.
Authorization (Revenue & Cost plan 12) Plan 12
IF BPGE-VERSN = '012'. "Plan 12 = RA Authorization
CASE BPGE-VORGA.
WHEN 'KSTR'. "KSTR = Revenue level
ETAB-X_P12R = ETAB-X_P12R - BPGE-WTGES.
WHEN 'KSTP'. "KSTP = Cost level
ETAB-X_P12C = ETAB-X_P12C + BPGE-WTGES.
ENDCASE.
ENDIF.
Authorization (Revenue & Cost plan 13) Plan 13
IF BPGE-VERSN = '013'. "Plan 13 = RA Authorization
CASE BPGE-VORGA.
WHEN 'KSTR'. "KSTR = Revenue level
ETAB-X_P13R = ETAB-X_P13R - BPGE-WTGES.
WHEN 'KSTP'. "KSTP = Cost level
ETAB-X_P13C = ETAB-X_P13C + BPGE-WTGES.
ENDCASE.
ENDIF.
endif.
ENDSELECT. "BPGE
ENDIF. "end of if prps-stufe eq 1. top-level WBS element
COSP Table (External Postings) Awards
COSP Table (External Postings) Billed Sales
COSP Table (External Postings) DPC's & Legacy Load
SELECT * FROM COSP
WHERE OBJNR = PRPS-OBJNR AND
GJAHR LE YEAR
AND (
( kstar = '0000400999' and "old CE for Award $
( KSTAR BETWEEN '0000400990' AND '0000400999' AND
VERSN = '011' AND "11 = Award
WRTTP = '01' ) "01 = Planned
OR ( ( KSTAR BETWEEN '0000400001' AND '0000400989' OR
KSTAR BETWEEN '0000999001' AND '0000999003' ) AND
WRTTP = '04' ) "04 = Actuals
OR ( ( KSTAR BETWEEN '0000998001' AND '0000998010' OR
KSTAR BETWEEN '0000600001' AND '0000601999' ) AND
WRTTP = '04' ) "04 = Actuals
*------- Awards
if cosp-kstar = '0000400999' and "old 400999 = Awards
IF COSP-KSTAR BETWEEN '0000400990' AND '0000400999' AND
COSP-VERSN = '011' AND "11 = Award
COSP-WRTTP = '01'. "01 = Planned
IF YEAR = COSP-GJAHR.
DO.
IF SY-INDEX LE MONTH.
MOVE SY-INDEX TO HLD_INDX.
MNT_INDX = 'COSP-WKGXXX'.
REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
ASSIGN (MNT_INDX) TO <MNT>.
ETAB-X_AWRD = ETAB-X_AWRD + <MNT>.
ELSE.
EXIT.
ENDIF.
ENDDO.
ELSEIF YEAR > COSP-GJAHR.
ETAB-X_AWRD = ETAB-X_AWRD +
COSP-WKG001 + COSP-WKG002 +
COSP-WKG003 + COSP-WKG004 +
COSP-WKG005 + COSP-WKG006 +
COSP-WKG007 + COSP-WKG008 +
COSP-WKG009 + COSP-WKG010 +
COSP-WKG011 + COSP-WKG012 +
COSP-WKG013 + COSP-WKG014 +
COSP-WKG015 + COSP-WKG016.
ELSE.
EXIT.
ENDIF.
ENDIF.
*------- Billed Sales
IF ( COSP-KSTAR BETWEEN '0000400001' AND '0000400989' OR
COSP-KSTAR BETWEEN '0000999001' AND '0000999003' ) AND
COSP-WRTTP = '04'.
"0000999001 = ITD Sales
"0000999003 = ITD Billed Revenue
IF YEAR = COSP-GJAHR.
DO.
IF SY-INDEX LE MONTH.
MOVE SY-INDEX TO HLD_INDX.
MNT_INDX = 'COSP-WKGXXX'.
REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
ASSIGN (MNT_INDX) TO <MNT>.
ETAB-X_ITDB = ETAB-X_ITDB - <MNT>.
ETAB-X_YTDB = ETAB-X_YTDB - <MNT>.
IF SY-INDEX = MONTH.
ETAB-X_MTHB = ETAB-X_MTHB - <MNT>.
ENDIF.
ELSE.
EXIT.
ENDIF.
ENDDO.
ELSEIF YEAR > COSP-GJAHR.
ETAB-X_ITDB = ETAB-X_ITDB -
COSP-WKG001 - COSP-WKG002 -
COSP-WKG003 - COSP-WKG004 -
COSP-WKG005 - COSP-WKG006 -
COSP-WKG007 - COSP-WKG008 -
COSP-WKG009 - COSP-WKG010 -
COSP-WKG011 - COSP-WKG012 -
COSP-WKG013 - COSP-WKG014 -
COSP-WKG015 - COSP-WKG016.
ELSE.
EXIT.
ENDIF.
ENDIF.
*------- DPC's & Legacy Load
IF ( COSP-KSTAR BETWEEN '0000998001' AND '0000998010' OR
COSP-KSTAR BETWEEN '0000600001' AND '0000601999' ) AND
COSP-WRTTP = '04'.
IF YEAR = COSP-GJAHR.
DO.
IF SY-INDEX LE MONTH.
MOVE SY-INDEX TO HLD_INDX.
MNT_INDX = 'COSP-WKGXXX'.
REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
ASSIGN (MNT_INDX) TO <MNT>.
ETAB-X_ITDC = ETAB-X_ITDC + <MNT>.
ETAB-X_YTDC = ETAB-X_YTDC + <MNT>.
IF SY-INDEX = MONTH.
ETAB-X_MTHC = ETAB-X_MTHC + <MNT>.
ENDIF.
ELSE.
EXIT.
ENDIF.
ENDDO.
ELSEIF YEAR > COSP-GJAHR.
ETAB-X_ITDC = ETAB-X_ITDC +
COSP-WKG001 + COSP-WKG002 +
COSP-WKG003 + COSP-WKG004 +
COSP-WKG005 + COSP-WKG006 +
COSP-WKG007 + COSP-WKG008 +
COSP-WKG009 + COSP-WKG010 +
COSP-WKG011 + COSP-WKG012 +
COSP-WKG013 + COSP-WKG014 +
COSP-WKG015 + COSP-WKG016.
ELSE.
EXIT.
ENDIF.
ENDIF.
ENDSELECT.
COOI Table (Commitments) commitments for the WBS elements
SELECT * FROM COOI
WHERE OBJNR = PRPS-OBJNR.
ETAB-X_COMM = ETAB-X_COMM + COOI-WTGBTR.
ENDSELECT.
COSS Table (External Postings) G&A on Commitments
COSS Table (External Postings) Shared Billed Sales
COSS Table (External Postings) Shared DPC's
COSS Table (External Postings) Salary,ESE,OH, & G&A
SELECT * FROM COSS
WHERE
( OBJNR = PRPS-OBJNR AND
WRTTP = '22' ) "G&A on Commitments
OR
( OBJNR = PRPS-OBJNR AND
GJAHR LE YEAR AND
WRTTP = '04' AND "04 = Actuals
( "Shared Billed Sales
( KSTAR BETWEEN '0000400001' AND '0000400989' OR
KSTAR BETWEEN '0000999001' AND '0000999003' )
OR "Shared DPC's
( KSTAR BETWEEN '0000600001' AND '0000601999' )
OR "Salary,ESE,OH, & G&A
( ( KSTAR BETWEEN '0000001000' AND '0000001999' OR
KSTAR BETWEEN '0000002100' AND '0000002199' OR
KSTAR BETWEEN '0000002500' AND '0000002599' OR
KSTAR BETWEEN '0000002800' AND '0000002899' ) )
and parob not like 'PR%' ) "commented out on 4/19/2000
*------- G&A on Commitments (NOTE: data is always as of the RUN date)
IF COSS-WRTTP = '22'.
ETAB-X_COMM = ETAB-X_COMM +
COSS-WKG001 + COSS-WKG002 +
COSS-WKG003 + COSS-WKG004 +
COSS-WKG005 + COSS-WKG006 +
COSS-WKG007 + COSS-WKG008 +
COSS-WKG009 + COSS-WKG010 +
COSS-WKG011 + COSS-WKG012 +
COSS-WKG013 + COSS-WKG014 +
COSS-WKG015 + COSS-WKG016.
ENDIF.
*------- Shared Billed Sales
IF ( COSS-KSTAR BETWEEN '0000400001' AND '0000400989' OR
COSS-KSTAR BETWEEN '0000999001' AND '0000999003' ) AND
COSS-WRTTP = '04'.
IF YEAR = COSS-GJAHR.
DO.
IF SY-INDEX LE MONTH.
MOVE SY-INDEX TO HLD_INDX.
MNT_INDX = 'COSS-WKGXXX'.
REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
ASSIGN (MNT_INDX) TO <MNT>.
ETAB-X_ITDB = ETAB-X_ITDB - <MNT>.
ETAB-X_YTDB = ETAB-X_YTDB - <MNT>.
IF SY-INDEX = MONTH.
ETAB-X_MTHB = ETAB-X_MTHB - <MNT>.
ENDIF.
ELSE.
EXIT.
ENDIF.
ENDDO.
ELSEIF YEAR > COSS-GJAHR.
ETAB-X_ITDB = ETAB-X_ITDB -
COSS-WKG001 - COSS-WKG002 -
COSS-WKG003 - COSS-WKG004 -
COSS-WKG005 - COSS-WKG006 -
COSS-WKG007 - COSS-WKG008 -
COSS-WKG009 - COSS-WKG010 -
COSS-WKG011 - COSS-WKG012 -
COSS-WKG013 - COSS-WKG014 -
COSS-WKG015 - COSS-WKG016.
ELSE.
EXIT.
ENDIF.
ENDIF.
*------- Shared DPC's
IF COSS-KSTAR BETWEEN '0000600001' AND '0000601999' AND
COSS-WRTTP = '04'.
IF YEAR = COSS-GJAHR.
DO.
IF SY-INDEX LE MONTH.
MOVE SY-INDEX TO HLD_INDX.
MNT_INDX = 'COSS-WKGXXX'.
REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
ASSIGN (MNT_INDX) TO <MNT>.
ETAB-X_ITDC = ETAB-X_ITDC + <MNT>.
ETAB-X_YTDC = ETAB-X_YTDC + <MNT>.
IF SY-INDEX = MONTH.
ETAB-X_MTHC = ETAB-X_MTHC + <MNT>.
ENDIF.
ELSE.
EXIT.
ENDIF.
ENDDO.
ELSEIF YEAR > COSS-GJAHR.
ETAB-X_ITDC = ETAB-X_ITDC +
COSS-WKG001 + COSS-WKG002 +
COSS-WKG003 + COSS-WKG004 +
COSS-WKG005 + COSS-WKG006 +
COSS-WKG007 + COSS-WKG008 +
COSS-WKG009 + COSS-WKG010 +
COSS-WKG011 + COSS-WKG012 +
COSS-WKG013 + COSS-WKG014 +
COSS-WKG015 + COSS-WKG016.
ELSE.
EXIT.
ENDIF.
ENDIF.
*------- Salary,ESE,OH,& G&A
IF ( COSS-KSTAR BETWEEN '0000001000' AND '0000001999' OR
COSS-KSTAR BETWEEN '0000002100' AND '0000002199' OR
COSS-KSTAR BETWEEN '0000002500' AND '0000002599' OR
COSS-KSTAR BETWEEN '0000002800' AND '0000002899' ) AND
COSS-WRTTP = '04'.
IF YEAR = COSS-GJAHR.
DO.
IF SY-INDEX LE MONTH.
MOVE SY-INDEX TO HLD_INDX.
MNT_INDX = 'COSS-WKGXXX'.
REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
ASSIGN (MNT_INDX) TO <MNT>.
ETAB-X_ITDC = ETAB-X_ITDC + <MNT>.
ETAB-X_YTDC = ETAB-X_YTDC + <MNT>.
IF SY-INDEX = MONTH.
ETAB-X_MTHC = ETAB-X_MTHC + <MNT>.
ENDIF.
ELSE.
EXIT.
ENDIF.
ENDDO.
ELSEIF YEAR > COSS-GJAHR.
ETAB-X_ITDC = ETAB-X_ITDC +
COSS-WKG001 + COSS-WKG002 +
COSS-WKG003 + COSS-WKG004 +
COSS-WKG005 + COSS-WKG006 +
COSS-WKG007 + COSS-WKG008 +
COSS-WKG009 + COSS-WKG010 +
COSS-WKG011 + COSS-WKG012 +
COSS-WKG013 + COSS-WKG014 +
COSS-WKG015 + COSS-WKG016.
ELSE.
EXIT.
ENDIF.
ENDIF.
ENDSELECT.
COSB Table (Results from running RA) Unbilled Sales
SELECT * FROM COSB
WHERE OBJNR = PRPS-OBJNR
AND KSTAR BETWEEN '0000003004' AND '0000003005'
"0000003004 = Unbilled Revenue
"0000003005 = Unearned Revenue
AND GJAHR LE YEAR
AND WRTTP = '32'. "32 = Results Analysis
IF YEAR = COSB-GJAHR.
DO.
IF SY-INDEX LE MONTH.
MOVE SY-INDEX TO HLD_INDX.
MNT_INDX = 'COSB-WKGXXX'.
REPLACE 'XXX' WITH HLD_INDX INTO MNT_INDX.
ASSIGN (MNT_INDX) TO <MNT>.
ETAB-X_ITDS = ETAB-X_ITDS - <MNT>.
ETAB-X_YTDS = ETAB-X_YTDS - <MNT>.
IF SY-INDEX = MONTH.
ETAB-X_MTHS = ETAB-X_MTHS - <MNT>.
ENDIF.
ELSE.
EXIT.
ENDIF.
ENDDO.
ELSEIF YEAR > COSB-GJAHR.
ETAB-X_ITDS = ETAB-X_ITDS -
COSB-WKG001 - COSB-WKG002 -
COSB-WKG003 - COSB-WKG004 -
COSB-WKG005 - COSB-WKG006 -
COSB-WKG007 - COSB-WKG008 -
COSB-WKG009 - COSB-WKG010 -
COSB-WKG011 - COSB-WKG012 -
COSB-WKG013 - COSB-WKG014 -
COSB-WKG015 - COSB-WKG016.
ELSE.
EXIT.
ENDIF.
ENDSELECT.
ENDSELECT. "End of WBS records (from PRPS) for project
Get Total Sales by adding Billed Sales to Unbilled Sales.
ETAB-X_ITDS = ETAB-X_ITDS + ETAB-X_ITDB.
ETAB-X_YTDS = ETAB-X_YTDS + ETAB-X_YTDB.
ETAB-X_MTHS = ETAB-X_MTHS + ETAB-X_MTHB.
IF HOLD_PRART IN EXTRTYP. "Matches the user requested project type
IF OPT1 EQ 'X' OR "All projects
( OPT2 EQ 'X' AND "Only active projects
ETAB-X_STAT NE 'TECO' AND
ETAB-X_STAT NE 'CLSD' ).
TOTAL_AWARD = TOTAL_AWARD + ETAB-X_AWRD.
TOTAL_AUTHR12 = TOTAL_AUTHR12 + ETAB-X_P12R .
TOTAL_AUTHC12 = TOTAL_AUTHC12 + ETAB-X_P12C.
TOTAL_AUTHR13 = TOTAL_AUTHR13 + ETAB-X_P13R.
TOTAL_AUTHC13 = TOTAL_AUTHC13 + ETAB-X_P13C.
TOTAL_ITDSALES = TOTAL_ITDSALES + ETAB-X_ITDS.
TOTAL_ITDCOSTS = TOTAL_ITDCOSTS + ETAB-X_ITDC.
TOTAL_YTDSALES = TOTAL_YTDSALES + ETAB-X_YTDS.
TOTAL_YTDCOSTS = TOTAL_YTDCOSTS + ETAB-X_YTDC.
TOTAL_MTHSALES = TOTAL_MTHSALES + ETAB-X_MTHS.
TOTAL_MTHCOSTS = TOTAL_MTHCOSTS + ETAB-X_MTHC.
TOTAL_ITDBILLED = TOTAL_ITDBILLED + ETAB-X_ITDB.
TOTAL_YTDBILLED = TOTAL_YTDBILLED + ETAB-X_YTDB.
TOTAL_MTHBILLED = TOTAL_MTHBILLED + ETAB-X_MTHB.
TOTAL_COMMITMENT = TOTAL_COMMITMENT + ETAB-X_COMM.
PERFORM SHIFT_SIGN.
APPEND ETAB. "Write data to internal table
CLEAR ETAB.
COUNT_PROJECTS = COUNT_PROJECTS + 1. "Count # of Projects
ENDIF.
ENDIF.
ENDSELECT.
ENDSELECT. "End of Projects from PROJ table
PERFORM GRAND_TOTALS.
SORT ETAB BY X_BU X_PROJ.
ETAB-X_BU = 'BU'.
ETAB-X_CNTR = 'PrftCntr'.
ETAB-X_PROJ = 'Proj'.
ETAB-X_CREP = 'Contract Mgr'.
ETAB-X_BDREP = 'Account Mgr'.
ETAB-X_GRPH = 'Technical Lead'.
ETAB-X_ACTREP = 'Key Person1'.
ETAB-X_PMGR = 'Program Mgr'.
ETAB-X_TTLE = 'Title'.
ETAB-X_CLNT = 'Client'.
ETAB-X_POCN = 'Contract #'.
ETAB-X_TYPE = 'Type'.
ETAB-X_OPEN = 'Open'.
ETAB-X_CLOSE = 'Close'.
ETAB-X_CGT = 'CGT'.
ETAB-X_DISTR = 'DC'.
ETAB-X_CONTR = 'Contr%'.
ETAB-X_AWRD = 'Award'.
ETAB-X_P12R = 'Auth12 Sales'.
ETAB-X_P12C = 'Auth12 Cost'.
ETAB-X_P13R = 'Auth13 Sales'.
ETAB-X_P13C = 'Auth13 Cost'.
ETAB-X_ITDS = 'ITD Sales'.
ETAB-X_ITDC = 'ITD Costs'.
ETAB-X_YTDS = 'YTD Sales'.
ETAB-X_YTDC = 'YTD Costs'.
ETAB-X_MTHS = 'Mth Sales'.
ETAB-X_MTHC = 'Mth Costs'.
ETAB-X_ITDB = 'ITD Billed'.
ETAB-X_YTDB = 'YTD Billed'.
ETAB-X_MTHB = 'Mth Billed'.
ETAB-X_COMM = 'Commitments'.
ETAB-X_STAT = 'Status'.
INSERT ETAB INDEX 1. "Write a report header line to internal table
CLEAR ETAB.
CALL FUNCTION 'Z_RH_START_EXCEL_DATA_OLE'
EXPORTING
data_name = 'C:\WINNT\Profiles\cbraswell\Desktop\TestTemp.xlt'
DATA_NAME = 'ZSales.XLS'
DATA_PATH_FLAG = 'W'
DATA_TYPE = 'DAT'
DATA_BIN_FILE_SIZE = 'ZSales'
CHART_TITLE = 'ZSales'
CHART_TYPE = 2
CATEGORY_TITLE = 'ZSales'
VALUE_TITLE = 'ZSales'
DATA_XTOP_COR = 0
DATA_YTOP_COR = 0
DATA_XBOT_COR = 0
DATA_YBOT_COR = 0
CATEGORY_XTOP_COR = 0
CATEGORY_YTOP_COR = 0
CATEGORY_XBOT_COR = 0
CATEGORY_YBOT_COR = 0
TABLES
DATA_TAB = ETAB
EXCEPTIONS
NO_BATCH = 1
DOWNLOAD_ERROR = 2
INVALID_TYPE = 3
INTERNAL_ERROR = 4
NO_OLE_SUPPORT = 5
OLE_FILE_ERROR = 6
OLE_ERROR = 7
NO_DATA = 8
COORDINATE_ERROR = 9
OTHERS = 10.
Negative # sign in the front of number for downloading to Excel
FORM SHIFT_SIGN.
IF ETAB-X_AWRD CA '-'. SHIFT ETAB-X_AWRD RIGHT CIRCULAR. ENDIF.
IF ETAB-X_P12R CA '-'. SHIFT ETAB-X_P12R RIGHT CIRCULAR. ENDIF.
IF ETAB-X_P12C CA '-'. SHIFT ETAB-X_P12C RIGHT CIRCULAR. ENDIF.
IF ETAB-X_P13R CA '-'. SHIFT ETAB-X_P13R RIGHT CIRCULAR. ENDIF.
IF ETAB-X_P13C CA '-'. SHIFT ETAB-X_P13C RIGHT CIRCULAR. ENDIF.
IF ETAB-X_ITDS CA '-'. SHIFT ETAB-X_ITDS RIGHT CIRCULAR. ENDIF.
IF ETAB-X_ITDIC CA '-'. SHIFT ETAB-X_ITDIC RIGHT CIRCULAR. ENDIF.
IF ETAB-X_ITDC CA '-'. SHIFT ETAB-X_ITDC RIGHT CIRCULAR. ENDIF.
IF ETAB-X_YTDS CA '-'. SHIFT ETAB-X_YTDS RIGHT CIRCULAR. ENDIF.
IF ETAB-X_YTDC CA '-'. SHIFT ETAB-X_YTDC RIGHT CIRCULAR. ENDIF.
IF ETAB-X_YTDIC CA '-'. SHIFT ETAB-X_YTDIC RIGHT CIRCULAR. ENDIF.
IF ETAB-X_MTHS CA '-'. SHIFT ETAB-X_MTHS RIGHT CIRCULAR. ENDIF.
IF ETAB-X_MTHC CA '-'. SHIFT ETAB-X_MTHC RIGHT CIRCULAR. ENDIF.
IF ETAB-X_MTHIC CA '-'. SHIFT ETAB-X_MTHIC RIGHT CIRCULAR. ENDIF.
IF ETAB-X_ITDB CA '-'. SHIFT ETAB-X_ITDB RIGHT CIRCULAR. ENDIF.
IF ETAB-X_YTDB CA '-'. SHIFT ETAB-X_YTDB RIGHT CIRCULAR. ENDIF.
IF ETAB-X_MTHB CA '-'. SHIFT ETAB-X_MTHB RIGHT CIRCULAR. ENDIF.
IF ETAB-X_COMM CA '-'. SHIFT ETAB-X_COMM RIGHT CIRCULAR. ENDIF.
ENDFORM.
FORM GRAND_TOTALS.
SKIP 1. .
WRITE: / '----
WRITE: / 'System ID = ', SY-SYSID,
/ 'Client = ', SY-MANDT,
/ 'User = ', SY-UNAME,
/ 'Date of data extract = ', SY-DATUM ,
/ 'Number of Projects = ', COUNT_PROJECTS,
/ 'total Award (Plan 11) = ', TOTAL_AWARD,
/ 'total Auth SalesHi all,
Iam really waiting for someone to see and get the logic right for this code.Iam completely stuck up. i need ur help
Thanks -
XML Publisher Multi tab Report: Help needed
Hi,
I have a requirement like below--
Need to develop master detail XML Report in R12. O/P will be in excel.
Excel output having two Work sheet.
Some columns data must be non editable in excel output ,whereas some columns will be editable.
User must not be able to add any line manually in the report.
Can anyone pls help me out to find a way to build this?????????
Thanks
TitasHi Titas,
Any luck with this? Were you able to create a multi-tab report using XML Publisher? Any help on this will be greatly appreciated.
Thanks. -
Urgent help needed pls regarding LOGO
hello friends this is sudhakar . i really need help
pls urgent
i wrote scjp 5.0 certification in august and cleared succesfully
i got all certificates but for logo i have to send the mail which cost me around 620/- rupess to them. but,
can u any one tell how can v say to sun pupil tat i got all my cetificaties and i need the logo for my resume
i heard we can do with online in www.sun.com only so can u help me out pls it is urgent.....http://www.sun.com/training/certification/faq/index.html#logos
This part should be relevant to you -
All customers that reside outside US and Canada: Once you have successfully passed one of our Java platform exams, a certification kit will be mailed to you that includes a Sun Logo Agreement. Please sign the agreement and mail it back to the address supplied. Depending from which country you mail the agreement, it may take up to month for you to receive the logo. We are currently working to provide an online logo for our International customers.
This means you send the mail to them or wait for them to go online (which might mean months). -
Purchase order report -help needed.
Hi guys,
Can anyone help me create a report for the purchase orders (similar to ME2N) ,my company needs all the info related to a PO like payment history.we need to pull all <b>closed POs</b> during a certain time period.Is ther a way todo this .
I'd appreciate your help.'
Thanks
Cheris THello,
You will need to run both ME80N and FBL1N. ME80FN can display PO history and from FBL1N you can get payment history.
Hope this helps !
Cheers ! -
Hi All,
I am creating a report which is having 2 sql queries ,1 for the main columns that i need to show and 2 from total sum and count.
Report is something as given below
SET TAB OFF;
set linesize 1500;
set pagesize 50;
SET FEEDBACK OFF;
SET WRAP OFF
COLUMN today NEW_VALUE VAR1 NOPRINT;
TTITLE LEFT 'ABC Inc.' SKIP 1 -
LEFT 'Daily Report' SKIP 1 -
LEFT 'As Of ' VAR1 SKIP 2
BTITLE LEFT SKIP 'Page No : ' FORMAT 9999999999 SQL.PNO SKIP 3;
COL SR_NO HEADING 'Seq' FORMAT 999999;
COL REFNO HEADING 'Ref No' FORMAT A20;
COL ORIG_NAME HEADING ' Branch Name'
FORMAT A50;
SELECT ROWNUM SR_NO,
REF_NO REFNO,
ORIGIN_NAME BRNAME
FROM BANK
WHERE PASS_CD=101
SELECT ' Failure Count : '|| NVL(COUNT(DECODE(CODE,1,CODE,NULL)),0) ||
' Failure Total Amt : '|| NVL(SUM(DECODE(CODE,799,AMT,NULL)),0)
|| CHR(10) ||
' Successful Count : '|| NVL(COUNT(DECODE(CODE,000,CODE,NULL)),0) ||
' Successful Total Amt: '|| NVL(SUM(DECODE(CODE,000,AMT,NULL)),0)
FROM BANK;
CLEAR BREAKS;
CLEAR COLUMN;
TTITLE OFF;
When i am running this second query output is going to secong page and title is repeated again and same as 1rst page is showing page no-1
Kindly help me,i want the output on the same page at bottom.
Thanksi think its only work in ISQL* PLUS enivironment iam
not sure.It does work in SQL*Plus
is that i can use in the package??http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12048.htm -
Error while running disco report (Help needed urgent)
Hello All,
When i am running a disocoverer report i am getting the following error.
ORA-01840 input value not long enough for date format
ORA-02063 preceding line from prod
The data retrieved by the query is incomplete because it was canclled?
Kind Regards,
Kumar.Hi Kumar
It sounds like you could be trying to use the TO_DATE function and are either passing to it a value that is doesn't understand or you have not defined the format mask. Only if the string being converted is already in the database date format you do not need to provide a format mask. In all other cases you do.
For example, if your database format is DD-MON-YYY then this is valid: TO_DATE('01-OCT-2009')
However, if your format is something like 10/01/2009 you will have to tell Discoverer how the date is made up. In this particular case the answer would be: TO_DATE('10/01/99','MM/DD/YY')
You should notice how the format mask is included in single quotes and separated from the date itself by a comma.
Hope this helps
Best wishes
Michael -
Hi All ,
I am bit new to BI Publisher,I have done plenty of Oracle reports 6i and 10g.
Have read the BIPublisher Guide as well,but could not understand a few points.
suppose I want to build a very very simple report like
Sysdate Sysdate Sysdate
16-Oct-08 16-Oct-08 16-Oct-08
step 1) I will write the following query in the Data Model and store/save it.
select sysdate ,sysdate,sysdate from dual.
Step 2) In the layout model I want to use .rtf layout .So in the MS word .rdf document I create /insert
a table with 2 rows and 3 columns,where 1st row will have Sysdate in all 3 columns as header.
Now to fetch date 3times(the data) from the above query,WHAT is going to be my next steps ????
I am not able to understand the link between the layout(.rtf document) and XML document.
Please can someone reply to this question and let me know ?
Regards
SunnyI added a useless parameter just so you could see where parms should go...
Datatemplate:
<dataTemplate name="A_SIMPLE_REPORT">
<properties>
<property name="xml_tag_case" value="upper"/>
</properties>
<parameters>
<parameter name="P_PARM" dataType="character"/>
</parameters>
<dataQuery>
<sqlStatement name="QUERYNAME">
<![CDATA[
select sysdate SYSDATE1
, sysdate SYSDATE2
, sysdate SYSDATE3
from dual
where 'XYZ' = nvl(:P_PARM, 'XYZ')
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_UPPERGROUP" dataType="varchar2" source="QUERYNAME">
<element name="SYSDATE1" dataType="varchar2" value="SYSDATE1"/>
<element name="SYSDATE2" dataType="varchar2" value="SYSDATE2"/>
<element name="SYSDATE3" dataType="varchar2" value="SYSDATE3"/>
</group>
</dataStructure>
<dataTrigger name="afterReportTrigger" source="A_SIMPLE_REPORT.afterreport()"/>
</dataTemplate>
XML OUPUT:
<?xml version="1.0" encoding="UTF-8" ?>
<A_SIMPLE_REPORT>
<LIST_G_UPPERGROUP>
<G_UPPERGROUP>
<SYSDATE1>2008-10-16T18:20:19.000-05:00</SYSDATE1>
<SYSDATE2>2008-10-16T18:20:19.000-05:00</SYSDATE2>
<SYSDATE3>2008-10-16T18:20:19.000-05:00</SYSDATE3>
</G_UPPERGROUP>
</LIST_G_UPPERGROUP>
</A_SIMPLE_REPORT>
Hope this helps,
Scott
PS If you have been doing reports for as long as you say you prob. know this already...but I NEVER* trust Oracle to convert my dates. I convert them all to char, pass them and convert them on "the other side" (if needed). But, you can change the data type to date if you feel brave, but don't say I didn't warn you. ;-) -
Urgent help needs - pls help me
i have four group in my template.
each group have subtotal at the end of it's group.
after each group total, i need to display total (which is differance between current group and previous) right below of group total.
and this difference need to show from second group.
example -
Group 1 Year
A ( total amount for Group 1)
Group 2 Year
B ( total amount for Group 2 )
Total differance C (which is B - A )
Group 3 Year
D ( total amount for Group 3 )
Total differance E ( which is D - C)
Group 4 Year
F ( total amount for Group 4)
total difference G (which is F - E)
G G1
G G2
G 999.00E
G1
G 999.00
<?xdoxslt:set_variable($_XDOCTX,’px’,xdoxslt:get_variable($_XDOCTX, 'y'))?><?xdoxslt:set_variable($_XDOCTX,’y’,xdoxslt:get_variable($_XDOCTX, 'x'))?><?xdoxslt:set_variable($_XDOCTX,’x’,sum ($G1[(./FISCAL_YEAR=current()/FISCAL_YEAR)]/AMOUNT))?>
E
<?xdoxslt:set_variable($_XDOCTX,’py’,xdoxslt:get_variable($_XDOCTX, 'y'))?>
Val is
Px is <?xdoxslt:get_variable($_XDOCTX, 'px')?>
<?xdoxslt:get_variable($_XDOCTX, 'x')?>
<?xdoxslt:get_variable($_XDOCTX, 'y')?>
Diff is
<?xdofx:xdoxslt:get_variable($_XDOCTX, 'y')-xdoxslt:get_variable($_XDOCTX, 'px')?>E
E
above code does not give me subtraction.
in above code pls omit that --- http -- in code but mistake it display in post.
any help is greatly appreciated.
thanks.
Edited by: user6767417 on Apr 3, 2009 5:02 PMHi ,
thanksfor reply me.
your suggestion is working.
but now it gives me differance between two column of same group.
but i need differance between same column of differant group ?
ant kind of helpis greatly apprecidated.
thanks. -
I HAV A ZEN MICRO PROBLEM
WHAT IS IS
I CHARGE IT ALL NIGHT (VIA USB ON MY PC) & THIS MORNING THE BATT. IS DEAD SAYIN LOW BATT WHEN I PLUG IT OUT
ITS ONLY STAYIN ON WHEN ITS ON CHARGE ...
2
WHEN ITS PLUGED IN & I TURN THE ZEN ON IT ONLY GOES IN TO THE RECOVERY MENU & I CANT GET OUT OF IT NO MATTER HOW MUCH I TURN IT OFF OR ON
CUD SOME PLS HELP ME
PS IM FRM THE UK
CUD SOME ALSO GIVE ME A CUSTOMER SUPPORT NUMBER
THE UK NUMBER ON THE SITE DONT WORK WHEN I TRY 2 CALL IT 4 SOME REASON
THANKS IN ADVANCErobert,
If your player are using firmware version ..0, then slide the lock switch to lock position when charging. If you are using other firmware version, the player would need to be properly recognize by the computer first before it will start to charge properly.
It doesn't bode well if the player are stuck at the recovery mode. Have you try the cleanup option and then the reboot option.
Jason -
Hi Guru's,
I have a query which gives amount of calls for every month.But my requirement is i need to calculate current month calls/lastmonth calls *100.I need suggestion on how to get the last month calls
for example
05.2008 06.2008
Sevrity Amount of calls Severity Amount of calls
2 500 2 400
I am able to see in the query like this.But How can i calulate the last month calls to show in my formulae
Please help,
Regards
Srikanth
Points will be assignedHi Srikant
Create two structures in key figure side in query.
one for current month call & second for previous month call then creat a formula as (current month call/previous month call)*100. It will do
Now if your problem is how to create a key figure for previous month then:
-> create new structure
-> Select the desired key figure
-> take month characteristics & go to its restriction
-> take Month Characteristics as value range between from month to month
-> Now drag it into selection panel, then select it & "off set variable" as (month -1)-(month)
if month characteristics is not there then you can do the same thing with calender day
-> as for previous month "off set variable" as(calendar day-60)-(calendar day-30)
-> for current month "off set variable" as(calendar day-30)-(calendar day-1)
you will get the things done
Cheers
Shailesh -
Hi All,
I am struck into a particular problem. Please have the patience to read through the problem.
I have a report with 2 queries. One query picks ups the invoices from the AR module, and the other query picks up the entries from the GL module because some invoices are not routed thru AR module.
Now the accounting structure is that we have multiple sets of books. Each book can have different businesses, and all the businesses deal in various currencies.
So the structure of the 2 queries is as follows
Invoices: Set_Of_Book -> Business -> Currency -> Invoice Details
Accruals: Set_Of_Book -> Business -> Currency -> Accrual Details
Both the queries cannot be merged into a single query because they have different logics.
Now I have to display the following summaries
Invoices:
1. Currency-wise summary of all invoices for all businesses in a Set_Of_Book
2. Currency-wise summary of all invoices in a set_of_book
Accruals:
1. Currency-wise summary of all accruals for all businesses in a Set_Of_Book
2. Currency-wise summary of all accruals in a set_of_book
In the end:
1. Summary of currency-wise total of all invoices + accruals
Now I'm really struck up at item number 2(currency-wise summary for a set of book) the last item.
How do i design my report so that I don't have to hard code the currencies anywhere.
'm not an expert in reports, and the report has become a bit too complex for me.
Any help shall be highly appreciate
TIA
NaveenUsman,
you can do this via SQL. You can use the ROUND-Function, which is able to round to calendar week. See http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/functions121.htm#sthref1648 for details. The correct format to round for you is IW, wich means calendar week by iso standard. So your query should look like:
select round(hiredate,'IW') week, sum(sal) summary
from emp
group by round(hiredate,'IW');
If "week" differs from "iso-week", you can add or subtract days as workaround to to function (round(hiredate+2,'IW')).
regards
Rainer -
Could someone please point me in the direction of a tutorial
or a book on how to create a hyperlink which will dynamically run
an Access report and display in a web page? None of the reference
books I own cover how to do this. I know this is pretty darn basic
but I've never done this particular task before. can someone
help??Could someone please point me in the direction of a tutorial
or a book on how to create a hyperlink which will dynamically run
an Access report and display in a web page? None of the reference
books I own cover how to do this. I know this is pretty darn basic
but I've never done this particular task before. can someone
help?? -
JAX-WS contract first solution help needed
Hi,
I am trying to create a bunch of web services using jax-ws which I will deploy on Jboss. I would like to create xml schemas and wsdl files before I create my solution because I want a clearer contract betweent client and server that is not defined by the server code.
I have managed to create an xml schema and generated the message files. I also created a wsdl file and implemented a service endpoint which refers to the wsdl file.
My problem now is that I cannot seem to get the mapping (marshalling) to the Java objects to work correctly. When I create a simple client that calls the service defined in the wsdl file I have managed to get the request to map to the webmethod in my endpoint. But I cannot seem to figure out how to get my message validated against the schema, which means that I can call the method with any type of request without getting an error message. This is also true for the return object. The solution doesn't seem to care whether I return a string or the object defined in the wsdl file.
I created my solution as a "regular" jar which I deploy on Jboss.
@Stateless
@WebService(name = "Test", portName = "TestPort", targetNamespace = "http://www.company.com/test-service/", wsdlLocation = "META-INF/wsdl/test-service.wsdl")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public class TestBean {
@WebMethod(operationName = "PerformOperation")
public Response newOperation(Request request) {
return response;
}Could you give me some tips and advice to help me finish my solution. It would also good if anyone could tell me how to turn message validation on.
Regards,
LeoHi Nico,
In multithreading, all the threads are independent. Here the threads miao and bau are independent.
There is no guarantee which thread executes first. In your program for miao you explisitly called sleep and hence bau thread executed.
Explanation:
========
When you start both the threads miao and bau both are in runnable start. Only one thread can go to running. Lets consider miao goes to running state. Because you called sleep miao goes to sleeping and bau goes to running state and once the sleep completed for miao it goes to runnable state and as bau is in running and once bau completes miao again goes to running state and then it also completes.
Thanks & Regards,
Murali.
=========== -
Opinions and help needed Pls.
I am seeking some opinion and help.
I need to setup and control both 9i and 10g databases using EM.
The 9i databases will also be DataGuarded . I have successfully tested this using 9i EM with a repository
and Intelligent Agents and the DataGuard Wizard to create logical standby databases. An interesting experience.
Now that our first 10g database is in development, I would like to control it in a similar fashion. It will 'go' production
in November and will also need to be DataGuarded.
I am aware that each 10g Instance can have it's 'own' web interface, but to use the Dataguard wizard, I will need to use Grid control.
Q1. Can someone confirm or refute that Grid control, with it's own applicaton server & DB instance, is permitted
without ANY additional licenses at all, provided it is being used to control
other fully licensed EE databases only?
Q2. As 10gR1 Grid was the first release of the product, and we will be controlling 10gR2 databases (apparently patch 10.1.0.4 can do it),
do YOU think we should use 10.1.0.4 GC now,
or just use the 9i EM product and 10g Dataguard Broker command line tool 'DGMRGL' (not tested here yet), and wait for the 10gR2 GC hopefully early next year?
Below are all the processes that were started by installing 10G grid (10.1.0.3) in Solaris 64.
I will be attempting to apply the 10.1.0.4 EM Grid patch to this and controlling a 10.2.0.1 DB.
I have successfully connected to the Grid Control ("as is" installed 10.1.0.3) using netscape.
( initially using http://localhost:7780:em which automatically became http://dandrutl02:7780/em/console/logon/sdk/incompatible;jsessionid=c0a89b1fce6b5d53d63770647e38909ad251f1b02be.n65In79Pr6KKaxCNaN0McybtahyM-x4Qc2SLbhiIaN4Iah1vbA5zawSLa3mPn39AahqQb2SHbQnAnwb5pBfzqB1Molbzhk5Imkrzqx0In65In79Pr6KKawaLaxiKc3uPbxeM8OexhOaOgzX5hgbynknvrkLOlQzNp65In0__ ) Click ok a few times.....
Eventually I get to "http://dandrutl02:7780/em/console/logon/logon" and can login OK.
I have successfully installed an agent for 10g GC on a remote host, and can control it from the Grid host. It could control
a 9.2.0.7 instance on the remote host. 10.2.0.1 is also installed on the remote host but no Db has been created yet.
Now, can someone tell me the commands I need, - and the correct order - to:
Q3. Stop all Grid Web, application server, database, and local agent processes on the Grid host.
Q4. Start-up of same.
Q5. Start and stop of processes for the Grid Agent on the Remote agent host.
Q6. What is the preference for the installation order of the 10g Agent and Oracle 10gR2 software ?
Grid master processes
============
/data/oracle/product/10.1.0.4EM/opmn/bin/opmn -d
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
ora_qmn0_REPOS10
/data/oracle/product/10.1.0.4EM/jdk/bin/java -Xmx256m -Doracle.ias.sysmgmt.logg
/data/oracle/product/10.1.0.4EM/bin/tnslsnr LISTENER -inherit
ora_dbw0_REPOS10
ora_lgwr_REPOS10
ora_pmon_REPOS10
ora_reco_REPOS10
/data/oracle/product/10.1.0.4EM/opmn/bin/opmn -d
ora_smon_REPOS10
ora_cjq0_REPOS10
ora_ckpt_REPOS10
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/jdk/bin/java -server -Djava.security.policy=/da
/data/oracle/product/10.1.0.4EM/webcache/bin/webcached -A -OPMN -U 1250885641
/bin/sh -c /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/rotatelogs /data/o
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/rotatelogs /data/oracle/produ
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/rotatelogs /data/oracle/produ
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/bin/sh -c /data/oracle/product/10.1.0.4EM/Apache/Apache/bin/rotatelogs /data/o
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/rotatelogs /data/oracle/produ
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/jdk/bin/java -server -Xnoclassgc -Xmx256m -DORA
/data/oracle/product/10.1.0.4EM/perl/bin/perl /data/oracle/product/10.1.0.4EM/b
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/bin/emagent
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/jdk/bin/java -server -Djava.security.policy=/da
oracleREPOS10 (LOCAL=NO)
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
ora_j000_REPOS10
ora_j001_REPOS10
ora_j002_REPOS10
ora_j003_REPOS10
ora_j004_REPOS10
ora_j005_REPOS10
/bin/sh /data/oracle/product/9.2.0.6/bin/dbsnmpwd
/opt/local/sbin/sshd
/data/oracle/product/9.2.0.6/bin/dbsnmp
oracleREPOS10 (LOCAL=NO)
oracleREPOS10 (LOCAL=NO)
oracleREPOS10 (LOCAL=NO)
oracleREPOS10 (LOCAL=NO)
oracleREPOS10 (LOCAL=NO)
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
oracleREPOS10 (LOCAL=NO)
-ksh
oracleREPOS10 (LOCAL=NO)
/data/oracle/product/agent/bin/emagent
oracleREPOS10 (LOCAL=NO)
oracleREPOS10 (LOCAL=NO)
/data/oracle/product/agent/perl/bin/perl /data/oracle/product/agent/bin/emwd.pl
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/webcache/bin/webcached -OPMN -U 1250885643
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
/data/oracle/product/10.1.0.4EM/Apache/Apache/bin/httpd -d /data/oracle/product
oracleREPOS10 (LOCAL=NO)
ora_j006_REPOS10
oracleREPOS10 (LOCAL=NO)
oracleREPOS10 (LOCAL=NO)
Grid AGENT host processes
==========
/data/oracle/product/10.1.0.4EM/bin/emagent
/data/oracle/product/9.2.0.6/bin/tnslsnr LISTENER -inherit
-ksh
/data/oracle/product/10.1.0.4EM/perl/bin/perl /data/oracle/product/10.1.0.4EM/b
/opt/local/sbin/sshdThank you for the reply, it go me working. Now some additional info and questions.
On a monitored host were I have both 9.2 and 10.2 databases installed, I was attempting to use just the 10.2 listener and the 10.1.0.4 agent to monitor everything. This worked.
I Installed 9.2 , 10.2 and 10.1.0.4 Agent software and started a 10.2 listener and 10.1.0.4 agent on a second Unix host.
But, when I attempted to set up a 9.2 DataGuarded logical databases to the second host, it failed and as far as I can tell it seems to be expecting that I will use a 9.2 listener for 9.2 DB's and a 10.2 listener for 10.2 Db's. (The errors were related to attempting to execute lsnrctl commands against wrong listener version).
Can someone confirm that Oracle expects that you will use multiple listeners (on different ports of course)?
I have also had some odd behavior from the 10g Grid application, only corrected by ending the session and restarting, but I am assuming that this is because Grid is still a relatively new product.
For clarity, I list the order of installation below. Can someone check that I have done it right?
host 1
Install 9.2.0.1 software.
Install Patches to same to get to our production level (9.2.0.4)
Install several patches related to EM and CritialPatchUpdates etc.
(as an aside, EM 9.2.0.6 with a management repository will control the above fine)
Install 10.2.0.1 software
Created a 9.2 and 10.2 test DB's.
Configure 10.2 listener for all Db's
host 2
Install 9.2.0.1 software.
Install Patches to same to get to our production level (9.2.0.4)
Install several patches related to EM and CritialPatchUpdates etc.
(as an aside, EM 9.2.0.6 with a management repository will control the above fine)
Install 10.2.0.1 software
management host
Install 10.1.0.3 grid control to new database
(Installes AS , creates a 9.0.? Db for the repository, Agent etc)
Install 10.1.0.4 grid patch to grid home
Install 10.1.0.4 grid patch to agent home
host 1
Install 10.1.0.3 grid agent
Install 10.1.0.4 patch to agent
host 2
Install 10.1.0.3 grid agent
Install 10.1.0.4 patch to agent
Whew! And Oracle thinks this is easy?
I am seriously considering using 9.2 EM and OMS for the DataGuard on 9.2 Db's only and 10G's database broker command line interface for the 10.2 stuff and banning use of 10g Grid control 10.1.
I Need a 10gGrid control 2.01 more stable, reliable, simpler, NOW.
Migrating a 9.2 OMS and repository to 10g Grid when it becomes usable will need to be possible.
You thoughts?
Maybe you are looking for
-
HP Laserjet Pro 200 color M251nw does not print font larger than 48 using Office WORD 2013
If a create a new Word document and I type letters of 72 font, the letters do not print. If the font size is reduced to 48 then it prints. The brand new printer is connected to my laptop via USB. I'm using an HP Laptop Pro 7420s, 32 bit with MS Offic
-
i'm unable to play game in hp 15-r009TU.. what can i do for this. please help me for this
-
Hello, I am trying to use graphical mapping for below scenario. I have two fields X and Y in souce and Z in the source. If X has the value it should map to Z and If X is empty then Y should map to Z. is any graphical function to check this. Thanks, S
-
Just received and advert and tried to place it in InDesign but it comes up with the error message "Failed to Import PDF". This PDF was created in Corel here's the info from Acrobat Any ideas? If getting it resupplied what Corel PDF version is support
-
I generally use Acrobat only to convert MS Word files to .pdf. I have recently had to reinstall Acrobat 8 on a new computer running Windows 7. After completing the install and trying to convert a file I am being told that a .dll is missing. Adobe p