on 05-21-2015 11:38 AM
Hi Experts,
I have a business requirement to schedule a BOP job from ECC via ABAP program.
I am scheduling a BOP job in APO using a variant ZATP_ENH.
The issue that I am facing is that; when I schedule a job directly in /SAPAPO/BOP transaction using the same variant in APO, the system directly does the Execution mode in ‘Update Changes’, but on the other hand when the call is initiated from ECC; the system overrides the Execution mode to ‘Simulation’ always inspite of using the same varaint.
I have created a RFC, inside which I am using the below syntax for SUBMIT:
SUBMIT /sapapo/bop
WITH gf_flty = lx_dts-iv_filtertype "Filter type
WITH gf_vrnt = lx_dts-iv_filtervar "Filter Variant
WITH gf_srtnm = lx_dts-iv_sortprof "Sort Profile
USING SELECTION-SET lx_dts-iv_filtervar "Variant name for Filter Variant
USING SELECTION-SETS OF PROGRAM lv_repid "Dynamically generated program once Filter type is created in the system
TO SAP-SPOOL
SPOOL PARAMETERS lx_params
WITHOUT SPOOL DYNPRO
VIA JOB lv_job_name
NUMBER lv_job_count
AND RETURN.
Can anyone shed some light on how I can overcome this issue.?
Thanks in advance,
Vivek
Hi Vivek,
Try writing Commit Work in your RFC after the SUBMIT statement.
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.