Remote print form automatically to pdf files

Hi everyone,
    The user want to implement a request like follows:
    1. quotation will send to a webservice for approval.
    2. when the quotation is approved, webservice will call a RFC to update the status of this quotation in SAP.
    The problem start here.
    3. inside the RFC call, SAP need to print the Quotation FORM automatically to a PDF file which will be named using Document No. date and time. Then a record need to be sent to another CRM with the PDF as an attachment.
    Is there any way to solve this requirements?
   The biggest question for me is how to tigger the form print and print it into pdf.
Thanks for prompt response
Regards
Sean

Hi Sean
It is possible like this:
Maintain two output types for the same program of form output.
1. Maintain output type as EDI i.e. Idoc from SAP to Webservice. Say Output type ZWEB.
2. Once approved by webservice, call RFC to update SAP. This RFC will responsible to trigger second output type, say ZPDF.
ZPDF will trigger in sales order with transmission medium as 5- external send having name using "Document No. date and time" (this can be achieve by ABAP program for smartform). This e-mail will sent to e-mail id provided with PDF attachment.
Please discuss with ABAP consultant having good command in Smartforms.
try and revert
Edited by: Yadav on Dec 3, 2009 9:29 AM

Similar Messages

  • How send a Print Form as attachment PDF?

    Hi everybody,
    I have created an Interactive Forms where I can input any new data.
    When I click on the button for save the new data, I must also convert my Interactive Form in PDF for send it as attachment to email. When I have groped to convert the interactive form in a PDF file, I lost the data that I have inserted.
    So I have created a Print Form through transaction SFP.
    I recall the print form in background mode and gets the form of Interactive Data and requiring as import table OTF,  but the OTF table is returned to me is different from that of a smartform and so I can not use the function module u2018CONVERT_OTFu2019.
    Carryover in the code, you know give me directions?
    With the code I'm used to create the PDF file and attach it to email, but the files that I receive by email can not I open it, probably because of an error in formatting during its creation.
    I look forward to your advice,
    Davide.

    Dear sirs, I can provide this program schema to send PDF print form as an email attachment. Hope it will help a bit.
    FUNCTION ZPDF_MAIL_SEND.
    ""Lokální rozhraní:
    *"  IMPORTING
    *"     VALUE(PDF) TYPE  FPCONTENT
    *"     VALUE(EMAIL) TYPE  AD_SMTPADR
      DATA lt_att_content_hex TYPE solix_tab.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer     = pdf
        TABLES
          binary_tab = lt_att_content_hex.
      CLASS cl_bcs DEFINITION LOAD.
      DATA:
      lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
      lo_send_request = cl_bcs=>create_persistent( ).
    Message body and subject
      DATA:
      lt_message_body TYPE bcsy_text VALUE IS INITIAL,
      lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
      CALL FUNCTION 'ZREC_MAIL_GET_BODY'
        IMPORTING
          message_body = lt_message_body.
    Message document
      lo_document = cl_document_bcs=>create_document(
      i_type = 'RAW'
      i_text = lt_message_body
      i_subject = 'Úloha: vyplňte prosím následující formulář' ).
    Add attachment
      DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
      TRY.
          lo_document->add_attachment(
          EXPORTING
          i_attachment_type = 'PDF'
          i_attachment_subject = 'Formulář'
    I_ATTACHMENT_SIZE =
    I_ATTACHMENT_LANGUAGE = SPACE
    I_ATT_CONTENT_TEXT =
    I_ATTACHMENT_HEADER =
          i_att_content_hex = lt_att_content_hex ).
        CATCH cx_document_bcs INTO lx_document_bcs.
      ENDTRY.
    Pass the document to send request
      lo_send_request->set_document( lo_document ).
    Create sender
      DATA: lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL.
      lo_sender = cl_cam_address_bcs=>create_internet_address( email ).
    Set sender
      lo_send_request->set_sender(
      EXPORTING
      i_sender = lo_sender ).
    Create recipient
      DATA:
      lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
      lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    Set recipient
      lo_send_request->add_recipient(
      EXPORTING
      i_recipient = lo_recipient
      i_express = 'X' ).
      lo_send_request->add_recipient(
      EXPORTING
      i_recipient = lo_recipient
      i_express = 'X' ).
    Send email
      DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
      TRY.
          lo_send_request->send(
            EXPORTING
              i_with_error_screen = 'X'
            RECEIVING
              result = lv_sent_to_all
            EXCEPTIONS
              OTHERS = 1 ).
       CATCH cx_send_req_bcs. .
        CLEANUP.
      ENDTRY.
      COMMIT WORK.
      MESSAGE 'Formulář byl odeslán' TYPE 'I'.
    ENDFUNCTION.

  • Printing a package of PDF files double sided

    I am printing a package of PDF files that changes based on how questions are answered, they print double-sided.  I want certain pages to not print on the back of another.  Is there any way to dynamically insert page breaks dependent on the forms included in the package?  Thanks,

    Hi,
    You might experiment with a page or two first.
    1.Choose File > Print.
    2.From the Subset pop-up menu in the Print Range area, select Even Pages Only.
    3.Click OK or Print.
    4.If the total number of pages is odd, add a blank sheet so the final odd page has a sheet to print on.
    5.Put the stack of printed paper back into the supply (source) paper tray so that the unprinted sides print. Point the top of the pages toward the printer. Make sure that the edges of the paper stack are square.
    6.Choose File > Print and select Odd Pages Only from the Subset menu.
    7.Select the Reverse Pages option. In this scenario, the Reverse pages option ensures that the page sequence is correct.
    8.Click OK or Print.
    Say Thanks by clicking the Kudos Star in the post that helped you. Please mark the post that solves your problem as Accepted Solution.
    I am employed by HP

  • How can I print out a complete pdf file of PSE 10 user guide?

    This is worse than trying to deal with the government bureaucrats....I am simply asking how I can print out a complete pdf file of the user guide for PSE 10...I had one for version 9 but cannot get anything for version 10??? The address shown in the getting started manual doe snot go through??? HELP!!!

    Download from here:
    http://help.adobe.com/en_US/elementsorganizer/using/elementsorganizer_10_help.pdf
    for the Organizer
    and this faq:
    http://forums.adobe.com/thread/992825?tstart=0

  • Adobe Acrobat 9 - Print certain webpage as PDF file but some of its contents were corrupted

    Print certain webpage as PDF file but some of its contents were corrupted as non-readable alphanumeric.
    Preview of the PDF file shown OK but when printed, its contents were corrupted.
    Adobe Acrobat 9 Professional reinstalled but problem persists.

    It is Acrobat printing to a PDF file using Acrobat 9 Professional because I have no printer attached.
    The preview before printing showed every words OK but when printed to the PDF file, some alphabets and numerics were corrupted and the words were NOT readable.
    See the following:

  • Printing Word document as pdf files whilst  retaining active internal links

    Hi,
    I have a Word file (Word 2004 for Mac Version 11.3.5) with active links to various sections within the document.
    However, when I print this as a pdf file all the links become inactive. Is anyone aware of a way to prevent this?
    Kind regards,
    Damon

    I tested this problem and got some interesting results. First of all, I created a document in Word 2004 (11.3.5) with two links, one to an external web site and the other to another Word document on my Mac. I then printed the file to pdf and opened the doc in Preview. Neither links were active, although as you have seen they look like a hyperlink. Opening the same document in Acrobat 8, the external link works but the internal link is still not active.
    Next, I printed the Word document via the Adobe PDF 8.0 driver. The same result occured as above. The external link was active in Acrobat but not Preview, while the internal link was no good for either application.
    I did some searching. Mactopia has no mention of this problem. There is a posting on Macosxhints with the same problem, but no fix. So unless someone else out there has an answer you may be out of luck for your internal link...

  • Printing a password protected PDF file using acroread from Unix?

    We installed v8.1.3 acroread on the server but we are unable to print a password protected PDF file from command line in Unix? <br /><br />cat  <passprotected>.PDF | /usr/bin/acroread -toPostScript | lp -dprinter<br /><br />we get the following error<br /><br />"lp: Error - stdin is empty, so no job has been sent."<br /><br />Please advice <br /><br />Thank you in advance.<br />MSUDHAN.

    Hello,<br /><br />If the pdf file has a doc open password or if printing is disallowed you will not be able to print it using the commandline.<br /><br />Any other pdf can be printed using the same command :<br />cat a.pdf | acroread -toPostScript | lp -d <printer><br /><br />Regards,<br /> Rishi

  • Printing web page to pdf file using Acrobat Standard 9

    When I print a web page to a pdf file, the text in the file is mostly garbled.  I have no problems in creating pdf files from MS office or other software.  I have Windows 7 Home.
    Any help will be appreciated.
    Thanks

    I do have Internet Explorer 9 and I was able to print web pages correctly following  your suggestions.
    Thanks for your help.
    Date: Sat, 12 Nov 2011 06:53:59 -0700
    From: [email protected]
    To: [email protected]
    Subject: Printing web page to pdf file using Acrobat Standard 9
        Re: Printing web page to pdf file using Acrobat Standard 9
        created by Bill@VT in Acrobat Windows - View the full discussion
    There were problems with IE9 on it's initial release and that may be what you are seeing if that is the browser (you did not indicate the browser and that may be a key). If you have a different browser you might try that one with the same pages to see if it browser related.
    By saying garbled it sounds like the fonts did not make it or you have selected "Use Local Fonts" in Acrobat. Try checking the latter first. Then check if the fonts are embedded in the PDF by checking the document properties (ctrl-D). If they are not, go back to the browser and select the press or print job options before printing and see if they get embedded and if your problem is resolved.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4021509#4021509
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4021509#4021509. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Acrobat Windows by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Unable to download form as a pdf file?

    I have tried numerous times to download a completed form as a PDF file and keep encountering an error message within Adobe.  Why is this happening and what can I do to resolve this issue?

    I have tried numerous times to download a completed form as a PDF file and keep encountering an error message within Adobe.  Why is this happening and what can I do to resolve this issue?

  • Need to print Xcelsius dashboard to pdf file

    I have a customer that wants to be able to print a displayed dashboard to a pdf file.  Does anyone know if there are custom components that can do this or be created to do this? We have suggested they install a print to pdf utility as a selectable printer but they don't want to do that.  When a dashboard is displayed they want to be able to print directly to a pdf file.
    Thanks,
    Jim

    Thanks Pizzaman,
    I will mention this to the team. I don't think our customer would want it that way but who knows.  Currently they have a Flex framework with our dashboards inside of their framework. They have a print to pdf button for their flex scorecard and feel it should be easy enough for us to create the same thing in our dashboards. We don't use flex in our environment. Their flex stuff is on their servers and our dashboards are on our servers.  We may be moving everything to our side of the house soon so a lot of things might change. When I tried to test our dashboards as exported to pdf I ran into security problems with some Adobe parts of the whole thing. We have a lot of Adobe stuff locked down because of security concerns. Being a defense contractor that's a way of life.
    Jim

  • How to Automate Compressing PDF files in a Watched Directory

    I want to automatically compress PDF files as they get placed into a watched directory. I would like the compressed files placed in another directory and have the original file either deleted or place in another directory. If Acrobat Pro X can do this, how do I set it up.

    I noticed that Acrobat Distiller will watch an input directory and move files to an output directory. I tried using Distiller to compress a PDF file, but all it did was move the PDF file to the out directory without doing any compression. Is there any way that Distiller could be configured to do what I want?
    I also called the number listed on the Adobe web site for LiveCycle products. They told me they don't sell their product to non government companies and they referred me to 4 Point to get further info. I called them and only got a voice mail. I'm waiting for a call back.
    I found a product that does exactly what I need. It is called PdfCompressor Professional Edition. But, it costs more than what I want to spend. I'm guessing that LiveCycle will cost more than I want to spend also. If there are any other products that cost less than $150, I would like to know what they are.

  • Why do I get an unexpected error occured when I try to save a form as a pdf file?

    Why do I get an unexpected error occured when I try to save a form as a pdf file?

    Hi MsSunnyD,
    Try uninstalling Adobe Acrobat using the Adobe cleaner Tool  http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, try installing Adobe Reader XI. That should resolve the problem.
    Regards,
    Ajlan Huda.

  • Can I print two ore more PDF files together (parallel)?

    Hello,
    I am receiving listings with a source code in PDF files. These source codes have errors and I must find and correct it. I need to print several source codes (PDF files) in one printer page /parallel/ for facilitation. Can somebody help me to do that?
    Regards,
    Hristo Markov
    Software development - http://www.markovandmarkov.com | http://www.cargofreightexchange.com

    Reader doesn't have any combining features.

  • Need help on remote printing info for custom PDF form...

    Hi,
    I did quite a lot of search on this requirement but failed to access the correct info in this forum. In case anyone has already done this, please do explain and point to the right link. thanks
    I have a custom table where I will maintain every customer's email id, printer name (printer in his network where he wants me to print this PDF output, there can be multiple printers separated by comma) and his fax number.
    Question 1: For remote printing,what all details do I need to maintain in my custom table regarding that  printer (IP address or what ?? )? Also, any other configuration to be done to make this happen ?
    Question 2: In my code how do I trigger my ADOBE form to be sent to that remote printer for printing ?
    Currently I have done
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    CALL FUNCTION 'FP_JOB_OPEN'
    CALL FUNCTION z_FUNCNAME
    CALL FUNCTION 'FP_JOB_CLOSE'
    As of now, the print dialog opens and i can see the adobe output in the print preview option. This is OK for me when I want to do local printing. But how do I trigger the remote printing automatically based on the values in the custom table.
    This is purely a custom transaction based printing and hence no output determination is configured .
    Apologies if this question is repetitive, but I fail to assimilate the required info from the forum.
    thnks

    resolved.thanks

  • PDF form with one submit button that prints form and sanves PDF with data with a unique file name

    We have a long medical form that patients can fill out at kiosks as they wait to see a doctor. We want one button so that the patient can print out the form with one click (and finish filling it out by hand if it's not finished already) and the same button click will save the form with a unique file name (using last name, first name, date, and/or email address so that the identity of the person who filled out the form will be readily apparent to anyone who wants to grab the user's responses later). Is Acrobat capable of doing something like this? LiveCycle Designer maybe? And if we continue with the PDF form and add a submit button, is there a way to program the button click to print and to save?
    Thank you in advance of any suggestions that might accomplish this task.

    I am not sure about the print, but it can probably be done -- possibly with a bit of JavaScript. As to the saving of the form, that is not reasonable at a kiosk. You would want the data submitted to a server (particularly with patient data), no e-mail or accessible drive. You can collect the data and put it in a database or import it to the form for printing yourself.

Maybe you are looking for

  • How do I get my stolen iPhone back?

    My son had his iPhone 4 stolen this past June.  I never reported it nor even disconnected it.  I didn't think much of it.  We use Verizon, btw. I got my son the new iPhone 4S to replace his stolen one, and decided to get myself one as well.  I plugge

  • My IPOD screen is zoomed in and I can't zoom it out.

    It's my son's ipod and he was watching utube videos and all of a sudden it zoomed in and got stuck.  I can't seem to zoom it back out.  It has a screen lock on it and we can't even put in the code to unlock because it is zoomed in to far.  I've reset

  • External html page into flash

    how to load external html page into flash? (AS3)

  • What writer programs are compatible with XP Pro and windows 7?

    I want to go from Adobe 4.0 Writer to more current versions, but I see that v9.0 Pro is not compatible with Windows 7. I need to be able to copy from pdfs to word or excel and have it correctly populated.  I do a lot of work with Excel and need this

  • Names of devices connected to router

    How can I tell the names of the devices that are connected to my E2000 router? Cisco connect says I have 4 devices connected but I only have 3. I am trying to figure out where the 4th device is coming from. Solved! Go to Solution.