FM, for uploading attachment in DMS and getting the LOgical & physical ID
I'm creating contract via FM, now I'd like to add attachments, I have been doing test and is working with attachments already created in the system. (This is in a SRM systems, but my question is about a FM in the BASIS part)
I am filling out the parameter E_ATTACH with structure type BBPT_PDS_ATT_T. Basically I'm including the link between the attachment and the contract, but I should upload first the attachment to the DMS and then make the link.
The question is. Does anybody know a function module that allow me previously insert my attachment. In that way I suppose I will know de LOIO_OBJID and PHIO_OBJID. (I am using LOIO_CLASS = BBP_L_DOC and PHIO_CLASS= BBP_P_CLASS)
I have tested with SDOK_WS_UPLOAD, but I don't get any OBJID