cancel
Showing results for 
Search instead for 
Did you mean: 

Any help on why I get an error when running OA_UPLOAD_AND_LINK in background?

Garrett_M
Participant
0 Kudos

Hi experts,

I am attempting to run the OA_UPLOAD_AND_LINK program in the background to upload employee photos placed into a directory on a shared drive by each HR manager.  When I check SM37, I see the job was cancelled and the error "Frontend parameter (parameter error)" Message no. OA501 was the reason.

If I run the program in the foreground using the same variant, I don't have any issues and the photos load just fine.  Any suggestions on what parameter it's complaining about?

My goal is to schedule this program to run nightly and process any pictures in the shared drive.  I'll have a second job remove the files from the shared drive at a later time.

Regards,

Garrett Meredith

Accepted Solutions (1)

Accepted Solutions (1)

Garrett_M
Participant
0 Kudos

FYI,

After looking at the code:

* reject process if running in background and frontend = 'X'
if sy-batch = 'X' and frontend = 'X'.
  message id 'OA' type 'E' number '501' with 'Frontend'.    "#EC NOTEXT
  leave.

endif.

This is the code inside the program preventing it from running in the background.  WHY!?! would they do this?

Regards,

Garrett

Answers (1)

Answers (1)

romanweise
Active Contributor
0 Kudos

Hello,

the report has a parameter which specifies if the files are loaded from a local pc or from the application server. If you have a variant which is working in dialog the settings in it might be in a way which defines the path for a local pc upload instead of application server upload. So you should check if the settings are actually set to application server upload and the file path is specified in the correct way (\ might need to be replaced with / depending on the OS of the application server and of course the path itself must match the application server mounts).

Kind Regards

Roman