Generate a PDF export and getting the file or the bytestream to modify it

Hi everybody
I have a web dynpro application and want to get the bytestream or the PDF file itself.
Is there a function (RFC, J2EE-Method, ABAP methode/class) where I can say
"Hey function, generate a PDF export of a BI report and save the PDF file <br>somewhere in the KM or return the bytestream of the PDF"
I must be able to define following parameters
-BI template name
-values for the selection mask (the same as the BEx BI-Commands to prefill a field in the selection mask)
-KM path + filename (if the function saves the file in the KM)
What I already tried:
Broadcast to KM
I can start the broadcast automatically using the report RSRD_BROADCAST_STARTER. But the problem is that I can't generate a broadcast setting and so I'm not able to define the filename and selectionmask data dynamically.
Package RSRD
When you enter the transaction SE80 and look for the package "RSRD" there are a lot of interesting classes and methods. But I couldn't figure out how to call them to generate a PDF export of a BI report.
FM RSADOB_PDFREPORT_GENERATE
This function module have all the parameters I wish. The problem is that it does not work anymore. It's just an internal test for the SAP guys themselves.
So ...
Have anybody an idea how to solve this?
How to generate a PDF export of a BI report and fill the selection mask and get the PDF (as bytecode or file in the KM) ?
Thanks lot
Klaudio

hi,
Like you said.. steps are simple and clearly mentioned in guide.
1. create a variable of type string
2. after configuring the file adapter , go to corresponding receive activity , go to properties tab
3. search for a property with name as jca.file.FileName . This basically keeps track of file name
4. for this property, give the value as name of variable created in step 1 above
5. Use this variable anywhere in assign / transform
HTH,
Ketan

Similar Messages

  • Printing to Adobe PDF printer and getting the same document, possible??

    Hello:
    I need to split a page A4 into 2 pages, it's possible using print, then tile large pages, the problem is that my original document is black and white, but the generated one has a shades of gray visible when zooming to 800% (and the size is much bigger), so my question is:
    is it possible to print a document to Adobe PDF printer and getting exactly the same document?? same size, same black and white
    I'm using acrobat6

    I suspected as much.  I was hopeful it was something like a setting that needed to be changed or a reg hack that needed a bit changed from 0 to 1 to make the printing work as expected.  I only installed the local printer to see if the RDP session
    tunnel was in fact causing the print size to balloon so I will continue to instruct users to use that instead of the local redirected printer.  I am disappointed but not surprised.
    Edit:
    Additionally I have tested the functionality of setting the GPO settings for Easy Print to use the redirected printer's drivers instead of the ones used by easy print, by setting “Computer
    Configuration -> Administrative templates -Windows Components -> Remote Desktop Services > Remote Desktop Session Host -> Printer Redirection”.
    to “Disabled” but
    with no luck.  In fact the printer received the proper Adobe PDF driver, but the job went out into print spool hell and was lost to the ether.  I have concluded that this approach will not bear any fruit.

  • Evaluating PDF Assembler and getting the following errors - Help needed

    I am having following three issues when merging document using PDF Assembler Service:-
    Error # 1 (JobID: 20369)
    System.ServiceModel.FaultException: Caused by: com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided. Caused by: com.adobe.internal.pdfm.assembly.AssemblyException: PDFM_S02013: The "insertDocument" operation failed on "137.pdf".; nested exception is:
    com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided.
    Error # 2 (JobID: 19966)
    System.ServiceModel.FaultException: Caused by: com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided. Caused by: com.adobe.internal.pdfm.assembly.AssemblyException: PDFM_S02013: The "insertDocument" operation failed on "1033.pdf".; nested exception is:
    com.adobe.livecycle.assembler.client.ProcessingException: ALC-ASM-S00-002: Failed to execute the DDX - error messages provided.
    Error # 3 (JobID: 19419)
    The request channel timed out while waiting for a reply after 00:09:59.9920000. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.

    "Illegal start of expression" and "} expected" usually mean that your brackets don't match. Indeed, your declaration of the main method is missing a '}':public static void main (String[] args)
    { // where's the '}' that goes with this one?this list of common compiler error messages and possible causes is a good resource: http://www.mindprod.com/jgloss/compileerrormessages.html

  • To upload the ZIP file and get the filenames available in ZIP file in ABAP

    Hi Experts,
    For my requirement, file from legacy comes as ZIP file with number of files in that.
    Please provide one code sample to upload the ZIP file from local workstation and get the filenames available in ZIP file to check few filename validation checks for the available files in report program.
    Thanks in Advance,
    Regards,
    Basani

    1. Copy the ZIP file into App server
    2. Call function
      call function 'RFC_REMOTE_PIPE'
        destination 'SERVER_EXEC'
        exporting
          command = command  " Unzip command gunzip /path & file
          read = 'X'
        tables
          pipedata = std_lines
    then you can read the files and can validate the file names

  • How to read spool file and get the spool file number

    Hey everyone.
    I created a program ztemp that is calling another program ztemp2 within, ztemp2 creates a spool file. Now the requirement is I need to write a code within ztemp to download that spool request and then convert it to the pdf file. I know I can use program rstxpdft4 to convert the spool file to the PDF but for this I need to give the spool number, so can you please tell me how can I get the spool number and then fetch it to the program rstxpdft4 .
    Thank you.
    Rhul goel

    Hi,
       Please check the [link|Convert ABAP List to PDF and display without downloading first; (Rich's reply) and get the spool similarly.
    Or read from table TSP01 to get the latest spool using sy-uname.
    Regards,
    Srini.

  • When I try to open a download PDF I get message to install Adobe Reader. I do it and get the same message already installed. I close Safari and reopen but get same message to install Adobe

    When I try to open a download PDF I get message to install Adobe Reader. I do it and get the same message already installed. I close Safari and reopen but get same message to install Adobe

    You don't provide any details, but from the sound of it you are trying to open an online PDF in a browser that does not use the Adobe Reader plugin: http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • Hi - for any photo, info in mountain lion shows a different file size than Photoshop does. I've tested with CS3 and CS6 and get the same problem. Doesn't happen with CS3 and OSX10.4 or any previous versions of Photoshop and OSX. Anyone know why?

    Hi - for any photo, info in mountain lion shows a different file size than Photoshop does. I've tested with both CS3 and CS6 on 10.8.2 and get the same problem. This doesn't happen with CS3 and OSX10.4 or any previous versions of Photoshop and OSX. Anyone know why?

    this one is actually a really rare symptom of a flaky connection to the ipod on a Windows PC. there's more going on in terms of hardware on nanos and 5th gens than in the earlier models ... so if the connection is flaky to precisely the right/wrong degree, itunes will see the ipod, but misidentify it as an earlier version of ipod.
    tracking down the cause of the flakiness can be tricky ... as you already know ...
    just checking. have you tried connecting with a different (known-good) USB cable? does that seem to have any impact on the rate of occurence of the problem?

  • How row migration get eliminated by export and import the table.

    Hi ,
    Please let me know,how row migration get eliminated by export and import the table.
    Another method,deleting migrated rows and inserting those rows from copied table,
    i think the concept behind this method is,inserting these rows into new block.
    pls correct me if i am wrong.
    Thanks,
    Kumar.

    Hi!
    You can also use ALTER TABLE MOVE command, or if you are on 9i you can use DBMS_REDEFINITION package.
    If you have a maintainance window the easiest way would be to use alter table move.
    Regards,
    PP

  • When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with pr

    When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with process id 6620 stopped the removal or ejection for the device USB\VID_05DC&PID_C75C\20131215015821328FC8.
    I am running on Windows Server 2012 R2 in Desktop Experience mode.
    Any ideas?
    Roger

    In addition to that symptom, I discovered that even though I had closed all Adobe Reader sessions, the processes kept running and used up 90%+ of my CPU.

  • I just wrote over firefox 3.6 with 5.0 for my mac OSX and discovered my mac won't support it. Is there a way I can recover all my lost files and get the old version back?

    i just wrote over firefox 3.6 with 5.0 for my mac OSX and discovered my mac won't support it. Is there a way I can recover all my lost files and get the old version back?

    You can download and install Firefox 3.6 from http://www.mozilla.com/firefox/all-older.html

  • Keynote PDF Export and Color Profile

    I have some color trouble with the pdf-exports of keynote: the color that is shown in the pdf does not correpond with the one in the keynote file. The pdf has more ”milky” colors. Maybe it is a color profile thing. But what profile doese keynote use for the screen? Or does it convert rgb-colors to cmyk? Anyway, how to sync exactly keynote and pdf colors for screen presentations?

    There are a few things you can try:
    In the PDF export box there is an Image Quality dropdown, where you can choose Good, Better or Best. Which are you using?
    Alternatively you can just output the file as a PDF using the Print function. Your profile says you are using Mac OS X 10.4 in which case, in the print window click on the PDF button and choose Compress PDF to output a smaller file.
    If you have since moved up to 10.5, this option is no longer available by default, but there is an Automator action that restores it here : http://www.apple.com/downloads/macosx/automator/compresspdfworkflow.html
    The other thing to check is whether your graphics are at the actual size you need them or if you have scaled down a big picture, for example. The PDF will still contain information for the full-size image.
    Re-sizing them in something like Photoshop to the size you need first before placing them in the presentation may help.
    Finally, if you have Acrobat (Pro, not just the reader) you can use the Reduce File Size option in the FIle menu to compress the PDF you get from Keynote.
    Post back with how you get on.

  • How to export and import the lsmw

    Hi Friends,
    How to export and import the objects in lsmw
    from dev to qas(quality) systems........
    its urgent.........
    regards,
    venu.

    best way is to create a transport and move it to other enviroments
    There are two ways of Transporting for this. Can choose any one.
    Goto the LSMW Transaction
    1)Extras>Export Projects>(Give the Project name)
    In next screen(Choose what subproject, routines, etc.. you wan to copy then, Export Rules-->Export((Will prompt for file name)
    A text file will be downloaded.
    In the Target System
    Goto LSMW Extras-->Import Projects and give the text file which was downloaded.
    2)Extras-->Generate Change Request
    Assign a change request which is basically a transport request and you can then get this transported from one system to another through the basis route.

  • How to convert Smart Form into PDF format and return the result in BAPI?

    I want to convert a Smart Form into PDF format and return the result in BAPI.
    can anyone tell me how it can be done with related example
    regards
    pranay

    hi,
    smart form to pdf--
    All you have to do is call your SF to get OTF and then concert it to PDF. Works like charm:
    DATA: p_output_options TYPE ssfcompop,
    p_control_parameters TYPE ssfctrlop.
    p_control_parameters-no_dialog = 'X'.
    p_control_parameters-getotf = 'X'.
    CALL FUNCTION v_func_name "call your smartform
    EXPORTING
    output_options = p_output_options
    control_parameters = p_control_parameters
    IMPORTING
    job_output_info = s_job_output_info.
    call function 'CONVERT_OTF_2_PDF'
    tables
    otf = s_job_output_info-otfdata
    lines = t_pdf
    and if u need more u can check below links also
    Check the below links..
    Re: Smartforms to PDF
    Re: smartform (otf) as pdf and sending as email-attachment
    VISIT THIS LINK
    Re: Smartforms to PDF
    PLZ REWARD POINTS IF IT HELPS YOU
    rgds
    anver

  • [CS5.5] Lock PDF export and print presets

    Hi,
    With this post I would like to ask a question regarding locking certain features in Indesign.
    Does anyone know if it is possible to ...
    - lock PDF export and print presets so a user is not abble to change/override any preset properties, and is forced to use a preset without the possibility to override any of the properties when using it?
    - force a user to use one of the predefinied presets to print or export a document without the ability to create a new preset?
    - verify PDF-files to check what Indesign print/export preset was used?
    Being part of a larger prepress team, we would like to make sure that, every PDF-file created by each team member, is created with the same specs.
    Does anyone know of any plugin, tool or release that enables such a functionality?
    Kind regards
    John

    If the employees cannot follow company policy, they need to know that there are other people looking for work who can. Yes, mistakes happen, but that would be a case of choosing the wrong preset from a list (which, if you leave more than one installed, can't be avioded). Changing settings against policy is not a mistake.

  • I have changed my PC, deactivated Adobe Acrobat and tried to load on new PC. Got to registration and get the message " A problem was encountered while trying to send information over internet" this is 8 standard

    I have changed my PC, deactivated Adobe Acrobat and tried to load on new PC. Got to registration and get the message " A problem was encountered while trying to send information over internet" this is 8 standard
    When I try to use it to make pdf files I get the message "Missing PDFMaker files
    It is a proper copy with serial numbers

    Moving this discussion to the Acrobat Installation & Update Issues forum.

Maybe you are looking for

  • Assignment on Sales Order creation using a BAPI

    hi, i m new 2 bapi,so i usually knw how 2 create BAPI 1.     Create a sales order using BAPI with the header details from selection screen and item details from the file. 2.     Have the minimum required header fields for a sales order  – Sales order

  • Upgrading to 10.2 fails

    Hi, I am upgrading my Database from 9.2 to 10.2, After halfway through the upgarde fails. This happened twice. When I checked the log files I have the following lines at the end of the alert log, Can someone help me what needs to be done. Thank you W

  • Running itunes from an external hard drive

    Hi there, My itunes library is getting a little too large for my iMac to handle (nearing 500gb of my 1TB hard drive, leaving little space for all my other software and documents) and I'd like to move the itunes library and run it from an external har

  • Sound Issue

    After Update my Sony Xperia Z1 (C6902) with latest KitKat 4.4.2 Screen Lock Sound sound is not as sweet & sharp as Touch Sound and same is with Key Sounds. Any Suggestions, I have already updated / repaired by SUS. Does anyone elase also have faced s

  • Tomcat Redirection through DNS Alias

    Hi, We've just upgraded from BOE XI 3.1 SP2 to SP6 FP 6.3 which also upgraded Tomcat 5 to Tomcat 7. We used to access InfoViewApp using an alias in Tomcat 5. E.g https://wuinsights.wuintranet.net/ This site redirects to https://wuinsights.wuintranet.