Export to local file-pdf from ALV
Exporting data including to PDF format .
Moderator message - Please use a meaning subject line in future.
Message was edited by: Suhas Saha
Sorry , for keeping it short .
But i want to get pdf when click in alv grid display on
Exporting data .I have use the function module to convert it to the pdf but dont know how to add this file (pdf )to standard alv toolbar button.
Similar Messages
-
How to restrict users from printing documents and exporting to local file
Hi SAP gurus,
I have two questions.
1. How can I restrict users from printing a document? i.e. billdoc? I would like to know if I could block it though authorization. If yes, what auth obj to use?
2. How to restrict certain users from exporting to local file? the System> List>Save-->Local File. I have tried restricting it using auth object S_GUI but it seems it is only applicable to older versions of SAP. im on ecc6.
Thank you in advance.Hi,
Check this:
Create your own gui status and attach it to the list in the event START-OF-SELECTION.
In the menu painter extra -> adjust template.
Make it a list status and you will see all the standard list options appear including list->download
Deactivate the ones you don't want.
If you just want to prevent users from downloading the list you can achieve this with authorization object S_GUI, activity 61. Menu option will still be there though.
Please note that if you remove authorisation for S_GUI activity 61 then all downloads will not be possible.
If you just want to disable downloads only for a particular report, you can try this test program:
Code:
REPORT ztest.
DATA: PROGNAME LIKE SY-CPROG value 'Z_CHECK_AUTH',
FORMNAME LIKE SY-XFORM value 'F_CHECK_AUTH'.
START-OF-SELECTION.
CALL FUNCTION 'SET_DOWNLOAD_AUTHORITY'
EXPORTING
FORM = FORMNAME
PROG = PROGNAME
EXCEPTIONS
OTHERS = 1.
WRITE: / 'TEST'.
You also need this:
Code:
PROGRAM z_check_auth.
FORM f_check_auth USING pe_result TYPE i.
pe_result = 5.
ENDFORM.
Also have a look at the exit SGRPDL00.
Hope this helps you.
Rgds,
Raghu -
Missing lines when exporting to local file
I've recently created a query in SQ01 which pulls out sales order information and uses a data reading program to display the texts.
The query works absolutely fine and shows all the data required in SAP.
The problem comes however when I export it to Excel using the ALV functionality of Export to Local file - spreadsheet. some of the lines in the middle of the report are missing in the saved excel file despite them being present in SQ01.
However if I use the method of Export to local file - in the clipboard... and paste the data into an excel sheet, all the lines are present.
What could be the cause of this issue? I could use the method of copying to the clipboard but a lot of people use this report and they aren't all comfortable with the copy paste method (because you then have to perform text to columns etc.) so it would be better if I could work out why it's not working in the original way and fix it.Hi Benjamin,
let me first put in a question.
Why don't you use the direct to excel export?
If there's an issue with the inplace excel, there's an easy work-around for that.
From the alv-grid chose printing preview, when you use the excel button from there, you'll get the popup asking you for format, table type etc. and then rewards you with a (usually) complete and readable excel.
Note, that the download to local file, with spread-sheet option, creates an ascii csv file, with an xls extension. It's not quite an excel file.
It might be exccel and not the export.
Give it a try.
BR - Jörg -
Error in clicking save to local file button in alv grid?
Hi
I am getting error , While clicking on some buttons like save as local file button in alv grid display
How to rectify it
Thanks in advanceIn your REUSE_ALV_GRID_DISPLAY
EXPORTING
I_SAVE = 'U'
put this field....and then check it will definitely work... -
How to open document to PDF from ALV
Hi ,
how to open document to PDF from ALV on clicking (hot spot)
urgent
thanks,something like this:
line_fieldcat-fieldname = 'vbeln'.
line_fieldcat-ref_tabname = 'I_vbeln'.
line_fieldcat-hotspot = 'X'. " Shows the field as ahotspot.
line_fieldcat-seltext_m = 'Notification '.
APPEND line_fieldcat TO i_fieldcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = ws_repid
i_callback_user_command = 'MY_USER_COMMAND'
and rest of parameters,
FORM MY_USER_COMMAND USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
IF ucomm = '(Function code of action, say click, or enter'
CASE selfield-fieldname.
WHEN 'QMNUM'. "Notification
IF i_tab-qmnum NE space.
CALL FUNCTION 'WS_EXECUTE'
EXPORTING
commandline = '/F /IM "ACRORD32.EXE"'
program = 'TASKKILL'.
ENDIF. -
Export more than 253 characters from ALV column to excel
Hi
I have one problem. In internal table, i have one column which is having 2500 characters. I have to export this column in excel but i am able to export only 253 characters max from alv standard export. How can i export complete column to excel from ALV?
Regards
ManishCreate a new pf status and add a excel button in the menu. While creating new menu, use the standard SAP menu and just change the excel button. SY-UCOMM would &EXCEL. Use GUI_DOWNLOAD to download the excel or the file. It is not achievable using the standard SAP download option.
-
Unable to save a 'smallest size file' pdf from illustrator 5.5
We recently insalled Adobe Standard 5.5
I often save PDF files from Illustrator using the built in PDF options available from the PDF drop down menu bar when saving files. Usually I will save a visual as a 'smallest file size' or make use of the 'high quality print' option for other files etc.
Why cant I do this on CS5.5?
In addition, the colour is not acurate at all!
Please helpHi Scott - I found the following thread on the net. So I had a look on my time machine back-ups and copied the files from there, which I then pasted into my Settings folder as you suggested.
Ta da!! All working again!
Any idea how I could restore these settings from a backup?
Thanks!
The PDF presets reside in Root/Library/Application Support/Adobe/Adobe PDF/Settings/
After I had installed 10.6.5, 6 preset files were removed from the Settings folder. The folder tree itself remained, it was just that some of the contents of "Settings" were deleted. I have fixed the problem by copying the deleted settings files from a backup.
These are the files which were deleted:
Smallest File Size.joboptions
Press Quality.joboptions
PDFX4 2008.joboptions
PDFX3 2002.joboptions
PDFX1 2001.joboptions
High Quality Print.joboptions
These files were not deleted:
Standard.joboptions
PDFA1b 2005 RGB.joboptions
PDFA1b 2005 CMYK.joboptions
Oversized Pages.joboptions
Somebody at Adobe community support for Indesign directed me to restore these files from a backup, which solved the problem.
Re: Unable to save a 'smallest size file' pdf from illustrator 5.5 -
How can print a file PDF from form
Hi to all,
I need to print a file PDF from form (developer 6i), Is IT POSSIBLE?
Thank you
Silvia"Print" probably won't work for a pdf file. As the HOST command try:
host('<path_to>/AcroRd32.exe /t pathname "printername" "drivername" "portname"');See "How do I use the Windows command line with Acrobat and Adobe Reader?" in:
http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/Acrobat_SDK_developer_faq.pdf -
Hi,
I have need to generate a file excel from alv oo.
How to do it?
Is there a method?
Many Thanks!!!Hi
Go through link given below :
alv to excel download
With Regards
Nikunj Shah -
Short dump when exporting to local file in ALV
I have a report that generates the output fine. When i try to export the output to a local file from the ALV output- it goes to dump.
The dump message is "Field symbol has not yet been assigned."
The program name is saplkkbl but exporting the ALV output works fine with the other programs. so, i guess there is no problem with the standard program.
Suggestions plzYes, The problem with the standrad program. I think there is a need to apply some patch. you just try this with some other server (if avail) i hope it works.
-
Error in clicking save to local file button in alv grid? urgent
>>>>> if lr_tabledescr->applies_to_data( <coltab_any> ) eq 'X'.
exactly i am getting error here
how to rectify this error
Error in clicking save to local file button and mail receipt button in alv grid?In your REUSE_ALV_GRID_DISPLAY
EXPORTING
I_SAVE = 'U'
put this field....and then check it will definitely work... -
Multi-Artboard export to multi-file PDF
Hey gang.
I have an Illustrator CS4 document with 51 artboards. I would like to easily export each artboard to its own PDF file based on a PDF preset. Currently when I do save as I can select the indivual artboard and it will only save the content on that artboard to a PDF file. However I don't want to do that 51 times for each design file (100+ design files).
Any thoughts on how to export a single artboard in a multi-artboard document to a single PDF file for each artboard in the file?
Cheers!
TomWell I ended up writing something to solve this problem. I hope this snippet helps somebody else stuck in a similar situation. This applescript saves each artboard as its own PDF file based on a pdf preset and flattener preset.
-- User configuration
set PDFPreset to " " ----------- YOUR PDF PRESETS HERE -------------
set PDFFlat to " " ----------- YOUR FLATTENER PRESETS HERE -------------
set DefaultLoc to " " ----------- YOUR DEFAULT SAVE LOCATION HERE -------------
-- User configuration
set theDesignName to " "
set destFolder to " "
set destFile to " "
tell application "Adobe Illustrator"
if (count every document) > 0 then
if (count every document) > 1 then
display alert "Please have only 1 file open in Illustrator to perform this PDF export."
else
-- what file is it and where do we want to export
display dialog "Please enter the desired export filename name:" default answer theDesignName
if button returned of result is "OK" then
set theDesignName to text returned of result as string
set destFolder to choose folder with prompt "Please select the folder to save " & theDesignName & " :" default location DefaultLoc
set numArtboardsPrintable to count every artboard in document 1
display dialog "Exporting " & numArtboardsPrintable & " individual files."
-- Export the artboards to individual PDF files with a PDF presets
repeat with incr from 1 to numArtboardsPrintable
set PDFExportSettings to {class:PDF save options, PDF preset:PDFPreset, view pdf:false, flattener preset:PDFFlat, artboard range:(incr)}
set destFile to destFolder & theDesignName & "-" & incr as string
save document 1 in file destFile as pdf with options PDFExportSettings
end repeat
display dialog "All done."
end if
end if
else
display alert "Open a document before running this script"
end if
end tell -
Column is shifted to 1 position right ( Excel file downloaded from ALV )
After downloading the data into the excel file from ALV ... i checked the file & i came to know that all the columns are shifted to 1 position right. Can anyone help me? Is there any sap notes available for this problem
Hello
What is the result if you open the exported file via 'File => Open' in the excel program?
what is you current basis level?
Jude -
Can't create a multiple file PDF from PDF forms created in Designer
Hi
I want to create a single PDF which combines 6 pdf forms created in Adobe Designer (all as separate pages).
When I try to create a single PDF from these multiple files using the "Create a PDF from Multiple files" command, my A-3D won't let me do this returning a dialog box saying
"The file "filename.pdf" is protected. It cannot be used for this command".
I can't find any properties that control this, either in the original file or in A-3D. Can I overcome this and how?
Many thanks in anticipation.
PhilDesigner-created files aren't really PDF files any more and cannot be
edited or combined in Acrobat (including Acrobat 3D). You CAN make a
package of them, however, in Combine Files.
Aandi Inston -
Exporting Crystal reports to PDF from VB - Hmmmm doozy
Post Author: shiniz
CA Forum: Integrated Solutions
Hello,
I'm currently exporting successfully to PDF from crystal reports 10 to PDF using options:
Report.ExportOptions.FormatType = crEFTPortableDocFormat
Report.Export(False)
All is well but I would like the PDF I export to be mono colour (ie black and white) not greyscale.
Is there an option I am missing? or is this a question I should raise on a VB forum...
Thanks for any suggestion..This problem cleared up when I re-saved my main report after editing the embedded sub-reports. Was related to extra headers and footers being added to sub-reports, along with "can grow" format option set to "No".
Maybe you are looking for
-
Hi , Is there any way to get POP up with text area window , like PopUp LOV . I have tabular form with comment field which is set to display as text Area .Insted of setting online text area with in a row , I want to have POPUp text area, so that user
-
Limitation in SELECT-OPTIONS - how?
Hi, I need to limit my select-options in a way - do not allow the user to enter any ranges, but to allow him/her to enter multiple single values. 'NO INTERVALS' addition doesn't help me here. Further, I need to restrict him/her to use only 'EQ' optio
-
How to limit the duration of a scheduler could run?
I scheduled a procedure A with HOURLY frequency. Normally, A could complete within 20 minutes. However, there are exceptions that it could run more than 60 minutes. In order to minimize the impact of next execution of A, I want to kill/stop the proce
-
Powershell Print FolderCreation Date Not working
[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer.SMO') | out-null $dir = "D:\Script_Out" $creation_time = $dir | Select CreationTime "$creation_time" | Out-File 'D:\creationtime.txt' I tried executing the above.... The file has
-
Every Year we dicker over internet price
Isn' there a reasonable price for a mid range internet that last year after year without having to call em up and beg for a lower price that only lasts a year. I started out at $24 bucks a month then the next year it went up to $31 buck a month now t