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

ztable

Former Member
0 Likes
768

Hello All Experts,

I need to update one Ztable with the data from a flat file as Excell,

Which is the best method for this insertion of data ,

Please explain in detail ,

thanks in advance

please mention a best executable code for this .

Edited by: Alan Rarya on Nov 13, 2008 7:37 AM

8 REPLIES 8
Read only

bpawanchand
Active Contributor
0 Likes
733
  • First declare a internal table of the Ztable type in the ABAP program.

  • By using the FM GUI_UPLOAD upload the data into the internal table that you created in the first step

  • By using open SQL statement ( Modify) update the Z table .

Simple and Sweet

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
733

upload using Excel upload functional module.

for this make a search in the forum...u will get it there.

Then process that itab and insert it into Ztable...

Read only

Former Member
0 Likes
733

Hi ,

GUI_UPLOAD ,UPLOAD ... WS_UPLOAD ...

PLease search in forums before posting !!!!

Regards

Renu ...

Read only

Former Member
0 Likes
733

Hi Alan,

Use the following code:

data: ztable_t type ztable.

Upload your excel table into abap pgm using cl_gui_frontendservices=>gui_upload into table itab.

loop at itab.

Move-corresponding itab to wa_ztable.

append wa_ztable to ztable_t.

endloop.

insert ztable from ztable_t .

Hope this will help.

Regards,

Nitin.

Read only

Former Member
0 Likes
733

[link|;

see response by rich.

instead of displaying the data you use a modify statement to write the data in itab to the ztable.

Regards,

Srinivas

Read only

Former Member
0 Likes
733

[link|;

see response by rich.

instead of displaying the data you use a modify statement to write the data in itab to the ztable.

Regards,

Srinivas

Read only

Former Member
0 Likes
733

Perhaps knows the answer?

Ahh... sorry, he only asks you the questions......

Bye-bye,

Julius

Read only

0 Likes
733

how how how did you get that??

pk