Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FM, for uploading attachment in DMS and getting the LOgical & physical ID

Former Member
0 Kudos

Hi everybody,

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

thanks

Best Regards

2 REPLIES 2

Former Member
0 Kudos

Hi,

For creating the attachment with a document number , type and version you can try Bapi_document_create2. I am not sure whether this is wat u r asking.

Then to get the Physical id and the logical id , try tables

1. DMS_DOC2LOIO

2. DMS_PH_CD1

Thanks

Papiya

0 Kudos

Hi,

Thanks but in my system this FM doesn't exist.

This is my components stack.

SAP_ABA 700 0015 SAPKA70015

SAP_BASIS 700 0015 SAPKB70015

PI_BASIS 2005_1_700 0015 SAPKIPYJ7F

ST-PI 2005_1_700 0005 SAPKITLQI5

SAP_BW 700 0017 SAPKW70017

SAP_AP 700 0013 SAPKNA7013

SRM_PLUS 550 0012 SAPKIBK012

SRM_SERVER 550 0012 SAPKIBKT12

I suppose the FM you indicated is in other component.

Any other idea about this.