2006 Oct 30 5:29 AM
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.
2006 Oct 30 5:31 AM
2006 Oct 30 5:32 AM
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
2006 Oct 30 5:33 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |