Application Development and Automation 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: 
Read only

Tcode to trigger a background job

Former Member
0 Likes
1,237

Hi,

Can we create a tcode which triggers a background job?

Ezhil.

7 REPLIES 7
Read only

Former Member
0 Likes
898

Hi

Yes u can, that means the report assigned to the trx has to schedule a job or active an event.

What do you really need to do?

Max

Read only

0 Likes
898

My User asked for a custom tcode for VF01 which use the copy control from the order and delivery and not allow any manual changes as it is done when the invoice is created in the background.

So he wants a t code trigger the creation of billing in the background.

The most critical requirement is to prevent the user from overriding or changing pricing conditions.

My question is

Is it possible to create a tcode which trigger the background creation?

What shall i tell user?

Ezhil

Read only

0 Likes
898

Yes you can create a Z-transaction that create a BDC on VF01 and submit it via RSBDCSUB.

Regards,

Raymond

Read only

0 Likes
898

Hi

I think u can try to run the trx VF04 in background

Max

Read only

Former Member
0 Likes
898

Hello Ezhilhrh ,

T-Code for background job is SM37.

Regards,

Shrikant

Read only

Former Member
0 Likes
898

Yeah, you can do that.

You need to use JOB_OPEN, JOB_SUBMIT and JOB_CLOSE function modules (in the same sequence).

Read only

RaymondGiuseppi
Active Contributor
0 Likes
898

Yes like in or using a FM like BP_EVENT_RAISE or many answers available...

Could you detail your request a little more?

Regards,

Raymond