08-19-2013 11:51 AM
Hi Experts,
We are looking for means to change the user Parameter ID in background program. (We were able to change the roles through one of the BAPI but we couldn't find similar enhancement for changing User Parameter ID in user master record.)
The said enhancement should work in this sequence:
1. Delete the existing assigned Parameter IDs in particular User ID
2. Assign new Parameter IDs in particular User ID
Let us know if you need further inputs in this direction.
Thanks in advance for your help!
Pradip
08-19-2013 1:19 PM
Hi Pradip ,
you want to delete all existing parameter id's for the particular user or selected parameter id's which you enter ?
also check this below code .
Regard's
Smruti
08-19-2013 11:55 AM
Did you check BAPI_USER_CHANGE ? Structure PARAMETERX & PARAMETER
or
is it something else required ?
08-19-2013 12:05 PM
Thanks Kesavadas for your quick input.
I have already tried using that BAPI but I want to first delete the existing parameters & replace them with new parameters.
Pradip
08-19-2013 12:31 PM
Hi,
AFAIK there is no such function which deletes the entries in table USR05. For example, if you see the note 87386 and its correction instruction, the table USR05 is deleted with a direct "delete statement".
08-19-2013 1:19 PM
Hi Pradip ,
you want to delete all existing parameter id's for the particular user or selected parameter id's which you enter ?
also check this below code .
Regard's
Smruti
08-21-2013 6:40 AM
Thanks Smruti for reply.
But One more problem is I want also Add Parameters to Particulars User ID.
08-21-2013 7:19 AM
Hi Pradip ,
Call above program once again with New Parameter Id to User "X" , i mean first call to remove all parameter id then again call same but with new parameter id and it's value.
like ...
MOVE ' ' TO I_PAT-PARID . " Parameter ID
MOVE ' ' TO I_PAT-PARVA. " Parameter Value
MOVE ' ' TO I_PAT-PARTEXT. " Shot description
APPEND I_PAT.
CLEAR I_PAT.
CALL FUNCTION 'SUSR_USER_PARAMETERS_PUT'
CALL FUNCTION 'SUSR_USER_BUFFERS_TO_DB'
upto this you remove all parameter id to particular user id .
then now pass with new value parameter id 's.
MOVE 'ABC ' TO I_PAT-PARID . " Parameter ID
MOVE ' XYZ' TO I_PAT-PARVA. " Parameter Value
MOVE 'SAMPLE TEST ' TO I_PAT-PARTEXT. " Shot description
APPEND I_PAT.
CLEAR I_PAT.
CALL FUNCTION 'SUSR_USER_PARAMETERS_PUT'
CALL FUNCTION 'SUSR_USER_BUFFERS_TO_DB'
Regard's
Smruti
08-21-2013 7:45 AM
08-21-2013 7:46 AM