cancel
Showing results for 
Search instead for 
Did you mean: 

SD Billing Output via Mail

stephanbruning
Explorer
0 Kudos
289

Hi Guys,

I hope you can help with following issue as I need to send invoices via email. This is not really a big issues. I do all settings and it works as expected.

My problem now is the following:

Before we start with the idea to sent invoices via mail, all invoices were printed. For this print solution we use an output type with a access strategie "SALES ORAGNISATION / BILLINGTYPE".

I created a new output type for my mail output with a access strategie "SALES ORAGNISATION / BILLINGTYPE / CUSTOMERNUMBER".

This new output type I added to the Output Determination Procedure at the first place. and I set the EXKLUSIV flag to my access strategie.

My assumption now is, the invoice will be created, if SAP find a record with "SALES ORAGNISATION / BILLINGTYPE / CUSTOMERNUMBER" my new output ´type MAIL will be found and procest via mail.

In real life SAP founds my new one and the old one. But I don´t want both, if SAP found a MAIL access I only want to send the mail.

To add to the "old" one also a access sequence with the customer number, is not a good idea for me. If someone forgott to add the MAIL access, a print document is still generated.

Does anyone have an idea?

Best regards

Stephan

Accepted Solutions (0)

Answers (2)

Answers (2)

VeselinaPeykova
Active Contributor

The "exclusive" flag in the access sequence comes into picture when you work with the same output type, but in your case the output types are different.

If I understood you correctly, are looking for something like condition exclusion, but for output conditions.

This is not available in standard for NACE, but it is definitely feasible with a custom VOFM routine. Let's assume that we have output A and output B and that we want a rule that if we have output A, then output B should not be issued.

You create a custom routine and assign it to output B (of course, output B should be placed after output A in the procedure).

In the routine you check if output A is already determined, if yes - set sy-subrc to non-zero, which will result in requirement not fulfilled for output B.

Are you sure that you absolutely need a separate output type instead of using the same output type with a different transmission medium?

stephanbruning
Explorer
0 Kudos

Hi,

thanks for your answer. I go forward and try to use only one output type.If that will not work, I will pick up your idea and add a custom routine as you advised.

Best regards

Stephan