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: 

Function Modules for uploading the file

Former Member
0 Kudos
73

Hi experts ,

I have a requirement to download a file (csv) from my local sytem (say desktop) into an internal table first and then update the contents of the same internal table into the database table.

Can anybody provide me with a sample program for doing the same or at least the name of function modules for the same.

Prompt replies will be rewarded.

TIA

Abhishek

4 REPLIES 4

amit_khare
Active Contributor
0 Kudos
53

Use GUI_UPLOAD for uploading the file and put it in the internal table.

Use INSERT statement for changing the data base table.

Check F1 help for the same.

Regards,

Amit

Reward all helpful replies.

0 Kudos
53

Hi Amit ,

Do you have any sample program showing how to use the INSERT statement.

Thanks and Regards

Abhishek

0 Kudos
53

Hi Abhishek,

How to use INSERT Statement..

Check this Sample Program..

TABLES:MARA.

DATA:ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.

START-OF-SELECTION.

ITAB-MATNR = '123ABCDA'. .

ITAB-MBRSH = 'C'.

ITAB-MTART = 'FERT' .

ITAB-MEINS = 'KG' .

APPEND ITAB.

ITAB-MATNR = '123ABCDB'. .

ITAB-MBRSH = 'C'.

ITAB-MTART = 'FERT' .

ITAB-MEINS = 'KG' .

APPEND ITAB.

LOOP AT ITAB.

INSERT MARA FROM ITAB.

MODIFY MARA .

ENDLOOP.

Former Member
0 Kudos
53

I have given pts to two of the folks as they answered one query each.