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

Value disappears in module pool screen while pressing ENTER

Former Member
0 Likes
5,793

Hi all,

I declared a field as character in screen as well as in top include. While Pressing Enter, the value disappears. While Debug, Screen value retains in both PAI and PBO. But the value disappears in screen. From PBO the values is not copying to the screen.

The field declaration is same in screen and top include.

Please help me to solve this issue.

Regards,
karthik

9 REPLIES 9
Read only

Former Member
0 Likes
2,559

Hi,

The field that you created was not set as Output Field in the layout. Please check this box.

Read only

vladimir_erakovic
Contributor
0 Likes
2,559

Hi Karthik,

I had that problem once but I can't remember what was the problem.

Try this, see if somewhere in your code is CLEAR for that field.

You can also put

CLEAR sy-ucomm.

in the beginning of STATUS module.

I hope it will help you. If I recall I'll write you tomorrow.

Best regards,

Vladimir

Read only

former_member188282
Active Participant
0 Likes
2,559

Hi Karthik,

Did you maintainted that field in PAI event if not write the below code in PAI.

FIELD PV_MATNR.

At the same time please check if you are clearing any where in your programme.

Regards,

Rajesh

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
2,559

Hello Karthik.

Whether that field is in a table control or separate one?

Read only

Former Member
0 Likes
2,559

Hello Karthik,

Use FIELD variable_name in which u are getting input.

ex : FILED  PV_VBELN

if you passing the input to processing module then follow the example syntax.

FIELD pv_vbeln MODULE get_sales .

Read only

sivaganesh_krishnan
Contributor
0 Likes
2,559

HI Karthik,

Make sure you have coded correctly in PAI and PBO , see wheather the value exist in the fields . The best solution is to debug the entire program . See if the value gets cleared some where.

If you are using a table control make sure that the value exits in the internal table of TC, for reference .

Regards,

Sivaganesh

Read only

Former Member
0 Likes
2,559

Are you sure that field name and type are identical in program and screen element?

I would like you to paste the declaration part in program and screen.

Read only

Former Member
0 Likes
2,559

Hi,

May be you are clearing that field some where.............................. Debug it properly and check....While you press enter both PAI and PBO will work....... so debug it properly and check...May be you are initializing that field again and again in PBO.

Regards,

Alenlee Mj

Read only

Former Member
0 Likes
2,559

Hi karthik ,

Check whether the variable is holding the screen value after entering the values in the screen field .

Check whether any of the clear statement of assignment statement is modifying the program variable .

It will be helpful if u give the code snippet including your top of page declaration , pbo , pai ,screen shot of the element list .So that precise solution can be given rather giving some wild guess of the problem