on 04-19-2016 11:09 PM
In EM system event handler is getting created from TM and EH status like Shipment End getting updated from ECC.
Currently we are facing issue is that event handler is getting created in EM system but when we update Shipment End status in ECC
then in EM ,EH status not getting updated.
I checked RFC and Que blocks and no issue found.
Also no application log.
What else needs to checked?
Ravi
Hi Ravi,
Need more info. Is event getting getting posted in EM from ECC? Did you deactivate app logs? If not then no application log of /SAPTRX/ means data did not flow into EM.
If possible give relevant screen shots.
Thanks,
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi GGOPII,
Still EH is not getting updated from ECC to EM.
When I am updating Shipment Start Status in ECC then in EM event handler/tracking ID is not getting updated with Actual Reported date.It should update Shipment Start Date Event.
But I can see in the report /SAPTRX/EE_OVD_LIST Expected Event overdue list, lots of records getting updated.
Regards
Ravi
Hi Ravi,
That's the reason I asked you if EM is getting the event or not in my first post:) Based on your note, looks like Shipment event didn't make it to EM. Can you explain how you are generating the Shipment Start event in ECC and what objects you are using? There is no automatic way of sending the event unless you design ECC to send shipment start event to EM.
Please let us know your process and we can figure out why it's not happening.
Thanks,
Vishnu
Hi Ravi,
The expected event of Shipment start is expecting to report but it couldn't make it, so it is appearing in over due list for event handler.
Go to SAP ECC and check first Shipment start event configured, if yes then check the event condition whether it has fulfill to flow into SAP EM. May be event condition failed/not fulfilled or not configured to trigger properly.
Put the breakpoint in method and start debugging. You can find out the rootcause.
BADI Implementation Name - /SAPTRX/LE_SHIPMENT Shipment Processing
Interface Name - IF_EX_BADI_LE_SHIPMENT
Implementation Class - /SAPTRX/CL_IM_LE_SHIPMENT
Method - BEFORE_UPDATE
Regards
GGOPII
Hi Ravi,
It's hard to help you without screenshots.
My advice, since you are not tracking shipments but you need shipment related info onto TM related Eventhandler, is to abandon standard badi which calls standard shipment BPT ESC_SHIPMT.
You really do not need it unless you are tracking ECC shipments. You might as well call BAPI directly to send the shipment event to FO EH from Shipment badi, by implementing BADI_LE_SHIPMENT.
This is better for your performance.
Here is the flow if you need it:
ZBADI_LE_SHIPMENT -> /SAPTRX/BAPI_EH_ADDEVENTMSG_02 -> EM EH. If interested, let me know and I can give more info. This process is also much simpler than going BPT route.
Thanks,
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks everyone for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
1. Go to ruleset under Define Rule Sets -> click multitask activities -> select your Shipment create/end status -> click Tasks -> Add New Entries -> enter new Task -> select STATUS_SET in activity, assign previsions task and assign, Logic operator =, Prev Ret. Code equal to blank, Assign Stat. Att. Name (you need to define new one if you don't have) and Assign Stat. Att. Value (you need to define new one if you don't have).
Vishnu also given screen shot to you on STATUS_SET.
Refer my previous discussion which I referred same ruleset multitask activity to check.
"Hi Ravi,
In that case, you have to set status in existing rule set when shipment end is completed.
Refer the config e-g OBP10_GI_SHIP how to set the status on your ruleset.
As I mentioned above, you need to configure Status Attribute Name and Status Attribute Value in IMG path, if the status is not created yet.
Regards
GGOPII"
Regards
GGOPII
Thanks GGOPII,
Currently in EM system Shipment Start Date is getting reported from TM.
Now the requirement is that when in , ECC Shipment Start is posted then in EM, Shipment Start Date
should get posted under Reported Date/time.,
Don;t know what changes I have to make in ECC or in EM?
Regards
Ravi
Hi Ravi,
1. Go to SAP ECC and check SAP EM event type is configured for Shipment Start (Could you post screen shot if you can with masking client information?).
2. Go to SAP EM and check Shipment Start event is in Expected event, if yes, then could you post a screen shot of ruleset which has Shipment Start multitask activity. We will guide you how to update/edit the Shipment start ruleset to set the status.
Regards
GGOPII
Hi Ravi,
So from ECC, are you getting Shipment event to EM or not? Only way you can update the Reported Date/time is by sending the event from ECC to EM and at the same time update the status of EM.
Other way to update the Reported Date/time is from TM provided you have the ECC shipment date/time available on the TM document.
Post your BADI screen shot ( code ) and your EH and Tracking ids screen shot.
Thanks,
Vishnu
Hi Ravi,
You are saying it was working earlier and now it is stop working. If that's the case, you need to check event relevance condition in SAP ECC that may not be fulfilled or some recent changes which client made that would have impacted to stop working. The best approach would be start debugging the BADI which I have given.
Could you please post screen shots to check otherwise?
Regards
GGOPII
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ravi ,
I suggest you check the rule set thoroughly , the event handler status will be updated via rule set , there will be step which checks posting of particular event in event management eg .
If Event - " Shipment Departed" is Reported ,
If Yes --> Change Event Handler Status to " Departed"
Check if your rule set has any such events or actions linked to updation of event handler status.
You can check the standard rule set for shipment scenario to understand the updation better.
Regards,
Arun Yesodharan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
Shipment event status update happens through Status Attributes, Ruleset etc if you have configured in SAP Event Management.
1. Go to Tcode /SAPTRX/EH_LIST -> Check in Status Detail
2. If you don't find any, then go to event handler type of event handler in IMG -> Event Handlers-> Event Management -> Event Handlers and Event Handler Data -> Define Event Handler Types and check Stat.Attr.Pro.
3. Go to IMG -> Event Handlers-> Event Management -> Event Handlers and Event Handler Data ->Statuses -> Define Status Attribute Profiles -> Check Shipment event status assigned here.
4. If yes, then take status profile item and value
5. Check in IMG -> Event Handlers-> Event Management -> Reactions to Event Messages -> Define Rule Sets -> Multitask Activities -> check ruleset assigned to set the status for event handler for shipment end event. Check rule condition ignores to set the shipment end status on any validation.
Check all these things and let me know.
Regards
GGOPII
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
In that case, you have to set status in existing rule set when shipment end is completed.
Refer the config e-g OBP10_GI_SHIP how to set the status on your ruleset.
As I mentioned above, you need to configure Status Attribute Name and Status Attribute Value in IMG path, if the status is not created yet.
Regards
GGOPII
User | Count |
---|---|
9 | |
4 | |
3 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.