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 copy file

Former Member
0 Kudos
86

hi guys,

i need to have a program, which will load a excel file in the sap server, to create sale order in batch. however, after the create, i will haev to move the original excel file from directory A to directory B. can any one teach me what is the code for copying and deleting the file to other directory?

thanks

5 REPLIES 5

Former Member
0 Kudos
59

hi lee

Use UPLOAD or W function module to upload the data from Excel to SAP.

Using that Create a Sale Order

Finallay Download The Original Flat internal data to your required directory using DOWNLOAD function Module

regards

Deva

0 Kudos
59

i know how to create SO using BAPI function.

the problem for me now is how to move the original copy of excel from one directory to another directory only. and how to delete the excel file by using abap.

0 Kudos
59

use transaction sm69. you can call that in report. oops, i just said that.

0 Kudos
59

hi,

can you please provide me the coding of how to call it from end to end? thanks.

rainer_hbenthal
Active Contributor
0 Kudos
59

create a perl script which will do that. Goto transaction SM69 and execute it. If you want to do it in batch mode SM69 can create a batch job doing this.