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

Problems with submit report

bala_natarajan
Explorer
0 Likes
1,773

Hi,

We have a requirement where we are using the SUBMIT to run a standard program (tcode IW38) with our own selection screen.

SUBMIT RIAUFK20

WITH SELECTION-TABLE GT_PARAMS

EXPORTING LIST TO MEMORY

AND RETURN.

The output results were not getting exported to memory since the standard program for IW38 returns an ALV.

So I copied the standard RIAUFK20 and used the memory commands to get the data in the submitted program. It is working, but the problem is the results of IW38 are displayed immediately and it doesn't come back to called program.I have to press the back button to come back to my selection screen.We don't want to display o/p at that point since we want to consolidate the output and then display it later but not after SUBMIT. If anyone know how to resolve this please help.

Can I suppress the IW38 output screen?

Thanks,

Bala

1 ACCEPTED SOLUTION
Read only

former_member186741
Active Contributor
0 Likes
1,270

the problem is not because the report uses ALV this technique usually works fine for alv reports. It is just that this program uses other special techniques which over-ride the submit option.

However, if you set no-display parameter DY_SELM to 'D', instead of showing the report it exports a table contents to memory. See form FILL_SELTAB_F16.

Maybe this table is ok for you to use?

8 REPLIES 8
Read only

Former Member
0 Likes
1,270

Will this be a batch job?

Read only

suresh_datti
Active Contributor
0 Likes
1,270

Hi Bala,

If you are using a Z version, may be you can prevent ALV display & export the itab to memory instead of the export list to memory option with the SUBMIT..

Regards,

Suresh Datti

Read only

Former Member
0 Likes
1,270

Hi Bala,

Since you are calling an ALV report ,it might be a problem.

If it is a normal report its working fine.

Read only

Former Member
0 Likes
1,270

Hi Bala,

As Suresh correctly mentioned create a Zversion and prevent the ALV display .

Lanka

Read only

Former Member
0 Likes
1,270

Since you copied the program of IW38, add two new radio-buttons to the selection screen, one for displaying report online as an ALV and another to export the internal tables to memory. Then change the logic as

if p_alv = 'X'.

*-- display online.

else.

*-- export data to memory

endif.

Now in your submit, you select the radiobutton that exports it to the memory.

Read only

0 Likes
1,270

Hi Srinivas,

Thank you. It worked well.

Thanks you all for your help and advice.

Thanks,

Bala

Read only

former_member186741
Active Contributor
0 Likes
1,271

the problem is not because the report uses ALV this technique usually works fine for alv reports. It is just that this program uses other special techniques which over-ride the submit option.

However, if you set no-display parameter DY_SELM to 'D', instead of showing the report it exports a table contents to memory. See form FILL_SELTAB_F16.

Maybe this table is ok for you to use?

Read only

0 Likes
1,270

Hi Neil,

I set the parameter DY_SELM to D and the table in the form is the one I need. Thank you very much. Previously I tried copying the standard into a Z program and commenting the ALV display, it worked but the one you suggested is the best of two.

Thanks,

Bala