Using PLD to print Day of Week (Monday,Tuesday,Wednesday,etc.)
Is there anyway to convert a datebase date format from
10/08/2008 to either 'Friday, October 10, 2008' or to just
"Friday'
There is a Function MonthName() which shows the Month Name. There are no fuctions to dispaly Day Name.
The better work around is to have some UDF in the B1 Screen and use FMS to show the Day Name in the UDF and print the UDF in PLD.
Similar Messages
-
Can't print using Google apps print buttons i.e. Gmail, Drive, etc
I've just changed to Firefox from Chrome and for the most part I love it, however I can't seem to print from web apps like Google Mail, Google Drive, etc. When I use their in-built print buttons, Firefox automatically downloads a pdf file with a crazy name (ACFrOgBJJlS7sZpRWEr_Z7C8znOF37rFxztvGP_EYf-8-vBmdtTNaPovyqHOrrjO07PcNUBpjUaCL3IN4kEhXAVQPWZG6pCyZLzlMOqD9Z2Yju93qQ4Ro4oUhMosakw=) instead of opening print options and printing the document. It's driving me crazy. I didn't realise how much I printed from the web!
LeighHi speedyg!
"I installed OS 10.2.8 over OS 9.2.2."
Does that mean you did a Simple Upgrade?
If so, than I don't understand this statement: "I copied the OS 9 System folder then placed the folder on the hard drive for the OS 10.2.8"
It should have already been present. I guess I'm being dim! Could you explain a bit further?
ali b -
Year-to-date behaviour when filtered on day-of-week
In our data warehouse design, the time dimension has - amongst others - following columns:
- day id [ = YYYYMMDD format ]
- day of week [ = name of day of week: Monday, Tuesday, ... ]
- week id [ = IYYYIW format ]
- year id [ = IYYY ]
Our fact table, which contains turnover information, has - amongst others - following columns:
- net amount [ = physical table column containing numeric value ]
- net amount ytd [ = logical column: ToDate(net amount, year id) ]
An analysis was built based upon this dimension and fact table, which is filtered with prompted values. Prompts are foreseen for week and day of week.
When filtering on week the behaviour is very much as expected; the "net amount" is assigned the total net amount of the chosen week, and the "net amount ytd" is assigned the total net amount for the year up to the chosen week.
When adding day-of-week to the filter condition however the result is not as expted; the "net amount" is assigned the total net amount for the chosen day in the chosen week, as hoped for, but the "net amount yet" still is assigned the total net amount for the year up to the chosen day of the chosen week, while I would expect it to be the total net amount of all chosen day-of-weeks (for example, all Tuesdays) of the year up to the Tuesday in the chosen week.
Having a look at the query behind the analysis, the (simplified) code for the YTD information looks like this:
SELECT SUM("net amount")
FROM "fact",
"time dimension" td1,
"time dimension" td2
WHERE td1."week id" = (prompt week value)
AND td1."day of week" = (prompt day of week value)
AND td1."year id" = td2."year id"
AND td2."week id" <= td1."week id"
AND fact."day id" = td2."day id"As I said, it is simplified, OBIEE in fact uses a bunch of sub queries and ranking sequences to pull this off, but this is in a nutshell the result. And as seen in the query, the second occurence of the time dimension is not filtered on day of week, which results in the YTD sum for all days, not just Tuesdays, or whatever day was selected.
It makes sense in a way, after all, filtering on week does not limit the second occurence of the time dimension to filter on week either. But is there any way to force OBIEE to make an exception and come up with following query (or something similar that does the trick):
SELECT SUM("net amount")
FROM "fact",
"time dimension" td1,
"time dimension" td2
WHERE td1."week id" = (prompt week value)
AND td1."day of week" = (prompt day of week value)
AND td1."year id" = td2."year id"
AND td2."week id" <= td1."week id"
AND td2."day of week" = (prompt day of week value)
AND fact."day id" = td2."day id"Thanks in advance for your input.
Edited by: Kurt Geens on Mar 12, 2013 2:52 PM805771 wrote:
Yes, but I don't want to create 7 different jobs, one for each day of the week. Isn't there a way to do this in PL/SQL? It took me 10 seconds in SQL Server's TSQL.Yes you keep showing some TSQL syntax that obviously does not do what you are asking for.
>
SELECT
CASE DATEPART(dw,GETDATE())
WHEN 4 THEN (SELECT COUNT(*) FROM ADR_VLDN )
ENDSo the equivalent in Oracle would be
SQL> var n number
SQL> begin
2 if to_char(sysdate,'D') = '4' then
3 select count(*) into :n from dual;
4 end if;
5 end;
6 /
PL/SQL procedure successfully completed.
SQL> print n
N
1Also takes 10 seconds. -
In the report we have to display DAY DESCRIPTION(Ex:Monday,Sunday,...)in columns. How to get it? Can anyone help me?
Thanks in AdvanceIf we put calday in dril down we can display mm/dd/yyyy formate. Instead of this we have to display monday,tuesday,wednesday etc. corresponding to that date.
In the repot level if i go to properties there is no option for key and text. i think time charecteristics don't have that type of option.
If any doughts plz let me know
thanks 4 ur reply -
Hello experts,
Does anybody knows a FM that will return the day of the week, example I will passed today's date using SY-DATUM and the FM will return what day of the week is today (Monday, Tuesday, Wednesday....)
Regards,
ChristopherUse : <b>DATE_COMPUTE_DAY</b>
And a program to do the same...
DATA : day LIKE SCAL-INDICATOR.
DATA: attr LIKE TABLE OF CASDAYATTR WITH HEADER LINE.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
date = sy-datum
IMPORTING
DAY = day
WRITE : day.
CALL FUNCTION 'DAY_ATTRIBUTES_GET'
EXPORTING
DATE_FROM = SY-DATUM
DATE_TO = SY-DATUM
LANGUAGE = SY-LANGU
TABLES
day_attributes = attr
WRITE : attr-weekday_l.
Message was edited by: Wenceslaus G -
Start/End Date parameters that check day of week and using to set default values.
Hi,
I've got a report that presents data between a start and an end date.
I want it to check if it's a monday and present data from the previous week, otherwise present data from this week.
For the "Default" value of parameter @startdate, I've got the following expression:
=iif(WeekdayName(DatePart("w", Today)) = "Monday",DateAdd("d",-8,Today()),DATEADD("d", 1 - DATEPART(DateInterval.WeekDay, Today(),FirstDayOfWeek.Sunday), Today()))
for @enddate I've got default value:
=iif(WeekdayName(DatePart("w", Today)) = "Monday",DateAdd("d",-1,Today()),DATEADD("d", 7 - DATEPART(DateInterval.WeekDay, Today(),FirstDayOfWeek.Sunday), Today()))
but it doesn't appear to be working, I've checked
WeekdayName(DatePart("w", Today))
as an expression in a text box and it evaluates to Monday but my IIF statement above always uses the DATEADD line therefore not returning "Monday" as the value (even though it is).
Is it a problem that the parameters are of Data/Time data type and I'm trying to evaluate as type text?
Any help would be appreciated.
Thanks :)StartDate
=IIf(DateDiff(DateInterval.Day,CDate("01/01/1900"),Today) Mod 7 =0,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today)-1,CDate("01/01/1900")),DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today),CDate("01/01/1900")))
EndDate
=IIf(DateDiff(DateInterval.Day,CDate("01/01/1900"),Today) Mod 7 =0,DateAdd(DateInterval.Day,-1,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today),CDate("01/01/1900"))),DateAdd(DateInterval.Day,-1,DateAdd(DateInterval.WeekOfYear,DateDiff(DateInterval.WeekOfYear,CDate("01/01/1900"),Today)+1,CDate("01/01/1900"))))
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
Hi,
This one works but it results to be between monday and saturday, how to make it between sunday and saturday? -
ICal printing days of the week
Have just up upgraded to Yosemite and have a problem when printing the calendar. Set start day of week in preference to Monday, which is fine on screen. When you print Monday is the last day of the week???
Icheney,
1. Open System Preferences...>Language & Text>Formats>Region: and set/re-set the appropriate region.
2. Find and resolve duplicate fonts with Mac 101: Font Book -
Does anyone have a nice scalar function (I am using views) that can set Monday as day 1 of the week, through to Sunday as day 7.
Weekday function would have been great but am using 2012.
I already have a day of the week where Sunday is day 1 of the week so I gues I could use a function to re set all these but didn't know if there was something that people were already were using.
RegardsSELECT DATEDIFF(day, '19000101', SYSDATETIME()) % 7 + 1;
SELECT DATEPART(weekday, DATEADD(day, @@DATEFIRST - 1, SYSDATETIME()));
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence
Thanks Uri your 2nd solution worked for me.
I have now coded it as a function.
Regards -
New customized report using PLD or QUERY PRINT LAYOUT to show customers onl
I am working with a Software Developing firm as an SAP Consultant.
Please tell me how to create a new customized report displaying various details as required by the client in the report using PLD or Query Print Layout.
Please help me asap.Hi,
You can create queries using the Query Generator or the Query Wizard tools.
After you have created your own queries, you can link them to a required print layout.
for user reports.Look at:
Tools --> Queries --> Query Print Layout
Set there your query reports.
Printing User-Defined Queries
After you had linked a user-defined query to a user report template, you can now print it
according to its linked print layout.
There are two ways for printing your user-defined queries.
1. Using the Query Print Layout window:
Select from the upper menu Tools 􀃆 Queries 􀃆 Query Print Layout.
Click the Reports tab page.
Click to highlight the required query you would like to print.
Click on the printer icon or select from the upper menu File 􀃆 Print.
The user-defined query is printed according to its linked print layout.
2. Using the Queries Manager window:
Click the Queries Manager icon on the upper tool bar.
Click to highlight the required query you would like to print.
Click on the printer icon or select from the upper menu File 􀃆 Print.
The user-defined query is printed according to its linked print layout.
Note! You can also print preview user-defined queries. Do so by selecting the Print
Preview option as described in the methods above for printing your query.
Btw, you could search the manual training files relate to query PLD in http://www.service.sap.com/smb
Rgds, -
ICal won't show or print calendar in 5 day per week view
Even though I have checked the option under preferences to view my calendar with 5 days per week, it still shows on screen and prints with 7 days per week. Anyone have any ideas to remedy this?
Thanks-
Stacyyes there is a problem with the web view formerly published pages timing out. that I need answers to myself.
regarding losing the option to publish in ical 4, what happened is when you upgraded your mobile me calendars it took all your published "on my mac " calendars and stored them at me.com which for now has no web view associated with them-they can only be shared by subscription.look at you ical and you'll see all your calendars now under [email protected] here's the work around:make sure her availability calendar is up to date. in ical go to file>new calendar>on my mac. give it the exact name of the one you had published. now select that calendar from me.com go to file>export-export the .ics file to the desktop-now go the your newly created "on my mac" calendar and import that file.-now with the "on my mac" calendar ical will allow you once again to publish. and if you kept the name exactly the same it should have the same web address-now if will only stop timing out! -
How to print Warranty (Duration) on Delivery Note using PLD
Hi,
How can I print Warranty (No. of Months) on Delivery Note using PLD. Warranty is already defined in a service template which is assigned to Item Master record.
when i try to print "duration" from OCTT is shows all the duration values set in all service templates with the combination of all the items in the delivery note. Please help me. I am working on SAP B1 2007 A PL47.Hi
Its Very Easy just Follow the Steps:
Create One DB field in Repetative area0 - Table -octt(contract Temp) Column- Duration(Duration of Coverage)
Check the Item code Field or Item description field for EX( F_123), then in Duration DB field - Go to Properties -Field in that - General - Lint to - connect the ( F_123), code Field or Item description field for EX( F_123),
So it will show automatically Duration of the Item which was connected in master data.
It works perfectly in 2007B PL 10.
If issue Resolved pls close the thread
Giri -
SG printed as SG instead of the whole name Singapore whrn using PLD
Good Afternoon,
Please guides us on any set up requirement.
We encounter an error in PLD. When bussiness partner has bill to address in SG. our PLD is printing this country as SG intead of the whole name Singapore
We currently using 2005B singapore Localization.
Regards,
AmyHi ,
u have to change the address format in administration ,
there u have to select the country field and check the description check box.
Then u can see the singapore.
rgds,
Premraj -
HI,
I did not (nor did anyone in my household)purchace this app how can I get a refund? My ipod touch is a 3rd gen.so it does not have a camera. I did buy a camera app one day last week only to find I could not use it. This particular purchace was $1.98.You can try contacting apple customer service http://www.apple.com/contact but usually all app purchases are final and not refundable.
-
My iCal display shows the week beginning on Mondays, but when I print it, the week starts on Tuesdays. How can I fix this?
Grrrrr only just upgraded to Yosemite and I gather from the above posts that this glitch has still not been sorted out! Have to go to settings and set start of week to Sunday to get it to print starting Monday - that's mad! Come on Apple sort it out. Have to keep switching back and forth as I have to print out iCal for my accounts. Cross face
-
Changing first day of week in Calendar help
Hi,
I want to change the first day of week from Monday to Sunday in Webdynpro ABAP screen's default calendar help. I implemented BADI CALENDAR_DEFINITION to change the first day of week, it worked for SAP GUI calendar help but not working for WebDynpro ABAP screen.
Thanks,
AlokHi,
Try using the data type TVDIR-GENDATE for date field. It will populate serach help Calendar and it should trigger the BADI from web dynpro also.
Refer SAP Help. It is pointing to the same BADI.
http://help.sap.com/saphelp_nwpi711/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/frameset.htm
Thanks,
Jyothi
Maybe you are looking for
-
Stock Take posting with negative inventory
Hi All, I have the following problem. I did a stock take on the 31/07/2008 and updated the counted quantities. The stock take has not yet been posted. If I now want to post the stock take I go into the "Stock Posting" screen and enter my date at the
-
ITunes says "the disk John's ipod cannot be read from or written to"
it also says "required file can't be found" hp pavillion mx70
-
Where can I purchase a sleeve that fits well on my MacBook Pro with Retina display?
I have been looking for one, but all that I find are ones originally designed for the old 15" MacBook Pro. I want one that is made for the new, thinner MacBook. Every time I think that I have found one, I read the reviews and they say that it reall
-
Validation Rule for trading partner
Frnds I am writing validation for trading parter with below details. Prerequsite BSEG-HKONT IN ZIC_ACCT Check BKPF-AWTYP = 'BKPF' AND BSEG-VBUND <> '' Error Specify Trading Partner for intercompany accounts I have created above validation at call up
-
How to Access the Dynamically created form element
Hi friends, I have generated a dynamic form in flex using xml and i want to save the all the elements of the form with there label and entered data in the formItem. so i m getting how to save the data. anybody have idea about this????? Thanking you G