Skip to Content
avatar image
Former Member

Billing output as e-mail in different sales orgs

Hello Gurus,

Have a requirement here for a client as below,

We have customers who belong to multiple sales organisations and when billing documents are send as e-mail each sales org has different e-mail recipient address to be sent to.

i will explain scenario with an example.

Cust A exists in Sales Org SO1, SO2, SO3 and SO4.

When we send invoice outputs from each sales organisation for Cust A,

From SO1 system has to send the output to e-mail address  XYZ@mail.com

From SO2 system has to send the output to e-mail address ABC@mail.com

From SO3 system has to send the output to e-mail address 123@mail.com

And for sales organisation SO4, System has to send invoice as an e-mail to internal Account manager first as PDF attachment and then Account manager will send it to customer after internal review.

So technically for SO4 it is again a different e-mail address that invoice output has to be sent.

Can this be achieved by Standard SAP configuration tweaking ?

Or this has to be an enhancement ?

Please let me know your thoughts and advice.

Thanks in advance,

Best Regards,

Gopi.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 22, 2014 at 06:42 AM

    Hi Gopi,

       I think so we can't archive this by standard SAP , but any how we are sending mail means we have to configure output types through NACE tcode . then in NACE we are maintaining the custom program there we have to write our own code saying that if the customer sales org is 1 then goto particular mail id like that have to write the logic.

    if so1 = 1.

      mail_id = sa11@gmail.com

    elseif so1 = 2.

      mail_id = sa22@gmail.com

    elseif so1 = 3.

       mail_id = sa33@gmail.com

    else.

    mail_id = manger@gmail.com

    endif.

    append the mail_id to receiver's structure and send mail.

    Regards,

    Krishna

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 22, 2014 at 10:31 AM

    Hi Gopi,

    The solution provided by Krishna is the easiest and straightforward solution to fulfill your requirement.


    However, I would like to propose you one more solution since it happens that email ID changes time-to-time, and then in that case, we need to change the program since it is hard-coded in print program:

    Make use of text determination procedure using 'Customer' > Sales & Distribution. Within 'TxtDetProc CustomerSD', maintain a text ID as 'Email ID' (Text ID's in Textprocedure) and there you maintain mail IDs and get it read through a FM 'READ_TEXT' in your print program.

    So, in future, if mail ID(s) is (are) to be changed, you need to change at Customer master level only and no need to change the program for such a small change.

    If you are sure that customer mail IDs will never change, solution provided in previous post is the best one to follow.

    Regards

    SD

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 22, 2014 at 12:33 PM

    Hi.

    you can achieve your requirement in standard by using partners. You define a partner, e.g ZZ in tcode VOPA , call it "mail recipient" and define it as type KU  group 07.

    Assign it to your customer account group. Update your partner procedure to add this ZZ partner. Add this partner to sales, delibery and invoice partner procedure so it gets copied from master data to different documents.

    In NACE update for your message entry in partner function tab, fill it with external output and partner ZZ.

    Now create 4 ZZ partners (let´s call them A,B,C, and D), in XD01. For example:

    partner ZZ A in sales org SO1 with email  SA11@GMAIL.COM

    partner ZZ B in sales org SO2 with email  SA22@GAMIL.COM and so on...

    Finally, update your Cust A, SO1 with partner ZZ A , Cust A, SO2 with partner ZZ B and son on...

    Regards,

    JM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Samier,

      for all the three Sales Orgs yes, it is same as BP.

      only for SO4 i am adding ZZ partner function as invoice recipient (who is an employee customer).

      And i cannot change ZZ Partner who is an employee customer will not work as that account manager is responsible for many customers. Changing that will affect all the other customers as well.

      By curiosity, Is there a way that we can enter a specific e-mail address in output condition master data for medium type 5-External Send ?

      Thanks in advance,

      Regards,

      Gopi.