on 2020 Dec 09 5:25 PM
Hi Experts,
I have two activities attached at operation level in SAP ME. My requirement is if there is error in first activity then second activity should not execute or at least I should able to capture error from first activity.
First activity is "Check_Resource_Setup"
Second is "MII TRX"
Can you please let me know possibility of how I can achieve this?
Thanks,
Neha
Request clarification before answering.
Hi Neha,
You will have to use the ME SDK and create a new activity which is a combination of both of the original activities, you will be able to define the execution logic and capture the error message which can be displayed on the POD as a custom error message.
Thanks
Kevin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin and Neha,
If the second activity already is a MII Transaction, you could also incorporate the "Check Setup Status" as an additional pre-check step into this MII Transaction and react accordingly.
Best regards, Michael
Hi Michael,
Agreed, however an MII Transaction has very limited capability when it comes to handling errors and displaying error messages, this is handled much better by the SDK. You can of course create a service extension to capture the error and add your own custom message but you will achieve must better performance and scalability using the SDK.
Thanks
Kevin
Thank you Kevin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin,
Thanks for information.
This service extension method will be useful to capture exceptions if other service extensions give error at PRE or POST point.
In my case the check is on the activity hook so exception will not be captured. Please let me know if my understanding is incorrect.
Thanks,
Neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin and Michael,
Thank you for quick response.
As short term solution I can use "Check Setup Status". In long term solution and in case of more complex logic I agree SDK is better for performance and scalability.
@Kevin,
Custom service extension you are talking about ,is it using SDK or MII transaction?
Thanks,
Neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
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.