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: 

BDC

Former Member
0 Kudos

i have 2 text files to upload in to R3 database..how can we upload these 2 files at a time?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sunil,

You can upload both the files first into the program using GUI_UPLOAD and then based on your requirement write the logic and create the BDC recording to call the transaction which populates the data into table or write an INSERT or MODIFY statement to populate teh table directly.

The second approach is least favoured.

Reward points if found useful...!

Cheers

Abhishek

3 REPLIES 3

Former Member
0 Kudos

Hi Sunil,

You can upload both the files first into the program using GUI_UPLOAD and then based on your requirement write the logic and create the BDC recording to call the transaction which populates the data into table or write an INSERT or MODIFY statement to populate teh table directly.

The second approach is least favoured.

Reward points if found useful...!

Cheers

Abhishek

Former Member
0 Kudos

u can call the transaction 2 times

call transaction .....

call transaction ...........

or if the number of files are more , then store the files in one internal table

loop at itab.

call transaction ...

enloop.

Former Member
0 Kudos

Hi,

You can define a folder and put all your files to be uploaded and then do a loop and call the GUI_UPLOAD function and in each pass of the loop read the files in the folder one by one.

Alternatively popup a file dialog box withinn the loop to accept the path name from the user

CHeers

VJ