Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to run BDC Session from Output message type processing Program?

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check this where a similar issue was discussed and answered.

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

Hi Renjith,

Thanks for your quick response.

I am getting COMMIT_IN_POSTING error when i call JOB_OPEN FM.

Regds,

Srinivas.

0 Kudos

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.

Former Member
0 Kudos

Check this where a similar issue was discussed and answered.