Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

IDOC triggering with Even Linkage for IW32 & IW22

$
0
0

Hi All,

 

I have to trigger the IDOCs for message type IORDER whenever there is a change in Order (IW32) using the Event Linkage.

 

As there is no standard event in BUS2007 for change, i have delegated the BUS2007 with custom Event CHANGED with CHANGE method and few lines of code for IW32.

 

BEGIN_METHOD CHANGE CHANGING CONTAINER.

BREAK MANISH.

DATA: TCODE LIKE TSTC-TCODE.

*  SWC_GET_ELEMENT CONTAINER 'Transactioncode' TCODE.

   SWC_GET_ELEMENT CONTAINER 'TRANSACTIONCODE' TCODE.

   CALL TRANSACTION TCODE.

END_METHOD.


Now to trigger the Event on any change in IW32, I have configured the Event Linkage in SWE2 with following parameters:

 

Object Category: BO

Object Type: BUS2007

Event : Changed

Receiver type: 'test' (I assume it can be any text)

Receiver Call: Function Module

Receiver Function Module: ZTEST_FM (Template copy from SWE_TEMPLATE_REC_FB) No Code for now.

Destination of receiver: RFC created by Java developer with JCo path in RFC

Event Delivery: tRFC

Linked Activated : tick

 

I put my code in the RFC Enabled  Receiver Function Module "ZTEST_FM" to trigger the IDOC using the IDOC triggering Function module: "MASTER_IDOC_DISTRIBUTE" but I am not getting any IDOC in IW02.

 

When i put the External Breakpoint in custom FM, ZTEST_FM, it is not getting to it.

 

When i see the Event log in SWEL, i get the Trace Data as

 

Action : Receiver started correctly

RFC Status : The JCoServerFunctionHandlerFactory com.sap.conn.

 

 

I am not sure where i am wrong.

Need your Input to run this scenario.

 

 

Regards,

Manish


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>