cancel
Showing results for 
Search instead for 
Did you mean: 

In debug mode Email Notification's contents are properly in MDG contents subject line and some line of Body missing

former_member233553
Active Participant
0 Kudos

Hi Techies,

In debug mode email notification generates properly with correct subject line and body, but while trying to create ----> approver---> send for revised --> then again requester (resubmit)--> approved (approver), after completion of this cycle,  then email notification generates but subject line and some of the lines in body are missing.

Please help out with suggestion.

Accepted Solutions (1)

Accepted Solutions (1)

former_member233553
Active Participant
0 Kudos

Again it is doing malfunctioning

Former Member
0 Kudos

Hi Kumar,

Check if any dumps in ST22.

Post screen shots of your error.

Check Work Flow log for your change request.

Check for more information for this Mail step in transaction SWIA

former_member233553
Active Participant
0 Kudos

Resolved wait statement should be written at the start of code.

Answers (3)

Answers (3)

former_member233553
Active Participant
0 Kudos

Hi,

It has been resolved now, because in that particular method, set a wait statement of 6 minutes, now its working fine.

Thanks guys for sharing your views.

Former Member
0 Kudos

What kind of error do you get? Can you post screenshots of the good and bad e-mail messages?

How do you construct the text of the subject and body? Do you use text elements or just hard-coded text strings?

Former Member
0 Kudos

Hi Kumar,

Just before Mail step in WF, values might be missing.

I guess you might have created a custom WF and calling this WF in NON USER AGENT table in Rule Based WF for triggering mails.

Now try to create a dummy Task in your custom WF just before the send mail step and in this task call a custom class method.

Inside this class method, put an infinite loop DO. ENDDO. Since most of time MDG execution is done by WF-BATCH user, you cannot put breakpoint.

Now try to repeat same steps and simulate the scenario and go to SM50. There, program will be hanging up in an infinite loop. Try to debug again.

former_member233553
Active Participant
0 Kudos

Yea fine, but WF-BATCH is related to by default of 3 mnts of interval... I have already checked, but after that in method if_usmd_ssw_syst_method_caller~call_system_method, put a wait statement of 15 minutes. but still not getting proper functionality.

Former Member
0 Kudos

Hi Kumar,

As I told, please put an infinite loop code, DO. ENDDO. statement in the method if_usmd_ssw_syst_method_caller~call_system_method or in dummy Task in your custom WF or in place where you are suspecting the values are not getting filled.

After that repeat your steps (CR creation and submission) and in parallel keep checking in transaction SM50. Your process will be running and will hang up. Select the process Go to -> Administration -> Program -> Debugging. to start debug and to have more insights on the issue.



former_member233553
Active Participant
0 Kudos

Hi MDG,

In debug mode mail generates properly with subject line and body. but without debug mode malfunctioning happened.

Former Member
0 Kudos

Hi Kumar,

May be check the Binding tab in your Mail step, whether the required fields are mapped between Work Flow container and Mail Step properly.

Another question, whether two different Mail steps are used ?

One during normal submit and one for Resubmit or is it only one Mail step for both actions ?

former_member233553
Active Participant
0 Kudos

no in BRF configuration differently mentioned in user, non-user and single user decision tables one is simple step for approval and mail will generate and another is for Resubmit.

Former Member
0 Kudos

Hi Kumar,

If two different steps, then as I mentioned compare and check the binding in the Resubmit mail step with approve mail step.