cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the Internal Document Structure Number STLNR from the DIR Key

Former Member
0 Kudos

Hello:

Our requirement: When a user moves the Header DIR of a Document BOM to Released Status, we need to check if all the BOM Items in this Document BOM have also been released (in Status Released). If not, we need to give the user an error message informing them which component DIRs need to be released before the system will allow them to release the Header DIR. We can do this by entering the DIR Key of the Header DIR and find out the Internal Document Structure Number (Document BOM Number = STLNR for BOM Category Document Structure STLTY = D) from the available input of the DIR Key DOKARDOKNRDOKTL+DOKVR. Then we need to use the value of STLNR in Table STPO to find the Document BOM Items and check the status of each BOM Item DIR.

If Table STKO had DIR Key as an input we would have our solution, but alas it does not. Can anyone point us in the right direction by suggesting how to get to STLNR from the DIR Key? Your help would be much appreciated!

Niraj Pant

Accepted Solutions (1)

Accepted Solutions (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi Niraj,

the STLNR should be contained in structure rc29k. You can also use the DMS BAPI DOCUMENT_GETDETAIL2 with parameter GetStructure or DOCUMENT_GETSTRUCTURE. With these BAPIs you should be able to determine the document structure to an existing document info record. For further information on the mentioned BAPIs please see SAP note <a href="https://service.sap.com/sap/support/notes/766277">766277</a> which contains a complete documentation on all existing DMS BAPIs.

Best regards,

Christoph

P.S.: Please reward points if this information was usefull.

Former Member
0 Kudos

Thanks Christoph! We are now planning to use BAPI_DOCUMENT_GETDETAIL2 to get to the Items in the Document BOM of SolidWorks Assembly and Drawing to check the status of the Part or Sub-Assembly Documents.

Your help was precise and excellently correct.

We really appreciate your help!

Thanks again!

Cheers!

-Niraj

Answers (0)