Application Development and Automation 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: 
Read only

table control problem

Former Member
0 Likes
952

Hi,

I have created one table control in dialog program.

When i am entering the data in one of the columns,after press enter, the data is getting lost.What might be the reason?Do i need to change the properties in table control column?

points guaranteed.

Kaki

8 REPLIES 8
Read only

Former Member
0 Likes
925

may be you missed to update the table control internal to update in the PAI.

Check PAI of screen

LOOP WITH CONTROL FLIGHTS.

module read_table_control.

ENDLOOP.

Like below you should update the internal table of table control.

MODULE read_table_control INPUT.

lines = sy-loopc.

MODIFY itab FROM demo_conn INDEX flights-current_line.

ENDMODULE.

For more detail see example prg DEMO_DYNPRO_TABCONT_LOOP

Read only

0 Likes
925

hi veera,

Still i did not get the solution.

Iam getting the error "invalid field format(screen error)"

cheers

kaki

Message was edited by: Kaki R

Read only

0 Likes
925

hi,

if you don't mind can you send you r code.

check the values that your entering .

regards,

manohar.

Read only

0 Likes
925

Hi,

In the table control(screen 2000) i have 4 columns.Two columns are getting filed while coming from screen 1000 to 2000.In another 2 columns are empty and user will enter the data.While entering ex:12345,and when press enter, the data is going...

PROCESS BEFORE OUTPUT.

MODULE STATUS_2000.

MODULE INIT_SODET.

loop at t_det with control sodet cursor sodet-current_line.

module DISPLAY_SODET.

endloop.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_2000.

LOOP.

module assign_sel.

ENDLOOP.

module set_line.

Read only

0 Likes
925

Hi ,

Chnage the PAI module as follow, hope that will work-->

let me assume the name of input fields your table control :input_field1,input_field2

PROCESS AFTER INPUT.

MODULE USER_COMMAND_2000.

LOOP AT t_det

FIELD t_det-input_field1

Module get_colinfo ON REQUEST.

FIELD t_det-input_field2

Module get_colinfo ON REQUEST.

ENDLOOP.

module set_line.

double click on Module get_colinfo.

and define this in ANY INCLUDE AS:

MODULE get_colinfo INPUT.

MODIFY t_det

FROM t_det

INDEX sodet-current_line

TRANSPORTING input_field1input_field2.(your table_control input fields name )

ENDMODULE.

it works..

plz reward points if it helps you.

Message was edited by: Anid

Read only

0 Likes
925

HI,

I think you are getting that values into table control

inside the module status_2000.

because of these it is refreshing your table control everytime.

in transaction once PAI is completed it goes to PBO

so if you r getting the values in the internal table inside the PBO of screen 2000, you will get such problems

just put a flag.

regards,

manohar.

Read only

Former Member
0 Likes
925

did you check the DEMO_DYNPRO_TABCONT_LOOP prg.

Read only

Former Member
0 Likes
925

Try this:

In the code posted by you just use this line inside the module assign_sel

MODIFY T_DET INDEX SODET-CURRENT_LINE.

Also try this:

Move line 'MODULE USER_COMMAND_2000.' below the LOOP/Endloop in the PAI.

Message was edited by: Sudhir Bhate