Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to link object in BAPI

Hi friends,

1. Our requirement is to attach a document in Z - Program and this document should linked with equipment master.

2. Came to know BAPI_DOCUMENT_CREATE2 will be helpfull for this

3. How to provide the object in this BAPI


Former Member replied

Hi Varun

First create z-document type with internal number range in DC10 i.e in SPRO. Then in your Z-program give the option of attaching a file from P.C./Desktop. Write a code in your Z-program in such way that once user attach a file/s & saves his entries (Also user need to Enter Equipment number in this program to make the object link to EQUI) DMS/DIR will be created in background with the number range defined in SPRO. So that users can see the documents/files from CV04N as well as from u r Z-program.

All above can be achieve by using the BAPI functions.

I have used the same functionality in QM module & it works fine.

Let me know if u have any queries.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question