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: 

Module Pool Problem

Former Member
0 Kudos

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..?

6 REPLIES 6

Former Member
0 Kudos

may be in the PBO you are refreshing the internal table

dont refresh the internal table in PBO

Former Member
0 Kudos

Hello

Check the PBO of the screen.

May be used clear,refresh,free like statements.

Vasanth

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thank u all.

I got it solved.

The checkbox ( program-->Without Reset ) was not checked for all the fields.