<?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 BAPI _ SALESDOCU _ CREATEFROMDATA1 - Addresses in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesdocu-createfromdata1-addresses/m-p/2891717#M679595</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'm trying to use this BAPI. I have addresses entered in the table record including and address number for the partners. However I still get the following error message : "Specify either address number or address handle"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ? I'm stuck ! &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alistair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 15:58:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-16T15:58:06Z</dc:date>
    <item>
      <title>BAPI _ SALESDOCU _ CREATEFROMDATA1 - Addresses</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesdocu-createfromdata1-addresses/m-p/2891717#M679595</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'm trying to use this BAPI. I have addresses entered in the table record including and address number for the partners. However I still get the following error message : "Specify either address number or address handle"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ? I'm stuck ! &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alistair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 15:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesdocu-createfromdata1-addresses/m-p/2891717#M679595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T15:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI _ SALESDOCU _ CREATEFROMDATA1 - Addresses</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesdocu-createfromdata1-addresses/m-p/2891718#M679596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alistair,&lt;/P&gt;&lt;P&gt;   Use "ADDR_LINK" field of the BAPIPARNR structure and "ADDR_NO" field of the Partner Addresses structure. Here is the sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Here, I want to change the Ship to address during the creation of the order, so initially filling the BAPIPARNR with some field values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'WE'  TO wa_partners-partn_role,
  '115' TO wa_partners-partn_numb,
  '1'          to wa_partners-addr_link.   (You need to use this address link for Address no in Partner addresses)
APPEND wa_partners TO t_partners.


MOVE:
  '1'        to wa_partneraddresses-addr_no,
*  'Mr.'      to wa_partneraddresses-title,
  'MAH QA POST TEST 6'      to wa_partneraddresses-name,
  'TEMPE'    to wa_partneraddresses-city,
  'AZ'       to wa_partneraddresses-region,
  '81190'    to wa_partneraddresses-postl_cod1,
  '8123 S. HARDY' to wa_partneraddresses-street,
  'US'       to wa_partneraddresses-country,
  'APT 2004'   to wa_partneraddresses-str_suppl1,
  '1111122222' to wa_partneraddresses-tel1_numbr.
APPEND wa_partneraddresses to t_partneraddresses.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adithya K&lt;/P&gt;&lt;P&gt;askSAP@googlegroups.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: Reward points if the solution is useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 23:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesdocu-createfromdata1-addresses/m-p/2891718#M679596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T23:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI _ SALESDOCU _ CREATEFROMDATA1 - Addresses</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesdocu-createfromdata1-addresses/m-p/2891719#M679597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers for the reply. Unfortunately I don't think your answer applies to BAPI _ SALESDOCU _ CREATEFROMDATA1 as it has no address structure. I think your solution replies to BAPI_SALESORDER_CREATEFROMDAT2. But thanks for the suggestion anyway. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alistair&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I need to use the sales doc bapi rather than the sales order bapi as I'm created a sales document type 'L' rather than type 'C'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 07:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesdocu-createfromdata1-addresses/m-p/2891719#M679597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T07:50:45Z</dc:date>
    </item>
  </channel>
</rss>

