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

How to refresh data in the table control?

Former Member
0 Likes
4,036

Hi,

I am using table control in the screen to modify the database.

It is taking user entered equipment and displays corresponding description, date from database table

Equipment

Description

Date created

1

Equip1

1/1/2016

2

Equip2

2/1/2016

3

Equip3

3/1/2016

Now my problem is, If i change 1st entered equipment(in this eg 1 to 3), then correspopnding description, date field should also change. But I am getting following table data,

Equipment

Description

Date created

3

Equip1

1/1/2016

2

Equip2

2/1/2016

3

Equip3

3/1/2016

Data is changing in backend internal table but not reflecting in the screen table.

Please suggest me on this.

Thanks.

Regards,

Ananya Bhat

Hi,

I am using table control in the screen to modify the database.

It is taking user entered equipment and displays corresponding description, date from database table

Equipment

Description

Date created

1

Equip1

1/1/2016

2

Equip2

2/1/2016

3

Equip3

3/1/2016

Now my problem is, If i change 1st entered equipment(in this eg 1 to 3), then correspopnding description, date field should also change. But I am getting following table data,

Equipment

Description

Date created

3

Equip1

1/1/2016

2

Equip2

2/1/2016

3

Equip3

3/1/2016

Data is changing in backend internal table but not reflecting in the screen table.

Please suggest me on this.

Thanks.

Regards,

Ananya Bhat

6 REPLIES 6
Read only

hubert_heitzer
Contributor
0 Likes
2,084

Hi Ananya,

do you write the updated values to the table control in PBO?

Regards,

Hubert

Read only

0 Likes
2,084

yes. I have used table control with wizard option.It automatically created

Module tc_screenno_modify on chain-request

code in PBO.

Read only

0 Likes
2,084

I don't know the wizard, but I cannot imagine that it creates your update logic.

Usually in PAI you should update

1. your internal abap table from your table control.

2. the fields of your internal abap table depending on the changed values of 1.

In PBO you should update the table control from your internal abap table.

If you dont use an internal abap table, you have to read in PBO the fields of the table control which may have been changed (in your example "Equipment") and update the dependent fields (in your example "Description" and "Date created").

Regards,

Hubert

Read only

VenkatRamesh_V
Active Contributor
0 Likes
2,084

Hi Ananya,

TRY,

process after input.


loop at t_fabric1.


  chain.

field w_fabric1-equip MODULE Description on chain-request.

endchain.

endloop.


MODULE VALIDATE INPUT.

Concatenate 'Equip'  w_fabric1-equip  into wa_farbic1-des into wa_fabric1-des.

ENDMODULE



Hope it helpful,


Regards,

Ramesh.V



Read only

Former Member
0 Likes
2,084

Hi,

Try with

Refresh control 'TAB_CTRL' FORM SCREEN.....

Regards,

Ashish

       

Read only

Former Member
0 Likes
2,084

Solved myself.

select query need to be written in seperate module inside chain...endchain.

Previously I was writing inside individual field modlue (FIELD int_tab-equip MODULE select_all.)

Thanks for your reply.