<?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_SALESORDER_CREATEFROMDAT2 EXTENSIONIN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-extensionin/m-p/1676103#M298196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sezer,&lt;/P&gt;&lt;P&gt;  I think the documentation of the function module helps u a lot for acheiving ur requirement. In that it is clearly given. See the below:&lt;/P&gt;&lt;P&gt;&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;In the above example, it is from scratch, this helps u a lot. Double click on ExtensionIN of the function module documetation and check out. &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;Yash Technologies Pvt. Ltd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Note: Don't forget to reward points if suggestion is useful.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Nov 2006 11:49:59 GMT</pubDate>
    <dc:creator>former_member186078</dc:creator>
    <dc:date>2006-11-23T11:49:59Z</dc:date>
    <item>
      <title>BAPI_SALESORDER_CREATEFROMDAT2 EXTENSIONIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-extensionin/m-p/1676102#M298195</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 want to create a SO by using bapi BAPI_SALESORDER_CREATEFROMDAT2 .&lt;/P&gt;&lt;P&gt;Table vpap consists of an append structure ZAVBAP that into i put customer fields eg ZXXXXX type char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i fill EXTENSIONIN ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tahnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 10:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-extensionin/m-p/1676102#M298195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T10:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 EXTENSIONIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-extensionin/m-p/1676103#M298196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sezer,&lt;/P&gt;&lt;P&gt;  I think the documentation of the function module helps u a lot for acheiving ur requirement. In that it is clearly given. See the below:&lt;/P&gt;&lt;P&gt;&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;In the above example, it is from scratch, this helps u a lot. Double click on ExtensionIN of the function module documetation and check out. &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;Yash Technologies Pvt. Ltd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Note: Don't forget to reward points if suggestion is useful.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 11:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-extensionin/m-p/1676103#M298196</guid>
      <dc:creator>former_member186078</dc:creator>
      <dc:date>2006-11-23T11:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_SALESORDER_CREATEFROMDAT2 EXTENSIONIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-extensionin/m-p/1676104#M298197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create the internal table with extention struture&lt;/P&gt;&lt;P&gt;then assign values as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   extensionin-structure = 'BAPE_VBAP'.&lt;/P&gt;&lt;P&gt;    extensionin-valuepart1 = order_extension_struc.&lt;/P&gt;&lt;P&gt;    APPEND extensionin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    extensionin-structure = 'BAPE_VBAPX'.&lt;/P&gt;&lt;P&gt;    extensionin-valuepart1 = order_extension_strucx.&lt;/P&gt;&lt;P&gt;    APPEND extensionin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you can change BAPE_VBAP to  your desired values&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-salesorder-createfromdat2-extensionin/m-p/1676104#M298197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:00:24Z</dc:date>
    </item>
  </channel>
</rss>

