‎2007 Jun 21 4:03 AM
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.
‎2007 Jun 21 4:07 AM
Hi,
if i think right, it may not possible for u
try to contact ur BASIS guy.
regards
Raj
‎2007 Jun 21 4:07 AM
Hi,
if i think right, it may not possible for u
try to contact ur BASIS guy.
regards
Raj
‎2007 Jun 21 4:13 AM
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?
‎2007 Jun 21 4:18 AM
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
‎2007 Jun 21 4:36 AM
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
‎2007 Jun 21 4:50 AM
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
‎2007 Jun 21 5:17 AM
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
‎2007 Jun 21 5:22 AM
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
‎2007 Jun 21 5:39 AM
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.
‎2007 Jun 21 5:42 AM
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
‎2007 Jun 21 5:45 AM
* Set Parameter to auto calculate tax on net amount in FB00 (Editing options)
SET PARAMETER ID 'FO2' FIELD 'X X X'.
‎2007 Jun 21 5:57 AM
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
‎2007 Jun 21 5:59 AM
Sorry, neither statement works.
I think I found the answer. Let me try it out first.
‎2007 Jun 21 6:01 AM
Nice you found answer on your own
Do share the same.
Regards,
Atish
‎2007 Jun 21 6:11 AM
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.
‎2007 Jun 21 4:07 AM
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