There are two users, userA and userB
when i log in as userA to submit job as user B, it was working fine.
if the program run by userA:
submit XXXXX
WITH xxxx
to sap-spool
destination 'LOCL'
list name 'FINL_INV'
IMMEDIATELY ''
keep in spool 'X'
without spool dynpro
USER userB
VIA JOB 'FINL_INV'
NUMBER V_JOBCOUNT
when i log in as userB to submit job as userA, it returned an error
does userB need some kind of authorization? authorizatin to run the submit job ?
if the program run by userB:
submit XXXXX
WITH xxxx
to sap-spool
destination 'LOCL'
list name 'FINL_INV'
IMMEDIATELY ''
keep in spool 'X'
without spool dynpro
USER userA
VIA JOB 'FINL_INV'
NUMBER V_JOBCOUNT
CALL FUNCTION 'JOB_CLOSE'
xxxxx xxxxxx
EXCEPTIONS
CANT_START_IMMEDIATE = 1
INVALID_STARTDATE = 2
JOBNAME_MISSING = 3
JOB_CLOSE_FAILED = 4
JOB_NOSTEPS = 5
JOB_NOTEX = 6
LOCK_FAILED = 7
INVALID_TARGET = 8
OTHERS = 9
sy-subrc is 5 , JOB_NOSTEPS.