How can I invalide the session automatically while user close IE browser
I have tried to add onUnload function to javascript, but it seems it doesn't call when user close the browser. Anyone could offer me suggestions?
Crosspost: http://forum.java.sun.com/thread.jspa?threadID=5179905
Similar Messages
-
How can I read the EXCEL file while Program is running in background.
Hi all Expert,
How can I read the EXCEL file while Program is running in background.
Thanksyou need to place ur excel file on application server and follow this thread: Reading an Excel file from the application server?
loots of information if you can search forum.. thanks -
How can i extend the table control while transfering the data
hi
how can i extend the table control while transfering the data.Hi,
For table control we have to handle the page down (P+, or what ever function codes are assigned to that activity) activity with our coding.
Just check out this code:
This is the bdc to update the XK01 transaction code (Vendor Creation).
Here we will use table controls for bankings. Here Iam sending the coding and text files.
Coding
REPORT zprataptable2
NO STANDARD PAGE HEADING LINE-SIZE 255.
DATA : BEGIN OF itab OCCURS 0,
i1 TYPE i,
lifnr LIKE rf02k-lifnr,
bukrs LIKE rf02k-bukrs,
ekorg LIKE rf02k-ekorg,
ktokk LIKE rf02k-ktokk,
anred LIKE lfa1-anred,
name1 LIKE lfa1-name1,
sortl LIKE lfa1-sortl,
land1 LIKE lfa1-land1,
akont LIKE lfb1-akont,
fdgrv LIKE lfb1-fdgrv,
waers LIKE lfm1-waers,
END OF itab.
DATA : BEGIN OF jtab OCCURS 0,
j1 TYPE i,
banks LIKE lfbk-banks,
bankl LIKE lfbk-bankl,
bankn LIKE lfbk-bankn,
END OF jtab.
DATA : cnt(4) TYPE n.
DATA : fdt(20) TYPE c.
DATA : c TYPE i.
INCLUDE bdcrecx1.
START-OF-SELECTION.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\first1.txt'
filetype = 'DAT'
TABLES
data_tab = itab.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\second.txt'
filetype = 'DAT'
TABLES
data_tab = jtab.
LOOP AT itab.
PERFORM bdc_dynpro USING 'SAPMF02K' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RF02K-LIFNR'
itab-lifnr.
PERFORM bdc_field USING 'RF02K-BUKRS'
itab-bukrs.
PERFORM bdc_field USING 'RF02K-EKORG'
itab-ekorg.
PERFORM bdc_field USING 'RF02K-KTOKK'
itab-ktokk.
PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-LAND1'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFA1-ANRED'
itab-anred.
PERFORM bdc_field USING 'LFA1-NAME1'
itab-name1.
PERFORM bdc_field USING 'LFA1-SORTL'
itab-sortl.
PERFORM bdc_field USING 'LFA1-LAND1'
itab-land1.
PERFORM bdc_dynpro USING 'SAPMF02K' '0120'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-KUNNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
cnt = 0.
LOOP AT jtab WHERE j1 = itab-i1.
cnt = cnt + 1.
CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-banks.
CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankl.
CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankn.
IF cnt = 5.
cnt = 0.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=P+'. " Page down activity
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
ENDIF.
ENDLOOP.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0210'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-FDGRV'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFB1-AKONT'
itab-akont.
PERFORM bdc_field USING 'LFB1-FDGRV'
itab-fdgrv.
PERFORM bdc_dynpro USING 'SAPMF02K' '0215'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-ZTERM'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0220'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB5-MAHNA'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0310'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFM1-WAERS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFM1-WAERS'
itab-waers.
PERFORM bdc_dynpro USING 'SAPMF02K' '0320'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-LIFNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
PERFORM bdc_transaction USING 'XK01'.
ENDLOOP.
PERFORM close_group.
**Flat files for the above code***
Intial screen data file.
1 63190 0001 0001 0001 mr bal188 b in 31000 a1 inr
2 63191 0001 0001 0001 mr bal189 b in 31000 a1 inr
Table control Data:
1 in sb 11000
1 in sb 12000
1 in sb 13000
1 in sb 14000
1 in sb 15000
1 in sb 16000
1 in sb 17000
1 in sb 18000
1 in sb 19000
1 in sb 20000
1 in sb 21000
1 in sb 22000
2 in sb 21000
2 in sb 22000
Regards,
Kumar. -
How can i keep the session always live and active
how can i keep the session live ? i tried to call getmessages every 30 seconds and nothing happens
i need your help to tell me how to keep session live always
please i need steps which can helpi open session
then i login
then i change status to active
then i call dialexternalnumber
but i want to know how you keep the session active can you please send me the steps in details how you keep your session active ? but please in detailed steps
many thanks for your great effort -
How can i get the list of all users present in the LDAP
Hi Experts,
How can i get the list of all users present in the LDAP ?
Is there any API or function Code to get all user list??
Please help me out!!!
Help will be rewardedWell it will depend on exactly where your UME configuration points to in the LDAP tree but yes, it is possible to get all users. Something like the following should do it:
import com.sap.security.api.*;
import com.sapportals.portal.prt.component.*;
IUserFactory iuf;
ISearchResult isr;
IUser user
String userid;
iuf = UMFactory.getUserFactory();
isr = iuf.getUniqueIDs();
you will need to iterate the ISearchResult object but you can get IUser objects by
userid = (String)isr.next();
user = iuf.getUser(userid);
then you can imanipulate / identify / or whatever you need with the user object
Haydn -
How can i get the list of all users present in the UME ?
Hi Experts,
How can i get the list of all users present in the UME ?
Is there any API or function Code to get all user list??
Please help me out!!!
Help will be rewarded
-pankaj chouhanHi Pankaj,
find the official NetWeaver security javadocs (including access to UME) <a href="http://help.sap.com/javadocs/NW04S/current/se/index.html">here</a>. Look for classs UMFactory and proceed from there.
Best regards,
Martin -
How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?
Ok what about If i need to get all important attributes by comparing Email addresses from excel file and get all required answers
currently I am trying to verify how many users Lines are missing , Emp numbers , Phones from AD with HR list available to me.
I am trying to Scan all the AD matching HR Excel sheet and want to search quickly how many accounts are active , Line Managers names , Phone numbers , locations , title , AD ID .
these are fields I am interested to get in output file after scanning Excel file and geting reply from AD in another Excel or CSV file
Name’tAccountName’tDescri ption’tEma I IAddress’tLastLogonoate’tManager’tTitle’tDepartmenttComp
any’twhenCreatedtAcctEnabled’tGroups
Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,Company,whenCreated,Enabled,MemberOf | Sort-Object -Property Name
Can you modify this script to help me out :)
Hi,
Depending on what attributes you want.
Import-Module ActiveDirectory
#From a txt file
$USERS = Get-Content C:\Temp\USER-LIST.txt
$USERS|Foreach{Get-ADUser $_ -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
#or from a csv file
$USERS = Import-CSV C:\Temp\USER-LIST.csv
$USERS|Foreach{Get-ADUser $_.SAMAccountName -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
Regards,
Dear
Gautam Ji<abbr class="affil"></abbr>
Thanks for replying I tried both but it did not work for me instead this command which i extended generated nice results
Get-ADUser -Filter * -Property * | Select-Object Name,Created,createTimeStamp,DistinguishedName,DisplayName,
EmployeeID,EmployeeNumber,Enabled,HomeDirectory,LastBadPasswordAttempt,LastLogonDate,LogonWorkstations,City,Manager,MemberOf,MobilePhone,PasswordLastSet,BadLogonCount,pwdLastSet,SamAccountName,UserPrincipalName,whenCreated,whenChanged
| Export-CSV Allusers.csv -NoTypeInformation -Encoding UTF8
only one problem is that Manager column is generating this outcome rather showing exact name of the line Manager .
CN=Mr XYZ ,OU=Users,OU=IT,OU=Departments,OU=Company ,DC=organization,DC=com,DC=tk -
n my house we have 2 iphone 4, and everytime we get the same contact list freom each other, how can we unsync the contacts so each user keeps thir own contact list?
Hi user 1724, before icloud, we had the same issue....
so yes, the solution was to each log into the mac separately.
i kept the main itunes library and apple id, and my son made his own itunes library (which linked to the main itunes/apple id) - so we were able to maintain separate contacts lists.
but then w/ the cloud i guess we assumed the cloud would know we each have different contact lists on diff. phones, but it seems the cloud just lumped it all together - -
How Can I Sign The Adobe Reader X User Agreement?
When I try to print documents, the reader 10 user agreement comes on, with the accept below the taskbar. It does not respond when the cursor is over it.
I opened up the EULA in the C drive, put it on low pixellation via properties and signed it then. Thank you for your prompt attention to my difficulty. Take care. -Steve
Date: Thu, 10 May 2012 15:09:46 -0600
From: [email protected]
To: [email protected]
Subject: How Can I Sign The Adobe Reader X User Agreement?
Re: How Can I Sign The Adobe Reader X User Agreement?
created by Sabian Zildjian in Acrobat Installation & Update Issues - View the full discussion
Are you doing this in the web browser? If so, have you ever launched Adobe Reader as a standalone application? If so, then you should have had the opportunity to accept the EULA.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4395288#4395288
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4395288#4395288. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Acrobat Installation & Update Issues by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
How can I Adjust the Page size while Iam printing wireless ?
How can I adjust the size if a photo While I am Printing Wireless Printer ?
Whilst in the Preview application, press "Shift - Command - A" (⇧⌘A) simultaneously to show the markup toolbar, or click View, and select "show markup toolbar". There is an icon "A" near the right hand side of the now visible markup toolbar, click this icon to reveal all the font options.
-
How can I select the existing worksheet while using OLE2 to open the template workboo
Source:
application:=ole2.create_obj('Excel.Application');
workbooks:=ole2.get_obj_property(application,'Workbooks');
args := ole2.create_arglist;
ole2.add_arg(args, 'c:\RptTemplate.xlt');
workbook:=ole2.invoke_obj(workbooks,'Open',args);
ole2.destroy_arglist(args);
worksheets:=ole2.get_obj_property(application,'Worksheets');
args := ole2.create_arglist;
ole2.add_arg(args, 'Sheet1');
worksheet :=ole2.invoke_obj(worksheets,'Select',args);
ole2.destroy_arglist(args);
Problem:
1. While executing the above code, error -305500 occurs after executing "worksheet := ole2.invoke_obj(worksheets','Select',args)". How can I select the sheet i wanted in the template ??
2. As I refer to the forms on-line document, it stated that the ole2 programmers documentation can provide all object types and methods that can be used with the OLE2. Does any link can provided to download the specified documentation ??The error is probably that your Worksheets variable is actually empty. Looking at your code I think the problem is that you try and get the value of the worksheets collection from the application then you should try and get it from the Workbooks object.
-
How can we execute the session in error mode through SE38 program
Dear Experts,
How can we execute the BDC session in error mode through se38 programme....
we can execute the session in the below 2 ways
1) Through SM35 we can process the session manually in foreground/Error mode or Background also.
2) through RSBDCSUB (standared Program) we can process the session in back ground.
But i want to process the session in foreground or Error mode..Do we have any standared program for process the session in foreground or error mode.
Please suggest.
Regards,
Bussa.Hi Bussa,
Please maintain the mode as 'E' . If there is any errors it will stop else it will run.
http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInput-+BDC
http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-WhySHDBdidn%27trecordsomescreens%3F
Regards,
madhu. -
How can i refresh the session object
Hello..
I am jst learning jsp... i hav a problem plz help me...
I am using <jsp:useBean id="util" class="myUtilClass" scope="session" />
I hav modified the object content...
how can i refresh the object...
ie...i want to access the modified data in the session object...You don't do that. It should already be reflected.
Unless you modified another instance of it. If this is the case, then fix your code logic accordingly that it modifies the right object instance. -
How can we modify the distination url while migrate the personalization
Hi All,
I got the requirement to create a link in iSupplier home page. I have created the link using oa framework personalization and set the destination URL with the third party's test instance URL. It is available in test instance and the third party url is also the test instance url . I have to move this personalization to production. In production the same link has to open the third party's prod instance only. But i am little bit confused, how can we modify the detsination url in the personalizaed the document.
Please suggest me if there is any generic way of modifying the link url while migrating the personalization from one instance to another instance.
Thanks in Advance..
Regards,
PurushothHi,
---Its nt possible via personalization go for co extension
Im not sure but pls try with below approach.
---In co get the webBean of OALinkBean and setDestination URL in code.
if(Prod)
setdestinationURL("");
if(Testing)
setDestinationURL("");
Regards
Meher Irk -
How can we get the document id at event close?
Hi All!
I wanted to perform some actions at document close on the document file that has been saved to disk. To make sure that I am perfoming these actions on the right document, in case the user does a close all if multiple documents are open, I thought of getting the document id of the document which is closing. But I am having problems getting the document id from the descriptor I get at the close event call back function. How can I get the document id from this descriptor?
Pls guide.
Thanks!Hi Sandy,
This should be no different than any other form of completing it. You can bind the Actual Agent back to your WF, and you could also bind SY-UZEIT if you need have the completion time in a WF container element.
If you are talking about reading this afterwards, the agent is in SWWWIHEAD-WI_AAGENT.
Hope that helps,
Mike
Maybe you are looking for
-
I had to make a new ID because the old one I have had for years now was not working. So I made a new one under the same e-mail and it said it was not in use. When I go to review it I go through all the steps until I get to the payment and then there
-
Can my iPod Classic 160GB model MB565LL version 2.0.1 Mac be controlled with my Apple Remote if it is connected to the universal dock and connected to my stereo system
-
Hello, I am hoping that someone out there can help me. In my windows application I create a copy of my database using SMO. I am hoping to convert my application to be SQL version independent and not use the SMO objects in my code. I have seen severa
-
I want to update to lion but I need to update to snow lwpord first. I only have osx 10.5.8 so will snow lepord work on my computer when I try to install it?
-
I currently stream content from itunes to ATV and use iPhoto. I am considering purchasing Aperture. Will I be able to stream photos from Aperture to ATV or will I have to put them in iPhoto first?