12-12-2006 3:12 PM
Hi all,
I have a screen with some fields & a table control.
I am uploading some data entered here into some database table.
But after filling up the fields if I press ENTER, all fields get refreshed.
How do I retain these field values..?
12-12-2006 3:15 PM
may be in the PBO you are refreshing the internal table
dont refresh the internal table in PBO
12-12-2006 3:18 PM
Hello
Check the PBO of the screen.
May be used clear,refresh,free like statements.
Vasanth
12-12-2006 3:19 PM
this is because ur table control is getting refreshed everytime u hit an enter and the sy-ucomm of this is not handled .
u need to give ok_code or sy-ucomm as 'ENTE' action of handling event in the code of ur PAI.
case sy-ucomm.
when 'ENTE' "--->enter command from the user
perform xxxx.
refer this prog <b>demo_dynpro_tabcont_loop</b> opening in SE80 and see how the value is getting hold after u input city name in debugging .
this will give u an analysis of understnading the scenario.
regards,
vijay
12-12-2006 3:20 PM
Hi Jighendra,
Did you written any code for the Enter in the module user-command. If not then check the complete flow of the program and check whether u r clearing the table at any place.
Regards,
Satya.
12-12-2006 3:34 PM
hi..
may be you can try out this way..
1. In the layout of your screen painter , instead of placing a table control, you can
use the program/ dictionary fields icon of press F6.
2. You will get a screen " Program/ dictionary fields" .
3. Here, enter any table name.(in case its a standard database, you can enter the table name )
4. click on the " get from dictionary tab".( or " get from program" tab if you specify your work area name used in your program)
5. You can see all the fields of the table.
6. select the fields you want.
7. press enter.
8. place this on your layout.
9. Automatically . the fields and its value will be displayed.
hope this helps you.
12-13-2006 5:39 AM
Thank u all.
I got it solved.
The checkbox ( program-->Without Reset ) was not checked for all the fields.