Application Development and Automation 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: 
Read only

Record Management: create document reference programmatically

Former Member
0 Likes
867

Hello,

I'd like to create reference to a document from another document by use of some BAPI or class method.

Can anybody give me some example how to create reference to another document?

Best regards,

Josef Motl

6 REPLIES 6
Read only

Former Member
0 Likes
736

Hi Josef,

You can use BAPI_DOCUMENT_CREATE2 to do so. In the tables parameter OBJECTLINKS you add your reference to the existing documen't.

Regards,

John.

Read only

0 Likes
736

Hi John,

thanks for your reply. I can't find FM BAPI_DOCUMENT_CREATE2 on my system.

I only found similar named FM:

SRM_DOCUMENT_CREATE

RMPS_POST_CREATE_API

These FMs haven't table parameter OBJECTLINKS.

Kind regards,

Josef

Read only

0 Likes
736

Hi Josef,

Sounds like your are not a regular R3 system. Perhaps on SRM?

Regards,

John.

Read only

0 Likes
736

John,

I'm on regular R3 system 6.40.

Regards,

Josef

Read only

0 Likes
736

Hi Josef,

The creation of the links between the documents is created in the class CL_RMPS_LINKS. Here it is possible to create or delete the links to the other documents. There is no standard BAPI or Function module for this.

Hope this is of any help.

Regards,

Tjalling-Jan Gerkema

Read only

0 Likes
736

Hello,

can anybody provide some example how to achieve this with this class CL_RMPS_LINKS? I also need to make references to inbound document programatically, but don't know how.

Thanks in advance.