2010 Jan 08 5:36 AM
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
2010 Jan 08 5:43 AM
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.
2010 Jan 08 5:46 AM
Hi Harsh,
Thanks! How do i trace on the variable? Do you mean just look at the value?
Best Regards!
Sandip
2010 Jan 08 6:31 AM
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.
2010 Jan 08 6:34 AM
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.
2010 Jan 08 8:01 AM
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
2010 Jan 08 8:41 AM
Can you paste the code where you have used the variable incuding the screen flow logic.
2010 Jan 08 7:42 PM
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
2010 Jan 11 3:34 AM
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
2010 Jan 11 3:12 AM
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