cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the status value?

Former Member
0 Kudos

Hi Experts

We landed in the starnge situation. We defined a multi task EE Monitor activity to change the status attribute to past due when particular internal event code is overdue. We forgot to assign the correct EE monitor Activity to EE Profile and the report /SAPTRX/EE_MONITOR converted the internal event code to overdue but did not change the status to past due for lakhs of records.

Now we assigned the correct EE Monitor activity to the EE profile. How do we change the status to past due for already processed records? Is there any standard program available for this purpose or shall we need to write any custom program for it?

Your quick response is much appreciated.

Thanks

Ravi

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190756
Active Contributor
0 Kudos

Hi Ravi,

i think the only feasible way is a customer report that changes the status values.

Best regards,

Steffen

Former Member
0 Kudos

Hi Steffen

Is there any template program/function module available for this so that we can copy it and change it according to this requirement?

Please clarify whether the status update by EE Monitor Activity using method STATUS_SET updates only the table /SAPTRX/EH_STAT or will other tables also be updated.

Thanks

Ravi

former_member190756
Active Contributor
0 Kudos

Hi Ravi,

the coding in the EE Mon activity SET_STATUS can be used as template. The method is unfortunately protected.

It depends if you use EE History (Setting in EH Type Customizing). If yes it is importatnt to update also EE History table and the counter in the EH header for the History.

Maybe the easiest way would be to send with a report messages to the EH and do the update in the rule set with the standard activity.

You could use a new event code and react on it in the rule set.

Best regards,

Steffen

Former Member
0 Kudos

Hi Steffen

Thanks for the suggestion. We shall try to use the first option. We disabled EE History in EH. We shall post you on this if we land in any trouble using the first option.

Could you please elaborate your second option, as you said it is easy but we could not understand it?

Thanks

Ravi

former_member190756
Active Contributor
0 Kudos

Hello Ravi,

with option 2 i meant just sending event messages to affected EH and reacting to them in the rule set with just changing the status.

In this case you only have to write a report that sends event messages. The status updates etc. is all done with standard coding when you use BAPI /SAPTRX/BAPI_EH_ADDVENTMSG_02

Best regards,

Steffen

Berthold_vH
Product and Topic Expert
Product and Topic Expert
0 Kudos

Just to mention on Steffen's suggestion: If you send this Event Message as an unexpected event and use also the activity QUIT_EVM_PROCESSING after updating the status you will not even see this event in the Event Handler. But of course it will be on the DB etc.

Best regards

Berthold