Skip to Content
author's profile photo Former Member
Former Member

Display hidden fields in output list when submitting a report from another

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??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2011 at 06: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 ?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 25, 2011 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.