‎2006 Jan 17 9:27 PM
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
‎2006 Jan 17 10:56 PM
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?
‎2006 Jan 17 9:50 PM
‎2006 Jan 17 9:56 PM
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
‎2006 Jan 17 10:00 PM
Hi Bala,
Since you are calling an ALV report ,it might be a problem.
If it is a normal report its working fine.
‎2006 Jan 17 10:11 PM
Hi Bala,
As Suresh correctly mentioned create a Zversion and prevent the ALV display .
Lanka
‎2006 Jan 17 10:17 PM
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.
‎2006 Jan 17 10:27 PM
Hi Srinivas,
Thank you. It worked well.
Thanks you all for your help and advice.
Thanks,
Bala
‎2006 Jan 17 10:56 PM
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?
‎2006 Jan 18 2:57 PM
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