cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:intimation mail

Former Member
0 Kudos

Hi ,

We are working on one development for this we are using exit:MV45AFZZ and written code on it.The logic we have written is when ever the field FPLT:FAKSP is blank at contarct level ,then it should trigger an intimation mail .First time it is triggering mail and even when we go go second and third time and make some change other than field FAKSK again it is triggering mail.How to stop further mails ,it should trigger only when we make change in field FAKSK only .Pls help.

Regards,

Sash .

Accepted Solutions (1)

Accepted Solutions (1)

jignesh_mehta3
Active Contributor
0 Kudos

You will have to write a logic in your ABAP code which would count the numbers if intimation sent for a particular Contract.

This logic would restirct sending of the intimation only once. Your ABAPer can easily develop this count logic.

Thanks,

Jignesh Mehta

Former Member
0 Kudos

Hi ,

We have given the logic for exit:MV45AFZZ and it is triggering when removing the filed FAKSP .And when we go to change mode of contract and make other changes other than FAKSP again it is triggering.We want to restrict the intimations ,when we do not touch that field.How to control the mails further ?

Thnaking you in advance .

With Regards,

Sash.

jignesh_mehta3
Active Contributor
0 Kudos

I understand your point. You want to send the intimation mail only once. next time when you change any other data, intimation mail should not be changed.

For this as I suggested you will have to define a count variable in your ABAP code. The value of the variable would be zero at start.

Now when system would send first intimation, the value of this variable would become 0 + 1 = 1

In future when the any changes are done to the document, the system would try to send the intimation again & increase the count variable to 1 + 1 = 2, but your ABAPer would have to write the logic such that intimation mail should be sent only if count in the variable is 1.

Give this requirement to your programmer & he would do the needful.

Thanks,

Jignesh Mehta

Answers (0)