Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change User Parameters ID from SU01

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

8 REPLIES 8

kesavadas_thekkillath
Active Contributor
0 Kudos

Did you check BAPI_USER_CHANGE ? Structure PARAMETERX & PARAMETER

or

is it something else required ?

0 Kudos

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

0 Kudos

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".

Former Member
0 Kudos

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

0 Kudos

Thanks Smruti for reply.

But One more problem is I want also Add Parameters to Particulars User ID.

0 Kudos

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




0 Kudos

thanks smruti.

Problem Solve....

Regars.

Pradip

0 Kudos

Use FM ISH_USR05_SET.

Regards,

Gautham.