‎2007 Dec 27 1:44 PM
Hi people!!!
I'm back with a new question for you!
I was asked to add a validation (in fact, an authority check) in a maintenance view of a "Z" transparent table.
I'm calling a new module from the PAI of the view dynpro and created that module. Everything ok with that.
The problem is that I need to use some global variables. I went to the main program of function group and then to the global data include. I added some variables there, but they are not seen from PAI.
Maybe I'm not allowed to do what I'm doing and that's why I can't use that "top" include.
Any ideas, advice, etc?
Thanks in advance!
Bet
‎2007 Dec 27 5:11 PM
‎2007 Dec 27 5:36 PM
Hi Bettina,
Variables that you declare in the top include of the maintenance view function group cannot be accessed within the flow logic (screen area where you define the PAI, PBO etc. modules). However these variables shall be accessible across all modules within the maintenance view and all screens (in case of multiple screen maintenance view is being used).
Hence populate and use the global variables inside the MODULES, but not in the flow logic, else your program wont even recognize them, as might be the case now. The flow logic only recognizes fields which are added on the screen or exist on the ELEMENT LIST.
Regards,
Aditya
‎2008 Jan 21 1:03 PM
Well, because of this problem, I wasn't able to do what I wanted to do. I told the functional that can't do that validation, but we can do a module pool that simulates SM30 and add our validation there.
Thanks!