<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: user exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209411#M765129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table ADR6 contains the e-mail id of the customer. The SAP users have to maintain it properly. You will get the customer number from the order document. use the customer number in table KNA1 to get the address number. After this use the address number to find the e-mail id from ADR6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the sample code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE adrnr FROM kna1&lt;/P&gt;&lt;P&gt;INTO adrnr_sv&lt;/P&gt;&lt;P&gt;WHERE kunnr = vbdka-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE *&lt;/P&gt;&lt;P&gt;FROM adrc&lt;/P&gt;&lt;P&gt;INTO adrc_sv&lt;/P&gt;&lt;P&gt;WHERE addrnumber = adrnr_sv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE smtp_addr FROM adr6&lt;/P&gt;&lt;P&gt;INTO email&lt;/P&gt;&lt;P&gt;WHERE addrnumber = adrnr_sv&lt;/P&gt;&lt;P&gt;AND flgdefault = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mailrec-receiver = email.&lt;/P&gt;&lt;P&gt;mailrec-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;APPEND mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Sending Mail&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;document_data = maildata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put_in_outbox = ' ' &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;packing_list = mailpack&lt;/P&gt;&lt;P&gt;object_header = mailhead&lt;/P&gt;&lt;P&gt;contents_bin = mailbin&lt;/P&gt;&lt;P&gt;contents_txt = mailtxt&lt;/P&gt;&lt;P&gt;receivers = mailrec&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;too_many_receivers = 1&lt;/P&gt;&lt;P&gt;document_not_sent = 2&lt;/P&gt;&lt;P&gt;operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;OTHERS = 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Dec 2007 12:42:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-31T12:42:10Z</dc:date>
    <item>
      <title>user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209408#M765126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can any one tell me how can i send an email to the concer user after document is posted in the mb1b transaction.this is speacially for vendor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 06:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209408#M765126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T06:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209409#M765127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of the BADIs availabale with the transaction, MB1B. I hope MB_DOCUMENT_BADI may work for you. Inside the BADI Implementation you can select the customer's e-mail id from the customer master and send mail by using the function module SO_NEW_DOCUMENT_ATT_SEND_API1 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have doubts pls ask. Please reward if you find this useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 09:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209409#M765127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T09:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209410#M765128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renjith Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same requirement boss which u had explained, but can u please tell me in this BADI MB_DOCUMENT_BADI, where should i go to select the customers email id. what the procedure to do it.&lt;/P&gt;&lt;P&gt;Since this a urgent requirement for me, can u please tell how to overcome from this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 11:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209410#M765128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T11:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209411#M765129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table ADR6 contains the e-mail id of the customer. The SAP users have to maintain it properly. You will get the customer number from the order document. use the customer number in table KNA1 to get the address number. After this use the address number to find the e-mail id from ADR6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the sample code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE adrnr FROM kna1&lt;/P&gt;&lt;P&gt;INTO adrnr_sv&lt;/P&gt;&lt;P&gt;WHERE kunnr = vbdka-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE *&lt;/P&gt;&lt;P&gt;FROM adrc&lt;/P&gt;&lt;P&gt;INTO adrc_sv&lt;/P&gt;&lt;P&gt;WHERE addrnumber = adrnr_sv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE smtp_addr FROM adr6&lt;/P&gt;&lt;P&gt;INTO email&lt;/P&gt;&lt;P&gt;WHERE addrnumber = adrnr_sv&lt;/P&gt;&lt;P&gt;AND flgdefault = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mailrec-receiver = email.&lt;/P&gt;&lt;P&gt;mailrec-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;APPEND mailrec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Sending Mail&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;document_data = maildata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put_in_outbox = ' ' &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;packing_list = mailpack&lt;/P&gt;&lt;P&gt;object_header = mailhead&lt;/P&gt;&lt;P&gt;contents_bin = mailbin&lt;/P&gt;&lt;P&gt;contents_txt = mailtxt&lt;/P&gt;&lt;P&gt;receivers = mailrec&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;too_many_receivers = 1&lt;/P&gt;&lt;P&gt;document_not_sent = 2&lt;/P&gt;&lt;P&gt;operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;OTHERS = 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 12:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209411#M765129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T12:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209412#M765130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its very helpfull thanks very much. Can u please tell what r all the tables we use for this, like for example&lt;/P&gt;&lt;P&gt;document_data = maildata&lt;/P&gt;&lt;P&gt;packing_list = mailpack&lt;/P&gt;&lt;P&gt;object_header = mailhead&lt;/P&gt;&lt;P&gt;contents_bin = mailbin&lt;/P&gt;&lt;P&gt;contents_txt = mailtxt&lt;/P&gt;&lt;P&gt;for all these to be given in the function module.&lt;/P&gt;&lt;P&gt;If possible can u pl. send me the sample code boss.&lt;/P&gt;&lt;P&gt;Appriciate ur kind help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 13:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209412#M765130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T13:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209413#M765131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those attributes are used to fill the mail contents(that you want to inform the customers). For this you can try the Standard program RSWNSENDMAIL1 which clearly describes the process of sending mail from SAP. Hope this would be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 13:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit/m-p/3209413#M765131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T13:42:01Z</dc:date>
    </item>
  </channel>
</rss>

