Application Development 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: 

Filter all the Hierarchical Task Lists based on their dependancy

Kartik2
Contributor
0 Kudos

Dear all,

i want to filter all the hierarchical task lists in system based on their dependancy, say, if there is a characteristic called 'REGISTRATION', then i want to see all the Hierarchical task lists having registration as 'ABCD-123' (REGISTRATION = 'ABCD-123').

I have done debugging and found out the following:

1. All these dependencies are being stored in table CUXREF as a knowledge element. That is if i pass the required characteristic value, in our example 'ABCD-123' to the field 'ATWRT' of table 'CUXREF' then i am able to get knowledge elements of all the hierarchical task lists which are having dependency as REGISTRATION = 'ABCD-123'.

Now, i want a link between this knowledge element and actual hierarchical task list which has the dependency. In debugging i could find that there is no such link maintained, and the field 'KNNUM' is being generated as the next number using function module 'NUMBER_GET_NEXT'.

I request you all to kindly suggest me an option or work around to achieve the same. Thank you.

Regards,

Kartik

1 ACCEPTED SOLUTION

Kartik2
Contributor
0 Kudos

Dear all,

The following approach worked to achieve the requirement:

 

1. Database table CUXREF

    Table entreis by passing the fields ATINN = REGISTRATION, ATWRT = ABCD-123

3. Copy the entries in field KUNNM

4. Pass the copied entries to table CUOB, field KUNNM

5. Copy the entries in field KNOBJ

6. Pass the copied entries to table PLPO, field KNOBJ

Thanks and regards,

Kartik

2 REPLIES 2

former_member188827
Active Contributor
0 Kudos

check if  function 'EAM_TASKLIST_GET_DETAIL' helps.

Regards

 

Kartik2
Contributor
0 Kudos

Dear all,

The following approach worked to achieve the requirement:

 

1. Database table CUXREF

    Table entreis by passing the fields ATINN = REGISTRATION, ATWRT = ABCD-123

3. Copy the entries in field KUNNM

4. Pass the copied entries to table CUOB, field KUNNM

5. Copy the entries in field KNOBJ

6. Pass the copied entries to table PLPO, field KNOBJ

Thanks and regards,

Kartik