cancel
Showing results for 
Search instead for 
Did you mean: 

Batch Job and Output Type

Former Member
0 Kudos

Dear EHS Experts,

Right now I'm on the process of creating the batch job for EHS reports. Can somebody please provide me the step by step procedure on how to create the appropriate job? It would greatly appreciated if it includes steps on where and how to create variants if necessary. In addition, can somebody please provide me as well the correct configuration for the output type?

Thanks much in advance.

Kind regards,

Mark

Accepted Solutions (1)

Accepted Solutions (1)

christoph_bergemann
Active Contributor
0 Kudos

Dear Mark

the relevant OSS note regarding how to prepare SDS distrIbution inculding all steps is available on SAP marketplace. Your topics are part of the OSS note.

Please check:

http://scn.sap.com/docs/DOC-41109

There are references to threads in this FORUM which contain the OSS note number

C.B.

dhinsap
Active Participant
0 Kudos

Dear Mark,

You may follow this procedure

Setup jobs for report Shipping

3 jobs have to be setup for report shipping

  1. a)      Transfer of output from SD into EH&S
  2. b)      Jobs for process in EHS
  3. c)      Processing of document generation on the WWI server
  4. a) Transfer of output from SD into EH&S

Easy Access MENU

System – Services – Jobs – Define Job and setup Job

Transaction

SM36

  Schedule the job periodically as hourly/other data( 10 minutes for eg.). Set up the interval according to your requirements.

Enter RSNAST00 as the ABAP program.

Create a variant for the ABAP program and enter the following parameter values:

Output application: V2 for shipping, V1 for sales

Object key: *

Output type: SDB

Output medium: 8

You can restrict the variant to certain object keys. Save and exit.

  1. b)  Jobs for the Process in EH&S

The following jobs will initiate the report shipping process.

Goto Txn SM36 again

  1. 1. Create job [RCVDDISP]

a)Enter a job name (JOB RCVDDISP for eg:) and choose a suitable job class -B.

b) Choose Edit -> Start Time and choose Date/Time in the dialog box that appears.

c) Enter the required data and select Periodic job- schedule hourly.

d) Choose Check and save your entries.

e) Choose Steps and choose ABAP program in the Create step 1 dialog box that appears.

f) Enter the name of the ABAP program RCVDDISP.

g) Choose Check and save your entries.

h) Before you leave the Define Job screen, you must save your entries once more.

  1. 2. Job for processing the orders [RCVDEVEN]:

The report RCVDEVEN processes shipping orders generated manually or automatically.

Goto Txn SM36 again

a)Enter a job name (JOB RCVDEVEN for eg.) and choose a suitable job class- B.

b) Choose Edit -> Start Time and choose After event in the dialog box that appears.

c) Enter SAP_START_EHS_RDO_EVENTHANDLER as the event and select Periodic job- hourly.

d) Choose Check and save your entries.

e) Choose Steps and choose ABAP program in the Create step 1 dialog box that appears.

f) Enter the name of the ABAP program RCVDEVEN.

g) Choose Check and save your entries.

h) Before you leave the Define Job screen, you must save your entries once more.

c) Job for Document Generation on WWI Server

The standard system contains two system events that start batch processes for the dispatcher and for the work processes.

Check that these system events are there using transaction SM62:

SAP_START_WWI_DISPATCHER (starting a WWI dispatcher)

SAP_START_WWI_WORKPROCESS (starting an EH&S report generation WWI work process)

You can start the dispatcher in any of the 2 ways:

Option 1: Manual Start

a) Call the SAP System in the client for which the dispatcher is to be started manual-ly.

b) In the SAP Easy Access screen, choose Tools -> ABAP Workbench -> Develop-ment -> ABAP Editor. The ABAP Editor: Initial Screen appears.

c) Enter RC1WWIDS in the Program field.

d) Choose Execute.

The RC1WWIDS report creates the WWI dispatch process for the corresponding client.

To check the job overview, choose System -> Services -> Jobs -> Job Overview from the SAP Easy Access screen. In the or after event field, enter the value SAP_START*. Choose Confirm to check the entry for your client's WWI dispatch process. If you have already started report generation, you can also check if the dispatcher has started the corresponding WWI work processes for each generation server.

                                                OR

Option 2: Automatic start

a) Call the SAP System for the required client.

b) Choose System -> Services -> Jobs -> Define Job from the SAP Easy Access screen.

c) Enter the job name (JOB SAP START for eg.) and choose a job class - A.

d) Choose Start condition and in the dialog box, choose After event.

e) Enter SAP_SYSTEM_START in the event field.

f) Activate Periodic job.

g) Choose Check and save your entries.

h) Choose Step and choose ABAP program in the dialog box that appears.

i) Enter RC1WWIDS as the ABAP program name.

j) Choose Check and save your entries.

k) Before you leave the Define Background Job screen, you must save your entries once more.

Result: The job is started whenever the SAP System is started.

Former Member
0 Kudos

Thank you Chris and Dhinesh for the guidance!

Answers (0)