on 2019 Sep 24 3:34 PM
Hi Experts,
I am enclosing SUBMIT z-report WITH SELECTION-TABLE AND RETURN USER VIA JOB in between JOB_OPEN and JOB_CLOSE where in for USER parameter, i am giving a different user name. But it is always taking the SY-UNAME. I have checked some blogs wherein SELECTION SET was used and also was suggested to use BJ_JOB_MODIFY. But i am not using variant and passing the parameters on the fly as above.
So can u let me know how to make the program to consider the user provided as part of the SUBMIT command.
CALL FUNCTION 'JOB_OPEN'.
SUBMIT z-report WITH SELECTION-TABLE lt_params
TO SAP-SPOOL SPOOL PARAMETERS ls_pri_params
WITHOUT SPOOL DYNPRO
USER 'BATCH_XXX'
VIA JOB lv_name NUMBER lv_number
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'.
SAP component version: SAP_AP - SAPKNA7025
SAP_BASIS - SAPKB70210
Regards,
Aditya
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
User | Count |
---|---|
31 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.