cancel
Showing results for 
Search instead for 
Did you mean: 

Information on Personnel Requisition workflow.

Former Member
0 Kudos

Hello All,

Can anyone tell me about the Personnel Requisition workflow HRPERSREQ. I am trying to add custom task at the end of the workflow for which I need the position number (OBJID). Does the workflow provide the position number for which the requisition is created at the end of the workflow.

Unless I know the position number (OBJID), I cannot create a new requisition. So does the workflow HRPERSREQ contain position number (OBJID) as an attribute.

Regards

srinivas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Srinivas,

Do you have a workflow definition id? The workflow cannot be found on HRPERSREQ.

regs

Petra

Former Member
0 Kudos

Hi Beerendonk,

Thanks for your reply. Here is the workflow definition id WS90700040. This is the id of our PR workflow. Not sure if that was what you were looking for.

Regareds.

Srinivas

Former Member
0 Kudos

Hi Petra,

My original problem actually is if I bind the workflow ID to the custom task at the end of the workflow, will I be able to use the imported workflow ID in the task method to extract some other data.

PS. Sorry for the typos

Regards

Srinivas.

Former Member
0 Kudos

Hi Srinivas,

In order for you to use the workflow container data in your custom task you need to create a container element for the task which is of the same data type as the field that you are looking for in the workflow container. Then map the task container element to the workflow container element while defining the Binding for the activity.

Regards

Bhooma

Former Member
0 Kudos

Hi Sridharan,

Thanks for your reply. I am new to workflow. I created the container element in the task container of the same type as workflow container element (for which am trying to create the binding). Could you please walk me through the process of binding in the binding editor (drag and drop thing).

And also, after I did the binding, how is this container element (in the task), accessible to the method. I mean will it be automatically bound to the method "import" parameter...(where I am using it to extract some other data).

Regards

Srinivas.

Former Member
0 Kudos

Hi Srinivas,

Firstly when you create the container element for the task set is as an import parameter ( Double click on the container element-> Properties (Tab)-> Import(Field) ). Save the task. In SWDD select the activity. Put in the task and Click on Binding button. You will get a pop up showing all the workflow elements and the task elements. Map the workflow element to the task element here. Save and activate the workflow.

In SWO1 open the method for the business object. Click on parameters button and add an import parameter of the same data type as the task container element. In the program add the following code:

Data: newvariable type datatype

swc_get_element container 'NEWVARIABLE' newvariable.

Open the task definition and click on method binding. Map the task container element to the method input parameter.

After these steps you should be able to use the new variable in your code.

Regards

Bhooma

Former Member
0 Kudos

Hi Sridharan,

I have a subtle doubt with your code.

"Data: newvariable type datatype

swc_get_element container 'NEWVARIABLE' newvariable."

I added the import variable by going into the parameters for the method. (say X). Before this, I created a container element (say Y) and set it as import.

Now the 'NEWVARIABLE' (in your code) does it resemble the container element (Y) or the imported parameter (X) ...

Regards.

Srinivas

Former Member
0 Kudos

The newvariable is X. Y will not be visible in the method it will be visible only at the task level.

Regards

Bhooma

Former Member
0 Kudos

I really appreciate your patience in going to details. It infact solved my problem. My dilemma is whether to use the delivered method CREATENBOBJECT for the task or my custom method. (I am using a copy of the delivered class CL_HRMSS_RECRUITING_WF for which CREATENBOBJECT is a method). I need to pass some values to a function module, that CREATENBOBJECT calls.

Regards.

Srinivas

Answers (0)