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

Create directory in server

Former Member
0 Likes
2,082

HI ALL

i need to read data from server (open data set ) and i want to create directory

(file ) how can i do so ?

Regards

Chris

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,508

Directory is different from a file. Which exactly of these you want to create?

7 REPLIES 7
Read only

Former Member
0 Likes
1,509

Directory is different from a file. Which exactly of these you want to create?

Read only

0 Likes
1,508

HI ,

I need to create directory and create report that can in F4 open the directory ,

in this directory i can put the file which i can read with open dataset .

Thanks

Chris

Read only

0 Likes
1,508

hi

you can use CG3z to upload the file...

it means that if you give the non-existing path..it will be created as directory..

eg: usr/sap/tmp/chris if you give this as path it should create your own path..

where you can create mulitiple files

cheers

s.janagar

Read only

0 Likes
1,508

ARCHIVEFILE_SERVER_TO_SERVER - Move file from one directory to another

F4_DXFILENAME_TOPRECURSION - F4 functionality for filename on Application Server

PFL_CHECK_OS_FILE_EXISTENCE - validate_server_file


data:begin of itab1 occurs 0,"Text file format 
           matnr(18),      
           bwkrs(4),       
       end of itab1. 

*Uploading of text file from Application server. 
open dataset w_dataset1 for input in text mode. 
       do. 
              if sy-subrc <> 0. 
                  exit. 
              endif. 
              read dataset w_dataset1 into itab1. 
             append itab1. 
             clear itab1. 
        enddo. 
close dataset w_dataset1. 

Read only

rvinod1982
Contributor
0 Likes
1,508

Hi,

Check tcode Al11.

Regards,

Vinod

Read only

Former Member
0 Likes
1,508

to create a file:

http://abaplovers.blogspot.com/2008/05/sap-abap-data-download-to-application.html

to read a file:

OPEN DATASET FNAME FOR INPUT IN BINARY MODE.

DO.

READ DATASET FNAME INTO TEXT2 LENGTH LENG.

WRITE: / SY-SUBRC, TEXT2, LENG.

IF SY-SUBRC <> 0.

EXIT.

ENDIF.

ENDDO.

CLOSE DATASET FNAME.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,508

reference for creating folder