Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8843

Re: Save Image @SAPoffice

$
0
0

Ok hi again,

 

I made it to run the "SO_DOCUMENT_INSERT_API1" and also get back a document-info including a document-id. The next step is normally to build up a linking between the created attachment and the SAP object, isn't it? The coding for this looks like the following:

 

lo_object_a-instid = af_qmnum.
lo_object_a-typeid = 'BUS7051'.
lo_object_a-catid = 'BO'.

lo_object_b-instid = lf_att_key.
lo_object_b-typeid = 'MESSAGE'.
lo_object_b-catid = 'BO'.

TRY.
     CALL METHOD cl_binary_relation=>create_link
         EXPORTING
           is_object_a = lo_object_a
           is_object_b = lo_object_b
           ip_reltype  = 'ATTA'.

ENDTRY.

IF sy-subrc = 0.
       COMMIT WORK AND WAIT.
ENDIF.

sy-subrc is actually 0 --> the creating must be successfully but ... where is the attachment now? When I click on the qmnum I don't see any attachments. Is it possible to have look into the folder where the attachment should be? Looking forward to your answers!

 

Greetings

Stef


Viewing all articles
Browse latest Browse all 8843


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>