cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic task description

Former Member
0 Kudos

Hi Experts,

Can any body help me in this problem. I want to change the task description dynamically. In my present description it is "you may need to log off the SAP system and log back in". But now i want it as ' You have to log off ' or ' You don't have to log of ' depending on the system setting.

So can anybody help me in this regard.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

you can use expression with format &..& to put the element of the task container in the descrpition part. There is one point i want to emphaize: it is impossible to put multiple line content of the variable at runtime. If the content of variable is too long, the content will be truncted. So, value of experession should be as short as posible.

former_member185879
Active Contributor
0 Kudos

Hi Naidu,

Did you got answer for your question?

Regards

SM Nizamudeen

Former Member
0 Kudos

Hi,

Thank you for your response. This is not yet solved. Do you have any solution for this?

If so please help me.

Regards

Naidu

former_member185879
Active Contributor
0 Kudos

Hi Naidu,

Can you follow this process:

Goto T-Code PFTC_CHG and give the task number For Ex: 974XXXXX.

Goto Task Description Tab :

Change the description into change mode or double click on that description page. Now, you will go to editor page.

In that type your description. Press EXPRESSION button on top row. Double click the element you want to check. it will appear in the description like &EMP_NAME&.

Ok. Now write your condition in that editor.

in the first column of that editor go for F4 help and select command line to write your condition. For Ex:

/: If &Emp_Name& eq 'X'.

  • The employee name is X.

/: else.

  • The employee name is Y.

/:endif

I'm not sure about the symbol ( /: ) but select command line option.

I think it will solve your problem.

Regards

Nizamudeen SM

Edited by: Nizamudeen SM on Nov 3, 2008 5:07 AM

former_member185879
Active Contributor
0 Kudos

Hi Naidu,

Please check the code and close the question if you got the answer.

Regards

SM Nizamudeen

Former Member
0 Kudos

It is simple coding in the Task desciption. You can add IF statement there accordingly description will change.

Thanks

Arghadip

Former Member
0 Kudos

Hi,

Thnk you for your prompt response. Sorry i was not available at office so that i couldnt reply you.

I have a doubt regarding this can we write ABAP code in text editor?

And one more thing is how to link this message with system settings?

Because they need depends upon the system settings it has to restart the SAP server. Can you help me in this regard please?

Thanks & Regards

G.S.Naidu

Former Member
0 Kudos

Hi,

Goto open your workflow in display mode and then goto corresponding task and then goto task description.

Then change mode from disp. to chng.

you can insert your description from container element.

goto change editor.

from extras -->insert expression you can insert container element.

Hope magic works!

Regards,

Purvesh.