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: 

fetching records from an internal table

Former Member
0 Kudos

friends,

my requirement is like this...i have a table control in which i am displaying records from an internal table..when the user presses enter i am appending the values to that int. table and displaying in the pbo..now, let's say there are two cols and if the user changes something in teh second column and presses enter, i have to display teh changed record, but am not able to do...as i have appended the records, it is showing only the first two lines of the int. table and the changed entry is in the last row..to say, i want the recent two entries that the user enter in those boxes to be displayed..i have it in the int. table, but need logic to display d same? pl help...thanks all

1 ACCEPTED SOLUTION

Former Member
0 Kudos

when user enetrs data nad press...the table control data is captured in internal table...u need to modify the internal table data.

2 REPLIES 2

Former Member
0 Kudos

when user enetrs data nad press...the table control data is captured in internal table...u need to modify the internal table data.

Former Member
0 Kudos

thank you...but can u be more specific? this is my flow logic code..

loop at ITAB_TBL2.

chain.

field ITAB_TBL2-PEDTR.

field ITAB_TBL2-VERID.

field ITAB_TBL2-QTY.

module TBLCTRL2_modify on chain-request.

endchain.

endloop.

****

MODULE TBLCTRL2_MODIFY INPUT.

MODIFY ITAB_TBL2

INDEX TBLCTRL2-CURRENT_LINE.

ITAB_TBL21-PEDTR = ITAB_TBL2-PEDTR.

ITAB_TBL21-VERID = ITAB_TBL2-VERID.

ITAB_TBL21-QTY = ITAB_TBL2-QTY.

APPEND ITAB_TBL21.

CLEAR ITAB_TBL21.

as after pressing the values are not getting displayed in the tblcontrol, i have appended all the values of itab_tbl2 to itab_tbl21 and appended...so any changes to existing records in the tablecontrol is appended to itab_tbl21...where should i use modify here? because without append, if i use modify, it's showing dump...pl help pal