Skip to Content
0
Former Member
Oct 29, 2007 at 10:17 AM

SUBMIT ZREPORT WITH INTERNAL TABLE

11 Views

Hello,

I have a problem because I would like to call zreport and I need to pass an internal table.

I need the internal table because in the zreport I work with it.

I tried to pass doing SUBMIT ZREPORT WITH IT_SFLIGHT. but it doesn't work.

<b>

MAIN_REPORT</b>

ZTOP.______________________________

 

TYPES:BEGIN OF S_SFLIGHT.

INCLUDE STRUCTURE SFLIGHT.

TYPES END OF S_SFLIGHT.

DATA: IT_SFLIGHT TYPE STANDARD TABLE OF S_SFLIGHT,

WA_SFLIGHT LIKE LINE OF IT_SFLIGHT.

ZCLASS._____________________________

CLASS LCL_HANDLER DEFINITION.

PUBLIC SECTION.

CLASS-METHODS:

ON_DOUBLE_CLICK

FOR EVENT DOUBLE_CLICK OF CL_SALV_EVENTS_TABLE

IMPORTING

ROW

COLUMN.

ENDCLASS.

CLASS LCL_HANDLER IMPLEMENTATION.

METHOD ON_DOUBLE_CLICK.

CASE COLUMN.

WHEN 'CONNID'.

AUX_ROW = ROW.

  • MESSAGE I000(0K) WITH 'You Double Clicked on Line'

  • ROW

  • 'Of Column'

  • COLUMN.

READ TABLE IT_SFLIGHT INTO WA_SFLIGHT INDEX ROW.

SUBMIT ZFUN2 with IT_SFLIGHT = IT_SFLIHT.

ENDCLASS.

ZREPORT___________________________________

WRITE: / IT_SFLIGHT-CARRID, IT_SFLIGHT-CONNID.