1

Im working on creating a material document movement (MB51 report) and then attaching document to it. So far Im finished with creating the document and returning the document number.

And now I need to attach file to that document. I was not able to find out which BAPI does this...

so can I kindly ask you, which BAPI can let me upload the file from my drive to the object? enter image description here

I want to do the same in code which I do by that way:

SERVICES FOR OBJECT > CREATE > CREATE ATTACHMENT

Please note Im looking for a remote way to do this, therefore ARCHIVOBJECT_CREATE_FILE FunctionModule is out of question :(

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Jiri Zaloudek
  • 326
  • 3
  • 19

1 Answers1

-2

you can use the function module ARCHIV_CONNECTION_INSERT. I hope this is fine instead of a BAPI. There is a SAP-blog-post with further discription.

https://blogs.sap.com/2018/04/22/programmatically-create-and-retrieve-documents-attached-in-gos-generic-object-services-via-stored-business-document./

mxstml
  • 95
  • 2
  • 7