Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sales order mailing

Former Member
0 Likes
805

Hi All,

When i create a sales order (TCode:VA01) a mail should be triggered. The mail portion is written in a ZProgram where a break point has been set. After the creation of the Sales order a mail is being triggered but it doesnot stop at the ZProgram. i need to check out why it is happening so. Can anyone help me to solve this issue.

Thanks in Advance,

Regards

Rijish

Hi All,

When i create a sales order (TCode:VA01) a mail should be triggered. The mail portion is written in a ZProgram where a break point has been set. After the creation of the Sales order a mail is being triggered but it doesnot stop at the ZProgram. i need to check out why it is happening so. Can anyone help me to solve this issue.

Thanks in Advance,

Regards

Rijish

7 REPLIES 7
Read only

Former Member
0 Likes
779

Hi Rijish,

Have you used any exit program to write zprogram? .

cheers:

santosh:

Read only

0 Likes
779

Hi santosh,

Thanks for your reply. I haven't used any exit programs in this ZProgram. What is the other possibility of this error, you can suggest. Please let me know.

Regards

Rijish

Read only

Former Member
0 Likes
779

The z program must be attached to an output type.

In the screen where you give the output type and details,

there will be a button for further options.

In the screen to follow, set the dispatch option as Send with periodically scheduled job. and save.

After doing this, create a sales order.

Go to se38 and run the program rsnast00.

Give the sales order number as the object key in the selection screen.

and run the program.

It will now stop at your z program.

Regards,

Ravi

Read only

0 Likes
779

Hi Ravi,

Thanks for your reply. I couldnt find the further options button in output type. Can you please be specific on this?. The reason why i am doing this is because i have created a similar ZProgram for packing list but mail is not getting triggered when initially created one.

Regards

Rijish

Read only

0 Likes
779

Hi Rishi,

YOu can see a messages button on the application toolbar for me23n transaction. There must be a similar button for the sales order transaction as well.

If you click that, it would take you to the Output types screen. There you can see the Further data button.

Thanks,

Ravi

Read only

0 Likes
779

In VA01, click on Extras->Output->Header->Edit.

Here you will need to enter your output type and set the dispatch time in the further data.

Then run RSNAST00 as sugested previously.

Read only

Former Member
0 Likes
779

Hi

Try to log off and log in. And switc on sysstem debugging. Its might work.

Regards

Srikanth M