Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 03, 2008 at 08:37 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.