on 06-06-2014 2:17 PM
Hi Experts,
I want to get the details of the dependencies assigned to VC characteristics from ABAP program.
Is there any function module/BAPI to get the dependency details?
Thanks in advance.
Dear Ramkumar,
When you have the CABN-KNOBJ for the characteristic, you can use the function module CUKD_KNOWLEDGE_DEFINITION to find all dependencies that are allocated to this characteristic. The CABN-KNOBJ must be entered in the import-field ALLOCATION_NUMBER, the dependencies are then in the table RESULTING_DEPENDENCIES.
Best regards,
Eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eric,
Thank you so much.. It is working fine.
My Actual Requirement is need to pull those conditions specified in the dependencies because I am designing UI interface where we need to check this conditions.
Is it possible to pull those conditions using this Dependencies? Is any BAPI/FM is there?
Thanks
Ram
Dear Ram,
When you display the syntax of a dependency in the CU03, the syntax is read from the table CUKN in the form CUKDX_GET_KNTAB (Include LCUKDF5Q). The relevant select is
SELECT * FROM CUKN INTO TABLE CUKN_TMP_TAB
WHERE KNNUM = KNNUM
AND DATUV <= DATE
ORDER BY DATUV DESCENDING adzhl descending KNCNT ASCENDING."1550879
In the column KNBLK of the table CUKN_TMP_TAB you can find the syntax of the dependency (including the line number). Waybe you can use a similar construction in a custom program.
So you basically only need to know the CUKB-KNNUM of the dependencies that are attached to the characteristic. You can find these more easily by entering the KNOBJ from the CABN of the characteristic in the table CUOB. The function module CUKD_KNOWLEDGE_DEFINITION is actually not necessary for that.
Best regards,
Eric
User | Count |
---|---|
92 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.