Application Development 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: 

text field value vanishing

former_member583013
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

Hi Harsh,

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

Best Regards!

Sandip

0 Kudos

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.

former_member262988
Active Contributor
0 Kudos

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.

MarcinPciak
Active Contributor
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

former_member1245113
Active Contributor
0 Kudos

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