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

query in alv using oops

Former Member
0 Likes
734

Hello ......

i have developed z table, initially there are no entries in it.

i create a z program and create a alv display using method SET_TABLE_FOR_FIRST_DISPLAY

then i have used method set_ready_for_input .

i will now execute the z program..

i will have a std toolbar on screen, there will be three icons insert, delete and append (std tool bar)

as i have told earlier that there are no entries, so when i will press insert button it will be show empty one row in that table, it will be in edit mode due to method set_ready_for_input ..

now my query is suppose there are 3 col and i vl enter value in 3 columns shown in table after pressign insert button, how to get those values in internal table so that later on i can update a z table .

Edited by: medha24 on Apr 15, 2011 11:59 AM

6 REPLIES 6
Read only

Former Member
0 Likes
698

Hi,

I think the values will be already updated in the in it_outtab which is passed when calling the method set_table_for_first_display

Read only

0 Likes
698

no, i said that itab will be empty as ther are no entries in database z table also. if u will see in se16, there are no entries in z table, i have to create entries through program.

Read only

0 Likes
698

Hi,

VIN is correct when you hit insert after entering value in the alv your internal table is updated.

Now you have to handle a event AFTER_USER_COMMAND, here insert those lines from ITAB to your ZTABLE.

Regards,

Anmol.

Read only

0 Likes
698

thanks friends, let me more clear with u all,

when i will execute the program, i can only see headings of alv display rather table........

to create entries , i m pressing insert button, which comes as in-built as alv std toolbar.....

now when i press insert, it will show me one empty row, i vl enter some values in it.....

how i will get those entries in my internal table......

which method,, wht event........?

Read only

0 Likes
698

i got the method check_changed_data from which i can take d data into my internal table after pressing insert, append buttons.

Read only

huseyindereli
Active Contributor
0 Likes
698

Hi ,

Use DATA_CHANGED_FINISHED event . You'll get your table updated.