cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Running RFEBKA00 with changing statement file

Former Member
0 Likes
1,956

Hi Experts ,

Every day we recieve a statement file and a line item file from our bank that are saved on the application server with a different name

However business has a requirement to automate the process by running the programm RFEBKA00 as a background job.

The issue i am facing is that i hae a different name in the statement file every time so i have to put a dynamic variable for the file.

Is it possible and if yes how to do it?

Kind Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Hassan,

The way I have done this in past is to use ABAP program (need to work with developers) to change the file name (say xyz.dat as the file from bank would have different names) and store the file in a different directory (you can copy or move it completely based on your needs). The program could then call  RFEBKA00 with variant having the directory and file name xyz.dat to process the bank statement. Once the bank statement is processed, then move the file to acrchive folder with may be date & time stamp.

Thanks,

Avinash

rakeshkr111
Newcomer
0 Likes
provide the code
former_member194797
Active Contributor
0 Likes

Hi,

in my case I'm receiving a lot of files every night, so I have an ABAP program for checking the files and concatening them into a single file with fixed name. This ABAP also launches RFEBKA00 program.

If you have only 1 file, you have several solutions.
- using variant variables. Use STVARV transaction for updating the variable. But if you need a full automated solution, you will need an ABAP report for updating the variable in TVARVC table (I think you will find this in the forum).
- it's also possible to rename the file or to copy it to another file with fixed name. This may be done by an abaper or by the system team (e.g. in UNIX if your system is under UNIX).