cancel
Showing results for 
Search instead for 
Did you mean: 

Upload Binary table to DMS

Former Member
0 Kudos

Hi,

Can anyone help me in uploading Binary table to DMS.

Currently i am using BAPI 'BAPI_DOCUMENT_CRETE2' for creating DMS document but through this BAPI i can only upload documents from my presentation server.

I will be having a PDF in binary table in my program and i want to upload that PDF to DMS.

I am looking for a BAPI or Class method to upload the document to DMS from my binary table.

can anyone help me?

regards,

Amit

Accepted Solutions (0)

Answers (3)

Answers (3)

shivananddeshmu
Explorer
0 Kudos

hello amit ..

you can use CVAPI_DOC_CHECKIN to check-in data from internat table to DIR.

Eg call as below :

CALL FUNCTION 'CVAPI_DOC_CHECKIN'
            EXPORTING
              PF_DOKAR           = DOKAR
              PF_DOKNR           = DOKNR
              PF_DOKVR           = DOKVR
              PF_DOKTL           = DOKTL
              PS_API_CONTROL     = ls_api_control
              PF_CONTENT_PROVIDE = _*'TBL'*_
            IMPORTING
              PSX_MESSAGE        = L_MESSAGE
            TABLES
              PT_FILES_X         = lt_files_tab
              PT_CONTENT         = LT_CONTENT.

LT_FILES_TAB-APPNR = 1
LT_FILES_TAB-DAPPL = TXT
LT_FILES_TAB-FILENAME = test
LT_FILES_TAB-STORAGE_CATEGORY = Y02L

_LT_CONTENT_
APPNR          ZAEHL          ORLN                                 ORBKL          ORBLK
1	0001	000000007650	2550	<HEX_values>
1	0002	000000007650	2550	<HEX_values>
1	0003	000000007650	2550	0ABCDEF123456789

Rgds,

Shivanand

Former Member
0 Kudos

I have the exact requirement, too.

Have somebody a solution for this?

Kind regards.

Former Member
0 Kudos

Hello Amit

I have the same requirement.

Have you found a solution?

The only thing I am doing now is saving the PDF in the spool than save it on the local machine using the GUI_Downlaod. function

And now I am trying to find how to create a new DMS to attached that PDF.

If I can attached the PDF without to save it first on the local machine that would be better.

Regards

dstj