<?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: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542903#M247183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not a function of BAPI. It is your custom process. Please talk to your SD consultant if it is a config issue or have a look at any user exit that may be adding the line item in the background when you do this in VA01 and skipping it when you trigger it via BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2006 17:23:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-24T17:23:58Z</dc:date>
    <item>
      <title>Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542898#M247178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I am creating a Repairs order using the above BAPI, but it does not provide the functionality to add Servicable Material and Repair Information.&lt;/P&gt;&lt;P&gt;  there was a similar forum where it was mentioned to use 'SD_SALES_DOCU_MAINTAIN', I am not sure where to pass this info and if this FM is safe to be directly used..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaustubh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 16:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542898#M247178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T16:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542899#M247179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Any std function is safe to use as long as the data you supply is correct.&lt;/P&gt;&lt;P&gt;Before you go to BAPI, where do you add servicable material and repair information in the order create screen? The answer depends on that.&lt;/P&gt;&lt;P&gt;This BAPI has structures for material as well as texts. I am not sure where you experience the problem.&lt;/P&gt;&lt;P&gt;Please check and revert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 16:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542899#M247179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T16:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542900#M247180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  The BAPI does not have fields to add the Repair Order related info, like Servicable Material, Qty.. filled in the Structure: V46R_ITEM in VA01/02.&lt;/P&gt;&lt;P&gt;  I am not sure where they need to be filled in the FM: 'SD_SALES_DOCU_MAINTAIN'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 16:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542900#M247180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T16:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542901#M247181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not understand why you do not want to populate ORDER_ITEMS_IN table with your material and qty. Is there a problem? I guess the repair orders are identified by corresponding order type. You can use this BAPI for any kinds of order type.&lt;/P&gt;&lt;P&gt;Please do not look for the same field name in BAPI as you would see in the screen. It just does not work that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 17:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542901#M247181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T17:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542902#M247182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the Repair Order, created one more line item automatically, which is the servicable material. If we have a line item as 10000 it created one more with item 10010, this is not handled by the BAPI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 17:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542902#M247182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T17:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542903#M247183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not a function of BAPI. It is your custom process. Please talk to your SD consultant if it is a config issue or have a look at any user exit that may be adding the line item in the background when you do this in VA01 and skipping it when you trigger it via BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 17:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542903#M247183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T17:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542904#M247184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;K,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_SALESORDER_CREATEFROMDAT2 calls the _MAINTAIN func module deep down in it's processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is line item 10010 created when run on-line by a user?  Through a userexit or config or ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 17:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542904#M247184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T17:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542905#M247185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not a userexit, I am sure it must be config. When I go through VA01, and select the option Item -&amp;gt; More Function -&amp;gt; Repair, it asks for a Qty, servicable material, and flag to decide if its Repair , returns.. Once I enter this the line item gets created on its own, this is a SAP functionality for repairs orders I guess, the problem I am facing is where do I put the repairs info in the BAPI..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 17:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542905#M247185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T17:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542906#M247186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On Futher investigation I found that if I put a breakpoint on the FM: SD_SALES_DOCU_MAINTAIN, and the put values in MATNR_G &amp;amp; MENGE_G in the structure : VBAPKOM, it created a proper repairs order with the 2nd line item created automatically. These fields are missing in the BAPI.&lt;/P&gt;&lt;P&gt;  Now the question which I have is, Is it safe to use the FM: SD_SALES_DOCU_MAINTAIN, directly, or do I need to do some validations before using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 17:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542906#M247186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T17:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542907#M247187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;K,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This REPAIRs functionality is tied to config.  It is not turned-off in the std delivered product by SAP.  Your org has turned it on for their needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In reviewing the BAPIs around VA01 (including the one you cited), I do not see any of them referencing data element VKGRU, which is the REPAIR-related field on VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that SAP has not enabled this repair functionality in their core-delivered BAPIs.  This can be the case in the more obscure areas of SAP functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, it appears that you will need use a BDC to meet your reqs...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 17:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542907#M247187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T17:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542908#M247188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;  Yes you are correct the BAPI does not handle this functionality, but if I pass the proper values to the FM: SD_SALES_DOCU_MAINTAIN, the fields related to Repair are in the structure: VBAPKOM, the Repair Order gets properly created. So I think I can definately use this FM to create the Order.&lt;/P&gt;&lt;P&gt;  But my question is, as you know this FM is called deep inside the BAPI, how safe is it to use it directly. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 18:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542908#M247188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T18:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542909#M247189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;K,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling the FM directly is OK... the BAPI provides many levels of validation "in front" of the actual FM that performs the update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just make sure that your inputs are clear and accurate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 18:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542909#M247189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T18:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542910#M247190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I will also check the original BAPI, and see it I can incorporate some of the validations in the new BAPI which i would be creating. As my BAPI would be used to create new Repairs Order and would be called by an external system, I would not be 100% sure of the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else I can even try creating a Repairs Order by using the Std BAPI and then call this FM to update the Repairs Order related info like the Servicable Material and Qty.. Let me check this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 18:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542910#M247190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T18:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542911#M247191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like a good idea...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget the points for helpful answers as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2006 18:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542911#M247191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-24T18:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Repair Order using BAPI_SALESORDER_CREATEFROMDAT2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542912#M247192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaustubh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using 'SD_SALES_DOCU_MAINTAIN' to create the Repair Order and its working fine for us. We came at this conclusion only after extensive testing and debugging the standard BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The material vbapkom-matnr is 'REPAIR' in our case. You should check with your functional person about the same.&lt;/P&gt;&lt;P&gt;You need to populate the vbapkom-zmeng (quantity).&lt;/P&gt;&lt;P&gt;The servicable material field is vbapkom-matnr_g which is the actual material that needs repair.&lt;/P&gt;&lt;P&gt;You also need to populate the vbapkom-menge_g which is the servicable material quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from this you have to populate the schedule line table vbepkom, partner table vbapkom and header structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My call looks like this       CALL FUNCTION 'SD_SALES_DOCU_MAINTAIN'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_vbakkom                 = wa_vbakkom&lt;/P&gt;&lt;P&gt;          i_call_bapi               = 'X'&lt;/P&gt;&lt;P&gt;          suppress_availibility_dia = 'X'&lt;/P&gt;&lt;P&gt;          status_buffer_refresh     = 'X'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          e_vbak                    = wa_vbak&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          ix_vbapkom                = lt_vbapkom&lt;/P&gt;&lt;P&gt;          ix_vbpakom                = lt_vbpakom&lt;/P&gt;&lt;P&gt;          ix_vbepkom                = lt_vbepkom&lt;/P&gt;&lt;P&gt;          return                    = lt_bapireturn&lt;/P&gt;&lt;P&gt;          ix_text_header            = lt_text_head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do let me know if you need any other information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shubham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.- You can also use the standard BAPI for doing this. But in that case you have to append fields matnr_g and menge_g to the item table vbap and then populate the extension table 'EXTENSIONIN' of the standard BAPI BAPI_SALESORDER_CREATEFROMDAT2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2006 09:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/repair-order-using-bapi-salesorder-createfromdat2/m-p/1542912#M247192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-25T09:32:45Z</dc:date>
    </item>
  </channel>
</rss>

