cancel
Showing results for 
Search instead for 
Did you mean: 

APO alert generation for machine breakdown in EM

former_member195779
Active Participant
0 Kudos


Hi,

I have to generate PPDS alert for machine breakdown, as soon as Event is trigeering in EM.

I have already created Alert Profile for PPDS. I have activated Machine Breakdown(SCEM) under PP/DS Resource alerts.

But still alerts are not generating in PPDS.

Events are shoeing in Even handler list for notifications.

Regards,

Amarnath Dube

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Amar,

1. Execute /N/SAPAPO/AMON_SETTING

2. Go to your newly defined alert profile PPDS under APO: Production Planning / Detailed Sch.

2. Select Selection Tab

3. Go to PP/DS Resource Alerts -> Machine breakdown (SCEM)

4. Select the check box.

Now check the alerts are generating in PPDS.

Regards

GGOPII

former_member195779
Active Participant
0 Kudos

Hi Gopi,

I already done that. But no alerts are genrating.

Regards,

Amarnath Dube


former_member190756
Active Contributor
0 Kudos

I think you have to create a new EH and send the messages again. And maybe check the settings in /SAPTRX/TSC0TT for your EH Type.

Log EH Posting

Log Msg. Proc.

Log Ext. Updates

Set the them all to 3 Verbose. (Later if everything runs set them back to 1 or no logging at all.)

Then create a new EH and send messages.

Best regards,

Steffen

Former Member
0 Kudos

Hi Amarnath,

Can I have SLG1 log what it shows?  We can see where it is stopping to generate PPDS alert.

Regards

GGOPII

former_member195779
Active Participant
0 Kudos

Hi Steffan,

Now i got the logs in Event handler list not in SLG 1.

But too many return codes are there with return code not equal to zero.

First is "Task IS_MACH_BRK_REPORTED, method ACT_IS_EVENT_REPORTED, return code     1"

Regards,

Amarnath Dube

former_member190756
Active Contributor
0 Kudos

Hi Amarnath,

the task checks for:

Is Unexpected Event 'Machine Breakdown Already Reported

As this is not the case the rest of of the tasks including the PPDS Alert Activity is not called.

I'm not so familiar with this scenario. But if you report this event the PPDS Alert Activity should be called.

Best regards,

Steffen

former_member190756
Active Contributor
0 Kudos

Just checked it in detail:

Logic is:

If unexpected event MACH_BREAK is already reported it quits processing.

If it is not reported it should process:

40 INFORM_MACH_BREAK RESEND_MULTIPLE IS_MACH_BRK_REPORTED

50 INFORM_PLANNER_ALERT SEND_PPDS_APO_ALERT IS_MACH_BRK_REPORTED

Could you maybe post a screenshot from the Event List in transaction /SAPTRX/EH_LIST of this EH?

Best regards,

Steffen

Former Member
0 Kudos

Hi Amar,

The code exit as event is already reported and shows return code "1".

Can you check in table /SAPAPO/AM_ALERT whether the alert is already triggered?

Also, check this SAP APO Alert OSS Note 495166 - Tips and Tricks for Handling Alert Monitor, which may help you.

Regards

GGOPII

Former Member
0 Kudos

Hi Amarnath,

Would you able to resolve and find a root cause for this issue?

Regards

GGOPII

former_member195779
Active Participant
0 Kudos

Hi Gopi,

There is no entry in table  /SAPAPO/AM_ALERT.

I cheked your given NOTE. I already done the settings which are prerequisted for Alert Generation.

But no alerts are generating

Regards,
Amarnath DUbe


former_member195779
Active Participant
0 Kudos

Hi Steffan,

Please see the attached EH list.

Regards,

Amarnath Dube

former_member190756
Active Contributor
0 Kudos

Ok,

the Machine Breakdown is already reported.

You should start with a complete new example. Then the APO Alert activity should be called when reporting the Breakdown. Or you just change the ruleset and allow double reporting of the Breakdown.

Best regards,

Steffen

Former Member
0 Kudos

Hi Amarnath,

It is quite strange.  Set breakpoints in functional modules /SAPAPO/AMON_RES_BREAKDOWN_SET and /SAPTRX/SEND_PPDS_APO_ALERT and reprocess event message.  You have to sit with ABAP'er to find out the root cause through debug mode, if it is not happening again.

Regards

GGOPII

former_member190756
Active Contributor
0 Kudos

Did you check the log in SLG1 for your Event Message processing?

Was the activity called?

Is there any Return Code not equal 0 in this task?

Did you set the BAPI commit indicator (if APO is not on the same system)

Best regards,

Steffen

former_member195779
Active Participant
0 Kudos

Hi Steffan,

There is no logs in SLG1.

I have set the BAPI commit indicator.

What activity should be called?

Regards,

Amarnath Dube


former_member190756
Active Contributor
0 Kudos

I think you use SEND_PPDS_APO_ALERT.

If no looging is there you must switch it on in your activities like here:

former_member195779
Active Participant
0 Kudos

Hi Steffan,

I have done that setting too. But no logs are generated.

Regards,

Amarnath Dube