How to capture the role of the user logged in CRM
Hi
How to capture the role of the user logged in CRM so as to restrict the Account group selection ; While creating a sales Order .
Can we deternine the profile in the related view .If so how , and what tables can we use to do so.
hi,
I think you should check CRM table AGR_USERS.
Regards
Michael
Similar Messages
-
How to capture the user change in an input field on a selection screen?
I am coding a selection screen in which there are two input fields. The first field takes a Unix directory from the user input. Based on the input value, the second field will be populated with a the name of a file under the corresponding directory.
My question is how I can make the program capture the user input without having to make the user press ENTER after they enter the value in the first field?
Any help will be greatly appreciated.Venkat,
Actually you led me to the real solution! It's the function module DYNP_VALUES_READ that does the trick for me. This function enables the program to capture dynamic user changes without recourse to PAI. Please refer to the code below:
REPORT zreiabsintf MESSAGE-ID zreiabsintfmc.
*<HGDC------------------------------------------------------------------
* Selection screen for the conversion program
*HGDC>------------------------------------------------------------------
SELECTION-SCREEN BEGIN OF BLOCK input WITH FRAME TITLE text-001.
PARAMETERS: p_indir LIKE epsf-epsdirnam OBLIGATORY, " Inbound file directory
p_infile LIKE epsf-epsfilnam DEFAULT gc_infile OBLIGATORY, " Inbound file name
SELECTION-SCREEN END OF BLOCK input.
*<HGDC------------------------------------------------------------------
* Displays a file-open dialog when the user clicks the search
* help button next to the inbound file text field. The user
* can select the inbound file visually.
*HGDC>------------------------------------------------------------------
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_infile.
* Capture any user change to the directory.
PERFORM check_dir_change.
* Display the file open dialog
PERFORM file_open_dialog CHANGING p_infile.
*<HGDC------------------------------------------------------------------
* Global constants
*HGDC>------------------------------------------------------------------
CONSTANTS:
gc_indir LIKE epsf-epsdirnam
VALUE '/interfaces/<SID>/inbound/', " Default inbound directory template
gc_infile LIKE epsf-epsfilnam VALUE 'input'. " Default inbound file name
*<HGDC------------------------------------------------------------------
* Global data
*HGDC>------------------------------------------------------------------
DATA:
gs_dynpfields TYPE dynpread, " Fields of the current screen
gt_dynpfields LIKE STANDARD TABLE OF gs_dynpfields. " Table of the screen fields
*& Form file_open_dialog
* Opens a dialog window for the user to choose a file in
* the specified Unix directory.
* <--P_FILE is the file to be selected.
FORM file_open_dialog CHANGING p_file.
* Validate the directory.
OPEN DATASET p_indir FOR INPUT IN BINARY MODE.
IF sy-subrc NE 0.
MESSAGE i001(zreiabsintfmc) WITH p_indir. " Unable to open the given directory
EXIT.
ENDIF.
CLOSE DATASET p_indir.
* Call the dialog window to open a file in the directory.
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = p_indir
IMPORTING
serverfile = p_file
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE i002(zreiabsintfmc). " Failed to open the file.
EXIT.
ENDIF.
ENDFORM. " file_open_dialog
*& Form check_dir_change
* text
* --> p1 text
* <-- p2 text
FORM check_dir_change .
CLEAR gs_dynpfields.
CLEAR gt_dynpfields.
gs_dynpfields-fieldname = 'P_INDIR'.
gs_dynpfields-fieldvalue = p_indir.
APPEND gs_dynpfields TO gt_dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = gt_dynpfields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE gt_dynpfields INTO gs_dynpfields INDEX 1.
p_indir = gs_dynpfields-fieldvalue.
ENDFORM. " check_dir_change
Thanks for all your answers! The problem is now solved.
Edited by: Ning Hu on Apr 9, 2008 11:32 AM
Edited by: Ning Hu on Apr 9, 2008 11:34 AM -
How to capture the user who has logged into the portal.
Hi,
How do I capture the user who has logged into the portal.
HOw do I retrieve the first name and last name of the logged in username.
Could someone provide me a related link or PDF to work on this.
Thanks,
SuvarnaHi suvarna,
Check the following code
ISearchResult rst = UMFactory.getUserFactory().getUniqueIDs();
IUserFactory usf = UMFactory.getUserFactory();
IUser iuser = null;
IUserListElement userElement = null;
int i = 0;
while (rst.hasNext()) {
iuser =
UMFactory.getUserFactory().getUser(rst.next().toString());
String email = iuser.getEmail();
String fname = iuser.getFirstName();
String lname = iuser.getLastName();
regards
Anil Dichpally -
How to capture the user name who is running concurrent program
Hi Everyone
In oracle apps when i want to store the user name who is running a concurrent program in specific responsibility.
For that I created a table as USER_INFO which has a column called USERNAME.
T o capture the user name i created a before report trigger and wrote the following code which will store the username into USER_INFO
function insert_trg return boolean is
begin
insert into USER_INFO(USERNAME) values
(select fnd_profile.value('USERNAME') from dual);
COMMIT;
return (TRUE);
end;In the above code i used fnd_profile.value('USERNAME') to store the username but after running the concurrent program when i am query the table it returns no rows .
It means the fnd_profile.value('USERNAME') is not storing the value.
Please tell me what to do?
Regards
SabyasachiIn order to fetch any FND_PROFILE or FND_GLOBAL values you need to initialize apps
fnd_global.apps_initialize(user, resp_id,resp_application_id)
begin
fnd_global.apps_initialize(0,20420,1);
dbms_output.PUT_LINE (FND_PROFILE.VALUE('ORG_ID'));
dbms_output.PUT_LINE (FND_PROFILE.VALUE('USER_ID'));
dbms_output.PUT_LINE (FND_PROFILE.VALUE('USERNAME'));
end; Check the following MOS note
How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE) [ID 209185.1]
Cheers,
ND
Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered. -
How to Capture the user command value instead of ucomm and pfkey from syst
Hi,
How to capture the value of enter key in the enhancements.
Iam getting the sy-ucomm value as space. Please let me know the better solution ASAP.
regards
NagendraHello,
If is a module pool program, take a look to the variable defined to receive the user-command (you can see this in the screen painter).
Regards. -
How to capture the user activities in Project Server 2010
Hi
I want to capture the user activities from Project Server 2010 like when a user has saved and published etc.
Is there any possibility that we can get the user activities data from sql server.
Please throw some light on the same.
Thanks
Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.Hi Geetha,
As far as I know, there is no such information stored in Project Server DB.
You can have this kind of information by project, such as the ProjectModifiedDate in the Reporting DB (MSP_EPMProject_userView). I also know that there is a PROJ_LAST_SAVED date in the Draft DB. But be aware that querying in the Draft DB is not supported
by MS.
Another way would be doing some custom code, storing in a separate DB each save and publish operation per user.
Hope this helps.
Guillaume Rouyre - MBA, MCP, MCTS -
How to collect the user logging info?
Hi All,
We want to collect all the users' logging information,such as all users' logon frequency,when logon and when logoff etc. Anyone knows how to get it?
Thanks In AdvanceHello,
another intersting info you can get is, transaction that where used by the user in a specific period time.
to get this information, please use transaction ST03.
Enter this transaction in EXPERT MODE, then choose the WORKLOAD-TOTAL.
choose a month, week or pecific day,and on the open menu below, choose your report(transaction profile or user profile)
for example-double click on a user will show all the transaction that where used by the chosen user on the specific period.
Regards,
Brauner Haim -
How to get the user logged at worklist (Adf Form - Human Task)
Hi,
I have an Adf Form Based on Human Task and and need to get the user logged at Worklist Application.
Anyone know to make this ?
Thanks.
Victor JaburHi, thanks for your reply, but i discover a better way to make this:
public String getLoggedUserWorklist(){
String user = "";
try{
Map parameters=AdfFacesContext.getCurrentInstance().getPageFlowScope();
IWorkflowServiceClient wfSvcClient = WorkflowService.getWorkflowServiceClient();
ITaskQueryService queryService = wfSvcClient.getTaskQueryService();
String contextId = (String)parameters.get("bpmWorklistContext");
IWorkflowContext context = queryService.getWorkflowContext(contextId);
user = context.getUser();
}catch(Exception e){
user = "";
return user;
} -
How to capture the User input value to user exist function module.
Hi,
How can i capture user input value.Here i am using User exist in BPS variable.
Calculating days using user exist functin module and my input is another variable i.e user defined value.
How can i capture user defined vaule into my function module.
This is very urgent can you help me..
Thanks....Hi!
You can get the instance using the method get_instance of the class cl_sem_variable, and call the method get_value with the return. Check the example:
CALL METHOD cl_sem_variable=>get_instance
EXPORTING
i_area = (planning area)
i_variable = (variable name)
RECEIVING
rr_variable = lr_var
EXCEPTIONS
not_existing = 1
OTHERS = 2.
CHECK sy-subrc IS INITIAL.
CALL METHOD lr_var->get_value
RECEIVING
rto_value = et_value
EXCEPTIONS
error = 1.
After this, read the first line of the table et_value (it should be the value that the user choose on the screen).
seeya!
Robson -
How to find the user logged on to machines in last 2 weeks,
Hi All,
I am running SCCM 2012 R2. I need your expert advice in a SQL query/sccm report.
I have a list of about 1000 users. I need to find out the all the machines names that these user logged on to in last 2 weeks
Hope you can help.
Thanks
ManishHello,
First, I don't this could be done with SCCM.
If you have SCOM implement, it may help in this case. SCOM forum:
https://social.technet.microsoft.com/Forums/systemcenter/en-US/home?category=systemcenteroperationsmanager
In addition, logon information could be found in event log of DC. Audit the log with script could be another workaround.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
How to get the user log from the entried planning data ???
Dear All,
Could you help me to give the suggestion regarding that please .. ?? :).
I have requirement to get the last user who in charge in modifying the planning data.
Or in the other words, i'm gonna get the log from the entried planning data.
e.g.
1. Phase 1 - My Friend:
Create the planning data :
Country Sales
INA $1000
2. Phase 2 - I update it and create new record.
Country Sales
INA $1500 < modified >
USA $400 < new >
Could i get the log from those records ??
The log can be contain:
the created user & modified user ??
I just read the article regarding status and tracking system in BPS, but could i cover that requirement ??
(Because i got that the status and tracking system for creating a workflow for planning).
Or ..
Is there other way that can fulfill this requirement ???
Really need your guidance all.
Regards,
Niel.Dear Mayank,
Tks a lot for your responses.
I've tried it but in BPS version..
I saw in the document there is GUID (unique ID), could you explain me what the objective is ???
I work out to plan to store the user created, date created, and planning level information in the log data.
What do you think ..
Is it better to display them in the BEx Report / another manual planning layout ???
What did you display the log data in your case ??
Still need your guidance ..
Really - really thanks.
Niel. -
How to see the user log of query
Hi all ,
Can any body help me about the log of user access to a Bex 3.5 query ? We want to learn which users access to query designer and make changes on queries. The query designer only give us the last user who access to query. Is there a transaction or something that we can see this information.Hi Selen,
Check RSZCHANGES and note down the compid
and check it in RSZCOMPDIR
Check these tables in SE11
check these threads even..
[Change logs for query...........;
[Id of logged in user;
[http://help.sap.com/saphelp_nw04s/helpdata/en/43/5fa1dc3c046e47e10000000a422035/frameset.htm]
Regards,
NR
Assign points if helpful... -
Capturing the User Id from the Password change screen after Login
Hi,
I need to capture the User Id from the Password Change screen and Pass it to the Custom Portal application that is triggered on the change password screen.That User Id will be passed on to the Portal application to retrieve the details of the User.
I have triggered the Custom Portal application from the OnClick of CHANGE button.
It can be probably done by appending the User Id captured from the Change Password screen to the Url of the Portal application.
But am not clear how to capture the User ID.
Pls help!!
Thanks & Regards,
Amarys.Hello
Why do you want to capture user id? You can access it from portal application. -
I have a 'n' users with write back privileges. for those users they have the privileges to edit a column. Now i need how to capture the user information & last updated or modified the column.
Can anyone let me know in detail.
ThanksHi mma,
i was not clear the first posted by you. instead of reply to that post i posted a new one.
I came to know with the usage of Variables we can capture the user. But i dont know how to use the variable.
Thanks -
Need to have pop up window in selection screen and capture the user action.
Hello Friends,
I have a requirement, that need to show a pop up window after execution, and to get the action from user using a Push button.
I create a selection screen and a sub screen as window.
After user execute from the selection screen, I am popping up this window.
Window contains some input values to be entered and push button to identify the user action.
I try to capture the user action using sy-ucomm, but it does not hold any value when user press the button.
How to overcome this issue.
Here is the definition of the window.
Pop Up Window for getting values
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE title .
PARAMETER : p_vdate LIKE t9aa01-validfrom,
p_dcggt LIKE t9aa01-hkont,
p_dcgst1 LIKE t9aa01-hkont,
p_dcgst2 LIKE t9aa01-hkont,
p_na LIKE t9aa01-hkont.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 20.
SELECTION-SCREEN PUSHBUTTON 2(10) text-001 USER-COMMAND SVE.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF SCREEN 500.
Cheers,
Senthil
Edited by: Senthil on Jan 7, 2008 11:03 AMHi,
Try using the below code.
data : w_var type string.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
DEFAULTOPTION = 'Y'
textline1 = 'test '
TEXTLINE2 = ' '
titel = 'check'
START_COLUMN = 25
START_ROW = 6
CANCEL_DISPLAY = 'X'
IMPORTING
ANSWER = w_var.
if w_var = 'J'.
else.
endif.
Comments : J indicates Yes and N indicates No
Regards,
Jeswanth
Maybe you are looking for
-
Satellite L300-19J - How can I change the warranty registration details?
I live in Romania and I bought my Toshiba L300-19J from Romania on the 9th of February. I have registered my Standard Warranty upon installing Windows. When trying to also register the International Warranty Extension, I noticed that there are some p
-
Problem upgrading from ios 4.3.5 to ios 6.
Hi all, I'm trying to upgrade my wife's iphone 4 from ios 4.3.5 to ios 6, and I'm getting an error message I can't find a meaning for or a solution to. I'm upgrading via iTunes because "over the air" isn't available to go from 4.3.5 to 6. I've Synced
-
EDIT: I have figured out a workaround to this. I created a 2nd administrator account, and installed air from there, and it went away without a single issue. Trying to install adobe air, and it continues to fail everytime. Here are the logs I've bee
-
HP Officejet Pro L7590 Windows XP We are having a problem with dot scrubber that appears each friday morning. It backs up something. We are not sure what. It slows down the computer for at least 20 minutes. Is this necessary to have on the computer?
-
Hi, I have photoshop CC. It's the french version but I would like to have it in english. I went in the creative cloud to change the language but it doesn't seem to work. Do you know how i could do it ?