2016 Mar 01 11:42 AM
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
2016 Mar 01 1:13 PM
Hi Ananya,
do you write the updated values to the table control in PBO?
Regards,
Hubert
2016 Mar 01 1:58 PM
yes. I have used table control with wizard option.It automatically created
Module tc_screenno_modify on chain-request
code in PBO.
2016 Mar 01 2:53 PM
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
2016 Mar 01 6:15 PM
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
2016 Mar 01 7:49 PM
Hi,
Try with
Refresh control 'TAB_CTRL' FORM SCREEN.....
Regards,
Ashish
2016 Mar 02 9:25 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |