cancel
Showing results for 
Search instead for 
Did you mean: 

changing workflow for LSO

Former Member
0 Kudos

hi,

i am facing a problem here: i am completly new to sap-workflow.

we start with LSO - learning solution very soon. there we have a learn-portal where users can book courses and trainings. and there is a workflow behind it.

now i want to change the email which is created from that workflow. i have to include the price of the course to the email.

how can i handle this ? i have copied the sap-standard-workflow, but i have no idea how to put in the new values there ?!?

best regards, Martin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Martin

If those details are not present then you need to create a 'subtype' of the Business Object whose event gets triggered which in turn starts the workflow, this will allow you to add 'Attributes' like price for example and show them in the text....

Have a look on <a href="http://help.sap.com/saphelp_nw04/helpdata/en/2f/c9a937a7777c38e10000009b38f842/frameset.htm">SAP Help</a> for more detailed info. Once you create a subtype, you need to delegate it to the parent one from which you created the subtype. After delegation, the new attribute should be available in the workflow for your use....The tcode for this is SWO1..

Good Luck

Ravi

Former Member
0 Kudos

thanks ravi,

well, as i am also new to business objects: is this a modification or do i have to copy the WHOLE business object to a Z-version ?

best reg, Martin

Former Member
0 Kudos

Hi Martin

You have to create a subtype...the i'll automatically inherits all the attributes,methods and events from the supertype(SAP Standard Business object).

Then you have to create your own attribute or method or event...After that you should delegate the subtype to supertype...

Regards,

Hemalatha

Former Member
0 Kudos

hi,

thanks for your help !

now i was able to add my Z-business object to the workflow, BUT:

i know how to catch the data, but i want to put it into a mail which is part of the workflow. this is no problem with 'normal' fields, like the price.

but how does it work for tables ?? i want to add a text-table to the mail, which comes back from one of my methods in the z-business object. how can i display the table-lines in the email ?

b. regards, Martin

martin_nooteboom
Active Contributor
0 Kudos

Hi Martin,

In the same way, when you add the multiline element the system will ask you what you want to do. Add only the first line or all (with two options).

Regards,

Martin

Former Member
0 Kudos

hi martin

where the system should ask me ? that does not work. I only can place the first line of the table there.

best regards, Martin

martin_nooteboom
Active Contributor
0 Kudos

That is strange, normally when you add a multi-line element you get a pop-up. I couldn't check right now, I'll try to get back to it tomorrow.

Regards,

Martin

Former Member
0 Kudos

okay, now it is okay, but still a problem:

i want to put the lines of the table in a seperate line in the email. for every entry in the table (text) i want to add a line in the email.

when i do it that way:

Text: &TABLE.TEXTLINE&

i get all the lines, but concatenated one after the other, that looks very bad

ideas ?

regards, Martin

Message was edited by:

Martin Svik

martin_nooteboom
Active Contributor
0 Kudos

Hi Martin,

How do you add the element to the text? When you use the button expression and you select a multi-line element you should get a pop-up which asks you if you want only the first line, all lines as cont. text or all lines with line breaks.

Regards,

Martin

Former Member
0 Kudos

hi Martin,

where is the button 'expression' ?

in the workflow builder in 'binding' i change the binding of the workflow. there i move the field 'from left to right'.

how can i handle it another way ?

reg, Martin

Former Member
0 Kudos

Martin,

the problem is solved !!!!!! i was kind of 'blind' as i have not seen that you have to do it in the editor of the text !

full points rewarded !

best regards, Martin

Message was edited by:

Martin Svik

martin_nooteboom
Active Contributor
0 Kudos

You need to go to the task and edit the task description. Then you have to insert the multi line container element from the task (it is multi-line there?). Then when you edit the text you have the button there (or from the menu Insert -> Expression). When the element is inserted it looks something like this: &Text##&.

Regards,

Martin

Answers (0)