cancel
Showing results for 
Search instead for 
Did you mean: 

Where to add the validation before triggering mail in dunning.

gagan_narendra
Explorer
0 Kudos

Hi All,

Hi while running the dunning through F150 Tcode the mail are getting triggered.

I need to add few validations based on the customer and respective plant in such a way where if this validation is successful then only the mail needs to be triggered to the respective mail ID.

I am not able to find where I can add this validation as I am not able add any breakpoint for the dunning as it runs in background.

Could anyone guide me for this.

Accepted Solutions (1)

Accepted Solutions (1)

gagan_narendra
Explorer
0 Kudos

Thanks Florian Henninger,

But I came to know that if I create a custom replica of FM FI_PRINT_DUNNING_NOTICE_SMARTF then I could add my validation before the FM PRINT_DUNNING_NOTICE_SF is called.

As the FM PRINT_DUNNING_NOTICE_SF is responsible for calling the smartform and sending the mail.

Now Is it a correct approach or not, that's what I don't understand.

Answers (1)

Answers (1)

Florian
Active Contributor
0 Kudos

You just have to schedule the run immediatly and set the flag for testrun. Then you can debug it.

To give you a coding-line to put your validations in is difficult because of not knowing what you want to validate and when.

But this doesn't matter if you are able to debug.. 🙂