How to restrict report output?.
Hi
how to restrict report output?.
My Query:
select a.deptno,b.empno,b.ename,b.hiredate from dept a,emp b
Based on the following condition i have to generate the report.
for each record
if hiredate < '10-oct-03' then
select count(*) from xyz where abc_date <= emp.hiredate
else
select count(*) from xyz where pqr_date <= emp.hiredate
end if
if count(*) = 0 then
generate report
end if
end each record
Hi friend,
For your case, I think set up an authority-object is suitable.
You can have a look at this http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c&overridelayout=true
Good luck,
Thanks,
Similar Messages
-
Very urjent how to send report output in mail
hi experts,
how to send report output in mail which function module should i use wht parameters should i pass.
thanks in addavnce,
points to be awarded.CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = '026c'
copies = count
list_name = 'VATS_ASBUILT'
list_text = v_list
immediately = 'X'
release = 'X'
new_list_id = 'X'
expiration = days
line_size = 132
line_count = 65
layout = 'X_65_132'
* sap_cover_page = 'X'
* cover_page = 'X'
receiver = 'SAP*'
department = 'VATS'
no_dialog = 'X'
IMPORTING
out_parameters = params
valid = valid.
SUBMIT zppr_vats_asbuilt WITH p_aufnr EQ v_aufnr
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS params
AND RETURN.
SELECT SINGLE rqident FROM tsp01 INTO l_spoolno
WHERE rqtitle = v_list .
* convert report to PDF format
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = l_spoolno
no_dialog = 'X'
TABLES
pdf = l_ipdf
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.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
EXIT .
ENDIF.
Now comes the part to send the mail
try.
* -------- create persistent send request ------------------------
send_request = cl_bcs=>create_persistent( ).
clear document.
* -------- create and set document with attachment ---------------
* create document from internal table with text
document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = text
i_length = '12'
i_subject = '' ).
*changing the content of the attachment
binary_content[] = l_iobjbin[].
*change the name of the PDF attachment
concatenate 'Build ID' s_buildid_i 'Rev' v_buildid_rev
into i_att_sub separated by space.
* add attachment to document
call method document->add_attachment
exporting
i_attachment_type = 'PDF'
i_attachment_subject = i_att_sub
i_att_content_hex = binary_content.
*setting the option to send an e-mail more than 50 characters
call method send_request->set_message_subject
exporting
ip_subject = t_sub.
* add document to send request
call method send_request->set_document
exporting
i_document = document.
* --------- set sender -------------------------------------------
* note: this is necessary only if you want to set the sender
* different from actual user (SY-UNAME). Otherwise sender is
* set automatically with actual user.
sender = cl_sapuser_bcs=>create( 'VATSUPPORT' ).
call method send_request->set_sender
exporting
i_sender = sender.
*Send the list based on receivers list obtained
loop at l_ireclist.
AD_SMTPADR = l_ireclist-receiver.
* --------- add recipient (e-mail address) -----------------------
* create recipient - please replace e-mail address !!!
recipient = cl_cam_address_bcs=>create_internet_address(
AD_SMTPADR ).
* add recipient with its respective attributes to send request
call method send_request->add_recipient
exporting
i_recipient = recipient
i_express = 'X'.
ENDLOOP.
call method send_request->set_status_attributes
exporting
i_requested_status = 'E'
i_status_mail = 'E'.
* To send the mail immediately
call method send_request->set_send_immediately( 'X' ).
* ---------- send document ---------------------------------------
call method send_request->send( ).
commit work. -
Re : how to print report output in DOT MATRIX printer
Hai
how to print report output in DOT MATRIX printer.
Thanks
maniCheck this
[http://help.sap.com/saphelp_nw04/helpdata/en/90/78f078030211d399b90000e83dd9fc/frameset.htm]
also check the SAP Note 129581 -
How to export report output into excel.
Hi all
how to export report output into excel sheet can any on give me answer step by step please as soon as possible
kkHi Prashanth,
If you are executing Query from WAD ---> Right click on Table (only on Characteristics Data) --> Enhanced Menu ---> Export as --> CSV file or MS Excel
assign points if this helps,
Thanks,
Sudhakar -
How to call Report output in Modulepools
hi
can any one suggest me
How to call Report output in Modulepools
i have a push button in modulepool after clicking that pushbutton i need a report output
how to do this
Thanks & Regards
kalyanHi Kalyan,
From Module pool program you have to go display A Report output..
So at User-Command of PAI use LEAVE TO LIST PROCESSING.
Regarding this check the Demo program DEMO_LEAVE_TO_LIST_PROCESSING.
And for further reference please check this SAP Help
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/frameset.htm
For more help please check this thread
Re: LEAVE TO LIST-PROCESSING
Hope this would help you.
Good luck
Narin -
How to restrict material output in the report published in the portal
Hi all,
I am new to BI 7. I have a series of materials that start with the material IDs TR52, RL25, XY56 and son on. Now my user wants to view only the materials that are starting with the ID TR52 when he runs the report from the portal. In the material box when I type in TR I am getting the list of all the materials, the same is happening even when I try TR*. What should I do so that I can restrict the report output only to a particular material ID that my user types in?
Please help.
Thank you.
TR.Hi Friends,
Thank you for the reply.
I tried to exclude the values, but i dont find any chance to exclude them
If i try the same from characteristic restriction, its allowing me to exclude.
Is there any other possibility to restrict these? Please suggest -
How to get Report Output in csv format
Hi,
How can i get report Output in csv format, can any one tell me the word used for output type to get output in csv format.
i have used XLS output type but it opens in excel format.
conc.addLayout(appCode,concReqCode,"en-US","US",XLS);
Thanks
BabuHi Babu,
Till now in xmlpublisher there is no method to create file in csv format ,you have to create Excel file and then save it in .csv format.Unless and until ur using BI Publisher in which some work around are possible.
Thanks -
How to reset report output back to default language.
Hello Everyone,
I am working on 11i to R12 up-gradation process.
I need to move some reports from 11i to R12 and resolve bugs which report faces after shifting.
I am working on one report of output type : PDF named 'Delivery Note Report' in SCM-Order Management,
It is a RDF with template report and not XML publisher(there is no separate RTF).
RDF template is prepared with English text.
In 11i report output comes in EN-US(Standard English) language
whereas in R12 it is coming in Kenyan language.
I need to set output language to default EN-US, how can I proceed ?
Thanks
SudbunHello Experts,
I checked user preferences : it is set to EN-US
I checked concurrent program language details : it is American English
I got to know about a file named : uifont.ali (present in middle tier /ora/R12/apps/tech_st/10.1.2/guicommon/tk/admin)
it contains PDF:subset section in it we can specify the particular language/font in which we want output of our report.
I tried replacing this section with default language and restarted report server, even I tried removing that file from middle tier(just for testing purpose).
Can anyone suggest any other approach as still the issue exist.
Kindly reply.
Regards
sudbun -
How to break report output into files
Hi,
I need to submit my report output into different files based on the Sales person name.
When I submit my request from SRS window it asks the sales person name 'FROM' and 'To'parameters, if I choose the different sales person names then report output has to divide into files for each sales person. How can I do this? Do I nedd to add any code
in my report.
Could you help me in this?
Thanks in advanceThis maybe helpful:
Report Distribution -
How to export report output into excel file
hi friends,
i would like to get the solution from you for how to export the report output into a .xls file. i know how to convert it into .rtf and .txt files but i think it's difficult to do this .xls way, could you help me to comeover this problem?
thankyou very much.The official answer is "delimited", which
generates adequate comma or other delimited
text. No formatting, and without extra
effort no support for non-ASCII characters.
Might be sufficient for you.
Note that Excel can read html files - we
built programs to generate html files with
name of "blah.xls" and some Excel-ish
extensions, so Excel is automatically opened
and the document is all nice and pretty.
(Oracle html output has some odd logic about
choosing number of columns, we didn't use
it.)
-- Allan Plum -
How to make report output non editable
Hi can any body give me sample code on how to make the report output non editable.
thanks in advance
kpHi
What are you meaning?
U don't want to allow to change the data in the selection-screen?
If it's so:
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.
If you need to change only certain fields:
PARAMETERS: P1 ......,
P2 ...... MODIF ID AAA.
SELECT-OPTIONS: SO_1 FOR .....,
SO_2 FOR ..... MODIF ID AAA.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CHECK SCREEN-GROUP1 = 'AAA'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.
Max -
How to zip report output and send via mail from application
Hello,
I want to know how to zip the report output and send it by mail to concerned person from application
I want this as the report is having more than 70000s of records.
Also the XLS has the limitation of 2^16 records and the report is having more than this
Any help is very much appreciated
Regards,
Vani1: Make a Dummy report. From some post parameter form trigger, run your original report with "srw.runreport" call. The original report can generate output to a file.
2: Then withing this dummy report run, call a user exit to zip the
original reports output. You need to write this user exit and attach them
with reports.
3: Now use Report 9i distribution for this dummy report to sent this external zip file through mail.
With Regards
Reports Team -
How to set report output to session variable
Hi,
Is there any way to set report output to session variable . If my report returns 1 row and 1 column.
I have a dashboard prompt where i am selecting Name , but i want to find out the ID of that name .
that ID i want to pass to a column Fx , to achieve this i created a intermediate report and i got the ID. Now my problem is how do i set this ID in session variable .
Please help if anyone knows...Did you read this:
how to set session / presentation variable in repository variable
Dashboard prompt on Month Name but report filter on month ID:
Re: Dashboard prompt on Month Name but report filter on month ID needed
If you have dashboard prompt (name) then you may have only one report that is filtered by name but show id or not show id but use id in the function. Or two reports like in the solution in the second link above and the second report has id in the function and filter by id from the first report. You don't need to set this ID in session variable for this example.
Please close your previous threads if they are answered.
Regards
Goran
http://108obiee.blogspot.com -
How to send report output from SUBMIT statement
Hi,
I need to develop one report whcih can be use to send any report output in mail as attachment in txt of execl format. So i will be using SUBMIT statement to execute the report in my new report and i need to convert the reportout in txt or excel format and need to send as attachment in mail. This new report can be use to execute any report which may have ALV GRid, Normal outout screen. So what could be the best way to develop this kind of report.
Br,
Piyush>
piyush mathur wrote:
> Hi Suhas,
>
> LIST_TO_ASCI will give me data in lines. and its difficult to separate the columns in another internal table for attachment file. As this report is going to use to send any report output so i can not fixed the delimiter. So i am looking some function which can split the data in columns when I am reading from List.
> Br,
> Piyush
No need to seperate nothing additionally, this will come automatically in the attached file. Draft below
DATA list_tab TYPE TABLE OF abaplist.
SUBMIT your_report EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
DATA string_tab TYPE list_string_table.
"use table type appropriate for attchement
DATA ascii_tab TYPE soli_tab.
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listasci = ascii_tab
listobject = list_tab.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\test.txt'
filetype = 'ASC'
TABLES
data_tab = ascii_tab.
DATA go_email_doc TYPE REF TO cl_document_bcs.
go_email_doc = cl_document_bcs=>create_document(
i_type = 'TXT'
go_email_doc->add_attachment( i_attachment_type = 'TXT'
i_attachment_subject = 'My Attachment'
i_att_content_text = ascii_tab ).
Regards
Marcin -
How to get report output on screen as well as in spool?. Spool to be mailed
Hi All,
Can any guide the approach for:
Foreground run:
Get report output on screen as well as generate a spool. The content of spool needs to be mailed.
Background run:
we need to generate the spool and mail the spool contents.
Am aware of usage of FMs
1. GET_JOB_RUNTIME_INFO
2. RSTS_GET_ATTRIBUTES
3. CONVERT_OTFSPOOLJOB_2_PDF
4. SO_DOCUMENT_SEND_API1
Regards
RajHi All,
I had solved the issue by having two separate blocks for processing based on mode of execution.
Background:
1. Initiate spool
2. Write the summary
3. Close spool, build PDF and mail the same.
Foreground:
1. Initiate spool
2. Write the summary
3. Close spool, build PDF and mail the same.
Write summary again (for display on screen).
Regards
Raj
Maybe you are looking for
-
Adding multiple signatures in one interactive form
Hi, I'm creating an insertion form for a client. THey have one area under credit card info that has a signature line, and another spot at the bottom of the form that has another field for a signature. When I bring the PDF into acrobat Pro and do the
-
I have downloaded a CD onto my computer and there are some songs that say my computer isnt authorized to play the songs. I have authorized my computer and deauthorized it then reauthorized it. It is still saying my computer is not authorized. Help pl
-
PDF printing incorrectly (unintentional cropping and scaling)
An 11x17 PDF prints correctly from 3 different computers in our office. It prints incorrectly from MY computer, as well as our client's computer in a different office. Although the PDF looks perfectly fine on the screen in Adobe Reader, the print sca
-
How do you Identify the last callers number?
In my contacts I may have a contacts with more than one number under their name. When ever I get a missed call from this person the N900 does not list the number the missed call was received from, but instead just lists all the numbers from the conta
-
What is the different between backlit UK Vs US?
I'm planning to order new MacBook Pro where I'm bit confused on keyboard selection between British & US backlit, couldn't under the difference! I'm living in middle east, any feedback suggestion please?