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: 

Schedule Background Job whenever new message WVINVE

Former Member
0 Kudos

Hi All,

I have following requirment:-

Schedule Background Job with a ABAP program,

whenever new message type WVINVE posted in SAP inbound.

I am confused in "Event" which i select in SM36.

Or, is there any other method to trigger a background report, whenever WVINVE03 IDOC posted in SAP system & create physical Inventory document.

regards

Umesh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

For triggereing a background job, when ever a message type WVINVE is posted. You need to create a

Background Job with the the program and mark the Job Event periodic. Secondly you need to trigger that event from the Inbound processing program or Function module which processes the message type using the Function module <b>BP_EVENT_RAISE</b>. so when ever a message type is processed it will trigger the event which inturns trigger the Job.

Hope this will Help.

4 REPLIES 4

abdul_hakim
Active Contributor
0 Kudos

Hi

U can do it with the AFTER EVENT parameter in the background job definition which will be triggered after the inbound...

Regards,

Abdul

Former Member
0 Kudos

Umesh,

Have you thought about creating a background dynamcially using the code instead of using SM36.

I don't know if you IDOC functions are editable, if YES then you can use the JOB SUBMIT, SUBMIT REPORT and JOB CLOSE functions.

Regards,

Ravi

Note : Please reward points for helpful answers.

Former Member
0 Kudos

For triggereing a background job, when ever a message type WVINVE is posted. You need to create a

Background Job with the the program and mark the Job Event periodic. Secondly you need to trigger that event from the Inbound processing program or Function module which processes the message type using the Function module <b>BP_EVENT_RAISE</b>. so when ever a message type is processed it will trigger the event which inturns trigger the Job.

Hope this will Help.

Former Member
0 Kudos

One more point i forgot to add was, We need to register the event name using transaction SM62.