cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with scheduling a BOP job from ECC via ABAP program

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vivek,

Try writing Commit Work in your RFC after the SUBMIT statement.

Thanks

Gaurav