Hi Experts,
I am trying to call the program BPINDX00 from a workflow background step/task.
code is written inside a workflow class method.
If I test the task method from SE24 with or without debugging, the code works as expected and creates a JOB with spool.
but, when this functionality is executed at real time inside the workflow background task, the step does not complete or completes without any job being created.
Please suggest me if my approach needs to be changed.
I have used code in this sequence.
Code:
------------------------------------------------------
call function JOB_OPEN
SUBMIT BPINDX00 with var1 = input1
TO SAP SPOOLS
SPOOL PARAMETER <LS_WA>
WITHOUT SPOOL DYNPRO
VIA JOB <JOBNAME> NUMBER <NUM>
AND RETURN.
call function JOB_CLOSE
------------------------------------------------------
Request clarification before answering.
I propose to add a COMMIT WORK. At the end. Does the user(s) have all needed authorizations to create/ run a job?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.