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

How to access screen field value in a module pool programming?

gopalkrishna_baliga
Participant
0 Likes
3,637

Hi Experts,

I have create a module pool program SAPMYDLG. It contains two screens 100 and 200.

The first screen contains Employee_ID field. This field is not a dictionary field.

In the second screen 200, I want to access the value of Employee_ID field from first screen.

For this I created a global variable v_empid in TOP include.

Then in the PAI of the screen 100 I have assigned the screen field value to global variable.

v_empid = Employee_ID.

But this gives an error saying " Field Employee_ID not defined".

What am I doing wrong? How can I access the screen field value?

Thanks

Gopal

1 ACCEPTED SOLUTION
Read only

sridhar_meesala
Active Contributor
0 Likes
1,781

Hi,

If you are not using the dictionary fields in the screen, then you need to declare them as well in the TOP.

Thanks,

Sri.

3 REPLIES 3
Read only

sridhar_meesala
Active Contributor
0 Likes
1,782

Hi,

If you are not using the dictionary fields in the screen, then you need to declare them as well in the TOP.

Thanks,

Sri.

Read only

Former Member
0 Likes
1,781

Hi,

U must define each and screen fields in the top .

Please try it,if it wont work let me clearly whats u hav done.

Read only

Former Member
0 Likes
1,781

Hi,

Employee_ID field also must u define in the top include when u define that 100 screen and 200 screen will access.

regards,

muralii