08-25-2011 6:42 AM
I have a report A that is submitting another report B and exporting the list to memory. Report B is a standard report and cannot be executed on its own.
SUBMIT ReportB
WITH p_select = p_select
EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = t_list
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listasci = t_ascitab
listobject = t_list
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
The output of report B displays an ALV report, default layout of this ALV has a number of hidden fields. So when I am exporting the list to memory, the returned internal table finally extracted (t_ascitab) has only the default fields and not the hidden fields.
The default layout of the standard report B cannot be altered (as per requirement).
Is there any way the hidden fields of the output of report B can be returned to report A??
08-25-2011 7:01 AM
Hi Deepak,
Thanks for the reply.
But the problem is that the deafult layout cannot be changed. I have created a layout with the required fields. Is there any option to provide the layout name while submitting the report ?
08-25-2011 6:55 AM
Hi ,
You have to Set layout of report B as per your requirment .
There is also other method
You can include Reportb in main report and access internal table data for further processing .
regards
Deepak.
Edited by: Deepak Dhamat on Aug 25, 2011 7:59 AM
08-25-2011 7:01 AM
Hi Deepak,
Thanks for the reply.
But the problem is that the deafult layout cannot be changed. I have created a layout with the required fields. Is there any option to provide the layout name while submitting the report ?
08-25-2011 7:04 AM
Hello Shayeree
You should read this interesting blog by Glen [/people/glen.simpson/blog/2011/07/07/gain-programmatic-access-to-data-of-sapgui-alv-reports].
BR,
Suhas
08-25-2011 7:12 AM
Hi ,
IS it a standard report or Zreport ?
what are its Selection parameters ?
regards
Deepak.
08-25-2011 7:34 AM
Hi Deepak,
The called report is a standard one. And the report can only be executed by calling through another report. The parameter that need to be passed is document number.
08-25-2011 7:50 AM
Hi Suhas,
Thanks a lot for the help. This blog resolved my problem.
08-25-2011 9:23 AM
hi Suhas
Thank you for Nice Blog... .
Glen has done a great work on DATA Access for GUi based ALV report .
regards
deepak.