How to find out the logout details for a perticular user .
Hi,
I have an requirement to write a report which will run for hourly basis. using this program i need to find out the logon & logout details so that i can calculate the total productive hour for a perticular user. using table usr41 i can find out the logon detail. but i need to know the logout detail also to calculate the productive hour.
pls suggest.
Hi,
Check these below threads:
user log in & log out time SAO
How to find user log-out time ?
Regards,
Nitin
Similar Messages
-
Hi experts . how can we know the stock details for a perticular plant?
hi experts . how can we know the stock details for a perticular plant
check this code
REPORT YSG_MATSTK_REP LINE-SIZE 220
LINE-COUNT 50(5).
*& DATA DECLARATION *
TABLES: MARA, "GENERAL MASTER DATA
MARC, "PLANT DATA FOR MATERIAL
MARD, "STORAGE LOCATION DATA FOR MATERIAL
MBEW, "MATERIAL VALUATION
MVKE, "SALES DATA FOR MATERIAL
MAKT. "MATERIAL DESCRIPTION
DATA: BEGIN OF I_MARA OCCURS 0,
MATNR LIKE MARA-MATNR,"MATERIAL NUMBER
MBRSH LIKE MARA-MBRSH,"INDUSTRY SECTOR
MEINS LIKE MARA-MEINS,"BASE UNIT OF MEASURE
END OF I_MARA.
DATA: BEGIN OF I_MARC OCCURS 0,
MATNR LIKE MARC-MATNR,"MATERIAL NUMBER
WERKS LIKE MARC-WERKS,"PLANT
LVORM LIKE MARC-LVORM,"FLAG MATERIAL FOR DELETION AT PLANT
"LEVEL
PSTAT LIKE MARC-PSTAT,"MAINTENANCE STATUS
DISPO LIKE MARC-DISPO,"MRP CONTROLLER
END OF I_MARC.
DATA: BEGIN OF I_MAKT OCCURS 0,
MATNR LIKE MAKT-MATNR,"MATERIAL NUMBER
MAKTX LIKE MAKT-MAKTX,"MATERIAL DESCRIPTION
END OF I_MAKT.
DATA: BEGIN OF I_MVKE OCCURS 0,
MATNR LIKE MVKE-MATNR,"MATERIAL NUMBER
VKORG LIKE MVKE-VKORG,"SALES ORGANIZATION
VTWEG LIKE MVKE-VTWEG,"DISTRIBUTION CHANNEL
END OF I_MVKE.
DATA: BEGIN OF I_MARD OCCURS 0,
MATNR LIKE MARD-MATNR,"MATERIAL NUMBER
LGORT LIKE MARD-LGORT,"STORAGE LOCATION
LABST LIKE MARD-LABST,"VALUATED STOCK WITH UNRESTRICTED USE
END OF I_MARD.
DATA: BEGIN OF I_OUT OCCURS 0,
MATNR LIKE MARC-MATNR,
WERKS LIKE MARC-WERKS,
LVORM LIKE MARC-LVORM,
PSTAT LIKE MARC-PSTAT,
DISPO LIKE MARC-DISPO,
MBRSH LIKE MARA-MBRSH,
MEINS LIKE MARA-MEINS,
MAKTX LIKE MAKT-MAKTX,
VKORG LIKE MVKE-VKORG,
VTWEG LIKE MVKE-VTWEG,
LGORT LIKE MARD-LGORT,
LABST LIKE MARD-LABST,
END OF I_OUT.
DATA : TOT TYPE I. " TOT - TOTAL TO PRINT STOCK
*& S E L E C T I O N - S C R E E N *
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-100.
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR OBLIGATORY.
PARAMETERS: P_WERKS LIKE MARC-WERKS OBLIGATORY.
SELECT-OPTIONS: S_LGORT FOR MARD-LGORT,
S_DISPO FOR MARC-DISPO.
SELECTION-SCREEN END OF BLOCK B1.
*& I N I T I A L I Z A T I O N *
INITIALIZATION.
S_MATNR-SIGN = 'I'.
S_MATNR-OPTION = 'EQ'.
S_MATNR-LOW = 'M-14'.
S_MATNR-HIGH = 'M-18'.
P_WERKS = '3000'.
S_LGORT-SIGN = 'I'.
S_LGORT-OPTION = 'EQ'.
S_LGORT-LOW = '0001'.
S_LGORT-HIGH = '0004'.
S_DISPO-SIGN = 'I'.
S_DISPO-OPTION = 'EQ'.
S_DISPO-LOW = '001'.
S_DISPO-HIGH = '002'.
APPEND S_DISPO.
APPEND S_LGORT.
APPEND S_MATNR.
CLEAR S_DISPO.
CLEAR S_LGORT.
CLEAR S_MATNR.
*& S T A R T - O F - S E L E C T I O N *
START-OF-SELECTION.
SELECT MATNR WERKS LVORM DISPO FROM MARC
INTO CORRESPONDING FIELDS OF TABLE I_MARC
WHERE WERKS EQ P_WERKS
AND MATNR IN S_MATNR
AND DISPO IN S_DISPO
AND WERKS = P_WERKS.
IF I_MARC[] IS INITIAL.
WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MARC'.
EXIT.
ENDIF.
SELECT MATNR LGORT LABST FROM MARD INTO TABLE I_MARD
FOR ALL ENTRIES IN I_MARC
WHERE MATNR = I_MARC-MATNR
AND WERKS EQ P_WERKS
AND LGORT IN S_LGORT.
IF I_MARD[] IS INITIAL.
WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MARD'.
EXIT.
ENDIF.
SELECT MATNR VKORG VTWEG FROM MVKE INTO TABLE I_MVKE
FOR ALL ENTRIES IN I_MARC
WHERE MATNR = I_MARC-MATNR.
IF I_MVKE[] IS INITIAL.
WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MVKE'.
EXIT.
ENDIF.
LOOP AT I_MARC.
MOVE-CORRESPONDING I_MARC TO I_OUT.
CLEAR MARC.
SELECT SINGLE MATNR MBRSH MEINS FROM MARA
INTO CORRESPONDING FIELDS OF MARA
WHERE MATNR = I_OUT-MATNR.
IF SY-SUBRC = 0.
MOVE: MARA-MBRSH TO I_OUT-MBRSH,
MARA-MEINS TO I_OUT-MEINS.
ELSE.
CONTINUE.
ENDIF.
SELECT SINGLE MATNR MAKTX FROM MAKT
INTO CORRESPONDING FIELDS OF MAKT
WHERE MATNR = I_OUT-MATNR.
IF SY-SUBRC = 0.
MOVE: MAKT-MAKTX TO I_OUT-MAKTX.
ELSE.
CONTINUE.
ENDIF.
LOOP AT I_MARD WHERE MATNR = I_MARC-MATNR.
MOVE: I_MARD-LABST TO I_OUT-LABST,
I_MARD-LGORT TO I_OUT-LGORT.
APPEND I_OUT.
ENDLOOP.
LOOP AT I_MVKE WHERE MATNR = I_MARC-MATNR.
MOVE: I_MVKE-VKORG TO I_OUT-VKORG,
I_MVKE-VTWEG TO I_OUT-VTWEG.
APPEND I_OUT.
ENDLOOP.
CLEAR I_OUT.
ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'C:\matstk.TXT'
FILETYPE = 'ASC'
TABLES
DATA_TAB = I_OUT.
*& T O P - O F - P A G E *
TOP-OF-PAGE.
WRITE:/ 'DATE:' ,SY-DATUM.
*& E N D - O F - P A G E *
END-OF-PAGE.
WRITE: / SY-ULINE,
/100 'PAGNO: ',SY-PAGNO,
SY-ULINE.
*& E N D -- O F -- S E L E C T I O N *
END-OF-SELECTION.
LOOP AT I_OUT.
AT FIRST.
WRITE :/ 'MATERIAL EXTRACTION REPORT',
SY-ULINE.
ENDAT.
WRITE:/ SY-VLINE,
I_OUT-MATNR,SY-VLINE,
I_OUT-MEINS,SY-VLINE,
I_OUT-WERKS,SY-VLINE,
I_OUT-LVORM,SY-VLINE,
I_OUT-PSTAT,SY-VLINE,
I_OUT-DISPO,SY-VLINE,
I_OUT-MBRSH,SY-VLINE,
I_OUT-MAKTX,SY-VLINE,
I_OUT-VKORG,SY-VLINE,
I_OUT-VTWEG,SY-VLINE,
I_OUT-LGORT,SY-VLINE,
I_OUT-LABST,SY-VLINE.
TOT = TOT + I_OUT-LABST.
AT NEW MATNR.
WRITE : 'NEW RECORD',
SY-VLINE.
ENDAT.
AT END OF LABST.
WRITE : 'STOCK = ',
TOT,
SY-VLINE,
SY-ULINE.
ENDAT.
AT LAST.
FORMAT COLOR 7 INTENSIFIED OFF.
WRITE : /159 'TOTAL STOCK = ',
TOT.
ENDAT.
ENDLOOP.
WRITE : /159 'TOTAL STOCK = ',
TOT.
regards,
srinivas
<b>*reward for useful answers*</b> -
How to find out the GR Numbers for which IR has not been done
Hi Sap Gurus,
Can anybody tell me how to find out the G R Numbers for which Invoice Receipt has not been done. Any TC or ant standard process to find out.
Thanks N Regards,
SiddharthaHi Siddarth,
Solution :
1) Go to SE16 - Table Name : EKBE (PO History)
2) Field - BUDAT (Posting Date)
3) Transaction event Type:
- 1 (Only GR's )
- 2 (Both GR and IR)
4) We can fetch both GR Numbers and also PO Numbers for which IR has not been done if transaction event - 1.
In addition to MB5S, you can try this also... -
How to find out the infospoke name for an existing infoobject?
Hi,
Could any one pls tell me how to find out the existing infospoke name for an infoobject?
i've tried with where used list but its not coming....can any one pls suggest
Thanks,
SuriHi,
Check in metadata repository for that infoObject.
If you are still not able to identify, goto RSBO tx and press F4.
You will get the list of Infospokes available.
Go in each and chk from the General Tab, if the infoObject is available in the source system.
Regards,
Balaji V -
How to find out the printer name for the Idoc
Hi guys
I want to find out the printer name for the Idoc,,some default printer is attached for one idoc,then how can we see the printer name for this idoc.
Regards
MadhooHi,
For ALE/IDOC the medium will be either ALE or EDI but not printer.So it might be wrongly attached.As such there won't be any printer attached to idoc.
Regards,
Nagaraj -
How to find out the best settings for BDT
Hi there.
I am trying to predict a movie rating. I downloaded datasets from IMDb, prepared them. A tried all of the regression algorithms, but the best result is giving Boosted Decision Tree. Now I am dealing with the best settings in this algorithm.
With default, running time was 69 seconds and the mean absolute error was 0.4844, which is quite much I think. So I tried to improve it by changing parameters of the BDT module. I tried to set Leaves per tree to 150 and than experimentaly find
remaining parameters. I've come to Samples per leaf=12, Learning rate=0.04 and
Number of trees=700. Running time was 78 seconds and mean absolute error was 0.4596.
Input of the algorithm is joined matrix with 14 columns (11 features) and 67672 rows splitted into 70:30 (training:testing).
Is there any way how to find out the best setting of Boosted Decision Tree?Yordan's suggestion is correct, though the documentation is a bit outdated.
You can use the single parameter + sweeper mode or define your own custom ranges in the BDT module with the Parameter Range setting
Regards,
aK -
How to find out the set handler for a particular signal?
I have an interesting puzzle to solve. l'm investigating problems with someone else's code and I'd like to get the name of the handler that is set for SEGV. psig shows that the process catches SEGV, however I don't have access to the source code for all the libraries it links against and none of the source code I have sets a handler for SEGV. Is there a way to find out the name of the signal handler that is set for a particular signal in a process? I'm sure the source was compiled with cc -g. Solaris 8
Hello Haritha,
Please follow the path.
Go to RSA1 -> Metadata Repository ->DataStore Objects(ODS) -> Find you DSO(ODS) there and click on that, you will get all the details(Queries, Objects - Char, Key figures, update rules,etc..) related to that particular DSO(ODS), same is the case for Cube as well.
Please assign points. -
How to find out the Area Menu for a Report/ Table/Function Module
Hi,
Is there any procedure to find out the <b>"AREA MEANU"</b> for a Report/Table/Function Module...
Or is there any Transaction code / Report is available to find out all the report for a particular "AREA MENU".
Thank you for your quick response...
Regards,
Thiru
<b></b>Hi,
Check these below threads:
user log in & log out time SAO
How to find user log-out time ?
Regards,
Nitin -
How to find out the table, data for the IDOCS is pulled from?
HI
The ZFPH9999397 VENDOR FEED job runs the RBDMIDOC program with the variant Z9999_397. This creates IDOCS that are sent out and eventually wind up in IMOS.
The IDOC Type is CREMAS.
Can you tell me which table or tables the data for these IDOCS is pulled from?
Or tell me the procedure to find out the table name.
Thanks,
das.
Edited by: sathish dasari on Dec 10, 2009 11:54 AMYou can use Transp. Table TBD62 .
enter Message Type CREMAS
you will get the list of tables and the fields from which data is pulled based on the change pointers in Transp. Table BDCP. -
How to find out the process count for a database during a particular window
Hi Team,
I want to find out the maximum process count reached for a database for an interval. Say between 1:00 to 2:00 AM IST. Please help
Database version:11.2.0.2
OS:AIX 6.1Check DBA_HIST_RESOURCE_LIMIT. Your information will be there.
Simialr information is available in DBA_HIST_SYSSTAT.
Look for stat name logons cumulative/logons current - Total number of logons since the instance started/Total number of current logons
You can joing dba_hist_snapshot with snap_id and give begin_interval_time and end_interval_time to know historic process utilization.
Regards,
Sreejith -
How to find out the ASCII Values for Spanish character
Hi,
I had an requirement to store Spanish character and also need to fileter the records based on the Spanish character.
Kindly guide me for below.
To filter the Records which contains spanish characters?
To get the ASCII Values for the particular column?
E.g. we can find out the ASCII value of 'a' by using the syntax select ASCII('a') from dual.
But I want to find the ASCII Values for the particular column value. Ie. name.
E.g., Client name is "Suresh", I want to the ASCII Values for entire name of "Suresh".
Kindly do the needful help / Guidance on this.
Thanks,
OraharTo expand on what I said in my first post, you want to do something along these lines:
with t (thename) as
select 'Suresh' from dual
select thename
, substr(TheName, level, 1)
, ascii(substr(thename, level))
from t
connect by level <= length(thename);The output of the above query is:
THENAM S ASCII(SUBSTR(THENAME,LEVEL))
Suresh S 83
Suresh u 117
Suresh r 114
Suresh e 101
Suresh s 115
Suresh h 104
6 rows selected.Note that the WITH statement is only there to simulate a table for this example. With a table, all you do is get rid of the with and substitute the name "t" for the name of your table (also the name of the column to whatever name the column has in your table).
Lastly, I suggest you post your question along with, an example table and the output you'd like to get in the PL/SQL forum. There are people there that will give you all kinds of great ways of solving that problem.
HTH,
John. -
How to find out the country details.
Hi friends,
I have one requirement,
i.e table have one column name country...
Country_Name
India
Pakistan
Afghanistan
Albania
Algeria
American
Andorra
Angola
Anguilla
Antigua
Argentina
Armenia
Aruba
Australia
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
I want to display the data like below ..
Result
india & pak
pak & afg
afg & alb
How can I write the sql query for this..
please any one help me..@ Visakh16 Your answers are always different. Beginners learn a lot from your posts.
Just small modification in your SELECT query (mentioned below).
SELECT LEFT(c1.Country_Name,3) + COALESCE( ' & ' + LEFT(c2.Country_Name,3),'')
FROM @countries c1
INNER JOIN @countries c2
On c2.ID = c1.ID + 1
Thanks for the kind words
Glad that I'm of some help to others in learning
Nope the use of LEFT JOIN was deliberate :-)
Using INNER JOIn will cause last country to be missed if table contains odd number of values
see this example
declare @countries table
ID int IDENTITY(1,1),
Country_Name varchar(30)
insert @countries (Country_Name)
values
('India'),
('Pakistan'),
('Afghanistan'),
('Albania'),
('Algeria')SELECT LEFT(c1.Country_Name,3) + COALESCE( ' & ' + LEFT(c2.Country_Name,3),'')
FROM @countries c1
LEFT JOIN @countries c2
On c2.ID = c1.ID + 1
WHERE c1.ID % 2 > 0
SELECT LEFT(c1.Country_Name,3) + COALESCE( ' & ' + LEFT(c2.Country_Name,3),'')
FROM @countries c1
INNER JOIN @countries c2
On c2.ID = c1.ID + 1
WHERE c1.ID % 2 > 0Output
------------------------------------LEFT JOIN result
--------------------------------Ind & Pak
Afg & Alb
AlgINNER JOIN result
-------------------Ind & Pak
Afg & Alb
You can see that INNER JOIN has caused last country Algeria to get missed
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to find out the roles set for the current session?
Hi,
I wanted to find out the roles set to the current session. Which system view or table gives this info?
Thanks
SeshuSELECT * FROM session_roles
-
How to find out the Queries Generated for a particular ods?
Hi all,
There are atleast 10 queries generated for a Particular ODs zyyyyy. I would like to know what are the queries generated for a particular ods.
I have used the where use list of the ods. But it did not displayed the queries generated for that ods.
I have looked at the bex query for that ods but cant find any query being generated on that ods??
Is there any way to find out what are the queries generated for a particular ods?
thanxs
harithaHello Haritha,
Please follow the path.
Go to RSA1 -> Metadata Repository ->DataStore Objects(ODS) -> Find you DSO(ODS) there and click on that, you will get all the details(Queries, Objects - Char, Key figures, update rules,etc..) related to that particular DSO(ODS), same is the case for Cube as well.
Please assign points. -
How to find out the sql details of Request ID
Hi Guru,
I am running one crtical request i have all the SID,#serial details with me but i am not sure how i will get the sql query details of that request.so i will check why it's aking time. If any body have any script??Please see these docs.
How to Find Database Session & Process Associated with a Concurrent Program Which is Currently Running. [ID 735119.1]
bde_request.sql - Process and Session info for one Concurrent Request (11.5) [ID 187504.1]
How to Retrieve SID Information For a Running Request [ID 280391.1]
Thanks,
Hussein
Maybe you are looking for
-
Hi, I need to update some physical data service in ALDSP 2.5 on WLS 8.1 SP6 (8.1.6) via Static Mediator API from WebLogic Server 9.2 MP2 (9.2.2) application. I have reviewed the article about interoperability of ALDSP 2.5 and WLS 9 here: http://edocs
-
Hi Is there any way in BI where we can see the change history of a hierarchy which is manually manitained in BI. Thanks Pratap.
-
Hi. My daughter has an ipod with saved worlds in Minecraft and wants to know if she can transfer everything over to a new ipad. Thanks
-
Add pictures from more than 1 machin ..doesnt even allow dra-drop like song
Hello Ipod users. I am trying to add pictures and system doesnt allow me to do a drag drop. I am forced to do a sync. I am not able to add pictures from other laptops. I have installed the latest itunes in that. But if i copy anything from other mach
-
I have the below data set - Order_id Item Qty 1 A1 3 2 A2 2 3 A3 3 My desired output (With only one SQL query) is mentioned below- Order_id Item Qty 1 A1 1 1 A1 1 1 A1 1 2 A2 1 2 A2 1 3 A3 1 3 A3 1 3 A3 1 How do I do this?