Hi Vigneswar,
I am trying to follow the steps you indicate:
DATA: lv_id type SAEARDOID.
filele1 = XSTRLEN( l_xstring ).
CALL FUNCTION 'ARCHIVOBJECT_CREATE_TABLE'
EXPORTING
ARCHIV_ID = 'Z2'
* ARC_DOC_ID = '00000212idj12j'
DOCUMENT_TYPE = 'JPG'
LENGTH = filele1
* COMPID = 'data'
* SIGNATURE = 'X'
* VSCAN_PROFILE = '/SCMS/KPRO_CREATE'
IMPORTING
ARCHIV_DOC_ID = lv_id
TABLES
* ARCHIVOBJECT = it_upload
** COMPONENTS =
BINARCHIVOBJECT = it_upload
EXCEPTIONS
ERROR_ARCHIV = 1
ERROR_COMMUNICATIONTABLE = 2
ERROR_KERNEL = 3
BLOCKED_BY_POLICY = 4
OTHERS = 5
.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
By now everything is ok, but i have doubts how to fill the next request.
CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
EXPORTING
archiv_id = 'Z2'
arc_doc_id = l_archiv_doc_id " The doc ID retrieved from the previous FM
* AR_DATE = ' '
ar_object = toa_dara-ar_object " What?
del_date = toa_dara-del_date " What ?
mandant = '100'
object_id = toa_dara-object_id " What?
sap_object = toa_dara-sap_object " What?
doc_type = 'JPG'
* BARCODE = ' '
EXCEPTIONS
error_connectiontable = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Could you help me please?
Regards
.