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

text field value vanishing

Former Member
0 Likes
1,149

Hi experts,

I have entered a value in a text field through an F4. Even i can type the same there. But if i press enter, the value dissapears. Any idea why this happens? I checked the PBo has nothing to do with this.

This queastion pertains to modal dialog programming.

Best Regards!

Sandip

Hi experts,

I have entered a value in a text field through an F4. Even i can type the same there. But if i press enter, the value dissapears. Any idea why this happens? I checked the PBo has nothing to do with this.

This queastion pertains to modal dialog programming.

Best Regards!

Sandip

9 REPLIES 9
Read only

Former Member
0 Likes
1,117

Hi ,

Start debug and put a watchpoint on the varible or trace the value of screen field.

There are chances that it is being cleared in PAI or PBO.

Hope this helps you.

Read only

0 Likes
1,117

Hi Harsh,

Thanks! How do i trace on the variable? Do you mean just look at the value?

Best Regards!

Sandip

Read only

0 Likes
1,117

Ya,

you can check the screen field value ,

It might be populated in a variable in PAI , check this variable .

Also, How this screen field is initialised in PBO , do value comes from any variable , if yes, populate this variable in PAI.

Hope this helps you.

Read only

Former Member
0 Likes
1,117

HI,

In PAI event module .....pass the same field value into same field value...

like if your screen field is LV_MATNR .........

LV_MATNR = LV_MATNR.

Thanks,

Shailaja Ainala.

Read only

MarcinPciak
Active Contributor
0 Likes
1,117

For me it looks like you did not declare your input field correctly, that's why trasnport b/t program and screen can't take place.

Ensure that you have same field name and program data object used for it.

It also applies to structures, you can't omit its name in the declaration

i.e. screen field: sflight-carrid -> program data object sflight-carrid .

Regards

Marcin

Read only

0 Likes
1,117

Can you paste the code where you have used the variable incuding the screen flow logic.

Read only

Former Member
0 Likes
1,117

Just refer to the same data type in program and as well as screen..

if in program you are uisng mara-matnr then in screen use the same reference mara-matnr.

Regards

Satish Boguda

Read only

0 Likes
1,117

Hi Guys,

Thanks for your views... But they did not help because the fix was "output attribute of the screen field was somehow changed to zero at runtime.. " So nothing was displayed.

Regards!

Sandip

Read only

Former Member
0 Likes
1,117

HI,

Say your screen field name is MATNR, then declara a variable in TOP include with same name 

In TOP include

data : MATNR type MATNR.

This will make sure automatic data transfer.

Cheerz

Ram