Application Development and Automation 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: 
Read only

From Module Pool Callinf report...?

Former Member
0 Likes
491

Dear All,

I have created one screen (Module Pool) and from that screen I want to call report screen, can u suggest how to call report and from report screen how to come back on main screen?

Regards.

3 REPLIES 3
Read only

Former Member
0 Likes
469

hi,

use <b>SUBMIT REPORT</b> statement ..

Regards,

Santosh

Read only

anversha_s
Active Contributor
0 Likes
469

Hi,

chk this. pls look the bold part

Code used to populate 'select-options' & execute report

DATA: seltab type table of rsparams,

seltab_wa like line of seltab.

seltab_wa-selname = 'PNPPERNR'.

seltab_wa-sign = 'I'.

seltab_wa-option = 'EQ'.

  • load each personnel number accessed from the structure into

  • parameters to be used in the report

loop at pnppernr.

seltab_wa-low = pnppernr-low.

append seltab_wa to seltab.

endloop.

SUBMIT zreport with selection-table seltab

via selection-screen.

*Code used to populate 'parameters' & execute report

SUBMIT zreport with p_param1 = 'value'

with p_param2 = 'value'.

Other additions for SUBMIT

<b>*Submit report and return to current program afterwards

SUBMIT zreport AND RETURN.</b>

*Submit report via its own selection screen

SUBMIT zreport VIA SELECTION-SCREEN.

*Submit report using selection screen variant

SUBMIT zreport USING SELECTION-SET 'VARIANT1'.

*Submit report but export resultant list to memory, rather than

*it being displayed on screen

SUBMIT zreport EXPORTING LIST TO MEMORY.

  • Once report has finished and control has returned to calling

  • program, use function modules LIST_FROM_MEMORY, WRITE_LIST and

  • DISPLAY_LIST to retrieve and display report.

rgds

anver

if hlped pls mark points

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
469

Hi,

You can another report in two ways,

You can do

CALL PROGRAM or CALL Transaction . In the second case you need to know the transaction of the report porgram. You can also use SUBMIT if you want to submit some values to the called report program.

You can come back to the CALLING module pool program by clicking back in the second report and you should have coded for the BACK button on that report screen like LEAVE TO SCREEN 0.

Regards,

Sesh