‎2013 Oct 21 9:21 PM
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
‎2013 Oct 21 9:53 PM
Hi,
The field that you created was not set as Output Field in the layout. Please check this box.
‎2013 Oct 21 10:11 PM
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
‎2013 Oct 22 3:18 AM
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
‎2013 Oct 22 3:53 AM
Hello Karthik.
Whether that field is in a table control or separate one?
‎2013 Oct 22 4:09 AM
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 .
‎2013 Oct 22 4:10 AM
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
‎2013 Oct 22 4:20 AM
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.
‎2013 Oct 22 5:08 AM
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
‎2013 Oct 22 5:48 AM
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