‎2006 Dec 02 8:56 PM
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
‎2006 Dec 04 9:39 AM
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
‎2006 Dec 04 9:39 AM
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
‎2006 Dec 04 2:00 PM
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
‎2006 Dec 04 3:59 PM
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.