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: 

Updating of table control

Former Member
0 Kudos

Hi,

Presently i require to display a data in table control & which can be modified by the user & saved to the data base. Presntly my table control is saving data i just want to use this table control for modify & display purpsoe.

Thanks in Advance

Irfan Hussain

5 REPLIES 5

Former Member
0 Kudos

hi,

in pbo

loop with control <control name >.

module fill_resource_table_9004.

endloop.

in pai

loop with control g_resource.

chain.

field gt_condition-chg_condition.

field gt_condition-eff_date.

field gt_condition-eff_time.

module check_date on chain-request.

endchain.

module read_resource_table_9004.

endloop.

module user_command_9004.

then in the module pool program

module read_resource_table_9004 input.

modify gt_condition from gt_condition index g_condition-current_line

transporting chg_condition eff_date eff_time mark .

if sy-subrc <> 0.

insert gt_condition into gt_condition index

g_condition-current_line.

endif.

endmodule.

module fill_resource_table_9004 output.

read table gt_condition index g_condition-current_line.

endmodule.

cheers,

sasi

0 Kudos

Hi Sashi,

I just got only 50 % idea out of it can just be more clear,i repeat my requirement is that i when the user enters data in the parameter then he clicks on dipslay button in application tool bar the records should be display in table control and records can also be modifiable in table control.

Presently my table control is saving data.

Thanks & Best Regards

Irfan Hussain

0 Kudos

all u need to do is to fill data in the underlying internal table on the click of the display button. make sure that the internal table is filled with data before PBO is executed for the screen ...only then u will be able to see the values....

as for the modifiable table control fields, u can handle it thru the screen layout...for individual table control fields u can set the attribute 'input' as 'possible'

hope it helps...

rgds,

PJ

0 Kudos

hi,

in this you want to only diplay the data, don't want to modify the data...

then you set all table control field as Output only in the screen painter

cheers,

sasi

Former Member
0 Kudos

are u saying that u don't want to save any data from the table control and u just want to display data in it. if u want to modify data in the control and then not save it...what will the modification required for ....are u passing it to a further program/transaction.

anyways...

when handling table control...keep the following in mind...

1) u need to have the

loop at <itab>...with control <tabctrl>

statement in PBO

2) The corresponding internal table is also looped at in PAI and the table control fields are chained herein...this is to allow you modifications after errors in PAI.

Use the table control wizard and see the generated code...it will give u an idea on what all the table control needs.

rgds,

PJ