Adding a specific date
hi again, instead of prolonging(add) my current date to a month, how do i prolong a specific date? for an example my expiry date is in a week that is december 16th, how do i get a date that is a month from 16th.
thnks in advance
Heya -- gonna try to answer everything in one post =)
tried it. what i got is this error --
C:\servlet\ExpiryDate.java:11: invalid method
declaration; return type required
public getDate() {
^
1 error
This was because you didn't specify what this method was returning. If you don't want it to return anything, make it void. Or perhaps you want it to return a Date object to be used in your main method.
import java.util.*;You don't need this import statement if you're specifying everything. That is, if you're using java.util.Date, you don't need to import java.util.*. If you do import java.util.*, then you'd only need to use Date in your code -- the compiler would assume you mean java.util.Date.
// Adding a month to the Calendar
objectdateToBeTested.add( java.util.Calendar.MONTH, 1 );
// Alternatively:
dateToBeTested.add( java.util.Calendar.DAY_OF_MONTH, 30 );Just to clarify: the "objectdateToBeTested" line (where'd the 'object' part come from? :) ) adds one month to the Calendar object. The "dateToBeTested" line adds 30 days to the Calendar object. I wasn't sure which one you wanted -- sometimes adding a month can be more or less than 30 days, so use only the one that makes sense for your application.
what if i do not want to specify the date. i mean hard coded the date. i want to get from some other source and set the date of the source to a month later.Right right. This is why I included the SimpleDateFormat object -- in the one I gave you, it's build to accept any String in the format: "MM-dd-yyyy". In the example I gave you, it used the String "12-16-2003". You can get this String anywhere, however. Let's say you're getting the string by calling a method getExpirationDate(), and let's assume that getExpirationDate() is returning a String in the format "MM-dd-yyyy". You could then use: "java.util.Date expirationDate = dateFormatter.parse( getExpirationDate() );" and expirationDate would then be initialized to the date returned by that method.
my actual question is do i need to throw an exception for using the dateFormatter to parse the date? met some error during compiling, asked me to throw or catch an exception.You do need to catch or throw an exception. The reason for this is what if you give the dateFormatter.parse( String dateStringToBeParsed ) method a String that isn't in the "MM-dd-yyyy" format? This would throw an exception, which means you need to let the program know how to handle that. Here's a working program:
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
public class ExpiryDate {
public static void main(String[] args) {
System.out.println ( getExpirationDateString() );
System.out.println ( getExpirationDatePlusOneMonth() );
public static Date getExpirationDatePlusOneMonth() {
SimpleDateFormat dateFormatter
= new SimpleDateFormat( "MM-dd-yyyy");
Date expirationDate = null;
try {
expirationDate = dateFormatter.parse(getExpirationDateString());
} catch (ParseException e) {
return null;
Calendar dateToBeTested = Calendar.getInstance();
// Initializing the Calendar object to the expiration
dateToBeTested.setTime(expirationDate);
// Adding a month to the Calendar
dateToBeTested.add(Calendar.MONTH, 1);
return dateToBeTested.getTime();
public static String getExpirationDateString() {
return "12-16-2003";
}Running this will give:
12-16-2003
Fri Jan 16 00:00:00 EST 2004
(The second line is formatted differently because it's printing out a Date object instead of a String object -- Date objects are displayed that way by default when printed. You can use the SimpleDateFormatter object to format the Date object into the "MM-dd-yyyy" format, but I'll leave that for later.)
Notice that the ParseException was caught -- the ParseException gets thrown if the String supplied to the parse method is invalid. In that case, the method returns null -- which seems valid to me: if you can't parse the String, it makes sense that the method should return nothing. That's the key to catching exceptions: handling possible errors gracefully.
Sorry -- this was a lot of info. Let me know if you need anything elaborated on =)
Jim
P.S. I made those methods static so you wouldn't have to create an object to call them. In this case, static means class-wide -- that is, those two methods, just like the main method, are not attached to one specific instance of the class. Hope that doesn't confuse everything.
Similar Messages
-
How to know the date you added a specific contact?
Hi,
Just wanted to knnow how to figure out when exactly i added a specific contact on my skype account...? I didn't find anything in the options etc...
Please help!
Thanks,
Chanot sure if there's such option (I think there's none), you can try to contact customer service as they may be able to provide you with such info, here's how;
How to Contact Skype Customer Service
CONTACT SKYPE CUSTOMER SERVICE | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUPICIOUS CALLS AND MESSAGES | WINDOWS PROBLEMS TROUBLESHOOTING | SKYPE DOWNLOAD LINKS
MORE TIPS, TRICKS AND UPDATES AT
skypefordummies.blogspot.com -
Prooject stock on specific date
is there any report so that we can see the project material with value on the specific date, beacuse mb5b is not displaying the value with special stock.
MB5B is the good report ..
U can copy & customize this report for adding new columns for value.. -
Issue found in EHS in using specification data import using process
Dear EHS community
Now using EHS classic for a long time a issue has been detected in EHS standard import. During maintenance of EHS data normally using CG02 the system is always using the default "Data origin" specified in customizing to be stored in EHS tables (e.g. ESTRH, ESTRI etc.). In standard process to import specification data one can define a different "Data origin". Now we are using an import file with default" data origin and executed the import. Now a strange effect has been detected (and not always) for update of identifiers. For the import purpose you must nominate at least one identifier. If the identifier is found then normally no update happens but only the value assignment data is inserted (or updated). If the identifier is not found it get be inserted on spec level in ESTRI. Now during the update the "Data origin" of the identifier present in the system (and which matched to identifier on file level) was changed but not the identifier as such. Any data record on value assignment level received the defautl data origin. Actually there is no explanation for this behaviour. If Default "Data origin" would be "SAP" (as the term) this value has been change to "Space". Any explanation of this effect is appreciated (or and idea regarding that).
C.B.
PS: analysis of change logs in EHS etc. executed so far clearly indictae that an "Update" happened on the identifier; but only the field SRSID is effected; EHS import is quite old and therefore very stable;
PPS: I found a thread taking about the import file:
spec import_inheritance data
Example shown thre is like:
+BS
+BV $ESTRH
SRSID EH&S
SUBID 000000385000
SUBCAT REAL_SUB
AUTHGRP EHS_PS
+EV
+BV $ESTRI
SRSID EH&S
IDTYPE NAM
IDCAT EHS_OLD
IDENT XY0002
ORD 0001
+EV
+BV SAP_EHS_1013_001
$ESTVA-SRSID EH&S
SAP_EHS_1013_001_VALUE N09.00101280
+EV
If you compare SAP helpt normally only at the"begining pof the file you will find "SRSID" Here this field is nominated often. On Level of ESTRH as well as ESTRI.
PPS: e.g. refer to: TCG56 EHS: Data Origin - SAP Table - ABAPDear Ralph
first thanks for feedback. Regarding content provider: we need to check that on deeper level
Regarding import may be my explanation was not good enough.
Imagine this case:
you have a specification in the system there you would like to add e.g. denisity data.. To do so you need at least one identifier which you must nominate during the import. As long as this identifier is "identical" in system and in the file this identifier should not be "changed/effected" etc. and only the additional data should be loaded, This was the process we used. Now we detected that this seems not to be the real effect. The identifier as part of the file is "updated" in EH&S. In the example above somebody used this logic:
+BV $ESTRI
SRSID EH&S
IDTYPE NAM
IDCAT EHS_OLD
IDENT XY0002
ORD 0001
+EV
Nearly the same is used in our process. Only difference ist, that we do not define the "SRSID". The same is true for any other data in the file. SRSID is nether specified.
What is happing now:
e.g. the "density" data is added with SRSID "EH&S". This effect is "normal". As by default SRSID should be EH&S (as this is defined as such in customizing) and because of the fact that at the top the ID is es well "EH&S". In the system we have the "XY0002" having SRSID EH&S. By using now this upload approach the only difference afterwards is tht kin th systeM; XY0002 does get "blank" as SRSID (and there is no data origin "blank" defined. Up to today my unertsanding was clearly: no update should happen in the identifier. This seems not to be the case. Is my understanding here different? Or is this SRSID in the load file is really mandatory in ESTRI level to avoid this effect. I hope that you can provide some feedback regarding this.
C.B.
PS: referring to: Example: Transfer File for Specifications - Basic Data and Tools (EHS-BD) - SAP Library
The header of import file should look like:
Comment
+C
Administrative section
Character standard
+SC
ISO-R/3
Identification (database name)
+ID
IUCLID
Format version
+V
2.21
Export date
+D
19960304
Key date for export
+VD
19960304
Set languages for export
+SL
E
Date format
+DF
DD.MM.YYYY
IN our case +ID = EH&S (as this is the value in export file)
IN this example this additional one is shown:
Begin table
+BV
$ESTRI
Table field
IDTYPE
NAM
Table field
IDCAT
IUPAC
Table field
IDENT
anisole
Table field
LANGU
E
Table field
OWNID
ID1
Therefore no SRSID is specified. And this is the data in our file (on high level) and the "only" change is that the identifer get "deleted" the SRSID -
Can I get the value closest to a specific date?
I wonder if it's possible to fetch a value from a table that is closest to a specific date. An example is that you want to fetch the value of 31 of May. This date does not exist instead I want to get the closest value to the 31 of May. It doesn't matter if it's an earlier date or later just the closest. Between doesn't work since I only have one date and I just want to get another date.
Sri Dhar,
In the following tests, I added quotes around &test_date that were necessary in order to enable the query to run. I also changed the date format to DD-MON-YYYY, because you should always include the full year, in order to avoid Y2K problems. I changed the nls_date_format to match, so that it could still do an implicit conversion. I also did a little formatting for readability. If either of your sub-queries does not return a row, as with the given test date of 31-MAY-2002, then your query returns no rows. However, each of the individual sub-queries does function properly. But, as you noted, you need to get the result all in one shot. If you use a different value for the test_date that allows both sub-queries to return rows, like 31-JAN-2002, then your query returns the correct result, but the cost is still extremely high.
SQL> -- test table and data:
SQL> CREATE TABLE user_objects2
2 AS
3 SELECT *
4 FROM user_objects
5 /
Table created.
SQL> -- test index:
SQL> CREATE INDEX user_objects2_created_idx
2 ON user_objects2 (created)
3 /
Index created.
SQL> -- test analysis:
SQL> ANALYZE TABLE user_objects2
2 COMPUTE STATISTICS
3 FOR TABLE
4 FOR ALL INDEXES
5 FOR ALL INDEXED COLUMNS
6 /
Table analyzed.
SQL> -- change date format for testing:
SQL> ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY'
2 /
Session altered.
SQL> -- accept date value for variable:
SQL> ACCEPT test_date PROMPT 'Enter test_date in format DD-MON-YYYY: '
Enter test_date in format DD-MON-YYYY: 31-MAY-2002
SQL> -- original query with quotes added around &test_date
SQL> -- and date format changed to DD-MON-YYYY
SQL> -- and some formatting for readability
SQL> -- (returns no rows when one sub-query returns no rows)
SQL> -- (returns correct result when both sub-queries return rows,
SQL> -- but cost is still high):
SQL> SELECT DECODE (LEAST (a.next_diff, b.prev_diff),
2 b.prev_diff, b.prev_date, a.next_date)
3 FROM (SELECT next_date,
4 TO_DATE (next_date, 'DD-MON-YYYY') -
5 TO_DATE ('&test_date', 'DD-MON-YYYY') next_diff
6 FROM (SELECT DISTINCT created next_date
7 FROM user_objects2
8 WHERE TRUNC (created) >= '&test_date'
9 ORDER BY created)
10 WHERE ROWNUM <= 1) a,
11 (SELECT prev_date,
12 TO_DATE ('&test_date', 'DD-MON-YYYY') -
13 TO_DATE (prev_date, 'DD-MON-YYYY') prev_diff
14 FROM (SELECT DISTINCT created prev_date
15 FROM user_objects2
16 WHERE TRUNC (created) < '&test_date'
17 ORDER BY created DESC)
18 WHERE ROWNUM <= 1) b
19 /
old 5: TO_DATE ('&test_date', 'DD-MON-YYYY') next_diff
new 5: TO_DATE ('31-MAY-2002', 'DD-MON-YYYY') next_diff
old 8: WHERE TRUNC (created) >= '&test_date'
new 8: WHERE TRUNC (created) >= '31-MAY-2002'
old 12: TO_DATE ('&test_date', 'DD-MON-YYYY') -
new 12: TO_DATE ('31-MAY-2002', 'DD-MON-YYYY') -
old 16: WHERE TRUNC (created) < '&test_date'
new 16: WHERE TRUNC (created) < '31-MAY-2002'
no rows selected
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=200 Card=1521 Bytes=
45630)
1 0 MERGE JOIN (CARTESIAN) (Cost=200 Card=1521 Bytes=45630)
2 1 VIEW (Cost=5 Card=39 Bytes=585)
3 2 COUNT (STOPKEY)
4 3 VIEW (Cost=5 Card=39 Bytes=351)
5 4 SORT (UNIQUE STOPKEY) (Cost=4 Card=39 Bytes=273)
6 5 TABLE ACCESS (FULL) OF 'USER_OBJECTS2' (Cost=2 C
ard=39 Bytes=273)
7 1 SORT (JOIN) (Cost=200 Card=39 Bytes=585)
8 7 VIEW
9 8 COUNT (STOPKEY)
10 9 VIEW (Cost=5 Card=39 Bytes=351)
11 10 SORT (ORDER BY STOPKEY) (Cost=5 Card=39 Bytes=27
3)
12 11 SORT (UNIQUE) (Cost=4 Card=39 Bytes=273)
13 12 TABLE ACCESS (FULL) OF 'USER_OBJECTS2' (Cost
=2 Card=39 Bytes=273)
SQL> -- individual subqueries return
SQL> -- correct results:
SQL> SELECT next_date,
2 TO_DATE (next_date, 'DD-MON-YYYY') -
3 TO_DATE ('&test_date', 'DD-MON-YYYY') next_diff
4 FROM (SELECT DISTINCT created next_date
5 FROM user_objects2
6 WHERE TRUNC (created) >= '&test_date'
7 ORDER BY created)
8 WHERE ROWNUM <= 1
9 /
old 3: TO_DATE ('&test_date', 'DD-MON-YYYY') next_diff
new 3: TO_DATE ('31-MAY-2002', 'DD-MON-YYYY') next_diff
old 6: WHERE TRUNC (created) >= '&test_date'
new 6: WHERE TRUNC (created) >= '31-MAY-2002'
no rows selected
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=5 Card=39 Bytes=351)
1 0 COUNT (STOPKEY)
2 1 VIEW (Cost=5 Card=39 Bytes=351)
3 2 SORT (UNIQUE STOPKEY) (Cost=4 Card=39 Bytes=273)
4 3 TABLE ACCESS (FULL) OF 'USER_OBJECTS2' (Cost=2 Card=
39 Bytes=273)
SQL> SELECT prev_date,
2 TO_DATE ('&test_date', 'DD-MON-YYYY') -
3 TO_DATE (prev_date, 'DD-MON-YYYY') prev_diff
4 FROM (SELECT DISTINCT created prev_date
5 FROM user_objects2
6 WHERE TRUNC (created) < '&test_date'
7 ORDER BY created DESC)
8 WHERE ROWNUM <= 1
9 /
old 2: TO_DATE ('&test_date', 'DD-MON-YYYY') -
new 2: TO_DATE ('31-MAY-2002', 'DD-MON-YYYY') -
old 6: WHERE TRUNC (created) < '&test_date'
new 6: WHERE TRUNC (created) < '31-MAY-2002'
PREV_DATE PREV_DIFF
29-APR-2002 32
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=5 Card=39 Bytes=351)
1 0 COUNT (STOPKEY)
2 1 VIEW (Cost=5 Card=39 Bytes=351)
3 2 SORT (ORDER BY STOPKEY) (Cost=5 Card=39 Bytes=273)
4 3 SORT (UNIQUE) (Cost=4 Card=39 Bytes=273)
5 4 TABLE ACCESS (FULL) OF 'USER_OBJECTS2' (Cost=2 Car
d=39 Bytes=273)
SQL> ACCEPT test_date PROMPT 'Enter test_date in format DD-MON-YYYY: '
Enter test_date in format DD-MON-YYYY: 31-JAN-2002
SQL> -- original query with quotes added around &test_date
SQL> -- and date format changed to DD-MON-YYYY
SQL> -- and some formatting for readability
SQL> -- (returns no rows when one sub-query returns no rows)
SQL> -- (returns correct result when both sub-queries return rows,
SQL> -- but cost is still high):
SQL> SELECT DECODE (LEAST (a.next_diff, b.prev_diff),
2 b.prev_diff, b.prev_date, a.next_date)
3 FROM (SELECT next_date,
4 TO_DATE (next_date, 'DD-MON-YYYY') -
5 TO_DATE ('&test_date', 'DD-MON-YYYY') next_diff
6 FROM (SELECT DISTINCT created next_date
7 FROM user_objects2
8 WHERE TRUNC (created) >= '&test_date'
9 ORDER BY created)
10 WHERE ROWNUM <= 1) a,
11 (SELECT prev_date,
12 TO_DATE ('&test_date', 'DD-MON-YYYY') -
13 TO_DATE (prev_date, 'DD-MON-YYYY') prev_diff
14 FROM (SELECT DISTINCT created prev_date
15 FROM user_objects2
16 WHERE TRUNC (created) < '&test_date'
17 ORDER BY created DESC)
18 WHERE ROWNUM <= 1) b
19 /
old 5: TO_DATE ('&test_date', 'DD-MON-YYYY') next_diff
new 5: TO_DATE ('31-JAN-2002', 'DD-MON-YYYY') next_diff
old 8: WHERE TRUNC (created) >= '&test_date'
new 8: WHERE TRUNC (created) >= '31-JAN-2002'
old 12: TO_DATE ('&test_date', 'DD-MON-YYYY') -
new 12: TO_DATE ('31-JAN-2002', 'DD-MON-YYYY') -
old 16: WHERE TRUNC (created) < '&test_date'
new 16: WHERE TRUNC (created) < '31-JAN-2002'
DECODE(LEAS
29-JAN-2002
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=200 Card=1521 Bytes=
45630)
1 0 MERGE JOIN (CARTESIAN) (Cost=200 Card=1521 Bytes=45630)
2 1 VIEW (Cost=5 Card=39 Bytes=585)
3 2 COUNT (STOPKEY)
4 3 VIEW (Cost=5 Card=39 Bytes=351)
5 4 SORT (UNIQUE STOPKEY) (Cost=4 Card=39 Bytes=273)
6 5 TABLE ACCESS (FULL) OF 'USER_OBJECTS2' (Cost=2 C
ard=39 Bytes=273)
7 1 SORT (JOIN) (Cost=200 Card=39 Bytes=585)
8 7 VIEW
9 8 COUNT (STOPKEY)
10 9 VIEW (Cost=5 Card=39 Bytes=351)
11 10 SORT (ORDER BY STOPKEY) (Cost=5 Card=39 Bytes=27
3)
12 11 SORT (UNIQUE) (Cost=4 Card=39 Bytes=273)
13 12 TABLE ACCESS (FULL) OF 'USER_OBJECTS2' (Cost
=2 Card=39 Bytes=273)
SQL> -- individual subqueries return
SQL> -- correct results:
SQL> SELECT next_date,
2 TO_DATE (next_date, 'DD-MON-YYYY') -
3 TO_DATE ('&test_date', 'DD-MON-YYYY') next_diff
4 FROM (SELECT DISTINCT created next_date
5 FROM user_objects2
6 WHERE TRUNC (created) >= '&test_date'
7 ORDER BY created)
8 WHERE ROWNUM <= 1
9 /
old 3: TO_DATE ('&test_date', 'DD-MON-YYYY') next_diff
new 3: TO_DATE ('31-JAN-2002', 'DD-MON-YYYY') next_diff
old 6: WHERE TRUNC (created) >= '&test_date'
new 6: WHERE TRUNC (created) >= '31-JAN-2002'
NEXT_DATE NEXT_DIFF
06-FEB-2002 6
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=5 Card=39 Bytes=351)
1 0 COUNT (STOPKEY)
2 1 VIEW (Cost=5 Card=39 Bytes=351)
3 2 SORT (UNIQUE STOPKEY) (Cost=4 Card=39 Bytes=273)
4 3 TABLE ACCESS (FULL) OF 'USER_OBJECTS2' (Cost=2 Card=
39 Bytes=273)
SQL> SELECT prev_date,
2 TO_DATE ('&test_date', 'DD-MON-YYYY') -
3 TO_DATE (prev_date, 'DD-MON-YYYY') prev_diff
4 FROM (SELECT DISTINCT created prev_date
5 FROM user_objects2
6 WHERE TRUNC (created) < '&test_date'
7 ORDER BY created DESC)
8 WHERE ROWNUM <= 1
9 /
old 2: TO_DATE ('&test_date', 'DD-MON-YYYY') -
new 2: TO_DATE ('31-JAN-2002', 'DD-MON-YYYY') -
old 6: WHERE TRUNC (created) < '&test_date'
new 6: WHERE TRUNC (created) < '31-JAN-2002'
PREV_DATE PREV_DIFF
29-JAN-2002 2
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=5 Card=39 Bytes=351)
1 0 COUNT (STOPKEY)
2 1 VIEW (Cost=5 Card=39 Bytes=351)
3 2 SORT (ORDER BY STOPKEY) (Cost=5 Card=39 Bytes=273)
4 3 SORT (UNIQUE) (Cost=4 Card=39 Bytes=273)
5 4 TABLE ACCESS (FULL) OF 'USER_OBJECTS2' (Cost=2 Car
d=39 Bytes=273)
SQL> UNDEFINE test_date
SQL> DROP TABLE user_objects2
2 /
Table dropped. -
Recently my company bought iPlanet directory server software from reseller. So I am not sure which feature is feasible or not based on currently deployed software. My company is a telecommunication company, especially cellular service provider.
Could someone tell me whether a tracing on a specific data(for example, conditioned on dn=newyorker or email=[email protected]) is possible or not? If it's possible, I'd like to make a customized tool with which administrator can monitor ldap transactions conditioned on that specific data.The access log contains a lot of this information. It will log which entry was added/modified/deleted. If you need more detailed information, you can turn on the audit log.
There is no way to log which entry is searched, unless you can guarantee that the only search scope used will be a base level search. For example:
ldapsearch -s base -b "uid=jsmith,o=example.com" ...
The DN will be logged to the access log in this case because it is the search base. However, if you did a search like this:
ldapsearch -s one -b "o=example.com" ...
Then the entry "uid=jsmith,o=example.com" would be returned and you would have no "trace" of that entry being accessed by the client (assuming the client had access rights to see that entry). -
How can I go to a specific date in the future other than by clicking one month at a time?
Would like to go to a specific date several years from now and see what else I have scheduled (if any) or to see if that day is a holiday or even just to see what day of the week that day falls on. Can I do this in some way other than clicking on the NEXT MONTH button a gazillion times?
I am using Windows 7 (64-bit) on a Dell THX computer.
Thanks,
DannyBoytried clicking on the year in the calendar?
-
How to get users' login logout time for user IDs for a specific date?
Dear All,
There is a case I being requested to retrieve the Userid, User Name,
User Group, User Dept, Date, Login Time, Logout Time in a specific date, for example, 21.05.2009.
How should I retrieve the information? The user want to input specific date and user group then return the details that mentioned above.
I try with SUIM->Users->By Logon Date and Password Change... but I can't specific the date that I want ...
I try with SM19 (Security Audit Log), but unfortunately in my system this is not activated.
I've seek for SAP's advise, and they say need to ask abaper to developr a report in order to get such details....
Do you guys have any other methods?
Do you guys know which tables will contain the details as mentioned above?
Best Regards,
KenUnfortunately without the audit log, you're going have a hard time finding this information. As mentioned, ST03N will give you some information. If your systems daily workload aggregation goes back to the date you require then you'll be able to get a list of all users who logged on that day. ST03N doesn't keep time stamps just response times.
My only idea is VERY labor intensive. If your DB admin can retrieve a save of the database from that day then table USR02 will hold a little more information for you. It will contain last login times for that day. If your system backup policy happened to have saved the contents of folder "/usr/sap/<SID>/<instance>/data" then you potentially have access to all the data you require. The stat file will have recorded every transaction that took place during that day. If that file is restored you could use program RSSTAT20 to query against it.
Good luck and turn on the audit log as it makes your life much easier! -
Problem while adding a new data source for the demo for mapviewer...
hello,
i use oracle 10g enterprise edition. i imported the necessary dump files and get the necessary scripts worked. i want to see the demo results in mapviewer. for that, i have to add a datasource. the XML code in order to realize this purpose is:
<?xml version="1.0" standalone="yes"?>
<non_map_request>
<add_data_source
name="mvdemo"
jdbc_host="c-0y5wp0jvd2bf8"
jdbc_port="1521"
jdbc_sid="mvdemo"
jdbc_user="!mvdemo"
jdbc_password="tiger"
jdbc_mode="thin"
number_of_mappers="3" />
</non_map_request>
i press the submit button. then it wants me to enter a username and password. the default is admin/welcome. then i see this result on the browser:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<oms_error>
Message:[MapperConfig] eÅleme verileri kaynaÄı eklenemiyor.
Sat Feb 26 02:29:19 EET 2005
Severity: 0
Description:
at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.java:583)
at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.java:315)
at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
at oracle.lbs.mapserver.oms.doPost(oms.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
</oms_error>
by the way, the error message on the application server screen:
05/02/26 02:29:16 INFO [oracle.lbs.mapserver.MapServerImpl] adding a map data sr
c [name=mvdemo]
05/02/26 02:29:18 WARN [oracle.sdovis.ds.nods] java.sql.SQLException: G/â istisn
as²: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:137)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:174)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:286)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
.java:120)
at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
a:613)
at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
java:582)
at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
a:315)
at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
at oracle.lbs.mapserver.oms.doPost(oms.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:322)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:790)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
05/02/26 02:29:18 WARN [oracle.sdovis.ds.nods] connecting to database using jdbc
thin driver...
05/02/26 02:29:19 ERROR [oracle.sdovis.ds.nods] java.sql.SQLException: G/â istis
nas²: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:137)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:174)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:286)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
.java:136)
at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
a:613)
at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
java:582)
at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
a:315)
at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
at oracle.lbs.mapserver.oms.doPost(oms.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:322)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:790)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
05/02/26 02:29:19 ERROR [oracle.sdovis.ds.nods] java.sql.SQLException: G/â istis
nas²: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:137)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:174)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:286)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
.java:136)
at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
a:613)
at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
java:582)
at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
a:315)
at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
at oracle.lbs.mapserver.oms.doPost(oms.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:322)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:790)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
05/02/26 02:29:19 ERROR [oracle.lbs.mapserver.core.MapperConfig] java.lang.Illeg
alArgumentException: Error creating NativeOracleDataSource.
at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
.java:196)
at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
a:613)
at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
java:582)
at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
a:315)
at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
at oracle.lbs.mapserver.oms.doPost(oms.java:409)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:322)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:790)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
if someone could help about what to do, i would be grateful..when defining a data source through the admin web page, don't add '!' in front of the password.
! is needed only when configuring a data source in the mapViewerConfig.xml file. -
Custom Report for the Stock and Stock value for a specific date
Hi SAP Gurus,
Is there any SAP standard t-code or any logic to get the transcations (additions (for example: Purchases) and subtractions (Sales) to the inventory) for a particular materials in a plant and with Total Stock and also Total Stock value when that particular transaction happened?
Our system is R/3 4.7
I looked at the MB5B, MBCE, MBCA, MC44, MB51 and some other standard T-codes but could not find the total stock value at the time of Transaction happened.
The history tables MBEWH and MARDH are updated after the month end closing procedures, right, which means I will have the inventory value changing every month if material has Price "S".
Thank you,
-HarterHi Harter,
Unfortunately, you cannot see in a single tcode the value of stock and stock quantity on a specific date. As you yourself have pointed out, we only have to make use of the history table MBEWH, MARDH for the month wise stock quantity and value. Along with that you should also make use of the table MBEW to take teh stock quantity and value. So the total value of stock on a particular date will be
Stock qnty = MBEWH value until the previous month (for teh specific valuation class, period etc) + MBEW value for the present date.
But this will nto work out if you want to find out teh stock quantity and stock value on a past date basis. For past data, only m onthwise data is available. For this anyway you can refer to MC.1 and so on reports. -
How to marking email for follow up on a specific date
In projects I often receive e-mails which need to be followed up/chased by a specific date in the future. I would like to be able to mark them with a specified date and then file them in the relevant mail folder. On the date specified either the email re-appears in your in box for action or a reminder is sent.
The flag option is fine - but does not really help if one has many e-mails to follow up on different dates.
This must be feature which would be useful to 1000's of users - does it exist is there a work round? I have not found this feature on other e-mail applications including Yahoo.
Thanks in advance.There are always programs on http://www.tuaw.com that do things like this. I don't know if any of them specifically do this. They always want to suck you in and live in their little iGTD world. I don't really conform to that. I am trying to write software that I would want to use. This seems like one that would fall into that category. Simple, easy-to-use, does one thing well, and doesn't get in your way.
-
How do I mark an e-mail message for followup on a specific date?
I want to mark an incoming e-mail message to be followed up on a specific date/time. When that date arrives I want a reminder to pop up on my desktop. I can do this in Outlook, but would rather use the native Mac Mail if possible.
WaltFor some reason the Drag-and-Drop to the Calendar followed by Drag-and-Drop to Reminders does not work for me.
I found a much more elegant solution using Automater here:
https://discussions.apple.com/message/16569500#16569500
Thanks to Chuck Kalish for contributing the code. Now I can create the reminders with a single keypress, and I can also modify the code to tailor the exact text of the reminders to suit my needs.
Walt -
Storage Location wise Stock details on a specific Date
Dear All,
Please help me with any T-code or Process by which I will be able to view the opening & closing stock storage location wise on a specific date. In MC.9 it shows the stock on current date or Month-End. In MB5B it will show the stock but not storage Location wise. Requires your sincere advise in this regard.HI ,
There arent many reports for date wise stocks in satnadard SAP. you will have to run MB5B storage Location wise for the specified dates. OR
you can try this one report J3RFLVMOBVED -STOCK OVERVIEW(RUSSIA) , Run it and save a layout. It should solve your problem.
Regards
Raviraj. -
Table for Stock on Specific Date in the Past.
Hi ..,
Please give me the Name of the Table to find the stock on Specific Date for a given material in the Past. like the T.code we use MB5B.
regards.Hi
MB5B uses a list of tables & logic to get the Stock for a particular posting date.
if you want the stock run this report in your Z- report & export the Values to your Z-report & use them accordingly.
Hope this helps
Thanks & Regards
Kishore -
List of Open AP Goods return on a specific Date
My customer needs a list of all open AP goods return, that were still open on a specific date.
They need to do this for month end, the open list, has to match what is in the Trial balance at month end.
I have tried with open item list, but this only shows me as of today.
I have tried with the General ledger by BP, but since the Goods return does not affect the Accounts receivable it is not displayed in this report.
I have also tried creating a report, but there is no information in the ORPD table that allows me to filter properly.
does anyone have any suggestions ?
Thanks
SophieSophie,
One possibility is to use ADOC (history table)
SELECT * FROM ADOC WHERE ObjType = 21
Pick the columns you want to display.
Maybe you are looking for
-
How to save a database and find it in windows
I don't know if it's possible for me to create a database and tables in XE 10g and find the files in windows. I need a help on this because I need to submit a database for a project.
-
Can't download music to iPhone
I'm unable to download music on to my iPhone. I got it back in December and had it hooked up to a different computer. I ended up getting rid of that one so I'm trying to hook it up to a new computer. Went okay. I have previously had an older ipod set
-
After the latest version of Adobe Flash Player was installed, movies and tv shows will not run, and most of the news videos will not play. I've tried uninstalling and reinstalling it but that does not help.
-
Finder crashes every 60 seconds
Hi there I've been going lots of googling the past couple of days but haven't turned up a solution yet... Finder crashes and relaunches every minute or so. "Remove the .plugin files and log out/in again" I hear you say. Done, no joy. Tried removing c
-
How much I can use out of the iphone without activating it, like a PDA?
What is the status of an iphone before activation or after de-activation (cancel the plan)? Could I use the iphone like a pda? With Wi-Fi, iphone is still a nice PDA, isn't it?