cancel
Showing results for 
Search instead for 
Did you mean: 

Variable for personnel no in workflow

Former Member
0 Kudos
91

Hello all,

I had prepared a workflow in which i am sending a mail to administrator if any employee changes his/her personnel data.Now with this mail i want to send the personnel no of the respective employee who changes the personnel data.I tried using variables but it just displays 00000000.

Please give the detail explanation.I need it urgently.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Anand,

Pls check follwing points:

1. Have you done binding for <i>_EVT_Object</i> element for event container to Workflow container binding. By this, you will receive instance of object in workflow.

2. Check the Object as received above is passed in binding for send mail step.

Then you will be able to use its attribute to send it in mail's description.

Hope this helps.

Regds,

Akshay

Former Member
0 Kudos

Hi,

Can u please explain me how to check for this binding.And will this object contain personnel no employee.

Former Member
0 Kudos

Hi,

1. Let me know what object type you are using. So that I'll be able to tell you whether Personnel no will be availabe in attribute.

2. Regarding checking binding for EVTOBJECT : Check at the <i>Triggering events</i> Tab in workflow builder, select the Event linkage entry and click on <i>binding</i> Button.

Hope this helps.

Regds,

Akshay

PS: Some points would be nice if it helps.

Former Member
0 Kudos

Hello,

I am using persdata as object type and two events.Changed and Create.

former_member186746
Active Contributor
0 Kudos

Hi,

PERSDATA holds the personnel number in the key (check swo1 for persdata, then open the keyfields)

You're interested in the person who changed the data, normally you can use the event --> Wf binding for that, just link &_EVT_CREATOR& to a containerelement capable of holding that data (e.g wfinitiator)

Kind regards, Rob Dielemans

Former Member
0 Kudos

Hi,

It is giving me error when i do this binding.Also the keyfield does not give any personnel no when inserted in the mail.

former_member186746
Active Contributor
0 Kudos

yes, that is possible if in the workflow a) the container does not existor b) tha wf container has different format than evt_creator)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

1. Check for the container element (personnel number) in the workflow log.

2. If you can find the value then, open the mail task in transaction(PFTC_CHG)

and add a container element of the format personnel number as import

parameter.

3. Do the binding between workflow container (personnel no) and mail step

task container (personnel no).

4. If you cannot find the value for personnel number in the workflow log then

it is something to do with the task from where you get the personnel number.

Regards,

Manikandan R