‎2009 Jan 15 3:17 PM
I'm submitting a report in a program using a variant just to be sure (the report fills many optional parameters depending on user parameters).
Yesterday I found out the program is crashing because of a hidden parameter that gets filled depending on previous action from some users.
So I have two options
- Change the submit to make sure the parameters is always set to off.
- Change the variant setting the parameter off.
I would think the second option is the easiest, but I can't find a way to manually modify the hidden parameter in the variant in the production system.
Yes, I could modify it in development and then transport it but that would imply a transport request and I'm trying to avoid that.
‎2009 Jan 15 3:31 PM
Hi,
How is the element being hidden? Using NO-DISPLAY? If yes, then here is something from SAP help itself.. "This addition means that no screen elements are generated for the parameter on the selection screen. In an executable program, a parameter of this type is exclusively a part of the interface defined by the selection screen. It can be supplied with a value by the calling program when called with SUBMIT. "
If elements are hidden using variant then you should not have any problems altogether..
Revert.
‎2009 Jan 15 3:36 PM
The parameter uses no-display.
As I said, I know I can change it using submit, but I'm avoiding anything requiring a transport request.
I don't know if there is a transaction to manually change the contents of the variant.
I would probably end up changing the program or modifying the variant in development, just want to make sure there is no other option
‎2009 Jan 15 3:43 PM
Hi Ramiro,
Definitely the contents of the parameter with No-display cannot be changed from a variant.
Probably if u say it has changed from previous user action then there has to be a parameter id playing some role here..
Else i cannot see a way how the value might have changed.
Revert.
‎2009 Jan 15 3:55 PM
Yes, there is a parameter id involved.
The no-display parameter has three states.
Y- Display ALV grid
N- Display ALV list
Others - Check previous user preferences using a parameter id
I want the report to always be displayed as an ALV List because I need to export it to memory. However, I never submit this parameter in the first place and the variant I'm using has the parameter empty, so it always checks the user preferences.
Changing the parameter id is not an option.
I tried in development and I do can change the content of the parameter using the debugger and later saving the variant the value stays.
But as I said, I want to avoid anything concerning a transport request right now. If I can change the value of the parameter to 'N' right into production it would be great
‎2009 Jan 15 4:04 PM
Hi Ramiro,
Yes you can definitely maintain the value of parameter ID in debugging and stuff would work.
Sorry only suggestions from me at the moment are:
1. Pass the parameter in Submit.
2. Change the PARAMETER type and delink from parameter ID and set it as default 'Y' or 'N' whatever.
Yes i know both will require transports.
Please do let us know if u find a work-around for this..
All the Best !
‎2009 Jan 15 4:06 PM
If there is a parameter id assigned to the field, then you can set teh same in the user profile parameters for the user that runs the job. I guess it must be a job user or something like that.
You can goto System>User Profile> Own data and maintain the value for that parameter in the Parameters tab.
Hope that solves your problem.
regards,
Advait
‎2009 Jan 15 4:09 PM
As I said, changing the parameter id is not an option because it is user specific and might screw with their preferences
‎2009 Jan 16 8:21 AM
Then I don't think there is another way than to change your program.
regards,
Advait
‎2013 Mar 19 11:44 AM
I came accross a simillar problem where the parameter was hidden using no display. I managed to change the values in variant using 'selection variables'. So program change wasnt required.