<?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 for Sales Order Creation. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913816#M380240</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;   Try with this bapi..if it works out..BAPI_SALESDOCU_CREATEFROMDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Jayaram...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Feb 2007 09:37:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-14T09:37:25Z</dc:date>
    <item>
      <title>BAPI for Sales Order Creation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913815#M380239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a sales order using BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried some BAPI's like BAPI_SALESORDER_CREATEFROMDAT1, BAPI_SALESORDER_CREATEFROMDAT2, BAPI_SALESORDER_CREATEFROMDATA, BAPI_SALESDOCU_CREATEWITHDIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am not able to update the Miscellaneous Information like Mode of transport(VBAP-OIC_MOT), Forwarding Agent(VBAP-OIC_LIFNR), Base Location(VBAP-OIA_BASELO), Truck Number(VBAP-OIC_TRUCKN), Pipeline trip No.(VBAP-OIC_PTRIP), Pipeline operator´s external batch number(VBAP-OIC_PBATCH).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other BAPI thru which i can update these fields while creation of Sales Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Fields which I can provide to BAPI as import parameter is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order Type(VBAK-AUART),&lt;/P&gt;&lt;P&gt;Contract(VBAK_VGBEL),&lt;/P&gt;&lt;P&gt;SALES Org (VBAK-VGORT),&lt;/P&gt;&lt;P&gt;Dist Channel(VBAK-VTWEG),&lt;/P&gt;&lt;P&gt;Division (VBAK-SPART),&lt;/P&gt;&lt;P&gt;Open Quantity (VBAK-KWMENG)&lt;/P&gt;&lt;P&gt;Plant(VBAP-WERKS)&lt;/P&gt;&lt;P&gt;Storage Location (VBAP-LGORT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Mode of transport(VBAP-OIC_MOT), Forwarding Agent(VBAP-OIC_LIFNR), Base Location(VBAP-OIA_BASELO), Truck Number(VBAP-OIC_TRUCKN), Pipeline trip No.(VBAP-OIC_PTRIP), Pipeline operator´s external batch number(VBAP-OIC_PBATCH).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance,&lt;/P&gt;&lt;P&gt;Points will be rewarded for Best Solution......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yogesh Sharma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 09:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913815#M380239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T09:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Sales Order Creation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913816#M380240</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;   Try with this bapi..if it works out..BAPI_SALESDOCU_CREATEFROMDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Jayaram...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 09:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913816#M380240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T09:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Sales Order Creation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913817#M380241</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;    Otherwise try with the following bapis..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;    BAPI_SALESORDER_CREATEFROMDAT3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;  Jayaram...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 09:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913817#M380241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T09:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Sales Order Creation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913818#M380242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayaram....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to create the sales order using the BAPI's which u have mentioned but these BAPI"s doesn't update the Miscellaneous Information like Mode of transport(VBAP-OIC_MOT), Forwarding Agent(VBAP-OIC_LIFNR), Base Location(VBAP-OIA_BASELO), Truck Number(VBAP-OIC_TRUCKN), Pipeline trip No.(VBAP-OIC_PTRIP), Pipeline operator´s external batch number(VBAP-OIC_PBATCH).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all the fields mentioned above there is no import parameter or structure available in these BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Question is still open for the answer.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 09:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913818#M380242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T09:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Sales Order Creation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913819#M380243</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 can give u a suggestion .. try it ..&lt;/P&gt;&lt;P&gt;its a quite a long process....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in BAPI_SALESORDER_CREATEFROMDAT2 &lt;/P&gt;&lt;P&gt;there is a table EXTENSIONIN...&lt;/P&gt;&lt;P&gt;here u can add append structure and carry on ur sales order creation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the process&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;Customer Enhancement for VBAK, VBAP, VBEP&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;You can use this parameter to transfer user-specific enhancments to a BAPI. The customer has to complete the EXTENSION structure and the system automatically continues processing it. If you have not defined any user-specific fields, then you can transfer a blank EXTENSIONIN structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technical information about Customer Enhancements&lt;/P&gt;&lt;P&gt;The following description uses an example to explain how to proceed with customer enhancements to the SD tables VBAK, VBKD, VBAP and VBEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The customer has added their own fields to table VBAP using the INCLUDE structure CUTEST. This structure contains 2 fields:&lt;/P&gt;&lt;P&gt;CFIELD1, CHAR 10&lt;/P&gt;&lt;P&gt;CFIELD2, CHAR 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The customer also requires that these two fields can be maintained with the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Maintain structure CUTEST in table VBAP&lt;/P&gt;&lt;P&gt;2. Because the BAPIs work with checkboxes, you must also define a CUTESTX checkbox for the customer structure. It should be structured like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field name       Data element&lt;/P&gt;&lt;P&gt;CFIELD1            CHAR1&lt;/P&gt;&lt;P&gt;CFIELD2          CHAR1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Define these customer structures in the structures VBAPKOZ und VBAPKOZX using INCLUDE or APPEND.&lt;/P&gt;&lt;P&gt;4. Add the customer structures to the BAPE_VBAP and BAPE_VBAPX BAPI structures using the APPEND technique.&lt;/P&gt;&lt;P&gt;5. Adjust the following structures for customer enhancements to table VBAK:&lt;/P&gt;&lt;P&gt;a) VBAKKOZ&lt;/P&gt;&lt;P&gt;b) VBAKKOZX&lt;/P&gt;&lt;P&gt;c) BAPE_VBAK&lt;/P&gt;&lt;P&gt;d) BAPE_VBAKX&lt;/P&gt;&lt;P&gt;6. Adjust the following structures for customer enhancements to table VBEK:&lt;/P&gt;&lt;P&gt;a) VBEPKOZ&lt;/P&gt;&lt;P&gt;b) VBEPKOZX&lt;/P&gt;&lt;P&gt;c) BAPE_VBEP&lt;/P&gt;&lt;P&gt;d) BAPE_VBEPX&lt;/P&gt;&lt;P&gt;7. Generally, the data should be added to the BAPI interface in the internal communication structures (VBAKKOM, and so on). There, you can process the data in the SD tables (VBAK, and so on).&lt;/P&gt;&lt;P&gt;8. If the EXTENSIONIN parameter contains customer data, you must complete at least the key fields in the relevant standard parameters.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;You want to change customer field VBAP-CFIELD2 for item 20 to "XYZ" in order 4711.&lt;/P&gt;&lt;P&gt;The following entries are expected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import:     BAPIVBELN-VBELN       = '0000004711'  Document number&lt;/P&gt;&lt;P&gt;            BAPISDHD1X-UPDATEFLAG = 'U'           UPDKZ for doc header&lt;/P&gt;&lt;P&gt;Tables:     BAPISDITM-ITM_NUMBER  = '000020'      Item number&lt;/P&gt;&lt;P&gt;            BAPISDITMX-ITM_NUMBER = '000020'      Item number&lt;/P&gt;&lt;P&gt;          + BAPISDITMX-UPDATEFLAG = 'U'           UPDKZ for item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must complete the EXTENSION table as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRUCTURE                          VALUEPART1       1234561234567890123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPE_VBAP                       0000004711000020                 XYZ&lt;/P&gt;&lt;P&gt;BAPE_VBAPX                      0000004711000020       X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further Information&lt;/P&gt;&lt;P&gt;You can find more information in the BAPI programming guide in the chapter for enhancements to BAPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;You must complete the STRUCTURE field with the name of the relevant enhancement structure (BAPE_VBAK, BAPE_VBAP, BAPE_VBEP). You can complete the remaining fields with the append structures from the enhancement structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment, you can use the BAPI to store enhancements in the following structures:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAK : An enhancement to header data requires an append structure to BAPE_VBAK and an enhancement to structure VBAKKOZ.&lt;/P&gt;&lt;P&gt;VBAP : An enhancement to item data requires an append structure to BAPE_VBAP and an enhancment to structure VBAPKOZ.&lt;/P&gt;&lt;P&gt;VBEP : An enhancement to schedule line data requires an append structure to BAPE_VBEP and an enhancement to structure VBEPKOZ.&lt;/P&gt;&lt;P&gt;VBKD : If you are using an enhancement for header data, you must add an append structure to BAPE_VBAK. You also need to enhance structure VBAKKOZ. If it is for item data, you need to add an append structure to BAPE_VBAP. You must also enhance structure VBAPKOZ.&lt;/P&gt;&lt;P&gt;If you also want to work with checkboxes, each X-structure must also contain an append structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;A customer has created an order and wants to include the material long text (50 digits long).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The EXTENSIONIN structure must be completed with BAPE_VBAP. Two fields have fixed definitions in this structure. These are in the VBAP host key (VBELN, POSNR). The customer sets up an append structure that contains field ZMAT50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the VBELN is normally blank when you create an order, the data can look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRUCTURE   |BAPE_VBAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VALUEPART1  |          000010Customermateriallongtext50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              VBELN     POSNR ZMAT50&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 14:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913819#M380243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T14:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for Sales Order Creation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913820#M380244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ratandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution works perfect......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points Rewarded........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 15:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-sales-order-creation/m-p/1913820#M380244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T15:02:37Z</dc:date>
    </item>
  </channel>
</rss>

