cancel
Showing results for 
Search instead for 
Did you mean: 

Upload the attachments in the rental object

Former Member
0 Kudos

Dears,

I need to Upload a lot of attachments for several of rental object, and I can not find it in LSMW or the IDOC by the standard BAPI...

Best Regards,

Khairy Soliman

SAP RE-FX/FI Consultant

Accepted Solutions (0)

Answers (2)

Answers (2)

yeong-chul_jeong
Active Participant
0 Kudos

Dear khairy soliman.

When you want to mass upload the attachments for real estate object such as  rental object or contract and so on,

Normally the "BAPI_DOCUMENT_CHANGE2" should enable you to add object links to a document info record.

Therefore the correct data needs to be filled in table OBJECTLINKS.

Please note that after a DMS BAPI always the BAPI_TRANSACTION_COMMIT has to be executed to store the changes in the database.

        CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'

          EXPORTING

            documentdata         = it_bapi_documentdata

          IMPORTING

            documenttype         = it_bapi_documentdata-documenttype

            documentnumber       = it_bapi_documentdata-documentnumber

            documentpart         = it_bapi_documentdata-documentpart

            documentversion      = it_bapi_documentdata-documentversion

            return               = it_return

          TABLES

            characteristicvalues = it_char

            classallocations     = it_class

            documentdescriptions = it_drat

            OBJECTLINKS  = it_objlinks

            documentfiles        = it_files

            longtexts            = it_longtexts.

For information on the DMS BAPIs, Check the SAP note 766277.

Regards,

Yeong-Chul.Jeong

0 Kudos

Hi, Khairy!

I think's not possible put document by LSMW in the RE-FX objects, but, i think have another way to manage your documents on the RE-FX RO and Contract and this way you can put documents in mass, in addition it's more easy to create hierarchy documents structure.

First Step: Find the tool "SAP Records Management", in RE-FX, but you have do some customizings.

Look the transactions "SRMCUSTOMIZING" and "ORGANIZE".

In RE-FX customizing(RECACUST), have in menu Global Configurates for Master Data > SAP Records Manager

Link SRM: