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

Processing screen fields

Former Member
0 Likes
1,167

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???

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,075

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,075

Hi

Where do you have defined your module?

Max

Read only

venkata_ramisetti
Active Contributor
0 Likes
1,075

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

Read only

Former Member
0 Likes
1,076

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

Read only

0 Likes
1,075

How do I do that??

Code snippet please.

Read only

0 Likes
1,075

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

Read only

0 Likes
1,075

I call my module in the PAI of the screen 1229 in the program SAPLMEGUI and my module is in the include LMEVIEWSF01

Read only

0 Likes
1,075

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