Skip to Content

HCM P & F - Getting Step Object ID

Hi Experts,

I am creating a HCM process and form and using Ehp2. I need the step object id in the backend service. I created a field in the service with datatype ASR_GUID and the field name is STEP_OBJECT_GUID. I selected this field in the form scenario under the specified service.

But the value is not coming up. I have three scenario steps and in all these three steps, the field is empty when i check in case management. Have I to add this field in the SPECIAL FIELDS of the service.

I tried to add the process reference number in the service also similarly but the name is PROCESS_GUID with datatype ASR_REFERENCE_NUMBER. It is also coming empty. I selected the default value in the form field for these fields to point the generic service.

Kindly help.

Thanks,

Vijay

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Aug 06, 2010 at 02:47 PM

    Read the documentation for HCM P&F THOROUGHLY from help.sap.com.

    Both fields you want are SPECIAL and you have to name them exactly. The framework will fill them in for you and you can reference them. Look for "PROCESS_REFERENCE_NUMBER" and "FORM_SCENARIO_STAGE" in the docs.

    Do NOT worry over the GUID info of the actual CASE. You do not need that. With the two pieces of info above, you can do pretty much everything you need.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Chris,

      Thanks for the help. I am creating the Vacancy Requisition request in HCM P & F. I need the GUID to get the attachements in the process. I see that PROCESS_REFERENCE_NUMBER is suffice for this.

      Many Thanks for your blogs as reading through them gave me confidence to work on HCM P & F though I am altogether new to SAP itself.

      Thanks,

      Vijay

  • Aug 09, 2010 at 03:22 PM

    Ah thanks for the compliments. I have written a very nice little Generic Service before (that I STILL use a lot!) that can look up any attachment to see if it's attached and the details of it. I know what you had to do. =)

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Chris,

      I had used the process reference number to retrieve the case id from the T5ASRPROCESSES table and used the T5ASRSTEPDETAILS to get the STEP_GUID and used the standard cl_hrasr00_container_utils=>get_attachments class method to get the attachments (ofcourse refered the standard SAP object coding).

      Kindly give me hint if this can be done otherway.

      Thanks,

      Vijay

  • Aug 12, 2010 at 03:49 PM

    Your almost there. You can actually use a class passing in proc. ref. number that will then give you a "hook" into that instance. Then you can call the class to fetch attachments. From there, you cross reference the attachments it returns to the attachments table and pull additional details.

    Add comment
    10|10000 characters needed characters exceeded