cancel
Showing results for 
Search instead for 
Did you mean: 

Lockbox program doesnt accept wild character * in file name?

former_member619039
Participant
0 Kudos

Hello Gurus

I am facing an issue in lockbox files uploading using batch jobs.

I have lockbox BAI2 text files coming in daily from bank and they get loaded into specific directories in application server of SAP. Each file we named them with a naming convetion which starts with Lockbox number followed by date & time stamps. When i Run lockbox program (either using FLb2 manually or using batch job) system picks up file and runs it perfectly. When i set up a variant and keep file name with "directory path + certain part of file name which is constant + wild character * (to pick up date & time stamp) ", system throws an error " unable to open file.

This wild character i tried with * & *.txt (dot txt) at the end of the file is not working for manual or batch job both. All I could see is RFEBLB00 (Lockbox program) requires a complete path name to read and execute and cannot accept wild characters.

I read some posts in scn and it was suggested to use function module RZL_READ_DIR_LOCAL to achieve this.

Our Requirement is to program should be able to read file and once executed also move files to Archive folder.

Does anyone have specific details how to achieve this ? If any standard SAP solution present I would prefer this. If not how do we customize using this function module above (or any other method)?

Thanks

Aleem

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member198032
Active Contributor
0 Kudos

Hi Aleem,

'*' is not a good idea due to security concerns. That's why you get the error.

You can check with your Basis colleagues for file path definition with

a specific file name in the job parameter.

You maybe can run a script to rename files that comes from bank to be

identical to the file path, after you can rename them again.

Hope could help you.

Cristiano