How to paginate the Report output spanning multiple pages
Hello,
We have a Report that has a custom Layout and it shows invoice information.
Our system has to generate an Invoice per day.
This Report is printed fine for single day.
But our users have 2 requests:
1. To print all the invoices for 1 month
2. To save them to file.
At least printing will do for now.
The problem I got is pagination.
When I made Month&Year as parameter and user selects 2001-OCT
to print all invoices in Oct,2001, the Report is unable to print one invoice per page. In between the layout is rolling over to multiple pages.
Is there a way I can control pagination or any settings?
Thank you much.
Madhav
Hello,
We have a Report that has a custom Layout and it shows invoice information.
Our system has to generate an Invoice per day.
This Report is printed fine for single day.
But our users have 2 requests:
1. To print all the invoices for 1 month
2. To save them to file.
At least printing will do for now.
The problem I got is pagination.
When I made Month&Year as parameter and user selects 2001-OCT
to print all invoices in Oct,2001, the Report is unable to print one invoice per page. In between the layout is rolling over to multiple pages.
Is there a way I can control pagination or any settings?
Thank you much.
Madhav
Similar Messages
-
How to display the Form output in multiple languages ? ------ Urgent
How to display the Form output in multiple languages ? -
UrgentHi,
Do u mean the Form output in 2-3 languages ...like form output will be having english russian etc...
for the above case , what u have to do ...
first have to get the transalations for all the fields
say for example : if the english word is PO Number , then u have to get the transalation text for PO Number :
after this , what u have to is ,,, Log on to SAP with russian language , then in the form o/p u have to paste that russian test ( translation text ) ...
do like this for all the components in the form .
Reward Points if it is Useful.
Thanks,
Manjunath MS -
How to send the report output to the application server in a excel file
Hello,
how to send the report output to the application server in a excel file.
and the report runs in background.
Thanks in advance.
SundeepDear Sundeep.
I'm providing you with the following piece of code ... Its working fine for me ... hopefully it suits your requirement ...
D A T A D E C L A R A T I O N *
TYPES: BEGIN OF TY_EXCEL,
CELL_01(80) TYPE C,
CELL_02(80) TYPE C,
CELL_03(80) TYPE C,
CELL_04(80) TYPE C,
CELL_05(80) TYPE C,
CELL_06(80) TYPE C,
CELL_07(80) TYPE C,
CELL_08(80) TYPE C,
CELL_09(80) TYPE C,
CELL_10(80) TYPE C,
END OF TY_EXCEL.
DATA: IT_EXCEL TYPE STANDARD TABLE OF TY_EXCEL,
WA_EXCEL TYPE TY_EXCEL..
E V E N T : S T A R T - O F - S E L E C T I O N *
START-OF-SELECTION.
Here you populate the Internal Table.
Display - Top of the Page.
PERFORM DISPLAY_TOP_OF_PAGE.
E V E N T : E N D - O F - S E L E C T I O N *
END-OF-SELECTION.
SET PF-STATUS 'GUI_STATUS'.
E V E N T : A T U S E R - C O M M AN D *
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'EXPORT'.
Exporting the report data to Excel.
PERFORM EXPORT_TO_EXCEL.
ENDCASE.
*& Form DISPLAY_TOP_OF_PAGE
text
--> p1 text
<-- p2 text
FORM DISPLAY_TOP_OF_PAGE .
SKIP.
WRITE: /05(128) SY-ULINE,
/05 SY-VLINE,
06(127) 'O R I C A'
CENTERED COLOR 1,
132 SY-VLINE.
WRITE: /05(128) SY-ULINE,
/05 SY-VLINE,
06(127) 'Shift Asset Depreciation - Period/Year-wise Report.'
CENTERED COLOR 4 INTENSIFIED OFF,
132 SY-VLINE.
WRITE: /05(128) SY-ULINE.
E X C E L O P E R A T I O N
CLEAR: IT_EXCEL[],
WA_EXCEL.
PERFORM APPEND_BLANK_LINE USING 1.
WA_EXCEL-cell_02 = ' XYZ Ltd. '.
APPEND WA_EXCEL TO IT_EXCEL.
CLEAR: WA_EXCEL.
WA_EXCEL-cell_02 = 'Shift Asset Depreciation - Period/Year-wise Report.'.
APPEND WA_EXCEL TO IT_EXCEL.
PERFORM APPEND_BLANK_LINE USING 1.
ENDFORM. " DISPLAY_TOP_OF_PAGE
*& Form APPEND_BLANK_LINE
text
-->P_1 text
FORM APPEND_BLANK_LINE USING P_LINE TYPE I.
DO P_LINE TIMES.
CLEAR: WA_EXCEL.
APPEND WA_EXCEL TO IT_EXCEL.
enddo.
ENDFORM.
*& Form EXPORT_TO_EXCEL
text
--> p1 text
<-- p2 text
FORM EXPORT_TO_EXCEL .
DATA: L_FILE_NAME(60) TYPE C.
Create a file name
CONCATENATE 'C:\' 'Shift_Depn_' SY-DATUM6(2) '.' SY-DATUM4(2)
'.' SY-DATUM+0(4) INTO L_FILE_NAME.
Pass the internal table (it_excel which is already populated )
to the function module for excel download.
CALL FUNCTION 'WS_EXCEL'
exporting
filename = L_FILE_NAME
tables
data = IT_EXCEL
exceptions
unknown_error = 1
others = 2.
if sy-subrc <> 0.
message e001(ymm) with 'Error in exporting to Excel.'.
endif.
ENDFORM. " EXPORT_TO_EXCEL
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you click the button - Export to Excel ( GUI-Status) you'll be able to export the content of the Internal Table to an Excel file .......
Regards,
Abir
Don't forget to award Points * -
How to keep the filtered output in a page after user navigates back?
How to keep the filtered output in a page after user navigates back to all records from another page.
Currently it clears the searchHi,
user13091824 wrote:
How to keep the filtered output in a page after user navigates back to all records from another page.
Currently it clears the search---While returing from page AM Return status should be True in pageContext.setForwardURL.:::
pageContext.setForwardURL("OA.jsp?page=/XXX/oracle/apps/po/msg/webui/SearchPG",
"SUPP_SEARCH",
OAWebBeanConstants.GUESS_MENU_CONTEXT,
null,
null,
true, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
---After setting AM Status to true u can able to c the values.
Regards
Meher Irk -
How to download the report output into PDF format
Hi friedns
from the report output when user clicks download button
it has to download to PDF format
how to do this
thanks in advance
venuhi venu,
check this sample code
Save Report Output to a PDF File
This report takes another report as input, and captures the output of that report. The output is then converted to
PDF and saved to a local file. This shows how to use some of the PDF function modules, as well as an easy way to
create PDF files.
Source Code Listing
report zabap_2_pdf.
*-- Enhancements: only allow to be run with variant. Then called
*-- program will be transparent to users
*-- TABLES
tables:
tsp01.
*-- STRUCTURES
data:
mstr_print_parms like pri_params,
mc_valid(1) type c,
mi_bytecount type i,
mi_length type i,
mi_rqident like tsp01-rqident.
*-- INTERNAL TABLES
data:
mtab_pdf like tline occurs 0 with header line,
mc_filename like rlgrap-filename.
*-- SELECTION SCREEN
parameters:
p_repid like sy-repid, " Report to execute
p_linsz like sy-linsz default 132, " Line size
p_paart like sy-paart default 'X_65_132'. " Paper Format
start-of-selection.
concatenate 'c:\'
p_repid
'.pdf'
into mc_filename.
*-- Setup the Print Parmaters
call function 'GET_PRINT_PARAMETERS'
exporting
authority= space
copies = '1'
cover_page = space
data_set = space
department = space
destination = space
expiration = '1'
immediately = space
in_archive_parameters = space
in_parameters = space
layout = space
mode = space
new_list_id = 'X'
no_dialog= 'X'
user = sy-uname
importing
out_parameters = mstr_print_parms
valid = mc_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
*-- Make sure that a printer destination has been set up
*-- If this is not done the PDF function module ABENDS
if mstr_print_parms-pdest = space.
mstr_print_parms-pdest = 'LOCL'.
endif.
*-- Explicitly set line width, and output format so that
*-- the PDF conversion comes out OK
mstr_print_parms-linsz = p_linsz.
mstr_print_parms-paart = p_paart.
submit (p_repid) to sap-spool without spool dynpro
spool parameters mstr_print_parms
via selection-screen
and return.
*-- Find out what the spool number is that was just created
perform get_spool_number using sy-repid
sy-uname
changing mi_rqident.
*-- Convert Spool to PDF
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid= mi_rqident
no_dialog = space
dst_device = mstr_print_parms-pdest
importing
pdf_bytecount = mi_bytecount
tables
pdf = mtab_pdf
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
call function 'DOWNLOAD'
exporting
bin_filesize = mi_bytecount
filename = mc_filename
filetype = 'BIN'
importing
act_filename = mc_filename
tables
data_tab = mtab_pdf.
FORM get_spool_number *
Get the most recent spool created by user/report *
--> F_REPID *
--> F_UNAME *
--> F_RQIDENT *
form get_spool_number using f_repid
f_uname
changing f_rqident.
data:
lc_rq2name like tsp01-rq2name.
concatenate f_repid+0(8)
f_uname+0(3)
into lc_rq2name separated by '_'.
select * from tsp01 where rq2name = lc_rq2name
order by rqcretime descending.
f_rqident = tsp01-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear f_rqident.
endif.
endform." get_spool_number
Regards,
Naveen -
How to store the report output in app server local directory
Dear All,
I would like to store the reports output in the app server folder. How do i achieve?
I am using reports10g, app server 10g. I am using web.show_document to call the reports. I would like to the achieve the same using this web.show_document built in.
Thanks
BalajiHi,
using desname pointing to an path on the apps-server the output is stored there. But when opening before in browser, then this document is stored in temporary folder on the client and you can't store them then to the apps server (if you not map the apps server or use web dav to do that).
Regards
Rainer -
SAP WEBGUI - How to download the report output to Excel ?
Hi Folks ,
We have generated a report in standard SAP GUI 7.1 . But our requirement is to view the report in SAP WEBGUI and download as EXCEL .
We can view the report output in SAP WEBGUI , but could find an option to download as excel !
Is there any option in webgui ?
Please provide you valuable inputs !
Thanks.,
V.RangarajanHi V.Ranjarajan,
Have you created an ALV report?
If yes, there are many ways to download the output to excel:
Go to Menu -> Export - > Local File... , local file button, etc.
In SAP CRM 7.0 there is a std functionality to even download search result list to excel.
Hope this helps!
Regards,
Saumya -
How to automatically maximize report output on HTML page
Hi,
I am using Oracle Database 10g and Oracle Developer Suite 10.1.2
on Windows XP.
I am using Run_Report_Object() and Web.Show_Document() respectively to call the Report from Oracle Form.
Well, it showed normally.
However, the Window is not maximized automatically when showed.
I had to maximize it manually.
I would like to know, how can I maximize the report output which is showed in new Window on HTML format automatically?
Is there anyway to do so?
BTW, I also use the Report to call another Report by providing the hyperlink using SRW.Set_Hyperlink
Can I do the same, maximize the Window?
Many thanks,
Buntorohi,
u'll have to set the second argument in your function to '_blank'
i.e, web.show_document(url,'_blank'); -
How to send the Report output thru email
Dear All,
Is there a way to send the output of a abap report thru mail. I am sure it is there.
My report output is as following.
Emp Code : A01234
Name: XYZ
Email-ID: [email protected]
Dear XYZ,
You have Rs....... as outstanding. Please clear all dues by ..(date).
Thankyou,
asdf.
Please advice how to accomplish this. Send a sample source code if possible.
Regards,
Alok.Below you can find the sample code for sending the report as email.
Do use this as cross reference..
DATA: reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objhex LIKE solix OCCURS 10 WITH HEADER LINE,
listobject LIKE abaplist OCCURS 0 WITH HEADER LINE,
so_ali LIKE soli OCCURS 0 WITH HEADER LINE,
list_index LIKE sy-lsind VALUE 0,
packing_list LIKE sopcklsti1,
docdata LIKE sodocchgi1,
tab_lines TYPE i,
l_rqident LIKE tsp01-rqident,
att_type LIKE soodk-objtp.
objtxt[] = mail_text[].
IF p_skip_attach IS INITIAL. " INS SIR 3971 TODD
SYSTEM-CALL LOAD LISTLEVEL-STACK INTO wrkstack.
IF wrkstack[] IS INITIAL.
SKIP 2.
WRITE: /30 text-001 COLOR 5.
ENDIF.
ENDIF. " INS SIR 3971 TODD
Prepare Receipient List
REFRESH: reclist.
LOOP AT rcpnt_userids.
IF rcpnt_userids-l_adr_name NA '@'.
reclist-receiver = rcpnt_userids-usrnam.
reclist-rec_type = 'B'.
reclist-express = 'X'.
ELSE.
reclist-receiver = rcpnt_userids-l_adr_name.
reclist-rec_type = 'U'.
reclist-express = 'X'.
ENDIF.
APPEND reclist.
CLEAR reclist.
ENDLOOP.
Prepare Doc Data
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
docdata-obj_langu = sy-langu.
docdata-obj_name = 'ABAP Listing'.
docdata-obj_descr = subject.
docdata-sensitivty = 'O'.
Prepare OBJPACK
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
APPEND objpack.
att_type = 'ALI'.
DESCRIBE TABLE so_ali LINES tab_lines.
READ TABLE so_ali INDEX tab_lines.
objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( so_ali ).
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = att_type.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = subject.
APPEND objpack.
SAP supplied API function module to send Message
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X' "used from rel. 6.10
TABLES
packing_list = objpack
object_header = objhead
contents_bin = so_ali
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_reclist = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE i398(00) WITH 'SAP Office API Error'
sy-subrc
ENDIF. -
How to maintain the report output in Spool
Hi All,
I have a requirement to display a normal report and also send the same report output to spool simultaneously while executing in foreground. How can this be done? Any kind of help is welcome.
Regards,
BansiHi,
try creating your own spool request.
Sample
FORM maak_aparte_spool .
DATA: l_layout LIKE tsp01-rqpaper,
l_doctype LIKE tsp01-rqdoctype,
l_name TYPE tsp01-rq0name,
l_length TYPE i,
l_pri_params TYPE pri_params,
l_spool_handle TYPE sy-tabix,
lv_lines TYPE i,
l_line_length TYPE i.
l_doctype = 'LIST'.
l_layout = 'X_PAPER'.
l_name = l_pri_params-plist.
** Open Spool
CALL FUNCTION 'RSPO_SR_OPEN'
EXPORTING
dest = 'PDUM'
layout = l_layout
name = l_name
immediate_print = l_pri_params-primm
titleline = 'this'
receiver = l_pri_params-prrec
division = l_pri_params-prabt
authority = l_pri_params-prber
doctype = l_doctype
IMPORTING
handle = l_spool_handle
spoolid = gv_spool_nr
EXCEPTIONS
device_missing = 1
name_twice = 2
no_such_device = 3
operation_failed = 4
OTHERS = 5.
** Schrijven naar spool
LOOP AT gt_spool INTO gs_spool.
lv_lines = lv_lines + 1.
l_line_length = 255.
CALL FUNCTION 'RSPO_SR_WRITE'
EXPORTING
handle = l_spool_handle
text = gs_spool
length = l_line_length.
IF lv_lines EQ '65'.
CALL FUNCTION 'RSPO_SR_PAGE_BREAK'
EXPORTING
handle = l_spool_handle
EXCEPTIONS
handle_not_valid = 1
operation_failed = 2
OTHERS = 3.
CLEAR: lv_lines.
ENDIF.
ENDLOOP.
* Zorg ervoor dat er op het einde zoiezo een page break zit
* dit ivm met het openen van de PDF
CALL FUNCTION 'RSPO_SR_PAGE_BREAK'
EXPORTING
handle = l_spool_handle
EXCEPTIONS
handle_not_valid = 1
operation_failed = 2
OTHERS = 3.
** Spool sl
CALL FUNCTION 'RSPO_SR_CLOSE'
EXPORTING
handle = l_spool_handle.
ENDFORM. " MAAK_APARTE_SPOOL
Best regards,
John -
How to display the report output from a standard Oracle Form
Dear Members,
I am calling a concurrent program (XML Report) from a standard form using form's personalization (special menu entry).
I am able to successfully submit the concurrent program. Once it is submitted successfully user need to navigate to the Requests window to see the output.
Instead of user navigating to the requests window to see the output, can we display it directly on the standard form itself after the completion of the report?
Many thanks in advance.
Best Regards,
Arun Reddy.R4S,
You might be able to Zoom to the view requests form to save your users a step.
HTH,
--Johnnie -
How to display the report output from a customized Oracle Form button
Hi Gurus
I developed a customized oracle form and one customized report. I want to run report from oracle customized form, for this i use one button to submit concurrent request for request.
its successfully submitted and i can view output by using View ----> Request --------> Find -------------> Output...
But problem is that how can i view output by using button not doing all steps to view output.
Regards,Hi Haq Nawaz,
Refer Here
Regrads,
Guru -
How do I make a table span multiple pages?
Hello,
My team and I use a Pages doc with several tables in it. The size of these tables (i.e. the number of rows in the table) change every week. Before upgrading to Yosemite, whenever a table extended beyond one page it would continue on the next with the same headers as the original table. For some reason, the tables now instead"shift" to the next page once the number of rows becomes too much for the current page.... That is unless it is the only table on on the page, in which case it will perform in the desired manner. However, if there are multiple tables on a page, the table will move to the next page, leaving a big blank space where it used to be. I have tried playing with the "Arrange" area to no avail. I can make the table float and create a new table on the next page once the rows become too numerous, but this is not ideal. Has this feature been removed from the new pages or am I just not looking in the right place?
Thanks,
mFutureUse Pages '09. Pages 5.5.1 is a lost cause.
Peter -
How can I make a table span multiple pages?
Hi guys,
I really hope someone can help me out. First off I am a indesign novice. I have primarily been using indesign scripting to take other user's indesign documents and generating dynamic previews and PDFS with indesign server 2014 (it's pretty cool stuff).
Someone gave me an indesign document that has a table that starts off in the middle of the page and depending on how many rows they want the table to be it should bump the overflow'ed table rows to the 2nd page.
In indesign I have tried to link the text frames together. It looks ok in indesign as the linked content shows up on page two.
Whenever I run the script to generate the preview JPEG the table on page 1 gets cut off and doesn't render anything on page 2.
Using a script I was able to examine all the textframes on the page and none of the text frames have their "overflows" property set to true.
What am I doing wrong here? I'm sure there are a million things I'm missing but what are some of the basic things I can look for. I'm totally lost here guys.
Thanks,
DustinDustinMichaels1982 wrote:
Whenever I run the script to generate the preview JPEG…
I'm not familiar with the script you are talking about, but if you want to make Jpegs of your pages, the best route is to export the document as PDF, and then open in Photoshop, where you can save as Jpeg. If creating Jpegs was not your goal, can you explain further? -
How to resize the embeded player in a page after it has loaded?
Hi all
I'm working with Flash 8, with the FLV player component. The
player loads various flash videos (flv)
that can have verious sizes.
I have set the autosize detection for the player. But I want
the size of the embeded player to also
change according to the size of the loaded flv.
For example, if the loaded flv is 100px by 100px, I want the
embeded player to be 100px by 100px (in
the html code). if the flv is 500px by 350px, i want the
embeded flav to change to that 500 x 350px.
As far as I know, the sizes of the flv file cannot be
detected with PHP or javascript, so only the
component can detect the flv size. Therefore I would need a
way to re-write the embeded code after
the flv has loaded.
Anybody knows how to do that? Is it possible?
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing ListHi,
user13091824 wrote:
How to keep the filtered output in a page after user navigates back to all records from another page.
Currently it clears the search---While returing from page AM Return status should be True in pageContext.setForwardURL.:::
pageContext.setForwardURL("OA.jsp?page=/XXX/oracle/apps/po/msg/webui/SearchPG",
"SUPP_SEARCH",
OAWebBeanConstants.GUESS_MENU_CONTEXT,
null,
null,
true, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
---After setting AM Status to true u can able to c the values.
Regards
Meher Irk
Maybe you are looking for
-
Continuous play and window minimize
I have not used my itunes for a while on my home computer. I play it at work almost every day. I came home tonight and turned it on and it plays one song and stops. I have to go and click on the next song. At work, it just plays various songs. I thin
-
Hell Experts, I have done desgin and configuration from Idoc to File Scenario in XI Intergration server. Source is R/3 and Target system is File. I have successfully configured each and every step. Send Idoc from R/3 to Intergration server and run sx
-
Web pages on my home page wont open since i did the update
ever since i did the most recent update for firefox version 5.0 the web pages on sympatico will not open i have even restarted a few time to no avail.
-
Date Format (month in words, day and year in number)
Hi Experts, Is there any standard format available in SAP as a data type for the following format in date i.e. 05 th June 2006 or June 05 2006. Any format where the month should be in letters. If its there could you pls revert back ASAP. Thanking you
-
So I had to get replacement for iPhone 5 due fault. I reinstalled my contact and photos and music. However some music artist and albums are not appearing on my laptop or iPhone 5. When I go to download the tracks it says I need to re pay for music ag