Application Development and Automation 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: 
Read only

help needed in using a function module

Former Member
0 Likes
975

Hi all,

currently i am facing an issue in using a function module. in the import parameter in that there is a field called object_id but don't have an object id in ps can anyone help me out by finding what field to be given as input for object_id.the function module is CMS_API_STATUS_SET_USR_STAT .  this function module is used in project systems to change the user status.any one who have already worked on the same issue also can suggest any other function module.

thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
789

Hi,

     Every user has an objid associated with it in table HRP1000 you get the user's objid. but for that you will require object type.

I hope it will help you find a way

Regards,

Vishal

HAPPY ABAPing

Read only

former_member209818
Active Contributor
0 Likes
789

Hi Dinesh,

I dont think its User's Object ID in the HRP table. IN Project systems, User Status and System status are assigned to Project and these statuses are attached using Object IDs. JEST is one of the table where all the statuses are maintained. PLease check if you get any details in this table.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
789

From the where used list , I understand that it is a GUID. When digged further, it is the OBJNR field available in JEST,JSTO etc.

You can check passing PROJ-OBJNR.

Read only

RatneshSisodiy1
Active Participant
0 Likes
789

Hi Dinesh,

Object ID is PROJ-OBJNR. In SAP Project systems, for each project definition, wbs elements, network and activity a unique number is generated which is nothing but objnr.
you can see in tables proj, prps afko etc. you need to pass this objnr to your function module.

Please note that this object id links your project definition, wbs etc to finance and costing modules also. so when a project definition or wbs is used as account assigned object to create the invoices then accounting tables are updated with respect to object id (objnr).

Best Regards,

Ratnesh Sisodiya