<?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: BAPI_SALESORDER_CREATEFROMDAT2 email in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-email/m-p/2025122#M414989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Yes you can fill email address against customer number.&lt;/P&gt;&lt;P&gt;In this function module there is table PARTNERADDRESSES.In this table you can fill email address in the field E_MAIL.But for this you have use following steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the partner table ORDER_PARTNERS you have to give the address number of the customer in the filed ADDR_LINK.along with this you have to fill one more field in the same table ORDER_PARTNERS that is  ADDR_ORIG = 'B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the PARTNERADDRESSES table give the address number of the customer in the field ADDR_NO and you will give email address in the field E_MAIL.Then it will works fine .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;shyla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2007 12:02:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-16T12:02:01Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CREATEFROMDAT2 email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-email/m-p/2025119#M414986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have any info on using this BAPI to create a sales order and also an email address against a one time customer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 11:29:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-email/m-p/2025119#M414986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T11:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-email/m-p/2025120#M414987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some sample code:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Order header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_order_header-doc_type = 'ZQBV'.&lt;/P&gt;&lt;P&gt;l_order_header-distr_chan = '10'.&lt;/P&gt;&lt;P&gt;l_order_header-division = '00'.&lt;/P&gt;&lt;P&gt;if g_qals-werk eq '1100'.&lt;/P&gt;&lt;P&gt;l_order_header-sales_org = '1000'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;if g_qals-werk eq '3100'.&lt;/P&gt;&lt;P&gt;l_order_header-sales_org = '3000'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;message i001(00) with text-005.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_order_header-purch_no_c = g_qals-prueflos. " &amp;lt;= lot&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Partner data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_order_partners-partn_role = 'AG'.&lt;/P&gt;&lt;P&gt;l_order_partners-partn_numb = g_qals-kunnr.&lt;/P&gt;&lt;P&gt;append l_order_partners to it_order_partners.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Order items =&amp;gt; only one&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_order_items-itm_number = 10.&lt;/P&gt;&lt;P&gt;l_order_items-material = g_qals-matnr.&lt;/P&gt;&lt;P&gt;l_order_items-target_qty = 1.&lt;/P&gt;&lt;P&gt;append l_order_items to it_order_items.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Schedules for quantity&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_order_schdl-itm_number = 10.&lt;/P&gt;&lt;P&gt;l_order_schdl-req_qty = 1. " &amp;lt;= only 1 !&lt;/P&gt;&lt;P&gt;append l_order_schdl to it_order_schdl.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Conditions for value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;l_order_conditions-itm_number = 10.&lt;/P&gt;&lt;P&gt;l_order_conditions-cond_type = 'PR00'.&lt;/P&gt;&lt;P&gt;l_order_conditions-cond_value = g_effort_sum.&lt;/P&gt;&lt;P&gt;l_order_conditions-currency = g_effort_unit.&lt;/P&gt;&lt;P&gt;append l_order_conditions to it_order_conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
* SALESDOCUMENTIN =
ORDER_HEADER_IN = l_order_header
* ORDER_HEADER_INX =
* SENDER =
* BINARY_RELATIONSHIPTYPE =
* INT_NUMBER_ASSIGNMENT =
* BEHAVE_WHEN_ERROR =
* LOGIC_SWITCH =
* TESTRUN =
* CONVERT = ' '
IMPORTING
SALESDOCUMENT = l_salesdocument
TABLES
RETURN = it_return
ORDER_ITEMS_IN = it_order_items
* ORDER_ITEMS_INX =
ORDER_PARTNERS = it_order_partners
ORDER_SCHEDULES_IN = it_order_schdl
* ORDER_SCHEDULES_INX =
ORDER_CONDITIONS_IN = it_order_conditions
* ORDER_CONDITIONS_INX =
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
* ORDER_CCARD =
* ORDER_TEXT =
* ORDER_KEYS =
* EXTENSIONIN =
* PARTNERADDRESSES =
.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Pankaj Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 11:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-email/m-p/2025120#M414987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T11:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-email/m-p/2025121#M414988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add an address link to the Partner internal table and add this number to the Partner address&lt;/P&gt;&lt;P&gt;internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 11:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-email/m-p/2025121#M414988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T11:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-email/m-p/2025122#M414989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;Yes you can fill email address against customer number.&lt;/P&gt;&lt;P&gt;In this function module there is table PARTNERADDRESSES.In this table you can fill email address in the field E_MAIL.But for this you have use following steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the partner table ORDER_PARTNERS you have to give the address number of the customer in the filed ADDR_LINK.along with this you have to fill one more field in the same table ORDER_PARTNERS that is  ADDR_ORIG = 'B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the PARTNERADDRESSES table give the address number of the customer in the field ADDR_NO and you will give email address in the field E_MAIL.Then it will works fine .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;shyla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 12:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-email/m-p/2025122#M414989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T12:02:01Z</dc:date>
    </item>
  </channel>
</rss>

