cancel
Showing results for 
Search instead for 
Did you mean: 

BUS2000120 as an attachment in Workflow

Former Member
0 Kudos

I have a requirement to attach the business object BUS2000120 as an attachment to the workflow task so that the user approving can view the details of the object.

I tried assigning the instance of the business object to ATTACHOBJECTS table but it does not work.

Appreciate any help in accomplishing this.

Thanks,

Jagathi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jagathi ,

we had the similar challenge but only with Activity (BUS2000126), but I believe it should be working with Complain (BUS2000120). We implemented the following scenario: when the status of activity was changed to "Rejected", all employees are assigned to the fixed organizational unit should receive express SAPoffice e-mail with the attached link to the activity. Our simple workflow scenario has the following structure:

Event: Transaction was created persistently (start event status = rejected) --> Step1: Container operation -->Step2: Send Mail -->Workflow completed

Prerequisite

The workflow header had been created:

a) Start event was defined (for example, Category = BO, Object type = BUS2000120, Event of the object = CREATED. The workflow is being triggered when complaint is created)

b) Event linkage was activated.

Implementation

1) First of all you should add new element BUS2000120 to your workflow container.

a) Open workflow builder (SWDD).

b) On the workflow container area add new element BUS2000120

Name = BUS2000120

Short Descript = <your description>

Object type = BUS2000120

Parameter settings

Select Import & Export checkbox.

c) Save

2) After the event "Transaction was create persistently" insert step "Container operator"

Result Element = WiGroup_ID

Expression = &BUS2000120&

Operator = Assignment

3) Create new standard task for sending e-mail

a) Open trx. PFTC in new window

Object type SELFITEM

Method SENDTASKDESCRIPTION

Select background processing in Execution section.

b) Go to Container tab and create new element BUS2000120 as described in the first step.

c) Save task

d) Exit transaction

4) Go to workflow builder and add "Send Mail" workflow step after the "Container operation" step.

a) Define recipients for receiving e-mail.

b) Select "Send express" checkbox

c) Go to Control tab and insert the number of task created in the previous step.

d) Click on the "Binding" button

Task container <-- Workflow container section

Attachments = &_WI_GROUP_ID&

BUS2000120 = &BUS2000120&

Task container --> Workflow container section

BUS2000120 = &BUS2000120&

5) Save and activate your workflow

Note: make sure that the event linkage is still active.

Best regards,

Alexey

Former Member
0 Kudos

Alexey,

Thank you very much for your detailed response. The link I get in the email is not working. Any idea where it gets the server, port name to form the URL?

Also one more requirement I have is to send the link to the UWL in email. Any help in this area will be appreciated.

Thanks,

Jagathi