Convert filled PDF into binary and store in R3 table

Hi .. Is there any way to save my entire pdf form into r/3 either in presentation level or ztable as binary upon user submit .. ?
Edited by: nyap kah wai on Aug 6, 2009 4:27 AM

Hi,
Below is the code which may help you out.
***Retrieve your Pdf source in Onclick event of submti button.
DATA lo_el_context TYPE REF TO if_wd_context_element.
  DATA ls_context TYPE wd_this->element_context.
  DATA lv_pdfsource LIKE ls_context-pdfsource.
* get element via lead selection
  lo_el_context = wd_context->get_element(  ).
* get single attribute
  lo_el_context->get_attribute(
    EXPORTING
      name =  `PDFSOURCE`
    IMPORTING
      value = lv_pdfsource ).
Convert to Binary using below code..
  DATA: p_image TYPE sdokcntbins.
  DATA:  p_image_len TYPE i.
CLEAR: p_image_len.
  REFRESH p_image[].
  CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
      buffer                = lv_pdfsource
*   APPEND_TO_TABLE       = ' '
   IMPORTING
     output_length         = p_image_len
    TABLES
      binary_tab            = p_image[].
Now you can use this binary tab to update your custom table..
Rgds
Vara

Similar Messages

  • I've tried to convert the obkect into bytes and store it. But while retreiving it using JNDI, its giving me an object. That's not the object I need.

     

    You must convert and store the object into Base64. On read of the attribute convert from Base64 back into binary.

  • I successfully convert a pdf into ePub and it can be read by iBooks. However on second run, all my converted epubs are not readable in iBooks! What went wrong?

    I used Xilisoft PDF to EPUB Converter 1.0.4 by the way. I will understand if none of them is not working, but what really puzzled me is the fact the first conversion works, but not the rest. I had check all the settings, all the same.
    Ili

    True to that, I was not bothered until I realised my both pdf shelf is terribly cluttered while the Books shelf are empty, so I was thinking to put Western comics in the PDF shelf while the Japanese comics in Books shelf.
    I finally decided to post questions here after I went through researches on troubles with epubs which sometimes are malfunction due to wrong coding of the epubs and itunes/ipad will not read those certain codes. I was very curious on that.

  • Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    Im trying to convert a PDF into an excel document and I keep getting an error message that reads "An error has occurred while trying to access the service". WHat am I doing wrong?

    it seems my subscription had expired so I signed up again.. It was still having trouble so I repeated the sign up process again.. Then it worked perfectly.. Unfortunately, I think I just subscribed twice and need to cancel one of them. Ugh. Such a pain when I'm trying to get this project completed. I'll be canceling at least one of the subscriptions in the morning. Adobe is not my favorite company right now. None of this was intuitive. And trying to get help was an absolute waste of an hour.
    Regards,
    Nathaniel
    [removed by moderator]

  • To store PDF into BLOB and retrieve into OLE/OCX

    We would like to:
    1. Store a PDF file (output of a report saved in file server) into a BLOB
    column.
    2. Retrieve previously stored PDF in the BLOB column and display using either
    OLE automation or ActiveX (OCX) control.
    I read all related documents in metalink that addresses this issue however cant
    get this to work. We have Acrobat Reader 4.0. Here are some issues from the
    tests that I did:
    1. To load the PDF file the program code that uses BFILE and LOADFROMFILE does
    not work since the database is on a remote server and the PDF file is on a
    local file server. The DIRECTORY created on the database is unable to find the
    PDF file.
    2. Though I want the loading of the file to be programmatic, I tried
    right-click on the OLE container and inserted object from file. This loaded the
    file into the container (Icon on the container appeared) however I was not able
    to view the document by double-clicking. An error in Adobe occured: 'There was
    an error opening this document. A file read error occured'. My guess is the
    'Insert Object' did not insert the file properly into the BLOB.
    3. When trying to display the PDF file stored in file server (in case storing
    into BLOB does not work), I used an OCX control, right-clicked and Insert
    Object and select Adobe Control for ActiveX. The problem here is when I run the
    form, the OCX control shows up empty and I have to 'Insert Object' again in
    runtime. Once I manually insert object from runtime the GET_INTERFACE POINTER &
    SET_PROPERTY works fine is displaying the document. Is there any way to
    maintain the control property of the OCX when the form is run?
    4. Are there any workarounds and better solution to store PDFs into BLOBs and
    retrieve and display in OLE/OCX controls? Using temporary file into local drive
    is not an issue.
    5. Would I be able to make use of 'PDF.PdfCtrl.1' OLE class?
    6. Does OLE automation work for Acrobat Reader 4.0.?
    I would appreciate all the help.
    Shyam

    Im facing a similar kind of problem. I want to store and retrieve Office files, PDF and Jpegs into/from the database to view them on web in disconnected mode. Please reply as I cant find any help/documentation regarding saving BLOB data into files. I was able to store file data into BLOB, using DBMS_LOB package.
    Shahzad

  • I have just subscribed to Adobe Export and my debit card has been charged but I cannot convert a pdf into a word format on my mac.  Does it take time to process?  I have purchased the package about thirty minutes ago?

    I have just subscribed to Adobe Export and my debit card has been charged but I cannot convert a pdf into a word format on my mac.  Does it take time to process?

    Hi nickel13,
    What is the problem you are facing?
    Is this happening with a single PDF file?
    Regards,
    Florence

  • I am trying to convert a PDF into a document that can be edited - it's a client feedback form. I am using Adobe forms Central and it's saying that it can't use my document.

    I am trying to convert a PDF into a document that can be edited - it's a client feedback form. I am using Adobe forms Central and it's saying that it can't use my document.

    Hi Michelle ,
    We are extremely sorry that you have had a bad experience with Adobe .
    As far as your issue is concerned ,Acrobat generally prompts for internet connection as it is required to activate the product before you could use it comfortably .Once the product is activated or licensed you would be able to use the software offline .
    This could be the possible reason you are experiencing this .Please check if you have done so and still facing this .And if you have not ,you need to license/activate your product by typing in your credentials ,i.e Adobe ID and password .
    You could also refer the following link to get updated about the activation of your product .
    https://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#a ctivate-how-to
    Regards
    Sukrit Dhingra

  • How do I convert a pdf in word and if I did where did it go or get sent to...

    Look I am not looking to discuss anything all I want is to convert the PDF into word.... I thought I did and it even looked like I did ... but I can't find it... just want steps to convert pdf to word document

    Hi Anna,
    If you are using Adobe online service, then you need to:
    Sign up at "https://cloud.acrobat.com/exportpdf" using your Adobe ID credentials.
    Select PDF files to export to Word.
    A pop up will come showing the download option.
    Click on that and download the converted file onto your system.
    You can also click on 'Files' tab to locate the converted files.
    On the other hand, if you are using Adobe Reader, all you need is to sign up and convert the file to word and later download it on your computer.
    Please try and let me know if you still face any problem.
    Regards,
    Anubha

  • HT4059 How can I convert a pdf into an ibook?

    How can I convert a pdf into an ibook? I've got a host of PDF's that I'd like to bring into the software but need a quick and simple tool to pull them through. Any ideas?

    In the help of Acrobat look for Form.

  • Converting a PDF into an Indesign doc.

    Hello everybody,
    Is it possible to convert a PDF into an Indesign File?  I am using Indesign CS5.5
    Thanks in advance for the help!
    QntaDesign

    No you can´t.
    There´s couple of thing you can try, but I´m afraif none of them are quite perfect...
    1) Open you PDF into Illustrator and copy/paste or drag&drop the content of the page into InDesign from there. Cons are; you can do only one page at the time and your text will be converted to outlines during the process
    2) Save your PDF as RTF or Word document from Acrobat Professional and place resulting file to InDesign with File>Place commans. You probably have to redo most of the layout, but with correct settings you may be able to preserve text as editable mode and have some styles and graphic elements still after placing....
    Steve´s suggestion is only deasent way to do that.

  • Hi, Im trying to convert a PDF into a weblink that I can post onto social media  but dont know how, can you help please?

    Hi, Im trying to convert a PDF into a weblink that I can post onto social media  but dont know how, can you help please?

    You need to upload it to some kind of public server, or file-sharing site (like Google Drive, Dropbox, etc.), and then post the link to it.

  • REFUND/LAWSUIT IN MISLEADING PEOPLE TO BELIEVE HOW SIMPLE TO CONVERT A PDF INTO A DOCX OR XCEL FORMAT

    REFUND/LAWSUIT IN MISLEADING PEOPLE TO BELIEVE HOW SIMPLE TO CONVERT A PDF INTO A DOCX OR XCEL FORMAT?
    I cannot convert the PDF files to Docx or excel, I WOULD LIKE  REFUND, ALL I GOT WAS A COPY OF THE NOTES THAT I SCANNED TO CONVERT THEM AND THEY CAME OUT GARBLED I SPENT OVER 3 HOURS TRYING TO GET THIS THING TO CONVERT BUT IT WAS A PURE WASTE OF MY TIME AND NOW YOU ARE GOING TO TAKE YOUR SWEET TIME GETTING ME A REFUND. YOU TOOK THE MONEY OUT BEFORE I EVEN CHECKED MY ACCOUNT, YOU ARE QUICK TO TAKE AND SLOW TO GIVE BACK, I WILL NOT RECCOMMEND YOU TO ANYONE WHEN IT COMES TO HAVING TO PAY FOR YOUR SERVICES, I WAS BETTER OFF WITH THE BASIC FREE DOWNLOAD AT LEAST THAT WORKS AND MAKES YOU BELIEVE THAT IT CAN DO WANDERS SO SOMEONE LIKE MYSELF AND MILLIONS OF OTHERS DO THE SAME THING BELIEVING IT WILL FORMAT YOUR SCAN INTO AN DOC. DOCX OR EXCELL FORMAT WHEN ALL YOU IS CHARGE AND LEAVE NOWHERE TO LOCATE YOU OR CALL IN A PLACE THAT IS OBVIOUS EVEN OBSCURE SITES HAVE A NUMBER YOU CAN CANCEL IN A LOCATION WHERE IT IS EASILY ACESSIBLE BUT YOU GUYS MAKE IT IMPOSSIBLE TO FIND YOU AND REQUEST A REFUND. YOU SHOULD BE REPORTED AND A CLASS ACTION LAWSUIT SHOULD BE FILED AGAINST YOU FOR THOSE THAT HAVE DIFFICULTY AND SPEND AN EGREGIOUS AMOUNT OF TIME TRYING TO CONVERT THEIR PROGRMAS SO THEY DONT HAVE TO REQUEST A REFUND BUT AFTER SPENINDING 2 DAYA TRYING EVERY METHOD YOU RECOMMEND, I GIVE UP!!!!.
    I AM TOTALLY DISGUSTED WITH YOU AND I HAD APPLAUDED YOU BEFORE AD NOW I KNOW WHY I CANCELLED MY LAST SUBSRIPTION QITH YOU, THE SAME REASON. IF ANY OF YOU AHVE THE SAME PROBLEM FORWARD THIS TO OTHERS AND PUT A STOP TO ADOBES FALSE AND MISLEADING ADVERTISING,!!

    djavan812, The post makes me realize that you did not have a pleasant journey with us. I am sad for this & I apologize profusely.
    Please respond to the private message that I have send you so that I can ease off some of your not so good feeling for Adobe.
    Regards
    Rajshree

  • Acrobat 5 - Placing PDF into inDesign and Output to Colour Separations are Wrong

    Acrobat 5 - Placing PDF into inDesign and Output to Colour Separations are Wrong
    I have a 2 Page PDF file from my client which I have to have setup 2UP on 450x320 for Metal Plates for the Press.
    I setup my page size in inDesign and Placed each page from the PDF file into the inDesign Document.
    Because I need 4 Metal plates (CMYK) I had to check the Colour Seperations for the file by outputting it to a Postscript file with CMYK SEPS and then using Adobe Distiller to turn it into a PDF file for me to view the Seperations.
    As I've shown in the screen shot below. The CYAN plate has boxes all around the images in the PDF file which will come out on a Metal Plate.
    Compared to the Colour version of the Client's PDF they supplied me, there is no boxes around the images.
    I know this is a error with dropping a PDF file into inDesign, outputting to a PS file and then Distilling it to the SEPS. I've had the same problem when I've opened a PDF file that has been distilled in Illustrator and the Artwork is sliced into pieces and uneditable.
    Has anyone else found this problem and if so is there a workaround?
    I'm using Adobe inDesign CS and Adobe Acrobat Professional Version 5.

    Im facing a similar kind of problem. I want to store and retrieve Office files, PDF and Jpegs into/from the database to view them on web in disconnected mode. Please reply as I cant find any help/documentation regarding saving BLOB data into files. I was able to store file data into BLOB, using DBMS_LOB package.
    Shahzad

  • I`d like to know how can i insert documents, xls/doc/pdf into iCloud and have them in my iPhone and my iPad. I just found one way, through ibooks, but i think it isn't a practical option.

    I`d like to know how can i insert documents, xls/doc/pdf into iCloud and have them in my iPhone and my iPad. I just found one way, through ibooks, but i think it isn't a practical option.

    Just use Drop Box instead.

  • I downloaded the Adobe free trial to convert a PDF to Word and it will not open.  Further, even though I have signed in, it reverts back to the sign in page over and over and over again.  How do I to convert?

    I downloaded the Adobe free trial to convert a PDF to Word and it will not open.  Further, even though I have signed in, it reverts back to the sign in page over and over and over again.  How do I convert?

    Moving this discussion to the Adobe CreatePDF forum.

Maybe you are looking for

  • Another "DO NOT DISCONNECT" problem

    Before I go on I have 2 Nano's , so the problem I have is only with one of them. So this should eliminate many of the potential solutions to this problem ie. it is not my PC , it is not i.tunes , it is not the charging / download lead etc etc. I have

  • Exporting to Flash 8 problem!

    I'm working at a hospital in NB Canada creating E-Learning programs. We just purchased Studio 8 and Captivate 2. When I create a project in captivate and I try to import to Flash 8, I get this error message - "an internal Adobe Captivate error (bad a

  • Searching in Combo List

    Dear users....Can we create a dynamically searching combo-list like address bar in internet explorer in which as we start typing some URL, it brings up the matching URL address.???

  • CC 17.1 runs slow!!

    Hi All, After installing an update to Illustrator 17.1 from the Cloud a few days ago I've noticed there is a significant hit in the performance. It runs really slow!! Even with simple documents with just a few layers. I opened more complex ones and i

  • How to remove Database Files and Backup from ASM

    Hi All, Oracle Database 11.2.0.3 OEL 5.7 We have a host for restore purposes. We execute monthly or quarterly restore operations to verify that I am able to restore a subset of the data in the given amount of time or to other purposes. I have a autom