Application Development 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: 

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

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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 ?

7 REPLIES 7

deepak_dhamat
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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 ?

0 Kudos

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

0 Kudos

Hi ,

IS it a standard report or Zreport ?

what are its Selection parameters ?

regards

Deepak.

0 Kudos

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.

0 Kudos

Hi Suhas,

Thanks a lot for the help. This blog resolved my problem.

0 Kudos

hi Suhas

Thank you for Nice Blog... .

Glen has done a great work on DATA Access for GUi based ALV report .

regards

deepak.