06-05-2007 4:44 PM
Hi,
I need to do an authorization on the plant entered in the select-options of the selection screen.
While I have worked with using FM ZCA_AUTH_CHECK_WERKS on parameters, I can't do the same for select-options, since the types do not match (import parameters.)
The idea that I have is to get all of the plants entered into the select-options, put them into an internal table and then loop at the internal table, with the authorization check inside the loop.
However, how do I get every single value and range entered? How do I work with this?
Points will be rewarded and responses will be greatly appreciated.
Thanks,
John
06-05-2007 4:48 PM
You would need to select from T001W where Werks is in your select option to get all the plant values, then do your looping/authorization.
06-05-2007 4:48 PM
You would need to select from T001W where Werks is in your select option to get all the plant values, then do your looping/authorization.
06-06-2007 6:11 AM
Hi,
No need to put in internal table.better u define the plant in select options and pass the select option variable to your function module.
Reward points if it is helfpul.
Regards,
Sangeehta.a
06-06-2007 6:42 AM
hi,
try this,
declare two variable,
low and high.............
low = paarmeter-low.
high = parametr-high
n = low + high -1.
do n times
put value in internal table
itab-parametrer = parameter-low.
parameter -low = parameter-low + 1.
enddo.
dont forget to reward points if helpful
Regards,
Imran