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

modify internal table dynamically

Former Member
0 Likes
1,377

how to modify the changes made to the report displayed. i.e., i am having a first column as checkbox, when i select the checkbox it should be update in the internal table. how can i do this.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,209

AT LINE SELECTION

READ LINE........

do F1 on AT

regards

12 REPLIES 12
Read only

Former Member
0 Likes
1,210

AT LINE SELECTION

READ LINE........

do F1 on AT

regards

Read only

0 Likes
1,209

this is not at selection screen after the list has been displayed.

Read only

andreas_mann3
Active Contributor
0 Likes
1,209

Hi Hashmatullah ,

look sample program DEMO_LIST_READ_LINE

regards Andreas

Read only

0 Likes
1,209

this program goes thru the sy-index, i want sy-tabix

Read only

Former Member
0 Likes
1,209

Hi,

See this link.

Svetlin

Read only

0 Likes
1,209

the checkbox selected is not captured. i had specfied the checkbox in the internal table also. can anyone give some more tips to do.

Read only

0 Likes
1,209

can you post the code you are using? we can check out whats going wrong

Regards

Raja

Read only

0 Likes
1,209

loop at it_zqord into wl_zqordq.

write:/1 a, 3 wl_zqord-ch as checkbox, 4 ''.

write: 5 a, (10) wl_zqord-vbeln,

a, (6) wl_zqord-posnr,

a, (10) wl_zqord-erdat,

a, (8) wl_zqord-zpositionid,

a, (9) wl_zqord-pernr,

a, (10) wl_zqord-zqtapct,

a, (10) wl_zqord-zvbegdt,

a, (10) wl_zqord-zvenddt,

a, (10) wl_zqord-zcommdt,

a, (6) wl_zqord-zordstat,

a, (10) wl_zqord-zordstatdt,

a.

line = sy-tabix.

read line line field value wa_zqordqtah-ch

into wa_zqordqtah-ch.

modify itd_zqordqtah from wa_zqordqtah-ch.

endloop.

When button is pressed

do line times. " line_count times.

read table it_zqord into wl_zqord index sy-tabix.

read line sy-tabix field value wl_zqord-ch into w_ch.

if sy-subrc ne 0.

exit.

endif.

if w_ch = 'X' and confirmation = 'G'.

modify it_zqord from wl_zqord.

endif.

enddo.

Read only

0 Likes
1,209

Hi,

I suppose that you should check what is the number of the list line, where begins your table output. It is possible to not the first line. That's why you exit from the do loop.

Svetlin

Read only

0 Likes
1,209

suppose if go thru sy-index. when i am displaying the report starting 8 rows were defined for header, so now the printing part comes from 9th row. now if i selected the 10th row(index) how can i modify the data to the internal and database. reply soon its urgent.

Read only

0 Likes
1,209

Hi,

data index type i.

loop at it_zqord into wl_zqordq.

index = <b>sy-tabix</b> + 9.

read line index field value wl_zqord-ch into w_ch.

modify it_zqord from wl_zqord.

endloop.

Svetlin

Message was edited by: Svetlin Rusev

Read only

0 Likes
1,209

hi,

instead of using sy-tabix or sy-index use one counter variable and process set the default value as per your requirement.

using the counter variable process the read line,

normally the default lines don't have check box i thing so.,

cheers,

sasi