03-08-2006 4:48 PM
Hi All,
I need to run a bdc session from Processing Program of Output message type. As output type processing programs are running using V2 (Update Process) , it is not allowing to call "SUBMIT rsbdcsub".
Regds,
Srinivas.
03-08-2006 7:37 PM
03-08-2006 5:01 PM
Hi Srinivas,
Pls check & see if the "SUBMIT" - "VIA JOB job NUMBER n" option works in your case...
Press F1 on "submit" in abap editor and you should detailed description on the usage.
Welcome to SDN!
Thanks,
Renjith
03-08-2006 5:29 PM
Hi Renjith,
Thanks for your quick response.
I am getting COMMIT_IN_POSTING error when i call JOB_OPEN FM.
Regds,
Srinivas.
03-08-2006 6:21 PM
I have a sample code here which opens a new job and submits program. Check if this helps -
call function 'JOB_OPEN'
exporting
jobname = l_jobnm
importing
jobcount = l_count
exceptions
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
others = 4.
if sy-subrc <> 0.
endif.
submit <program name> to sap-spool keep in spool 'X'
without spool dynpro
user g_user
via job l_jobnm number l_count
with <s_matnr in r_matnr>
and return.
call function 'JOB_CLOSE'
exporting
jobcount = l_count
jobname = l_jobnm
strtimmed = c_flag
exceptions
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
others = 8.
if sy-subrc <> 0.
message e899 with 'Error in submitting job' l_jobnm
'for background processing'.
leave to screen 0.
else.
message s899 with 'Job' l_jobnm
'is submitted for background processing'.
leave to screen 0.
clear cb.
endif.
PS : In SUBMIT command you can populate selection screen also - like S_MATNR parameter.
03-08-2006 7:37 PM