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

call transaction

Former Member
0 Likes
777

Hi All,

I'm calling transaction MD03 from my report to run MRP on single material using following code.

FORM RUN_MRP.

read line sy-lilli field value pick2.

if pick2 EQ 'X'.

set parameter id 'MAT' field itb1-matnr .

set parameter id 'WRK' field p_werks.

call transaction 'MD03' and skip first screen.

endif.

ENDFORM.

I want this whole process in background. I mean I dont want to go to MD03 screens. if click on any line in report, background it sould run MRP. Could any one suggest me in this regard.

Thanks and regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
748

Hi,

One simple solution is create a small BDC which you will be able to run in Background and it won't take much efforts as well..

Hope this will solve your problem.

Award Points if it solves your purpose.

-Gaurang

Hi,

One simple solution is create a small BDC which you will be able to run in Background and it won't take much efforts as well..

Hope this will solve your problem.

Award Points if it solves your purpose.

-Gaurang

5 REPLIES 5
Read only

Former Member
0 Likes
748

try this ...use MODE 'N'

call transaction 'MD03' <b>mode 'N'</b> and skip first screen.

Read only

0 Likes
748

Dear chandra,

I'm getting syntax errors if I use this code.

call transaction 'MD03' mode 'N' and skip first screen.

Read only

Former Member
0 Likes
749

Hi,

One simple solution is create a small BDC which you will be able to run in Background and it won't take much efforts as well..

Hope this will solve your problem.

Award Points if it solves your purpose.

-Gaurang

Read only

Former Member
0 Likes
748

HI,

DATA options TYPE ctu_params

options-dismode = 'N'.

A Display all screens

E Display errors

N Background processing

P Background processing; debugging possible

CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM options..

This will run in bak ground mode..

reward if useful

regards,

nazeer

Read only

Former Member
0 Likes
748

HI Abdul,

U can use this statement

call transaction 'MD03' mode 'N' and skip first screen.

this makes tha transaction run in background

call transaction 'MD03' mode 'E' and skip first screen.

This statement allows u to disaply the trasaction screen only when an error occured

Regards,

Kasi S