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

Background

Former Member
0 Likes
495

Hi,

How to setup Background Processing using CALL TRANSACTION ? Whats the steps to do ?

Vinay

1 ACCEPTED SOLUTION
Read only

kiran_k8
Active Contributor
0 Likes
477

Vinay,

Do it like this.

If sy-batch = 'X'.

job_open

job_close.

K.Kiran.

3 REPLIES 3
Read only

kiran_k8
Active Contributor
0 Likes
478

Vinay,

Do it like this.

If sy-batch = 'X'.

job_open

job_close.

K.Kiran.

Read only

Former Member
0 Likes
477

Hi vinay,

To use call transaction in ur program, u need to find out the Parameter ID field for that field according to which u want to call the transaction.See the code below where i have used the call transaction 'me22'.I am calling this transaction in accordance to purchase order no ie itab_out1-f_ebeln in my program and you have to write HOT SPOT ON after the field acc.to which u r calling the transaction.Here itab_out1 is my internal table for ur reference.

Its a simple code.You will have the idea of using call transaction.

Reward if useful.

loop at itab_out1.

write :

/1 itab_out1-f_ebeln COLOR 5 HOTSPOT ON,

20 itab_out1-f_lifnr,

45 itab_out1-f_name1,

60 itab_out1-f_matnr,

80 itab_out1-f_aedat,100 itab_out1-f_ebelp ,108 itab_out1-f_netpr,/,

/100'TOTAL',

108 itab_out1-f_price color 3.

hide: itab_out1-f_ebeln.

AT LINE-SELECTION.

SET PARAMETER ID 'BES' FIELD itab_out1-f_ebeln.

CALL TRANSACTION 'ME22'.

endloop.

ENDFORM. "GET_DETAILS

Read only

hymavathi_oruganti
Active Contributor
0 Likes
477

for background processing,

CALL TRANSACTION <b>MODE 'N'</b>

MODE N means no screen mode.

now u can set up job in sm37