How to find out last month's 1st & last date
could you please tell me how can I find out last month's 1st & last date?
regards
Here is one way:
SQL> SELECT ADD_MONTHS
2 ( TRUNC(SYSDATE,'MONTH')
3 , -1
4 ) AS FIRST_OF_MONTH
5 , TRUNC(SYSDATE,'MONTH') - 1 AS LAST_OF_MONTH
6 FROM DUAL
7 /
FIRST_OF_MONTH LAST_OF_MONTH
05/01/2010 00:00:00 05/31/2010 00:00:00
Similar Messages
-
Hi can anyone tell me how to find out what and when my last purchases were made from the App Store ? I think my kids used all my credit
.from iTunes, go to View > Show sidebar
From sidebar > Itunes Store > Click top left on your Apple ID email address > Account > ...scroll down > Purchase History > View All -
Transaction IW32.How to find out the person name.(Last changed By)
Hi all,
When i executed the transaction IW32.Its displays changed by and created by fields. please any body can tell me how to find out the person name who had made last change with respect to the field changed by.
Please tell me the table and field name for the field last changed by......
Regards,
Munna.hi,
check the table AUFK field AENAM for the order number(AUFNR) in IW32.......... -
How to find out when a table was last updated?
Is there a way to find out when a table was last updated/inserted/deleted? Thanks!
There may be an easier way but if you are trying to get info on something that has already happened look at your redo logs and archived logs. It would be hard but in V$LOGMNR_CONTENTS you could find the max time for a given object. Note to use this you need to set up log miner. Since you did not give a version try the Oracle 9i DBA Guide pg 9-1.
-
How to find out when a program was last executed
Hello,
I have a assignment to find out when some programs where last executed in the past 2 years or so. My question to the profs here is as follows? What are the possibilities in ABAP to out when a Program (report) was last executed? Is there a function Modul that can give you when a program was last executed? OR is there a table to show you when a program was last executed?
Thank you for your help.
SabinaHi,
use the t.code STAT,STAD.
Check in this link for a sample code..
https://forums.sdn.sap.com/click.jspa?searchID=421554&messageID=1488089.
From Table TRDIR also you get the information about Last change.
TRDIR-UDAT ---> Changed On
TRDIR-UNAM ---> User Name
Regards
Kiran Sure -
How to find out when my flow rule last ran?
Hello
I have a few questions on GRC as below.
1. Can I write a Form rule on Sales Order DFF in which if on certain condition i want to popup a message asking users to fill DFF Filed information at the time of booking?
2. Where can i find the list of tables in GRC module? Is there TRM document?
3. I want to know when my flow rule last run? ( I want to know how to check it from the application and also from the back end tables)
ThanksHere are quick answers to your question
1. Can I write a Form rule on Sales Order DFF in which if on certain condition i want to popup a message asking users to fill DFF Filed information at the time of booking?Yes this can be done using PCG Form Rules.
2. Where can i find the list of tables in GRC module? Is there TRM document?There is no such document available. You would want to open an SR to see if documentation is shared
3. I want to know when my flow rule last run? ( I want to know how to check it from the application and also from the back end tables)PCG Flow Rules piggy backs on Oracle Workflow. You should be able to verify as you would other workflows using Oracle Workflow. -
How to find out the formatt type of a date.
hello iam getting the date from some content server..then iam updating the date..the problem is before update i should know the date formatt of returned date from server so that i can set that formatt to the user entered date while updation..so how can i know the date formatt of given date..
regards,object dat1 ="some value";
when i modify these date and submit back through
connector its checking for format..
bcos iam not sure what date formatt server have..
i want to know can we no from dat1 about the
format..whether this dat1 is in dd/MM/yyyy format are
MM/dd/yyyy format..So you have a String that reprents a date? Or do you have a Date? If the latter, then, like somebody already said, there is no format.
Assuming it's a String...
Are dd/MM/yyyy and MM/dd/yyyy the actual formats you'll get? Let me ask you this: If somebody showed you the string (on a piece of paper) "12/05/2005" how would you know if it was Dec. 5 or 12 May?
Answer: You wouldn't. You can't without some additional information.
And if you can't know, then neither can Java. -
How to find out Invalid Materials in the transaction data.
Hi Gurus,
We have a requirement as mentioned below, please suggest how to achieve this.
Requirement: A new query that will show which Transaction data records have been loaded into BI with invalid materials.
We have an infoobject called ZEPMPROD, which contains all VALID materials. And we have a cube ZRREUC16 which have COPA transaction data. So we would need to say that if there is a transaction data Record in cube (ZRREUC16), where the material in the transaction record is not found in ZEPMPROD, or where the material is not active (ZEPMPROD- ZEPMFLAG NE u201CAu201D), then those records need to be shown in the report.
0Material is an attribute of ZEPMPROD and 0Material is in ZRREUC16 cube also.
Thanks,
Bhaskar.Hi Jeeth,
Thanks for the response. I have tried the steps you mentioned, report is dispalying data but there are some common entries, the entries that are present in ZEPMPROD also showing in the report. Although filter is ZEPMPROD=#.
But we need only those Materials that are present in the cube(ZRREUC16) but not present in ZEPMPROD.
Please suggest.
Thanks,
Bhaskar. -
How to find out the Transactions used per month & the USER who used that
Hi,
1)How to find out the Transactions used per month & the USER who used that?
2)and can i get the above same for minimum 20 month?
System : SAP- Enterprise Core Component.You can use my program...
*& Report Z_ABAP_TCODE_MONITOR
*****& Program Type : Report *
*****& Title : Z_ABAP_TCODE_MONITOR *
*****& Transaction code : ZTCODE_USAGE *
*****& Developer name : Shailendra Kolakaluri *
*****& Deveopment start date : 26 th Dec 2011 *
*****& Development Package : ZDEV *
*****& Transport No : DEVK906086 *
*****& Program Description : This program is to display
*List all tcodes executed during previous day.
*& Show the number of users executing tcodes
*& Modification history
REPORT Z_ABAP_TCODE_MONITOR.
*& List all tcodes executed during previous day.
*& Show the number of users executing tcodes
TYPE-POOLS : slis.
DATA: ind TYPE i,
fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
layout TYPE slis_layout_alv,
variant TYPE disvariant,
events TYPE slis_t_event WITH HEADER LINE,
heading TYPE slis_t_listheader WITH HEADER LINE.
*REPORT z_report_usage.
TYPES: BEGIN OF zusertcode,
date TYPE swncdatum,
user TYPE swncuname,
mandt TYPE swncmandt,
tcode TYPE swnctcode,
report TYPE swncreportname,
count TYPE swncshcnt,
END OF zusertcode.
*data : date type n.
DATA: t_usertcode TYPE swnc_t_aggusertcode,
wa_usertcode TYPE swncaggusertcode,
wa TYPE zusertcode,
t_ut TYPE STANDARD TABLE OF zusertcode,
wa_result TYPE zusertcode,
t_result TYPE STANDARD TABLE OF zusertcode.
PARAMETER: month TYPE dats DEFAULT sy-datum.
*PARAMETER: date TYPE dats.
*select-options : username for wa_usertcode-account.
START-OF-SELECTION.
PERFORM get_data.
PERFORM get_fieldcatalog.
PERFORM set_layout.
PERFORM get_event.
PERFORM get_comment.
PERFORM display_data.
FORM get_data .
*date = sy-datum - 2 .
After start-of-selection add this line (parameter Month required 01 as day).
concatenate month+0(6) '01' into month.
CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
EXPORTING
component = 'TOTAL'
ASSIGNDSYS = 'DEV'
periodtype = 'M'
periodstrt = month
TABLES
usertcode = t_usertcode
EXCEPTIONS
no_data_found = 1
OTHERS = 2.
wa-date = month.
*wa-date = date.
wa-mandt = sy-mandt.
wa_usertcode-account = username.
LOOP AT t_usertcode INTO wa_usertcode.
wa-user = wa_usertcode-account.
IF wa_usertcode-entry_id+72 = 'T'.
wa-tcode = wa_usertcode-entry_id.
wa-report = space.
ELSE.
wa-tcode = space.
wa-report = wa_usertcode-entry_id.
ENDIF.
COLLECT wa INTO t_ut.
ENDLOOP.
SORT t_ut BY report ASCENDING.
CLEAR: wa, wa_result.
endform.
FORM get_fieldcatalog .
fcat-tabname = 't_ut'.
fcat-fieldname = 'DATE'.
fcat-seltext_l = 'Date'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'MANDT'.
fcat-seltext_l = 'Client'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'USER'.
fcat-seltext_l = 'User Name'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'TCODE'.
fcat-seltext_l = 'Transaction Code'.
fcat-key = 'X'.
APPEND fcat.
ENDFORM.
*& Form SET_LAYOUT
text
--> p1 text
<-- p2 text
FORM set_layout .
layout-colwidth_optimize = 'X'.
ENDFORM. " SET_LAYOUT
*& Form GET_EVENT
text
--> p1 text
<-- p2 text
*FORM get_event .
events-name = slis_ev_top_of_page.
events-form = 'TOP_OF_PAGE'.
APPEND events.
*ENDFORM. " GET_EVENT
**& Form GET_COMMENT
text
--> p1 text
<-- p2 text
*FORM get_comment .
DATA: text(30).
text = 'Billing Report'.
heading-typ = 'H'.
heading-info = text.
APPEND heading.
*ENDFORM. " GET_COMMENT
**& Form top_of_page
text
--> p1 text
<-- p2 text
*FORM top_of_page .
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = heading[]
I_LOGO =
I_END_OF_LIST_GRID =
*ENDFORM. " top_of_page
*& Form DISPLAY_DATA
text
--> p1 text
<-- p2 text
FORM display_data .
sort t_ut[].
DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
is_layout = layout
it_fieldcat = fcat[]
i_save = 'A'
is_variant = variant
it_events = events[]
TABLES
t_outtab = t_ut
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " DISPLAY_DATA -
How to find out Query last used by whom
Dear All,
Can any one tell me that "How to find out the Query last used by whom. I have already searched in SDN but no luck. In my system BW Stats are not installed and I have already checked the below tables.
RSZELTDIR - Directory of the reporting component elements
RSZELTTXT - Texts of reporting component elements
RSZELTXREF - Directory of query element references
RSRREPDIR - Directory of all reports (Query GENUNIID)
RSZCOMPDIR - Directory of reporting components
RSZRANGE - Selection specification for an element
RSZSELECT - Selection properties of an element
RSZELTDIR - Directory of the reporting component elements
RSZCOMPIC - Assignment reuseable component <-> InfoCube
RSZELTPRIO - Priorities with element collisions
RSZELTPROP - Element properties (settings)
RSZELTATTR - Attribute selection per dimension element
RSZCALC - Definition of a formula element
RSZCEL - Query Designer: Directory of Cells
RSZGLOBV - Global Variables in Reporting
RSZCHANGES Change history of reporting components
I am able to find out the Date and time but not the user name. So could you please help on this.
Regards
Sankari think u have missed it.
RSZCOMPDIR IS THE ONLY TABLE WHICH PROVIDES THE DATA.
ENTER TECHNICAL QUERY Name in RSZCOMPDIR-COMPID.
RSZCOMPDIR-TSTNAM gives you the user id of sap bw user who made the change.
RSZCOMPDIR-TSTPDAT gives you date on which change was made .
RSZCOMPDIR-TSTPTIM gives you timestamp on which change was made .
all users details can be obtained from TCODE SU01 where you need to enter sap user id.
You can also get user name( description) by using tcode SE09 and entering above sap user id. -
How to find out the last date & time on which a program has been run
Hi Experts,
Can anybody tell how to find out the last date on which a purticular program has been run.
Valuable answers will be rewarded.
Thanks & Regards,
Satish.Hi!
Try STAD transaction. Unfortunately it contains a huge amount of data, so it is available only for a few days backwards... Maybe some weeks, but you can't make yearly reports from its data... So it's not useful to see, which program is in use or not...
I planned once to download it weekly, but it was not so important...
Regards
Tamá -
How to find out the last time login for a locked login account?
In ASE 15.4,there are many login account show as locked and unlocked. How to find out the last login time for those locked login account?
Thank you. The version of my ASE is 12.5.4.
This is what I got from select * from syslogins:
suid status accdate totcpu totio spacelimit timelimit resultlimit dbname name password language pwdate audflags fullname srvname logincount procid
1
30 2 10/25/2012 11:41:10.430 AM 0 0 0 0 0 . . ... us_english 02/24/2.0.08 12:55:38.640 PM 0 [NULL] [NULL] [NULL] [NULL]
this is what I got from exec sp_displaylogin 'mylogin':
1 Suid: 46
2 Loginame: mylogin
3 Fullname: FN LN
4 Default Database: mydb
5 Default Language: us_english
6 Auto Login Script:
7 Configured Authorization:
8 Locked: YES
9 Date of Last Password Change: Apr 17 2010 2:36PM
10 Password expiration interval: 0
11 Password expired: NO
12 Minimum password length: 6
13 Maximum failed logins: 0
14 Current failed login attempts:
15 Authenticate with: AUTH_DEFAULT
which one is for last login time? -
How to find out Last T-Codes by a Users in Last 24 Hurs?
Dear experts
how to find out Last T-Codes by a Users in Last 24 Hurs?
Please Help
Regrads
Is STAD is only solution (or) any other easy way?
Regards
PRHi,
Maybe it's easier with this path :
ST03N --> Expert Mode --> Day --> choose your day
Under analysis view double click on "Memory Use Statistics"
You will get the list of transactions run that day.
If you double click on a transaction you will get the list of users who used this transaction.
If you select the User view, when you double click on a user, you will get the list of transctions this user launched this day.
Many ways to use this ST03N transaction...
Regards,
Olivier -
How to find out last update date for business partner's marketing attribute
How to find out last update date for business partner's marketing attribute??
Im freshie for SAP Application and im assigned to find out last update date for marketing attribute changed
which table is involved??
Yours kindness will be appreciated
thanksYou can take a look at table AUSP as well as CRMD_AUSP_HIST.
The "changed by" and "changed at" are logged on attribute level, not on attribute value level. When you change one specific value, the system does a "re-insert" of all existing values of this attribute.
Take a look at the SAP notes 938426 and 966670 these may assit you in resolving the issue.
Regards,
William Laverde -
How to find out average files i am getting every day in a month?
How to find out average files I am getting every day in a month?
Do you mean average count of files received?
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page
Maybe you are looking for
-
HT4436 how to login Icloud with apple ID on windows 7
how to login Icloud with apple ID on windows 7
-
I am using my own context and for that I configure my server.xml file. by writing <Context path="/rcm" docBase="e:\rcm" reloadable="true" debug="0"/> Now I am using JXL API to create excel file dynamically. In my rcm folder there is a another folder
-
No sound in MBP Pro 2001 under 10.8.4
Suddenly, no sound from jack or HP. I had sound and then I hadn't. This is NOT the red light problem, related to toslink. I tried to toggle in Audio Mini, no way.
-
Portal Theme - not able to replace horizontal divider
Hi All, I want to replace the blue colored bar under the TLN. But I am not able to do so. I tried changing it through Theme -> Horizontal Divider but it takes the blue color again. (Separator.gif) I am also trying to modify it thru com.sap.portal.nav
-
Blank spot in printed page - CP1518ni
My CP1518ni has always worked well, except for one new problem. About one page in five includes a small (c. 1" long, 1/4" wide) blank space on the left side. And a small amount of nearby type is slightly smudged. The appearance is as though a sing