<?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 multiple  line  item contact order (va41)  using bapi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429105#M1051517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinod , Thanks for your reply , 1stly i am using wrong bapi thx for correcting it 2ndly my question is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the methodology of taking item into internal table , means &lt;/P&gt;&lt;P&gt;i am making one excel sheet and in that i am preparing header and taking that file in to my program through which my number is generated successfully , uptill i am passing item hard code in my program now i want to take multiple line item , so &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 thing that come to my mind is , i will create one more excel sheet , In header excel sheet i have given s.no and corresponding to that s.no i will create multiple line item into 2nd excel sheet and when executing i will read both the excel sheet ( header &amp;amp; item ) and read s.no of item according to header one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what should u refer ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Sep 2008 05:12:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-07T05:12:17Z</dc:date>
    <item>
      <title>create multiple  line  item contact order (va41)  using bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429103#M1051515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Req is : To upload multiple line item using bapi BAPI_SALESORDER_CREATEFROMDAT2  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to create contract order with multiple line item , using transaction va41 , so i am passing one excel file which contains header data , how i will handle multiple line item data to pass to create contact order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2008 13:42:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429103#M1051515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-06T13:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: create multiple  line  item contact order (va41)  using bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429104#M1051516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankesh,&lt;/P&gt;&lt;P&gt;The BAPI u told is for sales order creation. Use BAPI &lt;STRONG&gt;BAPI_CONTRACT_CREATEFROMDATA&lt;/STRONG&gt; for contract creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass all ur item details to the tables parameter &lt;STRONG&gt;CONTRACT_ITEMS_IN&lt;/STRONG&gt;. i.e. APPEND all the line items to this table. If u have 10 line items then u should append 10 rows to this table. Let me know if u face any problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Sep 2008 15:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429104#M1051516</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-09-06T15:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: create multiple  line  item contact order (va41)  using bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429105#M1051517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinod , Thanks for your reply , 1stly i am using wrong bapi thx for correcting it 2ndly my question is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the methodology of taking item into internal table , means &lt;/P&gt;&lt;P&gt;i am making one excel sheet and in that i am preparing header and taking that file in to my program through which my number is generated successfully , uptill i am passing item hard code in my program now i want to take multiple line item , so &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 thing that come to my mind is , i will create one more excel sheet , In header excel sheet i have given s.no and corresponding to that s.no i will create multiple line item into 2nd excel sheet and when executing i will read both the excel sheet ( header &amp;amp; item ) and read s.no of item according to header one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what should u refer ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2008 05:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429105#M1051517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-07T05:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: create multiple  line  item contact order (va41)  using bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429106#M1051518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankesh,&lt;/P&gt;&lt;P&gt;I don't think u need two excels. U can upload by one excel itself. It is up to u on how to upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check belwo sample code. U no need to pass item number while creation of contract. U have to pass this only while changing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"Here i am appending all the line items.
"Apart from this u have to populate header and partner details.
"Read the FM documentation once. It is very clearly explained.
LOOP AT i_items INTO lwa_createint.
"Item details
          lwa_createint-matnr  TO lwa_contractitemsin-material,
          lwa_createint-kwmeng TO lwa_contractitemsin-target_qty.
    APPEND lwa_contractitemsin TO li_contractitemsin.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2008 09:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429106#M1051518</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-09-07T09:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: create multiple  line  item contact order (va41)  using bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429107#M1051519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from where i get its documentation ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2008 09:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429107#M1051519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-07T09:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: create multiple  line  item contact order (va41)  using bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429108#M1051520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankesh,&lt;/P&gt;&lt;P&gt;Just go to SE37 transaction, Open above BAPI in display mode.&lt;/P&gt;&lt;P&gt;In tool bar u can see one push button Function module documentation(Last one). Click on that. It opens a popup explaining every thing about this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can follow the same for any function module/BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for some FMs u may not found the documentation in English. In this case only way to know on how to use is check the where used list/ search in net for sample codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2008 09:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429108#M1051520</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-09-07T09:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: create multiple  line  item contact order (va41)  using bapi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429109#M1051521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinod very much thx for the information , i m closing this thread and will do rnd on this whole concept and then i will need ur help if i trap while creating this n other concepts thx buddy.!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2008 11:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-multiple-line-item-contact-order-va41-using-bapi/m-p/4429109#M1051521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-07T11:27:45Z</dc:date>
    </item>
  </channel>
</rss>

