cancel
Showing results for 
Search instead for 
Did you mean: 

How to import a xlsx-file and attach it to Workflow in background?

anja_klaucke
Discoverer
0 Kudos

I have a workflow that has a filename with path in container and need it to import and attach this file to workflow in background (similar to import attachment to workitem). Which function module can I use in my background method? I tried method similar to SOFM-Import_File but that does not run with user wf-batch.

Accepted Solutions (0)

Answers (2)

Answers (2)

anja_klaucke
Discoverer
0 Kudos

Hi,

have heard about that one. But how do I get the file into SAP to use it without needing a GUI?

Kind regards
Anja

former_member186746
Active Contributor
0 Kudos

hi,

You need to find the workitem-id and then use SAP_WAPI_ATTACHMENT_ADD.

Kind regards, Rob Dielemans