cancel
Showing results for 
Search instead for 
Did you mean: 

SWEC customizing

Former Member
0 Kudos

Hi, I have created a new event for a new BO which heritate from BUS2105 (purchase requisition);

when the purchase requisition is created, the event is triggered.

The problem is that when I try to customize the SWEC transaction, I am not sure of the object class for purchase requisition, there is the object class BANF but I am not sure.

any idea?

thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Then, how can I link the creation of a PR and the new event I have created for BUS2105?

thanks

saumya_govil
Active Contributor
0 Kudos

Hi Christophe,

Yiou need to add an entry in SWEC to link your BO event to the PR creation.

Execute Transaction SWEC.

Click on new entries.

Change document object = 'BANF'

Object type BUS2105

Event <your event>

Select Field Restriction.

Click on New Entries

TABLE : EBAN

Field name: DISPO

OLD value *

New Value *

Hope this helps!

Regards,

Saumya

Former Member
0 Kudos

Hi,

in the field restriction, why put the field DISPO of table EBAN?

why not the field BANFN?

thanks

saumya_govil
Active Contributor
0 Kudos

Hi,

It is just an example. Use the field you need as per the requirement.

Regards,

Saumya

Former Member
0 Kudos

it does not work, the workflow is not triggered when I create a PR.

When I check the transaction SWEL, there is nothing logged so I conclude that the link between the event and the PR creation has not been done successfully.

thank you.

Former Member
0 Kudos

Can some one help me to link the PR creation with a new event of BO BS2105?

thank you.

imthiaz_ahmed
Active Contributor
0 Kudos

There is no need for field restriction unless required. Plus what option you have chosen when you made entry in SWEC, "On Create" "On Change" "On Delete" and What action you are performing on PR.

Regards, IA

Former Member
0 Kudos

Yes there is no need for field restriction

in SWEC I have chose the option On create

I want to trigger the new created event when I create a new PR

thank you.

saumya_govil
Active Contributor
0 Kudos

Hi Christophe,

If you want to trigger a workflow using BO event you need to make an entry in SWETYPV transaction to do event linkage to the workflow.

Else you can manually go to t-code SWDD and set your BO event as the trigegring event of the workflow.

To do binding between the BO event and workflow perform the following steps:

1. Go to t-code SWDD and open your workflow template.

2. Go to Basic Data (cap sign button at the top of the screen) or click Ctrl + F8

3. Go to Start Events tab.

4. In the Object type enter your BO name, in Event of object enter the BO event.

5. Click on 'B' i.e. Binding Defined, click on generate automatic binding. It would automatically generate the appropriate binding for the workflow. You can also alter the binding as per requirement.

6. Click on 'C' i.e. Start Condition. A dialog would open, select the appropriate start condition for the workflow. Check the condition before saving (recommended).

6. Click on 'A' to Activate the binding and start condition. All 'A', 'B' and 'C' would get green.

7. Save the changes made and activate your workflow.

Please check if the following links help you regarding workflows:

http://saptechnical.com/Tutorials/Workflow/Workflow.htm

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario

/people/sapna.modi/blog/2007/02/19/workflows-for-dummies--introductionpart-i

Hope this helps!

Regards,

Saumya

Former Member
0 Kudos

Hi,

I have already done the linkage between the BO event and the workflow in transaction SWETYPV .

The workflow has been well customized, I have already done the steps from 1 to 7. One remark, there is no start condition for the workflow.

I think the problem comes from the linkage between the PR creation and the BO event.

I have added a new entry in transaction SWEC as followed

Change document object = 'BANF'

Object type BUS2105

Event <your event>

Select Field Restriction.

Click on New Entries

TABLE : EBAN

Field name: BANFN

OLD value *

New Value *

It is not working, I do not know the source of the problem.

Former Member
0 Kudos

One more precision, I said the problem comes from the linkage between the document creation and the BO event triggering because when I trigger manually the BO event using SWUE, the workflow is triggered successfully.

thank you.

saumya_govil
Active Contributor
0 Kudos

Hi Christophe,

The problem is that when I try to customize the SWEC transaction, I am not sure of the object class for purchase requisition, there is the object class BANF but I am not sure.

Please explain why do you need to customize the SWEC transaction?

Also refer to the following link:

http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4aeef453d11d189430000e829fbbd/frameset.htm

Regards,

Saumya

Former Member
0 Kudos

Hi,

I want to customize the SWEC transaction because I have created a new event and I want to link it with the PR creation.

thank you.