‎2006 Oct 26 5:11 PM
HI all,
How can I process screen fields in a PAI module.
I put a new module in the PAI of the screen 1229 of the program SAPLMEGUI (transaction me21n).
I can read the field I want in the debugger
(mepo1229-submi) but if I try to read this field in my module I've got this error:
Field "MEPO1229-SUBMI" is unknown
How can it be unknown in the module and known in the debugger???
‎2006 Oct 26 5:25 PM
Hi Michel,
One thing u can do is, just declare the structure mepo1229 as a global field. so that what ever the value u enter on screen will be transfered to this structure just before PAI. i think it will solve ur problem.
Rgds,
Mohan
‎2006 Oct 26 5:21 PM
‎2006 Oct 26 5:24 PM
Hi,
Not all the data in all screens are accessible during the debugging time.
The reason for this is based on the program code, suppose if there is a function call, control goes to the function module code, here only parameters that are passed the functional module are visble to the debugger.
Thanks,
Ramakrishna
‎2006 Oct 26 5:25 PM
Hi Michel,
One thing u can do is, just declare the structure mepo1229 as a global field. so that what ever the value u enter on screen will be transfered to this structure just before PAI. i think it will solve ur problem.
Rgds,
Mohan
‎2006 Oct 26 5:36 PM
‎2006 Oct 26 5:43 PM
Hi
It seems your module can't see the structure MEPO1229, but this structure is defined as global data in SAPLMEGUI so if you've define your module in an include included in SAPLMEGUI is very strange that message.
So I repeat where have you defined your module? In which include? An where is that include? In SAPLMEGUI?
Max
‎2006 Oct 26 5:47 PM
I call my module in the PAI of the screen 1229 in the program SAPLMEGUI and my module is in the include LMEVIEWSF01
‎2006 Oct 26 5:55 PM
You point me in the right direction, my MODULE was not in a include we're the mepo1229 was declare as global.
I moved the module into LMEGUII01 and it's working now.
Thnaks