URGENT: Date format in Reports Giving me trouble...plz help me out
Hi guru's Can any one help me out
I
n the front end apps we are getting the date value as
BOM_SRS_DATETIME_STANDARD
Where we are entering the date value as MM/DD/RRRR HH24:MI:SS
The date format set in the company is like RRRR/MM/DD HH24:MI:SS
SO I format masked the date parameter in .RDF to RRRR/MM/DD HH24:MI:SS format.
While the actual date format in the data base is like DD/MM/RRRR HH24:MI:SS.
I checked all the old reports and the date format is like they masked the date format to company format and used the afterparameter trigger like bellow:
if :P_SENT_DATE_FROM is not null and :P_SENT_DATE_TO is null then
:P_SENT_DATE_TO := :P_SENT_DATE_FROM;
end if;
if (:P_SENT_DATE_FROM = :P_SENT_DATE_TO) and (:P_SENT_DATE_FROM is not null) then
:WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE = '||' to_date('''||:P_SENT_DATE_FROM||''''||','||'''DD-MON-RR'')';
else
if :P_SENT_DATE_FROM is not null then
:WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE >= '||' to_date('''||:P_SENT_DATE_FROM ||''''||','||'''DD-MON-RR'')';
end if;
if :P_SENT_DATE_TO is not null then
:WHERE_SQL := :WHERE_SQL || ' AND CREATION_DATE <= '||' to_date('''||:P_SENT_DATE_TO ||''''||','||'''DD-MON-RR'')';
end if;
end if;
I tried this but i couldnt get the output either.
I am pretty much confused.
Plz help me out...
If you want to use a dynamic where caluse in your report query you can use a Reference Cursor using REF CUR QUERY tool in your report like this :
function QR_1RefCurDS return DEF_CURSORS.CHARACT_REFCUR is
temp_CHARACT DEF_CURSORS.CHARACT_refcur;
begin
IF :FROM_NO IS NULL AND :TO_NO IS NULL THEN
open temp_CHARACT for SELECT ACCT_CODE, ACCT_NAME
FROM CHARACT
ORDER BY ACCT_CODE;
ELSIF :TO_NO IS NULL AND :FROM_NO IS NOT NULL THEN
open temp_CHARACT for select ACCT_CODE, ACCT_NAME
FROM CHARACT
WHERE ACCT_CODE=:FROM_NO
ORDER BY ACCT_CODE;
ELSIF :TO_NO IS NOT NULL AND :FROM_NO IS NOT NULL THEN
open temp_CHARACT for select ACCT_CODE, ACCT_NAME
FROM CHARACT
WHERE ACCT_CODE BETWEEN :FROM_NO AND :TO_NO
ORDER BY ACCT_CODE;
ELSIF :TO_NO IS NOT NULL AND :FROM_NO IS NULL THEN
open temp_CHARACT for select ACCT_CODE, ACCT_NAME
FROM CHARACT
WHERE ACCT_CODE<=:TO_NO
ORDER BY ACCT_CODE;
END IF;
return temp_CHARACT;
end;
But first you have to declare a cursor type in a package
Similar Messages
-
Changing date format at reporting level
Hello,
Will u plz tell me how can i change the date format at reporting level?
I want to display date in dd/mm/yyyy, but by default its showing mm/dd/yyyy.
Delta is already loaded in the system, so i don't want to disturb regular data loading.
Is there any way so that i can change the format of date.
Plz help me out.
Thanks,
Regards,
SteveHi steve
There r so many postings on the same topic
go through these previous threads
date format
Date format
u can find solution
regards
Ravi Kiran -
Urgent: Date format conversion
Hi
I need to convert the date from 08/31/2006 to 31-Aug-06 format.
Plz help me out. Useful answers will be rewarded. Thanks in advance.Hello,
Check the table :
T247
Check these fm's
Function Modules related to Date and Time Calculations
DATE_COMPUTE_DAY : Returns weekday for a date
DATE_GET_WEEK : Returns week for a date
DAY_ATTRIBUTES_GET : Returns attributes for a range of dates specified
MONTHS_BETWEEN_TWO_DATES : To get the number of months between the two dates.
END_OF_MONTH_DETERMINE_2 : Determines the End of a Month.
HR_HK_DIFF_BT_2_DATES : Find the difference between two dates in years, months and days.
FIMA_DAYS_AND_MONTHS_AND_YEARS : Find the difference between two dates in years, months and days.
MONTH_NAMES_GET : Get the names of the month
WEEK_GET_FIRST_DAY : Get the first day of the week
HRGPBS_HESA_DATE_FORMAT : Format the date in dd/mm/yyyy format
SD_CALC_DURATION_FROM_DATETIME : Find the difference between two date/time and report the difference in hours
L_MC_TIME_DIFFERENCE : Find the time difference between two date/time
HR_99S_INTERVAL_BETWEEN_DATES : Difference between two dates in days, weeks, months
LAST_DAY_OF_MONTHS : Returns the last day of the month
Vasanth -
Display correct date format in report
Hi All,
I have a key figure date type and when I display the report, this field shows a number format and not a date format as i wish.
Can you help me with this issue? Any idea?
Thank you in advance.
Regards,
Bruno RodriguesHi Bruno,
Any specific reason you created the date as KF type in place of characteristics of type dat.
Please create the object as characteristic of type DAT.
Regards,
Kams -
hello, i just downloaded itunes on my acer laptop and its been giving me problems everytime i try to get on to the itunes store.. it gives me a message saying "itunes could not connect to the itunes store. an unknown error occurred. (310).plz help me out. i do have the internet on but it keeps giving me the same problems .. thanks..
Hi Young Prada,
If you are having issues connecting to the iTunes Store, you may find the following article helpful:
Apple Support: Can't connect to the iTunes Store
http://support.apple.com/kb/ts1368
Regards,
- Brenden -
PLZ help me out here...URGENT....
Here, actually i need to request the program to ask the user howmany lines does he wants by asking him to input the number of lines and at the same time write the whole text line that he requested to anew file. PLZ help me out here. So, the program shud display the text files that it read line by line after the user enters the number of lines he wants....DO i need to manipulate the loop or wat???..plz help me out here guys...thanks in advance....
here is the code...
import java.io.*;
class FileReadTest3 {
public static void main (String[] args) {
FileReadTest3 f = new FileReadTest3();
f.readMyFile();
void readMyFile() {
DataInputStream dis = null;
String record = null;
int recCount = 0;
int EnterNum = 0;
System.out.println("Please enter the number of lines: "+EnterNum);
try {
File f = new File("aliran.txt");
FileInputStream fis = new FileInputStream(f);
BufferedInputStream bis = new BufferedInputStream(fis);
dis = new DataInputStream(bis);
for(int recCount = 0; recCount <= 10, recCount++)
recCount++;
System.out.println(recCount + ": " + record);
} catch (IOException e) {
// catch io errors from FileInputStream or readLine()
System.out.println("There was a problem for finding the file!" + e.getMessage());
} finally {
// if the file opened okay, make sure we close it
if (dis != null) {
try {
dis.close();
} catch (IOException ioe) {
}1.) Actually perform some user input of any kind. Right now, the user has no choice.
2.) Read from your file, for that's why you opened it.
3.) Don't use a DataInputStream unless you know what you're doing. Use a BufferedReader instead if it's simply text.
4.) Insert a condition check for the number of lines -- yes, you need to manipulate the loop or what.
P.S.: Multiple posting, no use of code tag, the word "URGENT" in subject, calling people "man" ... this is like wearing a shirt that says "shoot me!". -
I am having ipad mini wifi + cellular. and now it is stuck at logo and restarting countinuesly. when i tried restoring it through itunes it is giving error 3194.plz help me
GIREESH KUMARSee if the troubleshooting for that error code on this page helps : http://support.apple.com/kb/ts4451
-
Hi to all
In my report i am giving a date format like dd-mm-yyyy in a selection screen but in output of the report i am getting yyyy-mm-dd , i have cheacked all the setting in control panel ,and system date is dd-mm-yyyy only
kindly suggest me wt should i do to get dd-mm-yyyy format in report output.
ThanksHi,
Check this thread
https://forums.sdn.sap.com/click.jspa?searchID=5217881&messageID=3336239
Regards
Prakash -
Hi Everyone!
I have a date format that is in the footer of my report. The format is set with the following: fmDay Month DD RRRR HH:MI AM and this is what I want, but when it prints out I get the following: Monday September 24 2001 11:0 AM . I would think I should get Monday September 24 2001 11:00 AM . I need the other part of the minute to show up. Now, it does show up if I have Monday September 24 2001 11:15 AM. I really need for the whole date format to show up. If I change the format to mm/dd/rrrr HH:MI AM then I don't get the day which I really need to show up in the footer.
Thanks in advance for your help.
~Vannette ([email protected])Please change your current date format [to]
fmDay Month DD RRRR fmHH:MI AM
Neeraj Vannette -
To explicate, recall that FM is a toggle. Your first
FM set the format to suppress all blanks and leading
zeroes, so 11:01 became 11:1. The added FM sets back
to normal mode, so everything after the first FM is
zero/blank suppressed, after the second FM is not.
-- allan plumb -
Change default date format of reports data source
Hi all,
I need to convert an ugly EBS standard charactermode report (Oracle Reports) into the Xml-Publisher format. I'd like to use the existing report as the xml data source as all data is available in the old report.
The problem is that the date format used by reports is determined by NLS_DATE_FORMAT (et al). This date format unfortunately is not xml compliant (dd.mm.yyyy in our case) and so Xml-Publisher date related features (e.g. sort by date) will not work .
The report/template is submitted via the submit concurrent request form.
Is there a way to make the underlying reports produce xml conformant dates without resorting to wild substring operations in the template or changing the EBS standard report?
Thanks
ChristophRajaramanV wrote:
Can i change the nls parameter of a particular column(date field) in a table?if i set that it is apllied to all the tables in the database..No. Please understand that all dates, in all tables are stored in the same, oracle-defined, format. NLS_date_format affects how that internal date is converted to a character string for presentation to humans, or how to interpret a character string (received ,ultimately, from a human) for conversion to that internal format. It (NLS_DATE_FORMAT) can be set at several levels, but table/column is not one of them.
Please read the link I posted in my earlier response. It will clear up your confusion.
Edited by: EdStevens on Feb 1, 2012 6:55 AM -
System date format in reports (winnt)
Hello All,
I am using oracle report bulder 6.0.5.35. on winnt
i have to show all the date fields in my report in the system format (as specified in the regional settings in control panel)
i couldn't find a direct solution, so what i did was to create a user defined parameter and pass the system date format as a string to the report at runtime (this report is invoked from VC++, so i can pass the local setting as a string at runtime)
after this, in BEFORE REPORT trigger i use the following code
dbms_session.set_nls('nls_date_format',:dat);
--where dat is the user parameter.
shouldn't this change the date format for the current session. but this is not happening. (i have not set date formats for any date fields in report)
i am not getting the output in format that i passed, but always i am getting in 'dd-mon-yy' format.
can anybody please help. is there any other solution.
thanks and regards,
Pinto.
nullhello,
the DBMS_SESSION changes the settings on the database side. as reports has it's own client-side NLS settings this does not have any influence on the output.
the client-side settings are defined by the NLS_LANG settings in the registry on the client.
regards,
the oracle reports team -
No. of hours appear in Date Format in Reports
The output of the Personnel Action Report shows the "Annual Working Hours" column in Date format. This is the same with other reports like the Wage Type Reporter.
Can somebody suggest a solution to this?
Thanks
RSHey thanks to both of you for responding.
Personnel Action Report is customised "ZHRPA" and Wage type report is also a customised one.
Ameet, could you please let me know what exactly I am supposed to chekc in my parameters (SU3)? Should I ask the developer to check the report since this is a customised one?
Remi, wage type reporter is also a customised report here. It is the customised version of PC00_M99_CWTR. -
Change date format in reporting (query)
I need to change date format from dd.mm.yyyy to dd/mm/yyyy in reporting (query)
Hi Suresh,
Go to transaction su01d in that enter your user.
Now go to defaults and change the date format.
Ya but this format will be user specific, so if you want everyone to see that format you have to change it for all.
Regards
Mansi -
Regarding Date format in Reports.
Hi All,
I want to change the Date format in BEx reports. Currently I am getting MM DD YYYY. But I need it as DD MM YYYY. I had gone thru numerous posting on this issue. I changed the Date Settings in SU3. But still I am not getting the Date in correct format. Is there any other place that I have to correct the Date format???
Regards
JayJayanth,
I feel in your case, going to the System (in menu)-User Profile-Own data then, you get, Maintain user profile. Here you have the option of Maintaining, Date format.
Hope this helps.... -
Dear All,
In Bex Query I am passing date in this format mm/dd/yyyy and I want this to be display as dd/Mon/yyyy
so could you please provide me the solution
Thx & regardsHi,
Follow these threads hope it will help you..
date format
How to get date format DD/MM/YYYY hh:mm into BW format
Regarding date formatt
reg : date format conversion from dd.mm.yyyy to mmddyyyy
Assign points if it helps
Khaja
Maybe you are looking for
-
Report on Excise Part 2 details
Hello friends, I want following report on excise to be extrated from SAP 1.GR No.& date 2.Part II number 3. Excise invoice no. & date 4. Vendor name 5. Duty amount The details are available in foll tables J_1IPART2 - all details available except Exci
-
Problems after upgrading to 3.1.3
Hi, After upgrading to 3.1.3, my IPhone is getting with no service so frequently and in places where the signal has been always excellent (other phones, like BB shows in the same spot full coverage). Besides, it is not recognizing my original charger
-
F110 Payment run have been cancelled
Hi all expert, When i want to do payment to vendor, the proposal is created. But show message 'Payment run have been cancelld'. So at this moment, i can't do anything to do the payment. I can't make another proposal and payment run for the vendor. So
-
Junk mail returns after deleting the item in the "Junk mailbox" and "Trash". Is there a way to permanently block the sender? I have deleted the item multiple times both on my Mac mini and my touch and 5 minutes later it is back in my Junk mailbox.
-
Hi, When we are doing the confirmation of production order,if somebody using the same part no in another transaction, stock will not increase and also the same material will go to COGI with reasons of "material is locked by another user" Hereby i nee