Using different logins as per the user
if there are two officers then a screen heading should change dynamically and allow the user to give their comments depending upon which user has login into the sytsem.plz tell me if there is any code aur any navigation method for this type of requirement
Hi Nisha,
If I have understood your issue corectly.
Once user accesses application, and if you can identify which user he is, then you can easily achieve this in Web Dynpro.
Let us say Header is "Web Dynpro" for officer A and "Portal" for user B. You approach can be, creating context attribute "header" and assocaiting this to header UI element. Once user logs in,
if User is A ---wdcontext.currentContextElement().setHeader("Web Dynpro");
else if user is B--wdcontext.currentContextElement().setHeader("Portal");
Similar Messages
-
Print parameters as per the user selection in ALV
Hi All,
We have a requriment for getting the print parametrs to print dialog as per the user selection in ALV list display.
When the user click on 'Print' button In ALV list output screen, we need to capture the print parameters from a Z table and put those on the print parameters dialog box.
I tried this , by calling the function GET_PRINT_PARAMETERS and SET_PRINT_PARAMETERS before the alv function is called. Unforutnately this is not working. Same code works for the simple list display.
Have anyone worked with this kind of requriment ?
Regards,
MithunWhat kind of ALV are you using, FM or OO?
Regards,
Rich Heilman -
How to get last login date of the user
Hi,
I have an application where i need the last login date of the user and if the differance between the last login date and the system date is greater than a certain range the user account should be locked automatically.Please suggest me how resolve the problem as early as possible.
Thanks and Regards
AniruddhaHi,
We have faced the same issue earlier. Some attributes are available in SAP API, but they are depricated by sap due to some performance issue.
Below solution will be helpful:
So we have implmented custom code in our application. We have developed one webdynpro application which will retrieve update & retrieve logon time from portal database(custom table). And we have integrated this application in desktop inner page. So this application will be invisible to the user and will executed first time when user logs into the portal.
Regards,
Charan -
How to change the Default login script and the USER login script in Netware3.12
I need to cut down the disk map from Neware 3.12 in Win98 client's PC.
please tell me
how to change the Default login script and the USER login script in
Netware3.12 ?
Or is there any other ways to do this thing?
Thanks a lot!On 4/6/2006 [email protected] wrote:
> how to change the Default login script and the USER login script in
> Netware3.12 ?
Please repost in the discontinued.forums.
Edison Ortiz
Novell Product Support Forum SysOp
(No Email Support, Thanks !) -
Is it possible to use different iOS devices with the same account of the gamecenter?
Is it possible to use different iOS devices with the same account of the gamecenter? in that case, can two people play a game with the same account and add both scores to the same leaderboard nickname?
You should be able to use the same account. The top scores will get updated on the leader board.
Taz -
Getting login names of the users.
Hi,
Does anybody have an idea of getting login names of the user present in the plumtree.IPortletContext edk = PortletContextFactory.CreatePortletContext(Request, Response);
IPortletUser IUser = edk.GetUser();
userName = IUser.GetUserName(); -
hi all,
I am doing mxml flex4 web application. i am using a login in my application. this login for multi user purpose.
My need is when a user login using his username and password his company logo should show the top of my application and his copyright details show the bottom of my application
if another user login means his company logo and copywrights should show in my application.
This logo and copyrights details should change dynamically based on the login information.
I want to create this using CSS file (skins and sparks)
How to do this,i am struck in this place,
Looking for useful and helpful suggession or snippet code,
Thanks in advance,
Cheers,
B.Venkatesan.If the user is logging in, presumably you are having the user hit a back end web-server and database and using something like Blaze to connect? Right?
I personally would not do this with CSS. I would map the company icons to the users in the DB, retrieve the proper company icon and then pass it down (or embed it in the app) when the user logs in. Then, I would just set the source of the icon to be what I passed down:
Add your image where you want it to go:
<s:Image id="emptyImage" x="locationx" y="locationy".../>
Then in your ActionScript, when the user logs in and you know what company the user belongs you could do this:
private function loginUserBlazeResponse(resultEvent:ResultEvent):void {
var bytes:ByteArray = ByteArray(resultEvent.target);
emptyImage.source = bytes;
addElement(img);
img.visible = false;
img.addEventListener(FlexEvent.UPDATE_COMPLETE, imageLoaded); -
Need to display last login details to the user after they login into portal
Hi All,
As per our requirement ,we need to display to the user,the following things:
1.Last login date and time will be maintained and displayed to the user after login.
2.Last unsuccessful login date and time will be maintained and displayed to the user after login.
3.No. of unsuccessful retrials before locking the user will be maintained and displayed to the user after login.
Therefore we are creating a webdynpro application wherein we are making use of the UME API and trying to retireve these information.
The methods i am using are:
IUserAccount.getLastFailedLogonDate() // To fetch the Last unsuccessful login date and time
IUserAccount.getFailedLogonAttempts() // No. of unsuccessful retrials
IUserAccount.getLastSuccessfulLogonDate() // Last login date and time
But the problem is IUserAccount.getLastSuccessfulLogonDate() is deprecated and i unable to use it,and also i am unable to get the value *IUserAccount.getFailedLogonAttempts() * I am only geting zero.Can anybody let me know alternative method to get this details.
Request you to guide me and help me to resolve this issue.
Thanks and Regards,
Nishita SalverHi,
I hope you are trying to show your login date from SharePoint List.
My suggestion is
1. by using ECMA Script ,retrieve values from that list and show the same in Master Page.
2. If you are not comfortable with ECMA, develop Visual Webpart and add the Visual Webpart in master page by using SharePoint Designer.
Please let me know ,if you need further guidance.
Don't forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
Mahesh -
Work with a table in different schema depending on the user group
I have 2 groups of users user_group1, user_group2 and also two different schemas schema_group1,schema_group2 containing the same table names with a different content.
Now, i have to write a stored procedure which takes user name as input and depending on which group the user belongs to, i want to work with table in that user_group schema. i.e.(if user_group1 then "schema_group1"."table". if user_group2 then "schema_group2"."table" )
i tried to set schema using dynamic sql but it seems that the schema is changing only after the end of the stored procedure.yes, i do maintain a table to map user groups with schema name.
i have two tables:
table-1: USERS(user_name, group_name)
table-2: GET_SCHEMA(group_name, schema_name)
// Just to make it simple(for testing purpose), i am directly assigning the schema_name inside the stored procedure.
CREATE PROCEDURE "TEJA"."RETURN_SCHEMA_OF_USER" (IN IN_USER_NAME VARCHAR(30))
LANGUAGE SQLSCRIPT
AS
BEGIN
DECLARE VAR_USER_GROUP VARCHAR(20);
--DECLARE VAR_SCHEMA_NAME VARCHAR(20);
DECLARE SCHEMA_NAME VARCHAR(20);
DECLARE SQL_STATEMENT VARCHAR(200);
DECLARE VAR_TEMP VARCHAR(200);
SELECT USER_GROUP INTO VAR_USER_GROUP FROM "TEJA"."USERS" WHERE USER_NAME = IN_USER_NAME;
--SELECT VAR_USER_GROUP AS USER_GRP FROM DUMMY;
-- SELECT GROUP_NAME INTO VAR_SCHEMA_NAME FROM GET_SCHEMA WHERE GROUP_NAME = VAR_USER_GROUP;
-- Instead of above statement, i am directly assigning the schema_name below
IF VAR_USER_GROUP = 'UNION' THEN
SCHEMA_NAME := 'USER_UNION';
ELSE
SCHEMA_NAME := 'USER_CORPORATE';
END IF;
SQL_STATEMENT := 'SELECT * FROM "'||:SCHEMA_NAME||'"."USER_DETAILS"';
--I have USER_DETAILS table in both the schemas.
--SQL_STATEMENT := 'SET SCHEMA ' || :SCHEMA_NAME || ' ';
--sets the schema after the stored procedure is executed.
EXECUTE IMMEDIATE SQL_STATEMENT;
END;
This dynamic sql statement does the job for me, but i don't want to use dynamic sql in all my stored procedures. I need this kind of functionality in almost all of my stored procedures. So, i am looking for a better approach. I really appreciate your valuable inputs.
Thank you -
I want to use google when I type to search in the main bar and wikipedia on the small search bar on the right. However, they both seem to use the same search engine, depending on which one I've chosen on the small search bar. I want them to use different ones without having to click and change engines. How can I do that?
You can use a (one letter) keyword search on the location/address bar and assign a keyword via "Manage Search Engines".
You can use the Keyword Search extension to specify which search engine to use for searching via the location/address bar.
*https://addons.mozilla.org/firefox/addon/keyword-search/ -
Using a "Button" to submit the user entered data as a PDF into Email
I have created a form in which the user fills out the form and clicks a "Button" to submit the data via PDF(attached to an email) to a specific email address (mailto:[email protected]). When I email the blank to coworkers it does not allow the functon to work. Any assistance would be greatly appreciated!
Also if you have the time is there a way to define the order of data when user's submit via xml?That did it. Thank you greatly!
Pete Nappi Jr.
A.N.A. Logistics, Inc.
631-981-4339 Ext:110
Please use www.goodsearch.com and
donate to WLIX radio or your favorite
charity with every internet search... -
What are the different methods to find the user-exit for any requirement?
Hi Everybody,
What are the different methods to follow to find the user-exit for any requirement?
Thanks & Regards,
Nagaraju MaddiThe following program search all the user exits involved with a T-code:
Selection Text: P_TCODE: Transaction Code to Search
Text Symbols: 001 - Enter the Transaction Code that you want to search through for a User Exit
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP® User Exits exists.
*& Tables
TABLES : tstc, "SAP® Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP® Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
* Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
* Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
* Find SAP® Modifications
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
* Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN. -
How can I use wpg_docload.download_file and prompt the user to save it?
Hi,
Posted about this a couple of weeks ago with a text file and got the following code (where x.zip=x.txt) and it worked fine. Problem is that I need to do this with zip files, and when I run the code below, it simply displays the zip file, rather than prompting the user to save the file. Have tried every mime type under the sun. No joy.
The How to Upload and Download Files in an Application Advanced Tutorial for Release 3.2 does not work for APEX4. Simply creating a file browse item leads to Error ORA-20999: P3_FILE_NAME has to have a valid BLOB column as source. and so I cannot follow that tutorial to get further clues on how to make this work.
Susan
Thanks and here's the wpg_docload.download_file code that displays a binary file:
declare
lob_loc bfile;
v_length integer;
fname varchar2(100) := 'x.zip';
l_blob blob;
des_offset number := 1;
src_offset number := 1;
begin
lob_loc := bfilename('CELFILES_9906', fname);
v_length := dbms_lob.getlength(lob_loc);
DBMS_LOB.createtemporary(l_blob, FALSE);
dbms_lob.open(lob_loc, dbms_lob.lob_readonly);
DBMS_LOB.LOADBLOBFROMFILE(
dest_lob=>l_blob,
src_bfile=>lob_loc,
amount=>v_length,
dest_offset=>des_offset,
src_offset=>src_offset);
owa_util.mime_header('application/zip', false);
htp.p('Content-length: ' || v_length);
htp.p('Content-Disposition: inline; filename="' || fname || '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( l_blob );
DBMS_LOB.freetemporary(l_blob);
EXCEPTION WHEN OTHERS THEN
DBMS_LOB.freetemporary(l_blob);
RAISE;
end;I downlod blobs like this without issue (using IE7 and FF):
owa_util.mime_header('application/octet', False);
HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
htp.p('Content-Disposition: attachment; filename="'||v('P20_FNAME')||'"');
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (l_blob);
...Remember, that it's your browser's MIME type settings that determine whether to pop up a save diaglog box. In FF 3.6 > Tools > Options > Applications > Content type. The set action for each mime type. -
Last Login details of the user
Hi Everyone,
Is there any transaction code to find out last login details and the screens accessed by the user other than SM04, SUIM, RSUSR200,
Rgds,
Sailatha,Hi,
Some of the server programs ( ZLayouts, report programs that are in production ) have been modified by user DDIC, when checked the layout attributes, the date & time are shown as today, not able to figure out the transactions accessed by the user as SUIM is not showing the login details correctly, how do we find out the screens, programs accessed by the particular user?,
Rgds, -
Hi,
I have one query that how to enhance the standard default variant (SAP&COOIS) for standard transaction COOIS.
If any one know solution pls share.
Thanks & Regards,
J.GoudHi Maine,
Thanks for your reply.
As you mentioned for your own program, you can control the parameter "I_SAVE", when calling "REUSE_ALV_GRID_DISPLAY".
so already i have use the same logic and control the parameter through I_SAVE and here i am calling method ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY instead of "REUSE_ALV_GRID_DISPLAY".
and it works fine when we execute the report but the logic doesnt work when the user tries to change and save the layout variant on the output screen of the report.
Regards,
Satish
Maybe you are looking for
-
Does 9.3.1 really *require* UTF-8?
The "Installation Start Here" manual for release 9.3.1 makes a broad statement that databases must use the UTF-8 character set (see section entitled "Preparing Databases"). Has anyone out there successfully installed System 9 using non-UTF-8 Oracle r
-
Albums in the wrong order since ios 7
Since I have updated my iPad 2 to ios7 it has put 90% of my albums in the wrong track order. The same albums on my iphone 5 (ios7) are fine.
-
Directing to a report in a dashboard
Hi All, Is there any way we can direct users to a particular report in a dashboard when they login into presentation services?
-
I recently purchased a new Macbook Pro. I used the migration assistant and transferred all data from a Time Machine backup. Everything seems to be working just fine except for Aperture. It wants a serial number. I still have my old computer so
-
The send and spell check options are next to each other. I can not tell you how many times I hit the send button be accident. When sending, and question of 'Are you sure you want to send now?', should be asked. Thanks