Last Activity Created Month in reports
Hi Experts,
Need to find the last activity created month with a particular value for an account in reports.
Didn't find any activity metrics for that.
Is there any work around for this.
Thanks in advance.
Lemu
Hi Lemu,
It's not clear if your question is with getting the last activity or extracting the month? From the Activities subject area you can filter on Accounts to see all activities for a particular account. To see the Created Date month, expand the Activity: Created Date dimension to expose the Calendar Month / Qtr, etc.
You can use the RANK function (RANK("- Created Date".Date)) to replace the date value with a rank number, where 1 is the most recent date. You can then filter on this field to just get the most recent activity (RANK("- Created Date".Date) = 1).
If you need to get the Month from a date field that is not an expandable dimension, then you can use the conversion function Month or MonthName (MONTHNAME("- Created Date".Date)).
Hope that helps!
Similar Messages
-
Last Activity Date in Opportunity Report
Hi Guys,
Would like to knoe if there's a way to retrieve the Last Activity Date in a historical Opportunity report?
Regards,
TeenaBasically, I need to show all opportunities with or without activities. If there are activities attached to an opportunity, then I need to get the Last Activity Date.
I tried using the Activity object in reporting but if there's no activity linked to an opportunity, it is not being displayed in the report.
Regards,
Teena -
Reporting Last Activity Date on Contact
Hello,
I maybe lossing my mind here but i feel like i have been looking for "Last Activity Date" on the contact screen all day. Can someone veryify that this appears under reporting.
Also does anyone know if you can create a case statement around this to state if values is less than 3 weeks = Dont not Contact and if greater Contact.
Anyway hope someone can verify this.JE,
i don't know about a last Activity date but I've just done it with Activity reporting on Service Requests. I did RANK(activity created date by SR ID) and then set the filter to RANK=1. This gives you the last activity created.
I then did a calculation in another field TIMESTAMPDIFF(SQL_TSI_DAY, activity.createddate, Current_date) which gave me the number of days since an activity was last posted to an SR.
You can then do conditional formatting or a CASE WHEN statement on this field.
cheers
ALEX
***NOTE I have a current SR with Oracle because I'm in sydney and Current_date returns Central Server time which is a 17 hour difference and for most of the day is a day behind so my formula above has had to be
TIMESTAMPDIFF(SQL_TSI_DAY, activity.createddate, TIMESTAMPADD(SQL_TSI_HOUR, 17,Current_date)) -
To create monthly buckets for a keyfigure in report...
Hi Gurus,
I have a keyfigure called Demand in my report. For Demand, I need to create monthly buckets in the form of columns, ie Demand-Month1, Demand-Month2, Demand-Month3 whereas from R3 the demand values for Month1, Month2, and Month3 flows in rows. In short, I need to transpose it to columns from the report level in BW.
Also, in the description of the columns, for example: If month1 flowing from R3 is July, then Demand-Month1 should be Demand-July, Demand-Month2 should be Demand-August, Demand-Month3 should be Demand-September.
Can I do this with the help of variables or some other method. Please help me in detail.
Thanks,
Edited by: sachitp on Oct 5, 2010 6:55 PMHi ,
inorder to design a bucketing report For this you need to create a formula variable with replacement path on the date and take the system date varaible which is provided by SAP.
create a formula to calculate the difference of days.
based on the diff of days you can create the formula to get the buckets.
Check the below blog link which will give you some idea to go ahead.
Calculating the Ageing of the Materials
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f15839-0cf1-2b10-c6a7-ebe68cc87cdc
REgards
KP -
Retrieve and store the last page num. of a report created with the XML Publ
The customer has the need to store the last page number of a report created using XML Publisher technology.
This page number is to be recovered for reuse as a starting page number next to the launch of the report itself.
The last page number would be stored in a custom table. The value passed through the procedure defined in AfterReport pkg.
At the next launch of the report to retrieve the value of the last page of the previous launch BeforReport the procedure.
Can you not retrieve the value when the report is processed?
Now the customer has created a parameter in the report indicating the first page number to be included in the report itself.
The customer has to remember when launching the report on the last page number of the previous launch.
With Report Builder you can do it. But the new reports are made with R12 XML Publisher technology.
Is there anyone who can give us a solution?
thanks
AntonellaIf you are new to BI Publisher then what I am going to suggest next may have not much sense.
But, anyways I am sharing this idea with the rest of the community for their benefit.
It is not impossible but requires some work. You will have to have total control of the document generation and process each step individually:
- Process before report generation
- Generate PDF
- Count PDF pages
- Process information of PDF pages
In order for you to do this you will have to use BI Publisher APIs.
xdocore.jar + Versioninfo.jar contain all you need. I just tested it myself.
Thanks
Jorge
p.s if you consider your question answered then please mark my answer either as "Correct" or "Helpful" -
How to Keep the spool created of a report for one month
Hi ,
How do we program to keep the spool created of a report for 1 month?
I used SUBMIT TO SAP-SPOOL but it seems that its maximum retention is only 9 days...
Please advice.
Thanks!This would be a question for your basis administrator.
Rob -
1st & last day of month based on month selected
Hi All,
I am an infant in BO. I want to create a variable in which I need to compare Order Creation Date with First Day of Month and Last Day of Month.
I have gone through the posts here regarding this, I found huge no of posts on calculating the 1st & last day of month based on a date value. But,
I don't have any date objects in the universe level, instead I have only Month Name/Month Number objects in the universe level (as it is a monthly report)
So, How to create 1st day & last day of month based on the month selected.
That is, If I run the report for FEB 2011 (Prompt values), I need the outputs as 01/02/2011 & 28/02/2011 as my 1st & last date values respectively.
I am working on BOXI R 3.1
Thanks in Advance,
MitchHi
Create a variables and write a formula like
Also add Month number Object in query level
Var_Month
=userresponse("Enter Month")
Var_A
"01/"MonthNumberObj+Right(var_Month;4)
var_First date
Todate(var_A;"dd/MM/yyyy")
var_lastdate
=lastdayofmonth(var_Firstdate)
Note: check the default format for date according to ur database like MM/dd/yy or something like that . and add in the var_firstdate
regards
Sunil -
Hi,
I am new to ABAP-HR.
I am using logical database PNP to get payroll. But i want to get only the last active payroll for a personnel number. How to achieve this ? Is there any Macro for this ?
Please guide on this.
Thanks & Regards
AnanyaHi
See the sample Payroll report to fetch the Overtime.
We can control the Last active payroll using the RGDIR table fields
see the sample code
report zovertime
line-size 252
line-count 60(1)
no standard page heading
message-id zndc.
Database Tables & Infotypes
tables: pcl1, " HR Cluster1
pcl2, " HR Cluster1
pa0003, " Master data - Payroll Status
cskt, " Cost Center Texts
t528t, " Positions Texts
t513s, " Job Titles
pernr, " Logical PNP
t001p, " Personnel Subarea
t500p, " Personnel Area
t501, " Employee Group
t503k, " Employee Subgroup
csks. " Cost Center
infotypes:0000,0001.
*include rpclst00.
include rpc2rx00.
include rpc2rxx0.
include rpc2cd00.
*include rpc2ps00.
*include rpc2pt00.
*include rpcfvp00.
*include rpcfdc10.
*include rpcfdc00.
include rpppxd00.
include rpppxd10.
Declaration of Internal Tables
Internal Table for Output Data
data: begin of rep_tab occurs 0,
kostl like pa0001-kostl, " Cost Center
pernr like pa0001-pernr, " Personal Number
ename like pa0001-ename, " Employee Name
ctext like cskt-ltext, " Cost Center Text
ptext like t528t-plstx, " Position Text
ot1 type p decimals 2, " Jan OT Amount
ot2 type p decimals 2, " Feb OT Amount
ot3 type p decimals 2, " Mar OT Amount
ot4 type p decimals 2, " Apr OT Amount
ot5 type p decimals 2, " May OT Amount
ot6 type p decimals 2, " Jun OT Amount
ot7 type p decimals 2, " Jul OT Amount
ot8 type p decimals 2, " Aug OT Amount
ot9 type p decimals 2, " Sep OT Amount
ot10 type p decimals 2, " Oct OT Amount
ot11 type p decimals 2, " Nov OT Amount
ot12 type p decimals 2, " Dec OT Amount
ott type p decimals 2, " Total OT Amount
end of rep_tab.
Declaration of Variables
data: v_mon(2) type n, " Month
v_no type i, " Data Lines
v_year(4) type c, " Year
v_date like sy-datum, " Date
v_date1 like sy-datum, " Date
v_seqnr like pc261-seqnr. " Sequence No.
Declaration of Constants
data: c_type like hrp1001-otype value 'S', " Object Type
c_kokrs like cskt-kokrs value '1000', " Controlling Area
c_date1 like sy-datum value '18000101', " Date
c_date2 like sy-datum value '99991231', " Date
c_x type c value 'X', " Sign
c_mon(2) type c value '01', " Month
c_val1(2) type c value '31', " Date
c_val2(2) type c value '12', " Month Type
c_val like p0041-dar01 value '01', " Date Type
c_lgart1 like p0008-lga01 value '0722', " Wage Type
c_lgart2 like p0008-lga01 value '0723', " Wage Type
c_1(2) type n value '01', " Month1
c_2(2) type n value '02', " Month2
c_3(2) type n value '03', " Month3
c_4(2) type n value '04', " Month4
c_5(2) type n value '05', " Month5
c_6(2) type n value '06', " Month6
c_7(2) type n value '07', " Month7
c_8(2) type n value '08', " Month8
c_9(2) type n value '09', " Month9
c_10(2) type n value '10', " Month10
c_11(2) type n value '11', " Month11
c_12(2) type n value '12'. " Month12
Selection-screen
parameters:
p_year like pc2b0-pabrj obligatory. " Payroll Year
At selection-screen
at selection-screen.
Validate the Selection Screen fields
perform validate_screen.
Start-of-Selection
start-of-selection.
Selection of Period
perform get_period.
Get PERNR from LDB
get pernr.
Get the Master data from infotype 0001
perform get_master_data.
Top-of-page
top-of-page.
Write the Report and Column Headings
perform top_of_page.
End-of-Page
end-of-page.
write /1(252) sy-uline.
End-of-Selection
end-of-selection.
Display the Output Report.
perform display_report.
Form-Routines
*& Form validate_screen
Validation of selection Screen fields
form validate_screen.
Validation of Cost Center
clear csks.
if not pnpkostl[] is initial.
select single kostl
into csks-kostl
from csks
where kostl in pnpkostl.
if sy-subrc <> 0.
message e999 with 'Invalid Cost Center'(003).
endif.
endif.
Validation of Personnel Number
clear pa0003.
if not pnppernr[] is initial.
select pernr
from pa0003 up to 1 rows
into pa0003-pernr
where pernr in pnppernr.
endselect.
if sy-subrc <> 0.
message e999 with 'Incorrect Personal Number Entered'(002).
endif.
endif.
Validation of Personnel Area
clear t500p.
if not pnpwerks[] is initial.
select persa
from t500p up to 1 rows
into t500p-persa
where persa in pnpwerks.
endselect.
if sy-subrc <> 0.
message e999 with 'Incorrect Personnel Area Entered'(001).
endif.
endif.
Validation of Personnel Sub Area
clear t001p.
if not pnpbtrtl[] is initial.
select btrtl
from t001p up to 1 rows
into t001p-btrtl
where btrtl in pnpbtrtl.
endselect.
if sy-subrc <> 0.
message e999 with 'Incorrect Personnel Sub Area Entered'(037).
endif.
endif.
Validation of Employee Group
clear t501.
if not pnppersg[] is initial.
select persg
from t501 up to 1 rows
into t501-persg
where persg in pnppersg.
endselect.
if sy-subrc <> 0.
message e999 with 'Incorrect Employee Group Entered'(038).
endif.
endif.
Validation of Employee Sub Group
clear t503k.
if not pnppersk[] is initial.
select persk
from t503k up to 1 rows
into t503k-persk
where persk in pnppersk.
endselect.
if sy-subrc <> 0.
message e999 with 'Incorrect Employee Sub Group Entered'(039).
endif.
endif.
endform. "validate_screen
*& Form get_period
Get the Correct Period based on Selection screen selection
form get_period.
clear: v_year,v_mon, v_date, v_date1.
v_year = sy-datum+0(4).
v_mon = sy-datum+4(2).
if pnptimr1 = c_x. " Current Date
pnpbegda = sy-datum.
pnpendda = sy-datum.
elseif pnptimr2 = c_x. " Current Month
concatenate v_year v_mon c_val into v_date.
concatenate v_year v_mon c_val1 into v_date1.
pnpbegda = v_date.
pnpendda = v_date1.
elseif pnptimr3 = c_x. " Current Year
concatenate v_year c_val c_val into v_date.
concatenate v_year c_val2 c_val1 into v_date1.
pnpbegda = v_date.
pnpendda = v_date1.
elseif pnptimr4 = c_x. " Upto Today
pnpbegda = c_date1.
pnpendda = sy-datum.
elseif pnptimr5 = c_x. " From Today
pnpbegda = sy-datum.
pnpendda = c_date2.
else.
if ( pnpbegda is initial and pnpendda is initial ).
pnpbegda = c_date1.
pnpendda = c_date2.
elseif pnpbegda is initial and not pnpendda is initial.
pnpbegda = c_date1.
pnpendda = pnpendda.
elseif not ( pnpbegda is initial and pnpendda is initial ).
pnpbegda = pnpbegda.
pnpendda = pnpendda.
endif.
endif.
endform. "get_period
*& Form get_master_data
Get the Master Data from Database Tables PA0001,0002,0003
form get_master_data.
Get data from Respective Infotypes
rp_provide_from_last p0001 space pnpbegda pnpendda.
if p0001-kostl in pnpkostl.
rep_tab-kostl = p0001-kostl.
rep_tab-pernr = p0001-pernr.
rep_tab-ename = p0001-ename.
Get the Position Text
clear t528t-plstx.
select single plstx into t528t-plstx from t528t
where plans = p0001-plans and
otype = c_type and
sprsl = sy-langu.
if sy-subrc = 0.
rep_tab-ptext = t528t-plstx.
endif.
Get the Cost Center Text
clear cskt-ltext.
select single ltext into cskt-ltext from cskt
where spras = sy-langu and
kokrs = c_kokrs and
kostl = p0001-kostl.
if sy-subrc = 0.
rep_tab-ctext = cskt-ltext.
endif.
Get the Overtime Payment Data
perform get_ot_data.
rep_tab-ott = rep_tab-ot1 + rep_tab-ot2 + rep_tab-ot3 +
rep_tab-ot4 + rep_tab-ot5 + rep_tab-ot6 +
rep_tab-ot7 + rep_tab-ot8 + rep_tab-ot9 +
rep_tab-ot10 + rep_tab-ot11 + rep_tab-ot12.
append rep_tab.
clear rep_tab.
endif.
sort rep_tab by kostl pernr.
delete rep_tab where kostl = ' '.
delete rep_tab where ott = 0.
endform. "get_master_data
*& Form get_ot_data
Get the Overtime Payment Data
form get_ot_data.
cd-key = pernr-pernr.
rp-imp-c2-cd.
sort rgdir by seqnr.
To get sequence number for the payroll period
loop at rgdir where void is initial
and reversal is initial
and outofseq is initial
and srtza eq 'A'.
if rgdir-fpper+0(4) = p_year.
To consider offcycle run data
if not rgdir-ocrsn is initial.
v_seqnr = rgdir-seqnr.
exit.
endif.
v_seqnr = rgdir-seqnr.
endif.
if not v_seqnr is initial.
perform import_rx.
endif.
perform process_wagetypes.
endloop.
endform. "get_ot_data
include rpppxm00.
*& Form Import_rx
Import the RX data from Clusters
form import_rx.
rx-key-pernr = cd-key-pernr.
rx-key-seqno = v_seqnr.
rp-init-buffer.
rp-imp-c2-rx.
endform. " Import_rx
*& Form Process_wagetypes
Calculate the Overtime Amount based on Wage types
form process_wagetypes.
loop at rt.
if rt-lgart = c_lgart1 or rt-lgart = c_lgart2.
if rgdir-fpper+0(4) = p_year.
v_mon = rgdir-fpper+4(2).
case v_mon .
when c_1.
rep_tab-ot1 = rep_tab-ot1 + rt-betrg.
when c_2.
rep_tab-ot2 = rep_tab-ot2 + rt-betrg.
when c_3.
rep_tab-ot3 = rep_tab-ot3 + rt-betrg.
when c_4.
rep_tab-ot4 = rep_tab-ot4 + rt-betrg.
when c_5.
rep_tab-ot5 = rep_tab-ot5 + rt-betrg.
when c_6.
rep_tab-ot6 = rep_tab-ot6 + rt-betrg.
when c_7.
rep_tab-ot7 = rep_tab-ot7 + rt-betrg.
when c_8.
rep_tab-ot8 = rep_tab-ot8 + rt-betrg.
when c_9.
rep_tab-ot9 = rep_tab-ot9 + rt-betrg.
when c_10.
rep_tab-ot10 = rep_tab-ot10 + rt-betrg.
when c_11.
rep_tab-ot11 = rep_tab-ot11 + rt-betrg.
when c_12.
rep_tab-ot12 = rep_tab-ot12 + rt-betrg.
endcase.
endif.
endif.
endloop.
endform. "process_wagetypes
*& Form top_of_page
Write the Report and Column Headings
form top_of_page.
format color col_heading on.
write: /1(252) 'NATIONAL DRILLING COMPANY'(010) centered,
/1(252) 'Overtime Payments Details'(011) centered.
format color off.
if pnptimr1 = c_x. " Current Date
write: /2 'Period From :'(036), sy-datum, 'To:'(006), sy-datum.
elseif pnptimr2 = c_x. " Current Month
write: /2 'Period From :'(036), v_date, 'To:'(006), v_date1.
elseif pnptimr3 = c_x. " Current Year
write: /2 'Period From :'(036), v_date, 'To:'(006), v_date1.
elseif pnptimr4 = c_x. " Upto Today
write: /2 'Period From :'(036), c_date1, 'To:'(006), sy-datum.
elseif pnptimr5 = c_x. " From Today
write: /2 'Period From :'(036), sy-datum, 'To:'(006), c_date2.
else.
if ( pnpbegda is initial and pnpendda is initial ).
write: /2 'Period From :'(036), c_date1, 'To:'(006), c_date2.
elseif pnpbegda is initial and not pnpendda is initial.
write: /2 'Period From :'(036), c_date1, 'To:'(006), pnpendda.
elseif not ( pnpbegda is initial and pnpendda is initial ).
write: /2 'Period From :'(036), pnpbegda,
'To:'(006), pnpendda.
endif.
endif.
write: 219 'Report Run Date:'(018), sy-datum.
if not pnpkostl[] is initial.
if pnpkostl-high is initial.
write: /2 'Cost Center :'(004), pnpkostl-low,
219 'Time :'(020), sy-uzeit.
else.
write: /2 'Cost Center From:'(005), pnpkostl-low+7(3),
'To:'(006), pnpkostl-high,
219 'Time :'(020), sy-uzeit.
endif.
else.
write: /219 'Time :'(020), sy-uzeit.
endif.
if not pnppernr[] is initial.
if pnppernr-high is initial.
write: /2 'Personal Number :'(007), pnppernr-low,
219 'User :'(021), sy-uname.
else.
write: /2 'Personal No.From:'(008), pnppernr-low,
'To:'(006), pnppernr-high,
219 'User :'(021), sy-uname.
endif.
else.
write: /219 'User :'(021), sy-uname.
endif.
write: /219 'Page No :'(022), sy-pagno.
format color col_heading.
write /1(252) sy-uline.
write:/1 sy-vline, 10 sy-vline,
41 sy-vline,
67 sy-vline, 68(167) 'Overtime Payments(Dirhams)'(013) centered,
235 sy-vline,252 sy-vline.
format color col_heading.
write:/1 sy-vline, 2(8) 'Emp #'(019) centered,
10 sy-vline, 11(30) 'Employee Name'(012) centered,
41 sy-vline, 42(25) 'Position'(014) centered,
67 sy-vline, 68(167) sy-uline,
235 sy-vline,236(16) 'Total'(017) centered,
252 sy-vline.
write:/1 sy-vline, 10 sy-vline,
41 sy-vline,
67 sy-vline, 68(13) 'JANUARY'(024) centered,
81 sy-vline, 82(13) 'FEBRUARY'(025) centered,
95 sy-vline, 96(13) 'MARCH'(026) centered,
109 sy-vline,110(13) 'APRIL'(027) centered,
123 sy-vline,124(13) 'MAY'(028) centered,
137 sy-vline,138(13) 'JUNE'(029) centered,
151 sy-vline,152(13) 'JULY'(030) centered,
165 sy-vline,166(13) 'AUGUST'(031) centered,
179 sy-vline,180(13) 'SEPTEMBER'(032) centered,
193 sy-vline,194(13) 'OCTOBER'(033) centered,
207 sy-vline,208(13) 'NOVEMBER'(034) centered,
221 sy-vline,222(13) 'DECEMBER'(035) centered,
235 sy-vline,252 sy-vline.
format color off.
write /1(252) sy-uline.
endform. "top_of_page
*& Form Display_report
Write the Report Output
form display_report.
clear v_no.
describe table rep_tab lines v_no.
if v_no = 0.
message i999 with
'No Data found for the entered Selection'(015).
endif.
loop at rep_tab.
format color 3.
at new kostl.
read table rep_tab index sy-tabix.
write:/1 sy-vline, 2(12) 'Cost Center:'(009),
14(10) rep_tab-kostl,
25(30) rep_tab-ctext,
252 sy-vline.
format color off.
write /1(252) sy-uline.
endat.
format color col_normal.
write: /1 sy-vline, 2(8) rep_tab-pernr,
10 sy-vline, 11(30) rep_tab-ename,
41 sy-vline, 42(25) rep_tab-ptext,
67 sy-vline, 68(13) rep_tab-ot1 no-zero,
81 sy-vline, 82(13) rep_tab-ot2 no-zero,
95 sy-vline, 96(13) rep_tab-ot3 no-zero,
109 sy-vline,110(13) rep_tab-ot4 no-zero,
123 sy-vline,124(13) rep_tab-ot5 no-zero,
137 sy-vline,138(13) rep_tab-ot6 no-zero,
151 sy-vline,152(13) rep_tab-ot7 no-zero,
165 sy-vline,166(13) rep_tab-ot8 no-zero,
179 sy-vline,180(13) rep_tab-ot9 no-zero,
193 sy-vline,194(13) rep_tab-ot10 no-zero,
207 sy-vline,208(13) rep_tab-ot11 no-zero,
221 sy-vline,222(13) rep_tab-ot12 no-zero,
235 sy-vline,236(16) rep_tab-ott no-zero,
252 sy-vline.
at end of kostl.
write /1(252) sy-uline.
endat.
format color off.
at last.
sum.
format color 1.
write: /1 sy-vline,
10 sy-vline, 11(30) 'Total'(017) centered,
41 sy-vline,
67 sy-vline, 68(13) rep_tab-ot1 no-zero,
81 sy-vline, 82(13) rep_tab-ot2 no-zero,
95 sy-vline, 96(13) rep_tab-ot3 no-zero,
109 sy-vline,110(13) rep_tab-ot4 no-zero,
123 sy-vline,124(13) rep_tab-ot5 no-zero,
137 sy-vline,138(13) rep_tab-ot6 no-zero,
151 sy-vline,152(13) rep_tab-ot7 no-zero,
165 sy-vline,166(13) rep_tab-ot8 no-zero,
179 sy-vline,180(13) rep_tab-ot9 no-zero,
193 sy-vline,194(13) rep_tab-ot10 no-zero,
207 sy-vline,208(13) rep_tab-ot11 no-zero,
221 sy-vline,222(13) rep_tab-ot12 no-zero,
235 sy-vline,236(16) rep_tab-ott no-zero,
252 sy-vline.
write /1(252) sy-uline.
endat.
format color off.
endloop.
endform. "display_report
Reward points for useful Answers
Regards
Anji -
Dear All
I want to generate Monthly performance report for the QM activity.. as per the below table.
Please suggest the right way to create this query.
Inspection description Accepted Rejected Rejected % Under test
Raw Material
Packing Material
In-process samples
AYKHello,
Dont know how to create in SAP Query. If your looking for ABAP query then can give some input
You will have to a combination of QALS, QAVE, MARA Tables
1) In QALS you will get all the lots created for particalur month when you pass from to date in PASTRTERM (start date).
2) Get the number of entries for the lot
3) Pick up material also from QALS (MATNR).
4) Pass MATNR in MARA to get the material Type (MTART)
5) Pass the insepction lots to QAVE ( sorted for Material type) to get the UD codes for the inspection lots. ( Accepted or rejected)
6) Calculate % Rejected
7) Check number of entries in QAVE table also
8) Calculate % Test = Number of entries of lot in QAVE table / Number of entries of lot in QALS table
Regards
gajesh -
Creating Sales Employee Report in Business One 8.82
Hi,
Can someone provide me the query to create a Sales Report sorted by Sales Employee and Business Partner. The report contains the following columns:
Sales Employee, Business Partner Name and Acct Number, Sale for Current Month (or month provide in the report parameter), Sales for same month last year, YTD-this year, YTD-last year.
ThanksHi Sam,
As per your requirement here i provide you the sql query for SALES Report.
DECLARE
@StartDate DATETIME,
@EndDate DATETIME,
@Dummy INTEGER
SELECT TOP 1 @Dummy = DocNum
FROM OINV T0
WHERE T0.DocDate >= [%1]
AND T0.DocDate <= [%2]
SELECT
@StartDate= '[%1]',
@EndDate = '[%2]'
SELECT DISTINCT
T0.Docentry,
T0.DocNum as 'Bill No.',
CONVERT(VARCHAR(10), T0.DocDate, 3) AS 'Bill date',
T0.CardName AS 'Customer Name' ,
T1.Dscription AS 'Item Description',
T1.Quantity,
T1.Price AS 'Price',
T1.TaxCode,
T1.LineTotal AS 'Basic Line Total' ,
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = -90
AND INV4.DocEntry = T0.DocEntry
AND INV4.LineNum = T1.LineNum) AS 'BED',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = -60
AND INV4.DocEntry = T0.DocEntry
AND INV4.LineNum = T1.LineNum) AS 'Cess',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = 9
AND INV4.DocEntry = T0.DocEntry
AND INV4.LineNum = T1.LineNum) AS 'HeCess',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = 1
AND INV4.DocEntry = T0.DocEntry
AND INV4.LineNum = T1.LineNum) AS 'VAT',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = 8
AND INV4.DocEntry = T0.DocEntry
AND INV4.LineNum = T1.LineNum) AS 'CST',
T0.Comments
FROM OINV T0
INNER JOIN INV1 T1
ON T0.DocEntry = T1.DocEntry
WHERE T0.DocDate >= @StartDate
AND T0.DocDate <= @EndDate
AND T1.TargetType < > 14
Thanks,
Nishit Makadia -
Is Oracle still actively creating AMIs for Oracle Linux?
Hi All,
I was wondering if any of you knows if Oracle is still actively creating new Oracle Linux AMIs for Amazon EC2? I can see the most recent one is Oracle Linux 6.1 while we are already at 6.3.
Now that Oracle has announced they are in the IaaS and PaaS business as well, do they stop supplying Amazon AMIs?
Bart.I would never deploy the first point release of a major release into production. In my experience, Oracle rolls out 2 "releases" of each major version. The SECOND release tends to be production-ready for shops with serious HA requirements. Usually, this Second release also contains sneak previews of the important features of the next major Version--but these should be considered version 1.0 features and not relied upon. The FIRST release of a major version will contain those important features in a strong form suitable for the vast majority of shops--but it will still have lots of bugs. If you have to bounce your instance even once a month to work around a bug, you aren't getting close to HA.
My advice--the most stable version will always be the terminal release of the last version--currently 9.2.0.6. Similarly, the last point release of R1 will be quite stable. Realistically, 98% of the customer base can live with occasional downtime and bug problems, and will enjoy the new features of the latest software. Even for them, I'd wait for the second point release or higher for production. QA and DEV are different stories--jump on the latest wave and write code using the newest features. But wait for the second point release before going into production. Typically it will be out in a few months and will fix the glaring bugs. -
Creating a custom report with detailed header and then associated detail
I am very new to CRMOD, so this question may be basic, but I have not found any good material yet to help me out, so here goes.
We are trying to create a Quote report that will be sent to our customers. The report needs to have both a header and detail section basically as follows:
<Header>
Quote Form
Date:
Expiration Date:
Sales Person Name:
Customer Name and address
Terms
... some other text data ...
<Detail>
Standard fields that define the quote, these are easy.
What I cannot determine how to do is create the header section. In the report designer, it only allows for a Title, logo, and another text line. Can anyone suggest another method?I do not have the narrative option.
Options available are:
Title
Table
Chart
Pivot Table
Gauge
Active Filters
legend
Advanced
--> Column Selector
--> View Selector
--> Funnel Chart
--> Ticker
According to the documentation, the narrative view should be available from the advanced menu. Am I on a different package by chance? -
Creating a Crystal Report for B1 without parameters
Hi Experts,
My question is a simple one.
I create a crystal report for SAP B1 8.8 Patch 10 using CR 2008 SP02.
I have no parameters since its showing sales figures of the past month.
But when I run the report in SAP, a selection criteria screen pops up without any fields.
Just OK and Cancel.
I dont want my users to have to click OK. I need the report to pop-up once the user click on the SAP Menu for the report.
My report file has no parameters.
Thanks for the help
DenisDeinis,
In your report, do you mean:
- you have parameter created, but not used in the report? OR
- there is no parameter field in the report at all?
The reason I am asking is:
If you have parameter fields, But, you did not use it in the report, I think when you run the report within SAP B1, it will still prompts for user to enter something.
Also, if you are using subreport, make sure there is no parameter in the subreport, Although you do not use them. Just delete the parameter field from the list if you are not using them.
Edited by: Shwu Hua Gan on Jun 20, 2010 2:59 AM -
Creating a Single Report from Oracle Data Base and BI Answers
Hi,
I wanted to create a single report by using a BI Report where in we have project and Activity columns,now I want to add column with Program to see the results.Program data is in Oracle Database.
Can some one help me how to create the report.
ii.How to edit a pivot table in BI word designer.What I am doing present is creating every time a new report.
Thx In Adv.
From SravanHi Pivot table was a general question.Is is nothing to do with the qus 1.
See I have a report which have a programme and Activity.So I need to get the data of Prject from Data base how to do this in BIP.....I am not using any pivot table here. -
http://www.oracle.com/technology/obe/hol08/apexprnt/apexprnt_otn.htm
At the above link is a samle demo of how to create a PDF report using Oracle 11g, BI Publisher, BI Publisher Desktop.
I am stuck at the step # 8:
Import the Printing Application in Application Builder using the printapp.sql file located in the directory where you unzipped the file in the previous step.
I have the above referenced file and when I execute it I get the following error:
SQL> alter session set current_schema=APEX_030200;
Session altered.
SQL>
SQL> @prntapp
APPLICATION 107 - Printing Application
Set Credentials...
Check Compatibility...
API Last Extended:20090112
Your Current Version:20090112
This import is compatible with version: 20070108
COMPATIBLE (You should be able to run this import without issues.)
Set Application ID...
begin
ERROR at line 1:
ORA-02291: integrity constraint (APEX_030200.WWV_FLOWS_FK) violated - parent
key not found
ORA-06512: at "APEX_030200.WWV_FLOW_API", line 555
ORA-06512: at line 3
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
The BI publisher is working fine as I can see all the executive reports as well as all the demos work fine.
Also: At the below URL
http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html#03
At step 5: 5. Installing and Configuring Apache FOP
I am expected to install the fop.war file using OEM. I have OEM for 11g working but I don't see the application component, just the Database. How do I get the App component working. The BI Publisher was installed using "basic" option as suggested by the OBE I am using.
Thanks a lot for your help.
MohsinHi Venkatv and everyone.
This is the link where I found about Including Dynamic Images in a Report.
http://www.oracle.com/technetwork/testcontent/apexprnt2-otn-098981.html
It's so easy and clear to do.
Good Luck!!!
Regards.
Ayrem
Maybe you are looking for
-
How to SCAN uploaded files for VIRUS in APEX
part 1: Goal: Do a virus scan of the uploaded file from APEX application prior to storing the file in custom tables. The process: Followed the document from www.developer.com: Implementing an Anti-Virus File Scan in JEE Applications By Vlad Kofman Go
-
Time of email shows in Date Column, Date is not showing on new emails
Date is not showing in Date column. Only time is showing. I just migrated from OE - Old emails show the time & Date.
-
Is Photoshop Elements 7 compatible with new Vista 64-bit?
I am going to purchase a new computer with Windows Vista 64-bit. The Photoshop Elements 7 states that it is compatible with Vista 32-bit. Is there a patch or some way to make it work?
-
Newbie Question,preferences for saving images
Brand new to PS, CS5, how do I change or set preferences so all images, pictures, masters and versions are saved to external hard drive and not the pictures library in iphoto? Thanks in advance. r ahrens
-
Error code -17306; Unknown variable or property name.
What does this error code mean in Test Stand, And what are solutions to this problem