on 10-26-2009 4:27 PM
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 .
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.