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: 

how to pass the valus to z-table

p244500
Active Contributor
0 Kudos

hi all

i want to pass values to Z-table.. i hav the ALV program... now i want to pass that valus in to ztable..plz gv me ur instruction how to do it....

regard

nawanandana

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Ur values will be in an internal table so use the database syntax.

INSERT <target> FROM TABLE <itab>

target is ur z-table and u will get itab from alv program.

Message was edited by:

Kalpanashri Rajendran

5 REPLIES 5

Former Member
0 Kudos

Ur values will be in an internal table so use the database syntax.

INSERT <target> FROM TABLE <itab>

target is ur z-table and u will get itab from alv program.

Message was edited by:

Kalpanashri Rajendran

former_member404244
Active Contributor
0 Kudos

Hi,

u might have got the final internal table to populate the ALV .So what u do is.

create a internal table(ITAB) of structure of ztable.

then.

Loop the final internal table.

move the corresponding fields to the ITAB.

endloop.

now ,

update ztable from table ITAB.

if sy-subrc eq 0.

commit work.

endif.

regards,

nagaraj

Former Member
0 Kudos

hi,

Include this statement..

update Ztable from table ITAB.
Commit work.

Regards,

Santosh

Former Member
0 Kudos

Hi

if u r inserting new entries...

INSERT <databasetable > FROM TABLE <itab>.

of if u r updating database entries..

UPDATE <databasetable > FROM TABLE <itab>.

Ramesh.

Former Member
0 Kudos

Hi,

What i think is, you are facing problems of fetching data from ALV.

To get data from ALV you can use

REUSE_ALV_TABLES_GET function module.

or if you have created ALV grid object then you can use check_data function on ALV grid object.

this will update the internal table you have used to display data with all the edited data..

Now you can easily update the Z-table with this modified data using update command.