cancel
Showing results for 
Search instead for 
Did you mean: 

Flatfile Upload

former_member683296
Participant
0 Kudos

Dear Expert,

I will get the file as CSV with the following format into the application server.
This should always transfer the last date and time to the PSA. And after that the transformation should check the table RSFILENAMEDONE if it was already loaded or not. I have looked at many old posts, but they are partially missing. Could you please improve my code?


Files =

ucaidexport_2023-07-12-08-12-00.csv

ucaidexport_2023-07-12-13-59-00.csv (Last File)

* File = /usr/sap/mappe/ucaidexport_2023-07-12-13-59-00.csv 
data: lv_date(10).
data: lv_time(8).
concatenate sy-datum(4) '-' sy-datum+4(2) '-' sy-datum+6(2) into
lv_date.
concatenate sy-uzeit+0(2) '-' sy-uzeit+2(2) '-' sy-uzeit+4(2) into
lv_time.
p_filename = |/usr/sap/mappe/ucaidexport -{ lv_datum } '-' {
lv_time }.csv|.
p_subrc = 0.

Thanks, Regards

Accepted Solutions (0)

Answers (0)