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: 

Issue with Submitting a ALV report in container ...

Former Member
0 Kudos

Hello Gurus,

I know how to display data in ALV in container on screen. My issue is, I have a container defined on screen. I have a separate report whose output is in the ALV form.

Now if I submit the report in the PBO, I do not get the ALV output of that report in custom container defined on screen, but the report as a whole gets executed.

How can I submit a report and still get its output on ALV container.

MODULE STATUS_0100 OUTPUT.

 CREATE OBJECT CUSTOM2
EXPORTING
  CONTAINER_NAME              = 'CUSTOM2'.

  CREATE OBJECT GRID1
    EXPORTING

      I_PARENT          = custom2.

  perform loaddata2.

ENDMODULE.

FORM loaddata2.
  DATA: v_sp like rsparams occurs 0 with header line.

  V_SP-SELNAME = 's_usr'.
  V_SP-KIND = 'P'.
  V_SP-LOW = 'X'.
  APPEND V_SP.


submit ZREPT with selection-table v_sp and return.

ENDFORM.

Please help.

Regards,

Jainam.

Edited by: Jainam Shah on Apr 20, 2010 7:23 PM

Edited by: Jainam Shah on Apr 20, 2010 7:24 PM

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

You can't get the output from one report into another report by submit.

If your ALV is created in the Subscreen than you can display it in your screen in the Subscreen Area.

If your ALV is created in the Class or FM by passing the Container Object to that method or FM than you can instantiate your container and generate the ALV by passing the reference to that method or FM.

Regards,

Naimesh Patel

Edited by: Naimesh Patel on Apr 20, 2010 2:17 PM

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

You can't get the output from one report into another report by submit.

If your ALV is created in the Subscreen than you can display it in your screen in the Subscreen Area.

If your ALV is created in the Class or FM by passing the Container Object to that method or FM than you can instantiate your container and generate the ALV by passing the reference to that method or FM.

Regards,

Naimesh Patel

Edited by: Naimesh Patel on Apr 20, 2010 2:17 PM

Former Member
0 Kudos

Hi,

In your ZREPT report define a parameter( called ) one character that is not displayed. Set this parameter 'X' before submit statement. In ZREPT report check this parameter;

if called is not initial. (It means the report is submitted from the other report)

export result table to memory id 'MEMORYID'.

endif.

Then in report from which you submitted ZREPT, import result table from memory id 'MEMORYID'. Then display the result table in your grid.