Application Development and Automation 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: 
Read only

Delete User Parameter ID from SU01

Sougata
Active Contributor
0 Likes
3,158

Hi All,

Is there any FM/Method to delete/refresh a particular Parameter ID for a user? I can set it via SET PARAMETER command but I also need to delete the same parameter id for the same user before the program ends running.

Points will be rewarded generously!

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,475

Hi,

if i think right, it may not possible for u

try to contact ur BASIS guy.

regards

Raj

15 REPLIES 15
Read only

Former Member
0 Likes
2,476

Hi,

if i think right, it may not possible for u

try to contact ur BASIS guy.

regards

Raj

Read only

0 Likes
2,475

This is a generic username used in all batch programs that run in background e.g. 'SAPBATCH' and Basis wouldn't touch change anything for this user because anything goes wrong then hundreds of batch jobs might fail every day!! That's the reason why I want to set it back to how it was before SET PARAMETER command.

Any other idea how I can achieve this within the ABAP itself?

Read only

0 Likes
2,475

Hi,

Then you are just left with one option, get the value using GET parameter and store in variable, and use SET parameter twice, first to SET what you want and second time using the variable.

Reward points if useful.

Regards,

Atish

Read only

0 Likes
2,475

Hi Atish,

There is no parameter for this user when I set it the first time. I've to take it off completely after I finish using it.

This is what I want to do:

Set parameter id 'F02' field 'X X X'.

Call transaction 'F-43' using......etc.

  • here i want to delete the user parameter altogether for the user so that when

  • user parameter is viewed from SU01, there is no 'F02' visible in the parameter tab

Read only

0 Likes
2,475

Hi,

Can you please explain a bit as what you want to achieve. As when you look into SU01 only those parameters are visible which are stored for your user ID by Basis.

Regards,

Atish

Read only

0 Likes
2,475

Because this is a generic 'BATCH' user therefore no parameters are stored in its id by the Basis.

What I want to achieve is tick the checkbox named "Calculate taxes on net amount" in transaction FB00. This is required because the program posts FI documents via transaction F-43. I check this via SET PARAMETER command. After the program post the documents I want it to uncheck the checkbox. The way to do that would be to delete the parameter id in SU01.

I tried with FM SUSR_USER_CHANGE but it didn't work

Read only

0 Likes
2,475

Hi,

1 - Once you post the transaction the parameter ID is not stored in SU01.

2. - Once the document is posted once again use SET PARAMETER and pass the value <i><b>space</b></i>.

Hope it should resolve the issue.

Regards,

Atish

Read only

0 Likes
2,475

I think my explanation is not clear.

1. The parameter id will be saved in SU01. This is not because of the document posting but i'm setting it through SET PARAMETER command before CALL TRANSACTION i.e. setting it before the doc post.

2. I've already tried SET PARAMETER ID 'F02' FIELD <b>space</b> but it does not work! Although the return code is 0 but the checkbox in FB00 is still checked.

Read only

0 Likes
2,475

Can you just paste your code.

I think you haven't used SET properly. and as far as I know SET PARAMETER will not save the value in SU01. The value is just stored in the memory ID.

Regards,

Atish

Read only

0 Likes
2,475
* Set Parameter to auto calculate tax on net amount in FB00 (Editing options)
    SET PARAMETER ID 'FO2' FIELD 'X           X     X'.
Read only

0 Likes
2,475

Hi,

Just try this

l_paramid type tpara-paramid.

Set Parameter to auto calculate tax on net amount in FB00 (Editing options)

SET PARAMETER ID 'FO2' FIELD 'X X X'.

To set it again .

SET PARAMETER ID 'FO2' FIELD l_paramid. OR

SET PARAMETER ID 'FO2' FIELD ' '.

Hope it should work.

Regards,

Atish

Read only

0 Likes
2,475

Sorry, neither statement works.

I think I found the answer. Let me try it out first.

Read only

0 Likes
2,475

Nice you found answer on your own

Do share the same.

Regards,

Atish

Read only

0 Likes
2,475

Sorry, I was wrong. SET PARAMETER ID 'FO2' FIELD space works fine. But it will only take the tick off that checkbox in FB00 and will not delete the parameter id from SU01. To clear the parameter id 'FO2' of the user,

  DELETE FROM usr05 WHERE bname = sy-uname
                    AND   parid = 'FO2'.

Thanks for your time mate.

Cheers.

Read only

Former Member
0 Likes
2,475

Hi,

I don't think there is some FM for this. You need to use SET PARAMETERS for that. Other option is set parameter id into user profile. Basis can do this.

Reward points if useful.

Regards,

Atish