Skip to Content
author's profile photo Former Member
Former Member

How to find Material linked to Document.

Hello Expert,

I've created document in CV03N and linked the material & BOM to the same document.

Can you please suggest in which table I'll able to find the Material/BOM linked to that Document.

I've checked DRAD, DRAW table but in both the table material number field is not available.

Regards,

Ganesh

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Dec 09, 2015 at 09:28 AM

    Hello,

    There is no direct link between MARA, DRAG and DRAG

    You can use BAPI_DOCUMENT_GETOBJECTDOCS to determine all the documents that are linked to an object (for example, material master).

    Best Regards,

    R.Brahmankar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 09, 2015 at 09:29 AM

    Hello

    This is tricky business...

    The Object key in DRAD is same as Guid in STKO, this is the link in BOM and the document assighed to the BOM item.

    But they are in different formats. Use GUID_Convert funtiontion module to convert GUID in STKO to Object Key in DRAD.

    Regards

    Abhishek

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 09, 2015 at 09:33 AM

    Hello Ganesh,

    You can find the object links using, BAPI_DOCUMENT_GETDETAIL2 passing GETOBJECTLINKS as X.

    Another option is to link via DRAD table,

    When DOKOB = MARA you will get the material number in OBJKY.

    When DOKOB = STKO_DOC you will get the BOM Header GUI ID (STKO-GUIDX) in OBJKY, from STKO then you can find the BOM number, (STKO-STLNR) and then find the header material and plant from MAST passing STLNR.

    Best Regards,

    Ameya B.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.