on 07-11-2008 2:05 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
Thanks Disha and Imthiaz !!!
Raman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use FM BBP_READ_ATTRIBUTES
Regards, IA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.