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

ALV report call from module pool

Former Member
0 Likes
1,267

Dear experts,

I required a little complex input.

Material

Plant

Required qty

Every material has one to one relation with Required qty.There can be multiple materials given as input with their respective

quantities.To take this input i worked on a module pool screen.Used Table control grid to take input for two columns and

called my rport on button push as below:

module USER_COMMAND_1111 input.

if sy-ucomm = 'BSHOW'.

perform main.

endif.

endmodule.

form main.

  • process data and show report.

endform.

I find report coming in foreground.Now what strikes me is thatr i may be required to call same report in background.

How shall i do this ?.Am i right up to here ?

Dear experts,

I required a little complex input.

Material

Plant

Required qty

Every material has one to one relation with Required qty.There can be multiple materials given as input with their respective

quantities.To take this input i worked on a module pool screen.Used Table control grid to take input for two columns and

called my rport on button push as below:

module USER_COMMAND_1111 input.

if sy-ucomm = 'BSHOW'.

perform main.

endif.

endmodule.

form main.

  • process data and show report.

endform.

I find report coming in foreground.Now what strikes me is thatr i may be required to call same report in background.

How shall i do this ?.Am i right up to here ?

6 REPLIES 6
Read only

Former Member
0 Likes
955

Hi Aditya,

1. You can display an ALV using *LEAVE TO LIST-PROCESSING" statement before the ALV code in module pool.

Alternative to run in background

2. Give a checkbox on module pool to run in background..

If that has been selected run the report/alv in background instead of foreground..

hope this helps resolving your issue

Nag

Read only

0 Likes
955

No not agreeing to you.I am little hopefule that if i bring F9 function key to my GUI status things may work.But i am not able to do so.

Read only

0 Likes
955

F9 is nothing but setting SY-BATCH flag to 'x'.

If u want to run in background just set the the flag for SY-BATCH.

instead of online o/p spool would be generated

Nag

Read only

0 Likes
955

Yea,but without using leave to list-processing i can see ALV output

Read only

0 Likes
955

Setting sy-batch to X will mean background though but what when i need to change static spool paraameters

Read only

0 Likes
955

Hi..

when u want in background you can call a llar popup and pass the paramters Print attributes of ALV

else

You can write a separate report for ALV display and via selection screen you can achieve all these..

Nag