Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow settings and BOR

Former Member
0 Likes
685

Hello Experts,

I have the following Scenario:

The BOR objects KNA1 and KNB1 are extended to create events for creation and changing the customer master. The change documents are configured to trigger these events whenever a customer is created or changed (Tocde) using SWEC.

My requirement is as follows:

I NEED to develop a single -task custom workflow template will be developed as a event receiver. This workflow needs to do the following:

• Needs to check if the customer exists

• Needs to collect all the information pertaining to the interface

• Needs to call the RFC-enabled function module to interface the data to the Middleware and to other non SAP- Systems

• Needs to write to an error log if the interface is failed

How do i acheive this? I need valuable suggestions with code/ config settings steps.

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
621

Hi,

Other then, creating subtypes of kna1 and knb1, delegate them and then extending them with events,

You can also extend them with attributes and methods, to fulfill all of your requirements. these methoda are then used in workflowtasks which are used as steps in a workflow template.

Kind regards, Rob Dielemans

3 REPLIES 3
Read only

Former Member
0 Likes
622

Hi,

Other then, creating subtypes of kna1 and knb1, delegate them and then extending them with events,

You can also extend them with attributes and methods, to fulfill all of your requirements. these methoda are then used in workflowtasks which are used as steps in a workflow template.

Kind regards, Rob Dielemans

Read only

Former Member
0 Likes
621

Hi Rob,

Could you pls elaborate on how do i code & where in the workflow task in the following (with Tcodes):

• Needs to check if the customer exists

• Needs to collect all the information pertaining to the interface

• Needs to call the RFC-enabled function module to interface the data to the Middleware and to other non SAP- Systems

• Needs to write to an error log if the interface is failed

Thanks

Read only

0 Likes
621

If you can't instantiate Business object KNA1 then the customer doesn't exist.

You can also use method ExistenceCheck of that BO.

The rest is probably custom methods, although method execute of BO TRDIR allows you to execute programs.