<?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: Create VA41 contract from ABAP code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-va41-contract-from-abap-code/m-p/2121364#M444650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I tried both SD_SALESDOCUMENT_CREATE  and the bapi, each time,&lt;/P&gt;&lt;P&gt; I have the following error message :&lt;/P&gt;&lt;P&gt;please fill the sold to party or the ship-to party.&lt;/P&gt;&lt;P&gt;When I use the VA41 transaction, I fill in sold-to-party field and this correspond to a kunnr type.&lt;/P&gt;&lt;P&gt;So I tried by adding a line in SALES_PARTNER table with the kunnr value but It doesn't work.&lt;/P&gt;&lt;P&gt;Would you please tell wath fields I need to fill in to avoid this error message ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2007 14:06:34 GMT</pubDate>
    <dc:creator>former_member246786</dc:creator>
    <dc:date>2007-04-19T14:06:34Z</dc:date>
    <item>
      <title>Create VA41 contract from ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-va41-contract-from-abap-code/m-p/2121361#M444647</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 using batch input programs to create contract from the VA41 transaction.&lt;/P&gt;&lt;P&gt; Because there is some changes in specifications, it become difficult to continue this way ( using batch input). So my question is : is there FM or BAPIs I can use to create the same king of contract ?&lt;/P&gt;&lt;P&gt;If it exists, do you please have exemple of source code to show me the different internal tables that need to be filled ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MOrgan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 12:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-va41-contract-from-abap-code/m-p/2121361#M444647</guid>
      <dc:creator>former_member246786</dc:creator>
      <dc:date>2007-04-19T12:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create VA41 contract from ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-va41-contract-from-abap-code/m-p/2121362#M444648</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;U can try to use the BAPI_CONTRACT_CREATEFROMDATA or directly the fm SD_SALESDOCUMENT_CREATE (this fm is called by all BAPIs create sales document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 12:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-va41-contract-from-abap-code/m-p/2121362#M444648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T12:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create VA41 contract from ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-va41-contract-from-abap-code/m-p/2121363#M444649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;use the BAPI's&lt;/P&gt;&lt;P&gt;BAPI_CONTRACT_CREATEFROMDATA   &lt;/P&gt;&lt;P&gt;BAPI_CUSTOMERCONTRACT_CHANGE  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 12:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-va41-contract-from-abap-code/m-p/2121363#M444649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T12:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create VA41 contract from ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-va41-contract-from-abap-code/m-p/2121364#M444650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I tried both SD_SALESDOCUMENT_CREATE  and the bapi, each time,&lt;/P&gt;&lt;P&gt; I have the following error message :&lt;/P&gt;&lt;P&gt;please fill the sold to party or the ship-to party.&lt;/P&gt;&lt;P&gt;When I use the VA41 transaction, I fill in sold-to-party field and this correspond to a kunnr type.&lt;/P&gt;&lt;P&gt;So I tried by adding a line in SALES_PARTNER table with the kunnr value but It doesn't work.&lt;/P&gt;&lt;P&gt;Would you please tell wath fields I need to fill in to avoid this error message ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 14:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-va41-contract-from-abap-code/m-p/2121364#M444650</guid>
      <dc:creator>former_member246786</dc:creator>
      <dc:date>2007-04-19T14:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create VA41 contract from ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-va41-contract-from-abap-code/m-p/2121365#M444651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I found exactly what the problem was : I used to fill in the partners table but it needs to specify partner role. That's all, thx all for help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2007 09:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-va41-contract-from-abap-code/m-p/2121365#M444651</guid>
      <dc:creator>former_member246786</dc:creator>
      <dc:date>2007-04-20T09:23:31Z</dc:date>
    </item>
  </channel>
</rss>

