‎2009 Nov 11 9:23 PM
Hi
I have a module pool program with several screens , i some screen i have input fields for user enter data ; then i exceute the program and enter the data in the screen fields , but this values captured are not assigned to the screen fields ; that is just inmedatly in PAI actions i check and the screen fields are empty , even in the screen the fields are already captured, no matters wich action i excute (enter, cancel, whaever). I do not know why this happens ; I do not see any special in the screen, is a simple screen with some fields to enter.
So i have to use the FM 'DYNP_VALUES_READ' for assign to the screen fields the same value these same fields contains ; so i do not like it . Does somebody knows why this happens ? Is there a way for make the screen executes normaly so i enter the data and when the program leave the screen the screen fields contains the data captured ?
Regards
Frank
‎2009 Nov 12 1:11 AM
Hi Frank ,
GO in layout of screen and then get the field name of each field , now check their assignment in PAI.
Hope its help you.
‎2009 Nov 11 10:13 PM
>
> I have a module pool program with several screens , i some screen i have input fields for user enter data ; then i exceute the program and enter the data in the screen fields , but this values captured are not assigned to the screen fields ; that is just inmedatly in PAI actions i check and the screen fields are empty , even in the screen the fields are already captured, no matters wich action i excute (enter, cancel, whaever). I do not know why this happens ; I do not see any special in the screen, is a simple screen with some fields to enter.
>
If it is a module program and simple screen with few input fields.... i dont see any problems to disappear values from the screen.
But.....
1) Make sure you are not clearing the variables in PBO and PAI. we may clear by accidentally.
2) Where did you define the variables that you are using in screen? Make sure to define in global include which is just after the program name (module pool type programs)
> So i have to use the FM 'DYNP_VALUES_READ' for assign to the screen fields the same value these same fields contains ; so i do not like it . Does somebody knows why this happens ? Is there a way for make the screen executes normaly so i enter the data and when the program leave the screen the screen fields contains the data captured ?
>
You dont have to use any special FM to keep the values.
Try the above and let me know if it still disappear.
By the way, what type of program it is ? How many screens do you have ? Which screen you are entering values
Good luck
‎2009 Nov 11 11:36 PM
Hi Sampath
The program is a Module Pool (M) Type , i do not clear the fields between PBO and PAI and the fields in the screen are declared also in TOP include.
In my program i have some 7-12 screens, depends if i take in acount the subscreens, that's because it is a complex dialog program with table controls, ALVs, tabstripts, dynamic subscreens, buttons for several action codes, etc.
But the screen i refer is just a simple screen for the user enter some data (5 fields) , without actions code just ENTER. i call this screen (it is normal type screen) with STARTING AT for it appers like a window ; i have already use the FM 'DYNP_VALUES_READ' for this same use in other simple programs , i see this like a bug , but i really do not know why it happens.
I do not need to return to the screen caller point program ; just inside screen in PAI i check and the screen fields are empty, but i just entered data in these , and this does not happens in all screens, just in this , so i really do not know the reason.
Regards
Frank
‎2009 Nov 12 1:43 AM
Hi, <li>Please double check the field names on the screen and the fields for which you are expecting values. Thanks Venkat.O
‎2009 Nov 12 3:05 AM
Hi Frank,
Once again check whether the names of screen fields declared in TOP include are same as in your screen layout.
Thanks,
‎2009 Nov 12 10:07 AM
Hi
Thanks all for your answers. The fields are exactly the same in the screen and Top Include ; that is , the screen fields are declared also in Top with the same name and same type but however these are not filled when i enter the values in the screen.
But afortunately i could solve the problem , let me tell you how : i declare the fields in a structure with TABLES instead in a structure with TYPE and just with this the fields have now the values entered in the screen when it go to PAI.
I really do not know why it happens or if i was wrong for declare the fields in a structure with TYPE , but changing this to TABLES the screen works so well.
Best Regards
Frank
‎2009 Nov 12 1:11 AM
Hi Frank ,
GO in layout of screen and then get the field name of each field , now check their assignment in PAI.
Hope its help you.