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
Similar Messages
-
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 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 display the details of particular order when click on button in sapui5
Hi Experts,
How to display the details of particular order when click on button in sapui5?
I Have a requirement that is i want display all the list of orders coming from backend as shown in image below
then in that i have a button when i press the button it need to display the details of particular order as shown in image below
Please help me .
Thanks & Regards
chittiDoes anyone know how to display the index of current desktop?
Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop (easy to do with Preview).
All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
Regards
Léonie -
How to Collect the Incoming Payment from Alternative Customer?
Hi All,
Can any one solve the below problem and in which screen I have to execute?
1. How to Collect the Incoming Payment from Alternative Customer, if one Customer is having 2 Accounts in the same Company Code?
Thanks
ChandraPlease see the below link:
http://help.sap.com/saphelp_47x200/helpdata/en/01/a9b220455711d182b40000e829fbfe/frameset.htm
Thanks
Chandra -
How to encrypt the text in password field in Oracle Forms version 6i
Need help!
How to encrypt the text in password field in Oracle Forms version 6i?
one way is to change the settings in the property palette. Can somebody provide me some script to be run while the form is running which will enable the password to be encrypted?
Thanks!Hello,
Do you mean "hidden" (replaced with stars) or encrypted (that needs to be decrypted ?
Francois -
How to display a Report 9i from Forms if the Report has a Parameter Form?
Hi,
could some one please post me a code sample to show how to call a (paper layout, RDF) Report from Forms if I would like it to display the Report's parameter form first?
Thank you in advance.
Tamas Szecsy
I used the following code segment do achieve the job, but I get "REP-546: Warning: The value of restricted LOV parameter P_ALAL is not among the selectable values" message, even though I would like to specify the P_ALAL value on the report's parameter Form.
declare
paramlist_id ParamList;
tmp_riport_name varchar2(200);
report_id report_object;
report_job_id varchar2(200);
tmp_id number;
begin
-- init
tmp_riport_name := null;
-- parameter list
paramlist_id := get_parameter_list('mytmp_params');
if not id_null(paramlist_id) then
destroy_parameter_list(paramlist_id);
end if;
paramlist_id := Create_Parameter_List('mytmp_params');
add_parameter( paramlist_id, 'PARAMFORM', TEXT_PARAMETER, 'YES' );
-- call report
report_id := find_report_object( 'DUMMY' );
if report_id.id is null then
return;
end if;
-- display
set_report_object_property( report_id, report_execution_mode, runtime );
set_report_object_property( report_id, report_comm_mode, synchronous );
set_report_object_property( report_id, report_destype, 'preview' );
set_report_object_property( report_id, report_desformat, 'PDF' );
set_report_object_property( report_id, report_server, 'rep_geoias' );
set_report_object_property( report_id, report_filename, :ALAP_REPORTS_NAME||'.rep' );
report_job_id := run_report_object( report_id, paramlist_id );
tmp_id := to_number(substr( report_job_id, length(name_in('rep_geoias'))+2 ));
web.show_document( '/reports/rwservlet/getjobid'||tmp_id||'?server=rep_geoias', '_blank' );
END;I think you specified report object name incorrect.
in command line:
repid := FIND_REPORT_OBJECT('REPORT1');
Report1 must be name of report object in Form Builder.
However to call report from Oracle Form you must do more work. For example:
- Create report server name
- Adding some code to set property for report object base on report server you created.
Cheer! -
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 display the JSP output in the same page....
im new to JSP..... can anyone tell me how to display the output of a particular JSP page in the same page itself...... if anyone could send a small sample code it will be very useful for me....
thanks in advance
regds
Krish......Hi Robert -
When you say you are writing a template-based Renderer, do you mean that you are creating a custom look and feel and replacing the header Renderer? If so, I'd recommend instead simply creating your own template (not template-based Renderer), and reference your template directly from your uiXML pages where you want to insert the timestamp.
You'll probably want to write a method data provider which calls System.currentTime(), convert the result to a date, and then use Java's date formatting capabilities (see java.text.format.DateFormat) to produce a user presentable String that you can return from your data provider.
For more info (and samples) on templates and data binding, see the "Templates and Data Binding" section of the "Includes and Templating in ADF UIX" help topic:
http://tinyurl.com/5b7bf
Andy -
Displaying the report output in excel format
Please help me in getting the report output in excel format.
thnksI ran into a BIG problem after passing from 6i rep server to 9i rep server.
On 6i rep server I used to set DESFORMAT='DELIMITED', and that produced reasonable tab-delimited output for reports that did not have group above (all the query groups were from left to right, not a single group having fields displayed above some other group). When deployed on rep server 9i, the same reports produced some unexplainable output: some of the rows were duplicated, but I couldn't figure out any rule.
So, the best thing to get the reports into something that fits in .xls would be to have the output in .xml, that may be imported in Excel. -
How to get xls report output from oracle application.
Hi,
Is it possible to get the report output in xls format.
Please advise me if it is possible.
Rgds,
Naveen.One way is using XML Publisher,or alternatively you can check note 377424.1 from metalink : How To View / Open Concurrent Requests With The Excel Application
HTH -
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 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
Maybe you are looking for
-
Help installing itunes on laptop with Windows Vista.
I have a laptop with Windows Vista. I've tried to download iTunes but I keep getting a message that says "There is a problem with this Windows Installer package. A program required for his install to complete could not be run. Contact your support
-
I have the same problem, MSVCR80.dll. I "uninstalled", but can't "install" , get error message "Service "apple mobile device" failed to start. Verify that you have privleges to start service. No option works. HELP !!!! I'm NOT a computer geek !
-
CDs I burn won't play on car player
I have no problems burning audio CDs with itunes. The CDs play great on every CD player EXCEPT the on in my car, which is where I really want to use them. I've burnt MP3 files to audio CDs using other software and they play just fine in my car, just
-
I cant write it any more clear, it processes two clicks as one! At first I didnt really mind, but I'm here now. It's having a drip drip effect, and when your working that can boil the blood! Even made me consider loading back up IE! And thats somethi
-
Anyone here have a working Digi USB Edgeport running on solaris 10 X86 ? I have it configured, the device nodes were automatically created and it shows as connected, configured and running ... usb2/3 connected configured ok Mfg: Inside Out Networks P