cancel
Showing results for 
Search instead for 
Did you mean: 

Event triggering thru IDOC not happening

Former Member
0 Kudos

Hi Experts ,

when i am saving transaction iw39 after changin status

in swel this business object AFVC_PM Object and ZUSERSTATUSCOMPLETED event is getting triggered and this event is getting triggered from transaction SBVW .

Now i am doing the same process using IDOC in IDOC prog IDOC_INPUT_IORUPD .

In this program status is getting changed using function module I_STATUS_CHANGE .

But this IDOC program is not triggering my workflow .

Please guide me how i can trigger the same workflow for my inbound idoc .

plz hlp me is very urgnt .

Thanks in advance .

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

First check wheather you have configured your inbound idoc properly.

1. First if you have created your own function module add the FM in tcode BD51.

2. Then in tcode WE57 check your FM is assigned to idoc type and the BOR or assign it.

3. Then in WE42. Create inbound process code .Select option processing by task and in identification field give your workflow number.

hope this will help you.

former_member554978
Active Contributor
0 Kudos

Please check the settings in BSVW tcode aginst your status and BOR.

narin_nandivada3
Active Contributor
0 Kudos

Hi,

Try triggering the event this way..


  CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
    EXPORTING
      object_type     = 'AFVC_PM'  
      object_key      = lv_object_key " Key parameters
      event           = 'ZUSERSTATUSCOMPLETED'
      commit_work     = 'X'
      event_language  = sy-langu
      language        = sy-langu
      user            = sy-uname
    IMPORTING
      return_code     = lv_return_code
    TABLES
      input_container = lt_container " Pass the values to event container
      message_lines   = lt_messages.

Hope this may help you.

Regards

Narin

former_member554978
Active Contributor
0 Kudos

Try these below options:

1. switch on the event trace in SWELS and try creating the IDOC in WE19 and check in SWEL, whether you are getting any events triggered for your BO.

2. check for any user exit in your inbound FM and in that using SAP_WAPI_CREATE_EVENT trigger the WF.

Former Member
0 Kudos

experts

there is no exit available in this code .

but ya i can create an implicit enhancement in it .

actually this option was dere but does ne1 has ne idea that if it is getting triggered at d time of changing the status ON CLICK OF save in the transaction why it is not getting triggered at the time of changing the status by function module .

This explaination i need to give to the client .

thanx in advance

former_member185167
Active Contributor
0 Kudos

Hello,

Please use complete words, it makes it easier to read.

The transaction probably calls the fm to change the status as well as other function modules to create the event.

regards

Rick Bakker

Hanabi Technology

Former Member
0 Kudos

Hi ,

Thanks for your reply .

i dnt no how this transaction is changing the status .

But on change of status this event is getting triggered .

But when i am changing the status thru function module in my inbound IDOC program this event is not getting trigged and i am not able to know how this event will get triggered without using any function module or without creating any enhancement in the standard program of inbound IDOC .

Thnks

chaiphon
Contributor
0 Kudos

For this requirement, why don't you just trigger the event directly using function module SWE_EVENT_CREATE? Just pass object 'AFVC_PM',object key(RoutingNumber & Counter), event ZUSERSTATUSCOMPLETED, and event parameter if needed.

Cheers,

Chaiphon

Former Member
0 Kudos

Please check in SWEL whether the event is actually getting triggered. If not there is some problem with status.

I think the event might be getting triggered but with some error. Probably some manadatory parameter is not getting passed.

Thanslk

Arghadip

Former Member
0 Kudos

HI ,

i checked in SWEL nothing is dere .

no event is getting triggered and when i am checking the status in the transaction it is getting updates successfully .

everything is perfect except that event is not gettig triggered .

what parameters i can check what approach i can follow .

Plz guide

Thanks in advance