‎2007 Mar 19 2:41 AM
Hi,
I would like to know more about parameters. what i want to do is to be able to use parameters to decide if a logged in use is from a certain department. Say Department 1 or 2. When a program is executed, the program will know from the user profile that he/she is from department 1. Any idea how to go about this? Thanks.
Regards,
r3venant
‎2007 Mar 19 3:31 AM
Hi Revath,
you can create parameter id 3 ways
1. Goto SM30 for table TPARA and create it
2. you can go to SE80,
Other object button -> More... tab -> SET/GET parameter ID.
Enter a name and press the create button.
3. use FM RS_PARAMETER_ADD
‎2007 Mar 19 2:56 AM
Hi R3venant,
Yes you can do.Use sy-uname to get the logged in user name.
Then Check the table pa0105 and get his employee number.
get his position from pa0001 table and get the corrs dept.
Rgds,
Jothi.P
let me know the outcome.
‎2007 Mar 19 2:58 AM
This can be done with a piece of code.
For SY-UNAME extract PERNR from PA0105 SUBTY = '0001'.
For that PERNR extract ORGEH from PA0001. this is your Department.
Regards,
Amit
Reward all helpful replies.
‎2007 Mar 19 2:58 AM
Check for user profile transaction SU3>User profile> Own Data, May be user can maintained the dept value here
aRs
Message was edited by:
aRs
‎2007 Mar 19 3:02 AM
Thanks guys, Um. If lets I want to create my own custom parameter ID to hold the deparment number. How do i go about it? Thanks again
Regards,
r3venant
‎2007 Mar 19 3:31 AM
Hi Revath,
you can create parameter id 3 ways
1. Goto SM30 for table TPARA and create it
2. you can go to SE80,
Other object button -> More... tab -> SET/GET parameter ID.
Enter a name and press the create button.
3. use FM RS_PARAMETER_ADD
‎2007 Mar 19 3:35 AM
Ok thanks alot guys. I'll work on it. Thanks again
Regards,
r3venant