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: 

Background Job creation (Using multiple variants)

former_member297642
Participant
0 Kudos
1,765

Hi all,

I have a requirement that I need to send 3 different files from SAP to Legacy system.

First file ---> at 1:30 PM & 6:30 PM (Daily twice).

Second file -


> at 2:30 AM (Daily).

Third file -


> at 1:00 Am (Daily).

I need to write a Interface Report program to create these three files and send to Legacy system. So can I create a job according to the mentioned timings above?

(Note : Each file will be using different variant)

I think you understand my problem. Appreciated your early inputs.

Please let me know that you want more explanation......

Thanks

Ranjith.

6 REPLIES 6

valter_oliveira
Active Contributor
0 Kudos
368

HI Ranjith_T.

If i undestood you right, you want your interface to run twice with one variant (say variant 1), and once with variant 2 and 3.

After creating your interface, there are several options to schedule that.

One very simple would be (in SM37):

- Create a daily job (var1) at 1:30 PM

- Create a daily job (var1) at 6:30 PM

- Create a daily job (var2) at 2:30 AM

- Create a daily job (var3) at 1:00 AM

If that's not it explain a little better the scenario.

You can also use FM JOB_OPEN and FM JOB_CLOSE but in this scenario i dont't think it's necessary.

Hope this helps.

Reward usefull ideias.

Best regards.

Valter Oliveira.

valter_oliveira
Active Contributor
0 Kudos
368

HI Ranjith_T.

If i undestood you right, you want your interface to run twice with one variant (say variant 1), and once with variant 2 and 3.

After creating your interface, there are several options to schedule that.

One very simple would be (in SM37):

- Create a daily job (var1) at 1:30 PM

- Create a daily job (var1) at 6:30 PM

- Create a daily job (var2) at 2:30 AM

- Create a daily job (var3) at 1:00 AM

If that's not it explain a little better the scenario.

You can also use FM JOB_OPEN and FM JOB_CLOSE but in this scenario i dont't think it's necessary.

Hope this helps.

Reward usefull ideias.

Best regards.

Valter Oliveira.

0 Kudos
368

Hi Valter,

Thanks for your early reply. Do you have any model Interface program which creates files and send to Legacy system ?

Regards,

Ranjith.

0 Kudos
368

Hi Ranjith.

How do you want to send the files to that Legacy system?

Best regards.

Valter Oliveira.

0 Kudos
368

Hi Ranjith,

Include a field on the selection screen for the name of the File that you want to send.

Create 4 Variants (One for Each File Type & Time Combination)

Var1A & Var1B - First File

Var2 - Second File

Var3 - Third File

Use Transaction SM36 to create 4 Background Jobs:

Provide the following

Job Name : Z_JOB_1

Job class : (Priority - As per your choice)

Goto Define Steps (Function Key F6)

Provide the following

Name : (Name of Program)

Variant : Var1 (For 1st File)

Language : EN (or whatever)

Specify Start Condition: (Function Key F5)

1. Press Date/Time Pushbutton

2. Specify Schedule Start date (Todays Date) - Dont specify end date so it will execute everyday

3. Give the Time that u want to start the processing (1:30 PM as 13:30:00 for 1st variant)

4. At the botton left hand corner of the screen you will find a checkbox for Periodic Job - Select that & Press Function Key F5

5. Select Periodic Value as Daily & Save

6. Save the Job

Create the other 3 jobs similarly with the required variant & Time.

This should hopefully solve your problem !!

Kindly be generous with points if you find the solution useful....

Regards,

Gaurav Parashar

Former Member
0 Kudos
368

Hey,

Is this ranjith tavidisetty.... if yes please call me on 09974440499...

need to speak to you.....

regards,

naveen.