cancel
Showing results for 
Search instead for 
Did you mean: 

user and product category responsible

former_member183819
Active Contributor
0 Kudos

Is there any way to findout which product category he is responsible. Any Function module?

Input - Product category

Out put- List of Users(ie responsible for product category).

BR

Raman

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can query the tables HRT1222 and HRP1222.

Enter the name and value for the prod catgeory in the table HRT1222 .e.g. enter the selection criteria as :

ATTRIB = 'PRCAT'

LOW = 'ABCD'(name of the category).

You will find an entry in the table HRT1222 .Take the TABNR value(e.g. DGV-----100A00000000000000006022) and enter this as the selection criteria in the table HRP1222.You can see the position/org unit ID to which this categoryhas been assigned .

e.g.OBJID 50000607.

After that ,you can get the details for all the users who are assigned to this Position/org using the foll FM's:

BBP_OM_STRUC_GET_USER_FROM_POS/BBP_OM_STRUC_GET_USER_FROM_ORG

BR,

Disha.

Do reward points for useful answers.

Former Member
0 Kudos

Hi,

You will not get the user list from the FM's i mentioned.

You will get the Org ID or the position ID under which the product catgeories have been maintained in the org structure from the tables HRT1222 and HRP1222.

Then using the Org ID/position ID,you can get the users who are assigned under those using the FM's mentioned i.e. BBP_OM_STRUC_GET_USER_FROM_POS/BBP_OM_STRUC_GET_USER_FROM_ORG.

So first query the tables mentioned to get the pos ID/org ID and then pass the OrgID/Pos ID to the FM's to get the user list.

I hope its clear now.

BR,

Disha.

Do reward points and close the thread if your query is answered.

Do reward points for useful answers.

Former Member
0 Kudos

Hi ,

Once again,the replies given by Imtiaz and me are totally opposite.

1. If you want to give the i/p as USER ID and get the o/p as Responsible product categories for that user,then use the FM BBP_READ_ATTRIBUTES mentioned by Imtiaz.

Also, for more deatils,you can see this related thread:

2. However,if you want to give the i/p as Product catgeory and get the o/p as the list of users to which these prod catgeories are assigned then follow the steps i mentioned in the reply.

Hope its clear now.

BR,

Disha.

Answers (2)

Answers (2)

former_member183819
Active Contributor
0 Kudos

Thanks Disha and Imthiaz !!!

Raman

imthiaz_ahmed
Active Contributor
0 Kudos

Use FM BBP_READ_ATTRIBUTES

Regards, IA

former_member183819
Active Contributor
0 Kudos

Thanks but though i give user as input in FM but i didnot get responsible product category.

BR

Raman