Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Upload Scanned document directly as an attachment in FB01

0 Kudos
1,810

Hi,

I want to upload a scanned document directly as an attachment in Tcode FB01 or other Standard Tcodes. Let me explain completely about my requirement. SAP has given provision to attach a document in tcodes like FB01 or Me21n. We need to click on add attachment from toolbar and then select the file from the local computer to attach the file. But my requirement is to have a menu button and once user click on this button, then one more screen will be called. There will be 2 buttons on this screen 1.Upload from Scanner 2. Webcam. Once someone select the scanner button, the document will be scanned and this scanned document will be attached with the PO/Accounting document as an attachment. Once we save the PO/Accounting document, the scanned document will also be saved in sap. Please tell me from an ABAP point of view that How to get this functionality?

Regards

Kumar

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos
634

Perform some search there are many threads and wiki already written on

  • Upload document (Look for method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD, in case of background (not your case) look for FTP tools/FM/Command)
  • Store uploaded document (Look for FM such as SO_FOLDER_ROOT_ID_GET, SO_DOCUMENT_INSERT, there are many other ones)
  • Attach document (for example look for method CL_BINARY_RELATION=>CREATE_LINK)

There are much less documents on driving a device such a scanner or a webcam but there are some

  • Look for documents on ActiveX + device type, those can sometimes be driven thru some web services.

0 Kudos
634

Sorry I didn't get your answer. I want to send a scan request from my ABAP program and receive the scanned document in my program. How to achieve this functionality in abap.