cancel
Showing results for 
Search instead for 
Did you mean: 

Reading multiple flat files under a folder from UJFS

former_member269454
Participant
0 Kudos

Hi All ,

I have got a requirement ,in which i need to upload the data from multiple flat files residing under a directory in UJFS  through an abap code .

If anybody having any example or abap code to read the flat file data by selecting the files one by one.

Thanks in advance

Best regards,

Raja

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member269454
Participant
0 Kudos

No vadim , I need to write code the read the data from all the flat files which are already existing and which are newly getting added.

former_member186338
Active Contributor
0 Kudos

You want to reload old files data each time? I don't understand you...

former_member269454
Participant
0 Kudos

Need to skip the old files , Just need to read new files

former_member186338
Active Contributor
0 Kudos

How??? How to distinguish the old and new files???? Do you understand my question?

In general, there are no old and new files! Files are uploaded and not yet uploaded. After successful upload of the file you have to move it to some other folder. This is a standard way of doing things...

Using RENAME_DOCUMENT

former_member186338
Active Contributor
0 Kudos

Can you explain in details the UI you want to create?

former_member269454
Participant
0 Kudos

This is the requirement for sap bpc  10 . Need to develop a custom logic badi for that .Using

cl_ujf_file_service_mgr.

former_member186338
Active Contributor
0 Kudos

Sorry, but this is not an explanation!

Please explain all steps, how the process will be organized!

How the files will be selected and who will select?

How do you want to pass selection to the badi?

In general cl_ujf_file_service_mgr is very simple, but you have to explain the whole process.

Vadim

former_member269454
Participant
0 Kudos

Suppose we have a folder in UJFS , that contains multiple flat files (Gets updated on regular basis), Need to implement a logic to load the data from new file as well while running DMP.

So for that i need the files from UJFS folder .Files should be selected automatically automatically one by one .The Folder name will be passed to the logic .

former_member186338
Active Contributor
0 Kudos

Ok, you have some folder with some files in this folder... How to find "new file"???

list_directory can be used to get file names in the directory...