Message at start and end of page load
Hello,
I have a page with a tabular form and a display region.
The tabular form has many rows and the region contains the outcome of
some SQL that can take some time to process.
As a result,the complete page takes a rather long time to load
(or maybe its just apex.oracle.com with too many users).
I need to inform the user at the start of page load to wait until
the page has loaded completely, a message like
"Please wait.." at the start.
When the page has loaded completely,another message to inform
the user that the form is ready.
I tried placing a dummy PL/SQL page process in the "after region"
that simply says "RETURN;" and a success message to inform that the
page has loaded,but the message does not display.
Any suggestions please.
Thanks
Leckraj
Hi
Thanks for the link.
Is it apex.oracle.com but at times things seems to grind to a halt,
and I was planning a demo there. This will help (if it works!)
Regards
Leckraj
Similar Messages
-
XML Publisher pdf output need each page wise start and end number
Hi ,
I have xml publisher out put in PDF. Now i need on each page header and detail part.
In header for each page it should repeat and should be print the min and maximam number of the columns.
I mean in the header start and end number of the column value for that particular page.
I did many ways but there is no luck.
Can you please suggest me how to do.
Thanks
Sampathpls give me reply on this if any body have the answer
-
Apple home start page will not start and games will not load with flash.
Apple home start page will not start and games will not load with flash.
Never mind...I just figured it out. Restore windows when quitting box in Gen Prefs must be unchecked. To many new little things.
-
0Person to 0employee loading, how to handle start and end date
Hi
I need help on some basic understanding of time dependent master data object.
In my scenario i am loading 0employee and 0Person from R/3. I need to update 0employee from 0person.
0employee
BEGDA ENDDA PERNR Position....................So many fields
10.10.2001 10.10.2004 8000123 Associate
11.10.2004 10.10.2008 8000123 Consultant
11.10.2008 31.12.9999 8000123 Senior Consultant
0Person
BEGDA ENDDA PERNR City....................So many fields
10.10.2001 10.10.2003 8000123 Singapore
11.10.2003 10.10.2007 8000123 Tokyo
11.10.2007 31.12.9999 8000123 Newyork
As the begining and end date are different i can't simply read City from 0person into 0employee. If i go for checking the city for the start and end date in 0employee, i will get multiple records ( If try to get city for 0employee's first record, i will get 2 city Singapore and Tokyo).
Please help me out how to handle this ...... i think i am missing somelink somewhere
Thanks
Tripple kHi Srini
Yes i need to have parallel flow for both and in the cube where my reporting will be on monthly basis i need to read these 2 master data and get the required attributes ( considering last/first day of that month as per the requirement).......but i am just wondering this is common scenario....while there are so many threads written for populating 0employee from 0person......don't they have such requirement.....
Thanks
Tripple k -
Reduce Working Days by Emp Start and End Dates
I'm banging my head trying to get this working. The set-up:
DimResources table with various employee information including a Start and End Date.
A Calendar table with FullDate, Year, Quarter....WorkingDays (1 for working and 0 for non-working) and WorkingDayNumber (working days increased by 1, weekends are not).
Page View report with page view filters for Business, Role, Month, Week, Year.
In the calculation the denominator is total working days for the period * 8. Works great. Further reduced by any submitted time off. Again, so far so good. The part I'm having trouble with is trying to further reduce total working days by
the number of days the person wasn't available in a month, defined by the person's start or end date.
The calculated field works great when only 1 person is selected. As soon as more than 1 person is selected or the slicer is cleared, an error is thrown.
Any ideas on what is wrong or better ways to accomplish what's needed?
TotalWorkingDays2CF=CALCULATE
SUM(Calendar[WorkingDays]),
FILTER(Calendar,Calendar[WorkingDays]=1),
Calendar, DATESBETWEEN(Calendar[FullDate],SUM(DimResources[Start Date]),SUM(DimResources[End Date]))
Error:
<detail>
<ErrorCode>rsErrorExecutingCommand</ErrorCode>
<Message>Query couldn't run for dataset 'Tablix41DataSet'.</Message>
<ProductName>Power View</ProductName>
<ProductVersion>11.0.2150.3</ProductVersion>
<MoreInfo>MdxScript(Model) (10, 27) Calculation error in measure 'Calendar'[TotalWorkingDays2CF]: An invalid numeric representation of a date value was encountered.</MoreInfo>
</detail>
Dennis DeRobertisok, but this is not a running total but just a sub-total/grand-total
so what you can do is the following:
create two measures - first calculate the workdays per ressourcen and second use SUMX() to get the sub-/grand-total if multiple employees are selected (e.g. subgroups, groups,division, etc)
WorkdaysRessource:=CALCULATE(
COUNTROWS('Date'),
FILTER('Date',
'Date'[Date] >= CALCULATE(MIN('DimResources'[Start Date]))
&& 'Date'[Date] <= CALCULATE(MIN('DimResources'[End Date])))
Workdays:=CALCULATE:=SUMX(
'DimResources',
[WorkdaysRessource]
hth,
gerhard
Gerhard Brueckl
blogging @ http://blog.gbrueckl.at
working @ http://www.pmOne.com -
Define the start and end dates of an assigned academic period in fee calc.
Define the start and end dates of an assigned academic period
Message no. HRPIQ00ACCOUNTING132
Diagnosis
The academic calendar assigned to the top organizational unit does not contain a start or end date for the academic period (academic year and session) assigned to fee calculation period Z000.
System Response
The system will skip fee calculation period Z000 and continue processing with the next fee calculation period.
Procedure
1. Check which academic calendar is assigned to the top organizational unit.
2. Check which academic period is assigned to fee calculation period Z000. You check this setting in Customizing for Campus Management in the IMG activity Assign Academic Years and Sessions to Fee Calculation Periods.
3. In this academic calendar, create the start and end dates of the relevant academic period using standard time limit 0100 (standard duration of academic period) or a corresponding user-defined time limit.
For more information, see
Define Top Organizational Unit
Define Mandatory Time Limits for Academic Calendar
please give me the needful information to solve this problem.
Regards
Arun RaiArun,
Have you looked in the Student Accounting Cookbook
http://www.sdn.sap.com/irj/scn/advancedsearch?query=studentaccountingcookbook on page 13?
Page 1-18 will help you setup the Oranizational unit, the academic calendar and the modules.
Bev beck -
Project Start and End Features - Can Captivate Phone Home and Expire ?
Hi,
I am looking at selling a course which the client will host for a limited time
We want the course to expire and we would like to receive anonymous user data back with their permission.
Send data back to use : Phoning home
I was looking at the Project->start and end-> Project end options-> execute javascript
With our clients permission could we use this to open a URL and phone home or would we crash into a firewall and burst into flames ?
Why ?
============
We want to monitor anonymous data such as time on course , score and number of users to improve the course for all customers.
My other thought was to use this widget
http://captivatedev.com/shop/adobe-captivate-6-x-google-lms-widget-with-email-reporting/
Maybe I can run this at the same time as my customers normal LMS
Expire
I was looking at the Project->start and end-> Project expiry date.
Is this relatively secure and stable ?
Our other alternative was to throw a widget in which said this course has expired
Or could I have the course check a website to confirm the course is licensed ?
Any ideas or advice would be appreciated
rgds Renovator
Message was edited by: renovator99Hi Rod,
Thank-you for your reply from Western Australia ( which I just realized is the closest point to Madagascar and King Julian)
I like the graphs on A3C but
http://blogs.adobe.com/captivate/2012/06/course-companion-for-adobe-captivate-6.html
- I couldn't work out how to get the A3C viewer to it display more than the first 20 pages.
- it had a 3 month limit on the course based on an Adobe comment on the blog
http://blogs.adobe.com/captivate/2012/06/course-companion-for-adobe-captivate-6.html
- I wasn't sure whether the reporting works with advanced actions because some of the reports run on item name
- Nobody seems to be commenting on it on the forums :-)
- There was a distraction % on the table which I couldn't work out what it was
- it was unclear what port had to be open for the A3C communication
rgds Paul -
XML document structures must start and end within the same entity
Hi there,
I'm working with a client/server application and using SaxParser for reading in xml. I get the SaxParserException: XML document structures must start and end within the same entity. I understand what that means, but it isn't applicable! The xml data being used is well-formed. I checked the well-formedness with Stylus Studio to make sure. Here's the data:
<?xml version='1.0' encoding='UTF-8'?>
<vcmessage>
<vcsource>3</vcsource>
<processevent>16</processevent>
<shape>
<llindex>0</llindex>
<shapetype>9</shapetype>
<shapeproperties>
<shapelocation>
<xcoord>54</xcoord>
<ycoord>184</ycoord>
</shapelocation>
<bounds>
<width>24</width>
<height>24</height>
</bounds>
<fgcolor>
<fgred>0</fgred>
<fggreen>0</fggreen>
<fgblue>0</fgblue>
</fgcolor>
<bgcolor>
<bgred>255</bgred>
<bggreen>255</bggreen>
<bgblue>255</bgblue>
</bgcolor>
<thickness>1</thickness>
<isfilled>false</isfilled>
</shapeproperties>
</shape>
</vcmessage>The parser generally stops around the </bgcolor> tag.
I'm using Eclypse as my IDE. I'm wondering if there's something wrong with it? Or maybe there's something wrong with the class I'm using for reading in the XML? Followng is the class.
Please advise,
Alan
package vcclient;
import java.io.*;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
import javax.xml.parsers.*;
public class XMLDocumentReader extends DefaultHandler
private VCClient client = null;
private Writer out;
private String lineEnd = System.getProperty("line.separator");
private boolean haveSourceType = false;
private boolean haveUserName = false;
private boolean haveMessage = false;
private boolean haveProcessEvent = false;
private boolean haveLinkedListIndex = false;
private boolean haveOpeningShapePropertiesTag = false;
private boolean haveShapeType = false;
private boolean haveOpeningShapeLocationTag = false;
private boolean haveShapeLocation = false;
private boolean haveOpeningXCoordTag = false;
private boolean haveOpeningYCoordTag = false;
private boolean haveOpeningBoundsTag = false;
private boolean haveBoundsWidth = false;
private boolean haveBoundsHeight = false;
private boolean haveOpeningFGColorTag = false;
private boolean haveOpeningBGColorTag = false;
private boolean haveOpeningThicknessTag = false;
private boolean haveOpeningIsFilledTag = false;
private boolean haveOpeningImageDataTag = false;
private boolean haveOpeningTextDataTag = false;
private boolean haveFGRed = false;
private boolean haveFGGreen = false;
private boolean haveFGBlue = false;
private boolean haveBGRed = false;
private boolean haveBGGreen = false;
private boolean haveBGBlue = false;
private boolean haveThickness = false;
private boolean haveIsFilled = false;
private boolean haveImageData = false;
private boolean haveTextData = false;
private VCMessage vcmessage = null;
public XMLDocumentReader(VCClient value)
client = value;
vcmessage = new VCMessage();
public VCMessage getVCMessage()
return vcmessage;
public boolean haveSourceType()
return haveSourceType;
public boolean ParseXML(InputStream stream)
boolean success = false;
// Use the default (non-validating) parser
SAXParserFactory factory = SAXParserFactory.newInstance();
try
// Set up output stream
out = new OutputStreamWriter(System.out, "UTF-8");
// Parse the input
SAXParser saxParser = factory.newSAXParser();
saxParser.parse( stream, this );
success = true;
catch (SAXParseException spe)
// Error generated by the parser
System.out.println("\n** Parsing error"
+ ", line " + spe.getLineNumber()
+ ", uri " + spe.getSystemId());
System.out.println(" " + spe.getMessage() );
// Unpack the delivered exception to get the exception it contains
Exception x = spe;
if (spe.getException() != null)
x = spe.getException();
x.printStackTrace();
return success;
catch (SAXException sxe)
// Error generated by this application
// (or a parser-initialization error)
Exception x = sxe;
if (sxe.getException() != null)
x = sxe.getException();
x.printStackTrace();
return success;
catch (ParserConfigurationException pce)
// Parser with specified options can't be built
pce.printStackTrace();
return success;
catch (Throwable t)
t.printStackTrace();
return success;
return success;
public void startDocument()throws SAXException
emit("<?xml version='1.0' encoding='UTF-8'?>");
nl();
public void endDocument()throws SAXException
try {
nl();
out.flush();
} catch (IOException e) {
throw new SAXException("I/O error", e);
public void startElement(String namespaceURI,
String lName, // local name
String qName, // qualified name
Attributes attrs)throws SAXException
String eName = lName; // element name
if (eName.equals(""))
eName = qName; // namespaceAware = false
emit("<"+eName);
if (attrs != null) {
for (int i = 0; i < attrs.getLength(); i++) {
String aName = attrs.getLocalName(i); // Attr name
if (aName.equals("")) aName = attrs.getQName(i);
emit(" ");
emit(aName + "=\"" + attrs.getValue(i) + "\"");
emit(">");
if(makeStartTag(eName).equals(Constants.OPENING_SHAPEPROPERTIES))
haveOpeningShapePropertiesTag = true;
else if(makeStartTag(eName).equals(Constants.OPENING_SHAPELOCATION))
haveOpeningShapeLocationTag = true;
else if(makeStartTag(eName).equals(Constants.OPENING_BOUNDS))
haveOpeningBoundsTag = true;
else if(makeStartTag(eName).equals(Constants.OPENING_FGCOLOR))
haveOpeningFGColorTag = true;
else if(makeStartTag(eName).equals(Constants.OPENING_BGCOLOR))
haveOpeningBGColorTag = true;
else if(makeStartTag(eName).equals(Constants.OPENING_BGGREEN))
System.out.println("See BGGreen");
else if(makeStartTag(eName).equals(Constants.OPENING_BGBLUE))
System.out.println("See BGBlue");
else if(makeStartTag(eName).equals(Constants.OPENING_THICKNESS))
haveOpeningThicknessTag = true;
else if(makeStartTag(eName).equals(Constants.OPENING_ISFILLED))
haveOpeningIsFilledTag = true;
else if(makeStartTag(eName).equals(Constants.OPENING_IMAGEDATA))
haveOpeningImageDataTag = true;
else if(makeStartTag(eName).equals(Constants.OPENING_TEXTDATA))
haveOpeningTextDataTag = true;
public void endElement(String namespaceURI,
String sName, // simple name
String qName // qualified name
)throws SAXException
if(sName.equals("") && !qName.equals(""))
sName = qName;
emit("</"+sName+">");
else
emit("</"+sName+">");
if(makeEndTag(sName).equals(Constants.CLOSING_SOURCE_TYPE))
haveSourceType = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_USER))
haveUserName = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_MESSAGE))
haveMessage = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_PROCESSEVENT))
haveProcessEvent = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_LINKEDLISTINDEX))
haveLinkedListIndex = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_SHAPETYPE))
haveShapeType = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_SHAPELOCATION))
haveOpeningShapeLocationTag = false;
else if(makeEndTag(sName).equals(Constants.CLOSING_WIDTH))
haveBoundsWidth = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_HEIGHT))
haveBoundsHeight = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_BOUNDS))
haveOpeningBoundsTag = false;
else if(makeEndTag(sName).equals(Constants.CLOSING_FGRED))
haveFGRed = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_FGGREEN))
haveFGGreen = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_FGBLUE))
haveFGBlue = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_FGCOLOR))
haveOpeningFGColorTag = false;
else if(makeEndTag(sName).equals(Constants.CLOSING_BGRED))
haveBGRed = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_BGGREEN))
haveBGGreen = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_BGBLUE))
System.out.println("See closing BGBlue");
haveBGBlue = true;
else if(makeEndTag(sName).equals(Constants.CLOSING_BGCOLOR))
haveOpeningBGColorTag = false;
else if(makeEndTag(sName).equals(Constants.CLOSING_THICKNESS))
System.out.println("XMLDocumentReader: Step2");
haveOpeningThicknessTag = false;
else if(makeEndTag(sName).equals(Constants.CLOSING_ISFILLED))
haveOpeningIsFilledTag = false;
else if(makeEndTag(sName).equals(Constants.CLOSING_IMAGEDATA))
haveOpeningImageDataTag = false;
else if(makeEndTag(sName).equals(Constants.CLOSING_TEXTDATA))
haveOpeningTextDataTag = false;
private String makeStartTag(String tag_name)
String start = "<";
String end = ">";
return start.concat(tag_name).concat(end);
private String makeEndTag(String tag_name)
String start = "</";
String end = ">";
return start.concat(tag_name).concat(end);
public void characters(char buf[], int offset, int len)throws SAXException
String s = new String(buf, offset, len);
if(haveSourceType == false)
if(vcmessage.getSourceType() == null)
try
if(s.equals(""))return;
int sourcetype = Integer.parseInt(s);
vcmessage.setSourceType(sourcetype);
catch(NumberFormatException nfe){}
else if(vcmessage.getSourceType() == SourceType.CHAT_SOURCE)
if(vcmessage.getSourceType() == SourceType.CHAT_SOURCE && haveUserName == false)
vcmessage.setUserName(s);
else if(vcmessage.getSourceType() == SourceType.CHAT_SOURCE && haveMessage == false)
//When the parser encounters interpreted characters like: & or <,
//then this method gets invoked more than once for the whole message.
//Therefore, we need to concatonate each portion of the message. The
//following method call automatically concatonates.
vcmessage.concatMessage(s);
else if(vcmessage.getSourceType() == SourceType.WHITEBOARD_SOURCE)
if(haveProcessEvent == false)
try
vcmessage.setProcessEvent(Integer.parseInt(s));
catch(NumberFormatException nfe){}
else if(haveLinkedListIndex == false)
try
vcmessage.setLinkedListIndex(Integer.parseInt(s));
catch(NumberFormatException nfe){}
else if(haveShapeType == false)
try
vcmessage.setShapeType(Integer.parseInt(s));
catch(NumberFormatException nfe){}
if(haveOpeningShapePropertiesTag)
if(haveOpeningShapeLocationTag)
if(haveOpeningXCoordTag)
try
vcmessage.setXCoordinate(Integer.parseInt(s));
catch(NumberFormatException nfe){}
else if(haveOpeningYCoordTag)
try
vcmessage.setYCoordinate(Integer.parseInt(s));
//reset all flags for ShapeLocation, X and Y coordinates
haveOpeningXCoordTag = false;
haveOpeningYCoordTag = false;
//haveOpeningShapeLocationTag = false;
catch(NumberFormatException nfe){}
else if(haveOpeningBoundsTag)
if(haveBoundsWidth == false)
try
vcmessage.setBoundsWidth(Integer.parseInt(s));
catch(NumberFormatException nfe){}
else if(haveBoundsHeight == false)
try
vcmessage.setBoundsHeight(Integer.parseInt(s));
//reset flag
//haveOpeningBoundsTag = false;
catch(NumberFormatException nfe){}
else if(haveOpeningFGColorTag)
if(haveFGRed == false)
try
vcmessage.setFGRed(Integer.parseInt(s));
catch(NumberFormatException nfe){}
else if(haveFGGreen == false)
try
vcmessage.setFGGreen(Integer.parseInt(s));
catch(NumberFormatException nfe){}
else if(haveFGBlue == false)
try
vcmessage.setFGBlue(Integer.parseInt(s));
//reset flag
//haveOpeningFGColorTag = false;
catch(NumberFormatException nfe){}
else if(haveOpeningBGColorTag)
if(haveBGRed == false)
try
vcmessage.setBGRed(Integer.parseInt(s));
catch(NumberFormatException nfe){}
else if(haveBGGreen == false)
try
vcmessage.setBGGreen(Integer.parseInt(s));
catch(NumberFormatException nfe){}
else if(haveBGBlue == false)
{ System.out.println("getting BGBlue data");
try
vcmessage.setBGBlue(Integer.parseInt(s));
//reset flag
//haveOpeningBGColorTag = false;
catch(NumberFormatException nfe){}
else if(haveOpeningThicknessTag)
try
vcmessage.setThickness(Integer.parseInt(s));
catch(NumberFormatException nfe){}
else if(haveOpeningIsFilledTag)
vcmessage.setIsFilled(s);
else if(haveOpeningImageDataTag && vcmessage.getProcessEvent() == org.jcanvas.comm.ProcessEvent.MODIFY)
vcmessage.setBase64ImageData(s);
else if(haveOpeningTextDataTag && vcmessage.getProcessEvent() == org.jcanvas.comm.ProcessEvent.MODIFY)
vcmessage.setTextData(s);
//reset
haveOpeningShapePropertiesTag = false;
emit(s);
//===========================================================
// Utility Methods ...
//===========================================================
// Wrap I/O exceptions in SAX exceptions, to
// suit handler signature requirements
private void emit(String s)throws SAXException
try {
out.write(s);
out.flush();
} catch (IOException e) {
throw new SAXException("I/O error", e);
// Start a new line
private void nl()throws SAXException
try {
out.write(lineEnd);
} catch (IOException e) {
throw new SAXException("I/O error", e);
//treat validation errors as fatal
public void error(SAXParseException e)
throws SAXParseException
throw e;
// dump warnings too
public void warning(SAXParseException err)
throws SAXParseException
System.out.println("** Warning"
+ ", line " + err.getLineNumber()
+ ", uri " + err.getSystemId());
System.out.println(" " + err.getMessage());
}Just out of curiosity what happens if you append a space to the end of the XML document?
-
Changing Media Start and End of Logged Clips
This should be really simple, and I'm sure I'm just overlooking something. I am trying to recapture some clips in Final Cut Pro and it was fine until I came to a clip that gave me the "timecode error - pre roll, post roll, etc" message. The Media Start on the problematic clip is at 00:00:01:04 - I want to manually change this time to allow pre-roll. The timecode in the "In" and "Out" sections isn't making a difference and seems unrelated - no matter what I put it to.
So I just want to edit the Media Start time as I'm sure this would remedy my timecode error when trying to capture... but I can't edit that field. What am I doing wrong? How do I change the Media Start time?
I could recapture the whole tape independently but I already have sequences edited based on my previously logged clip. Any help would be greatly appreciated. Thanks!If you are re-capturing then you must have used Capture Now to get the clip first time round or you would have run into the same trouble with pre-roll. You'll have to capture the clip again using the same method. Of course, the chances of getting the same start and end code using Capture Now are slim, but if you can get in earlier and out later then you should be able to manually re-connect the clip.
rh -
BT Broadband Contract Start and End Date
Where can I find my contract start and end date online ?
conrad wrote:
You can, by starting a new order for BB and entering phone no + post code - no need for email address - you then go to choose a package page which shows your current package details at the top of the page
Obviously you don't need to go any further than that page
Conrad, thank you for your suggestion. I gave your suggestion a try but initially got a technical error and then appeared to be getting closer and closer to completing an order without the required information coming up so I chickened out. This also was fraught with difficulty as the cancel button seemed ineffective.
I think I may have to use imjolly suggestions. -
Problems with replace file name with starting and ending Bates number
When applying Bates numbers to a set of Acrobat pdf files I am unable to replace file names with the starting and ending Bates number. This is important
for me in a legal application.
The Bates numbers are applied to each page of each of file without any problem as required.
The Bates log file indicates that the files have been renamed as I wanted.
I am running Adobe Acrobat Professional 9 with the update to 9.1.9 and Windows XP Service Pack 3 (the last or current service pack)
In all other respects Adobe Acrobat 9 is running to my satisfaction.
Has anyone else had this problem and found a solution?
HRKExonThanks for asking the question, I hadn't heard of Bates numbers before and this gave me a chance to look up something new.
When I googled for ' bates number legal index ' I found this document:
http://www.adobe.com/devnet/acrobat/pdfs/batesnumbering9.pdf
Maybe that will help.
Scott Bonacker CPA
Springfield, MO -
How to determine current period start and end dates
Hi All,
If given previous period start date and end date, how to determine current period start date and end date?
Suppose if given previous period start and end dates are 12/28/08 - 01/30/09, then current period start date and end date will be 01/30/09 - 02/27/09. (where 12 is the previous period, 28 is the day, 08 is the year......)
Can you please suggest an FM to determine the current period dates?
Thanks & Regards
Gowthami>
gowthami karunya wrote:
> If given previous period start date and end date, how to determine current period start date and end date?
> Suppose if given previous period start and end dates are 12/28/08 - 01/30/09, then current period start date and end date will be 01/30/09 - 02/27/09. (where 12 is the previous period, 28 is the day, 08 is the year......)
Hello,
I am assuming you have the Company Code with you & proposing this solution.
TABLES: bkpf.
PARAMETERS:
p_bukrs TYPE bukrs.
SELECT-OPTIONS:
s_date FOR bkpf-budat.
DATA :
l_perio LIKE bkpf-monat,
l_poper TYPE poper,
l_year LIKE bkpf-gjahr,
l_spmon TYPE spmon,
l_periv TYPE periv,
l_date1 TYPE datum,
l_date2 TYPE datum.
CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
EXPORTING
companycodeid = p_bukrs
posting_date = s_date-high
IMPORTING
fiscal_year = l_year
fiscal_period = l_perio.
CONCATENATE l_year l_perio INTO l_spmon.
* Get the next period
IF l_perio < 12.
l_perio = l_perio + 1.
ELSE.
l_perio = '01'.
l_year = l_year + 1.
ENDIF.
MOVE l_perio TO l_poper.
SELECT SINGLE periv INTO l_periv
FROM t001
WHERE bukrs = p_bukrs.
IF sy-subrc = 0.
CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = l_year
i_periv = l_periv
i_poper = l_poper
IMPORTING
e_date = l_date1
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = l_year
i_periv = l_periv
i_poper = l_poper
IMPORTING
e_date = l_date2
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE: / l_date1, l_date2.
ENDIF. -
Timeline removing start and end of clips
Apologies if this has been posted before - got through 20 of the 116 pages to look for it!
iMovie 6.0.1 appears to have a bug when dragging clips from clip pane into timeline. Start and end of clip are cut off. Same occurs when adding transition in timeline. This does not happen when working in clip viewer rather than timeline, though there is still a small loss when adding transitions (this probably accounts for a previous posting complaining about loss of audio synch when adding transitions).
iMac, PowerMac6,1 PPC 1GHz Mac OS X (10.4.6)That reminds me of a slightly different version:
SQL> with t as (
2 select 201050 yw from dual union
3 select 201051 from dual union
4 select 201052 from dual union
5 select 201101 from dual union
6 select 201102 from dual
7 )
8 --
9 --
10 --
11 select trunc(trunc(to_date(substr(yw, 1,4), 'yyyy'), 'y')
12 + (substr(yw, 5,2)
13 + (case
14 when to_char(trunc(to_date(substr(yw, 1,4), 'yyyy'),'y'),'iw') ='01'
15 then -1
16 else 0
17 end
18 )
19 )*7
20 , 'iw'
21 )
22 from t;
TRUNC(TRUN
13-12-2010
20-12-2010
27-12-2010
03-01-2011
10-01-2011
5 rows selected.
Found that one here about a year ago: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:509645007430#tom69446106735028
Needed to use that approach as well to deal with yyyymm format one application I worked on then. -
GREP remove white space at start and end of paragraph
Hi,
Question for the GREP experts: I'd like to construct a GREP expression
that will remove all white space at the start AND end of a paragraph in
one go.
What I've got so far works, but you have to run it twice to work:
I'll try and post it at the bottom of this message, but since I'm
posting via email it probably will come out scrambled, so I'll describe
what I've got so far:
Two expressions in parenthesis separated by the OR character (pipe). The
first expression searches for one or more space, tab or white-space at
the beginning of a paragraph.
The second expression searches for the same at the end of the paragraph.
Each expression is in parenthesis, and the two groups are separated, as
I say, by an OR sign.
However, this has to be run twice for it to work. For it removes all the
spaces at the start of paragraphs, then when run again all the spaces at
the end.
Any ideas how to get it to work in one go?
Thanks,
Ariel
The expression is:
(^[ \ts]+)|([ \ts)+$)Arïel, your GREP appears a bit mashed up in the forum -- was it something like this?
(^[\t\s]+)|([\t\s]+$)
If so:
1. "\s" is "any whitespace", so you would not need to include "\t" as well. But I would not recommend this, as a HUGE disadvantage of "\s" is it also includes hard and soft returns: double returns are seen as "any whitespace" (the first return) and then "end of line" (the second return), and the first is removed. ("Disadvantage" is subject to what you want to accomplish, by the way. I usually don't want this so I list each possible whitespace character that may be removed.)
2. The parentheses around each 'section' of this GREP are not necessary. The OR operator is 'highest level' -- in this case, since you have an entire left part OR an entire right part, you can omit all parentheses.
3. This works for me ...
^[\t ]+|[\t ]+$
... and despite Peter's not-too-shabby suggestion, I would still recommend using mine instead. It's easier on ID (since it only has to remove text, not "remove-and-then-insert-again" (which is exactly what using the $.. operators do), and, more importantly, there are limits to what $1 can 'pick up'. I can't recall the special circumstances, but I have had text attributes shift, and footnotes and anchored objects disappear/being mucked up/otherwise mangled. -
PowerShell - Get-MessageTrackingReport how to specify start and end time of current process
could you please help me? I need to specify start and end time of current process with Get-MessageTrackingReport command. I know you
can do it with Get-MessageTrackingLog:
$start = (Get-Date).Addhours(-1)
$end = (Get-Date)
Get-MessageTrackingLog -EvenId Receive -Start $start -End $end
But for my purposes I really need to do it with Get-MessageTrackingReport command, so how can I do it?
Thanks in advance!That's not the context you would use
Get-MessageTrackingReport in,
Get-MessageTrackingReport is used to get extra information on messages that you have found in the MessageTracking log using Search-MessageTrackingReport . That's why the most common example you see will look like
$Temp = Search-MessageTrackingReport -Identity "David Jones" -Recipients "[email protected]"
Get-MessageTrackingReport -Identity $Temp.MessageTrackingReportID -ReportTemplate Summary
The most important parameter for that cmdlet and the reason it won't work like your trying to use it is the
Identity ""The Identity parameter specifies the ID of the message tracking report ID to retrieve.You should run the Search-MessageTrackingReport cmdlet
to find the message tracking report ID for the specific message you're tracking, and then pass the value of the MessageTrackingReportID field
to this parameter." see http://technet.microsoft.com/en-us/library/dd351082%28v=exchg.150%29.aspx
It's more appropriate to use Get-MessageTrackingLog when you want to search the log based on time or use
Search-MessageTrackingReport and then limit the results this returns before you pass the MessageTrackingReportId to get-MessageTrackingReport
Cheers
Glen
Maybe you are looking for
-
hi, I'm using windows server 2012 R2 and I was Just wondering how to make the Remote Desktop enable connection through domain\administrator before actually creating the domain... In other words, I wanted to create an Active Directory Domain User and
-
5d3 Working in LR4, But No Calibration Profiles?
I'm successfully using the DNG Converter 6.7 RC to get my 5d3 photos into LR4, but it appears the only profile available under Camera Calibration is Adobe Standard. Typically I like to start from Camera Neutral. Is this correct, or am I doing someth
-
Cannot login using ThinkVantage Fingerprint software
Hi, I cannot log in using my fingerprint reader. I am sure that fingerprint reader is OK, I sucessfully enrolled fingerprints. I enabled fingerprint login, when computer starts up, windows 7 message saying "Swipe your finger on green" shows up, but w
-
OIF SP errors when the mapped nameid is "NULL"
I have an OVD adapter that joins a Database that has the following key columns uid=security_code cn=individual_id ssoid=sso_code all the above columns will be in headers as Header vars. In the case if the UID(security_code) is NULL then the federatio
-
Fax Service crashing regularly
Hi, the Fax Service on my 2008 Server x64 crashes on about 30% of received faxes. The fax is received and put into the Queue folder. It is visible correctly in the inbox of Windows Fax and Scan. However it is never delivered by SMTP to the receiver c