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

Maintenance View - Adding code to check some data

bettinasilveira
Participant
0 Likes
590

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

3 REPLIES 3
Read only

bettinasilveira
Participant
0 Likes
420

Anyone?

Read only

0 Likes
420

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

Read only

bettinasilveira
Participant
0 Likes
420

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!