cancel
Showing results for 
Search instead for 
Did you mean: 

guiding WF agent into specific infotype/subtype from WF task

Former Member
0 Kudos

Hi all

I haven't found the answer for this one in the forum so I will ask you:

In my workflow I want the agent to hand out a laptop to a new employee. In other words I want the agent to go to infotype 40 and to the specific subtype (in my case 922) and enter the object on loan. Now, I do not want the agent to do all the browsing himself so I want the task (once executed) to open up infotype 40, subtype 922.

Problem is, as I have done so far, the task only takes the agent to the initial screen of transaction PA30 and is defaulting the input for onfotype and subtype. It just will not make the last create step and hence the agent has to do it. Does anybody kno how to make that last "create" action from my point?

The infotype and subtype are both container elements and just before executing the create event I have a container operation for each filling out default values.

The task itself is the standard TS90200007 "change employee". Maybe this is the problem?

Can anyone help me onwards on this one?

Accepted Solutions (1)

Accepted Solutions (1)

former_member186746
Active Contributor
0 Kudos

I'm guessing your task either uses bus1065.edit, or method employeet.edit

These methods use parameters to fill a parameter id and then call pa30 and skip first screen.

you should either create your own task where you specifically pass the parameters present in the method

these are:

Infotype

Subtype

ValidityBegin

ValidityEnd

FunctionCode (either COP or INS)

Or you use a generic one. In the workflowstep you'll then pass the appropriate parameters to the task.

The agent will then have to click the save button.

If you want to do it fully automatically you'll have to create custom methods which will call either a BDC or make use of FM HR_INFOTYPE_OPERATION

Kind regards, Rob Dielemans

Former Member
0 Kudos

Rob, I bow for you... It solved my problem - Thank you.

pokrakam
Active Contributor
0 Kudos

I stand corrected, thanks

I've been spending too much time with HR's LSO stuff recently where it doesn't work quite so simple anymore. Not a nice module to work with...

Answers (1)

Answers (1)

pokrakam
Active Contributor
0 Kudos

G'Day,

For starters a TS9.... task is not standard

Regarding your situation, I think an easier option may be to write a custom FM to popup a dialog with the necessary data and create the infotype. You can even pass this onto your ABAP team and just plug it into your WF.

Cheers,

Mike

Former Member
0 Kudos

Once again I thank you Mike for a very useful answer. It must have been a brain **** - of course it is not a standard task.

Your answer would for sure be a sollution but is there no way to make it in the workflow without involving an ABAP developer? I mean, could it really be that a task like this, probably wanted by so many, is not directly supported in the default workflow tools provided by SAP?

Edited by: J. L. H. on Jun 26, 2008 12:45 PM

pokrakam
Active Contributor
0 Kudos

Hi,

Not to my knowledge - that doesn't mean someone else won't come up with another suggestion. Everything in HR seems to be tied to something else.

Even if you wanted to do it in PA30 you'd need to code up a BDC to do the navigation, at which point I would rather do my own custom dialog which is more user friendly in any case.

Cheers,

Mike