<?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 Adding custom fields in BAPI structure for SO creation. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-fields-in-bapi-structure-for-so-creation/m-p/12592971#M2010323</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I have a requirement to overwrite 2 fields: I] KVGR1 II] ZZ_PROJECTID both these fields belongs to VBAK.&lt;/P&gt;
  &lt;P&gt;I have to fetch these fields from w_ref_doc. So using Select query I store the data into an internal table as follows:&lt;/P&gt;
  &lt;P&gt;SELECT KVGR1 ZZ_PROJECTID&lt;/P&gt;
  &lt;P&gt;FROM VBAK&lt;/P&gt;
  &lt;P&gt;INTO TABLE LT_VBAK &lt;/P&gt;
  &lt;P&gt;WHERE VBELN = W_REF_DOC.&lt;/P&gt;
  &lt;P&gt;Now, to assign these values into the BAPI Structure For SO Creation. FM used: BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;
  &lt;P&gt;FOR KVGR1, there is a field in BAPI and I have assign the value as follows:&lt;/P&gt;
  &lt;P&gt;(ls_order_header_in LIKE bapisdhdl)&lt;/P&gt;
  &lt;P&gt;ls_order_header_in-CUST_GRP1 = lt_vbak-KVGR1. &lt;/P&gt;
  &lt;P&gt;But for ZZ_PROJECTID, there is no similar field. Can anybody please suggest me the ways to pass the ZZ_PROJECTID value to BAPI.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Ankita&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 15:12:32 GMT</pubDate>
    <dc:creator>former_member825671</dc:creator>
    <dc:date>2022-10-17T15:12:32Z</dc:date>
    <item>
      <title>Adding custom fields in BAPI structure for SO creation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-fields-in-bapi-structure-for-so-creation/m-p/12592971#M2010323</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I have a requirement to overwrite 2 fields: I] KVGR1 II] ZZ_PROJECTID both these fields belongs to VBAK.&lt;/P&gt;
  &lt;P&gt;I have to fetch these fields from w_ref_doc. So using Select query I store the data into an internal table as follows:&lt;/P&gt;
  &lt;P&gt;SELECT KVGR1 ZZ_PROJECTID&lt;/P&gt;
  &lt;P&gt;FROM VBAK&lt;/P&gt;
  &lt;P&gt;INTO TABLE LT_VBAK &lt;/P&gt;
  &lt;P&gt;WHERE VBELN = W_REF_DOC.&lt;/P&gt;
  &lt;P&gt;Now, to assign these values into the BAPI Structure For SO Creation. FM used: BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;
  &lt;P&gt;FOR KVGR1, there is a field in BAPI and I have assign the value as follows:&lt;/P&gt;
  &lt;P&gt;(ls_order_header_in LIKE bapisdhdl)&lt;/P&gt;
  &lt;P&gt;ls_order_header_in-CUST_GRP1 = lt_vbak-KVGR1. &lt;/P&gt;
  &lt;P&gt;But for ZZ_PROJECTID, there is no similar field. Can anybody please suggest me the ways to pass the ZZ_PROJECTID value to BAPI.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Ankita&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 15:12:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-fields-in-bapi-structure-for-so-creation/m-p/12592971#M2010323</guid>
      <dc:creator>former_member825671</dc:creator>
      <dc:date>2022-10-17T15:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding custom fields in BAPI structure for SO creation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-fields-in-bapi-structure-for-so-creation/m-p/12592972#M2010324</link>
      <description>&lt;P&gt;See here &lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2017/04/17/sap-otc-process-bapi-sales-order-create-extension-part-2/" target="test_blank"&gt;https://blogs.sap.com/2017/04/17/sap-otc-process-bapi-sales-order-create-extension-part-2/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://tricktresor.de/blog/kundenfelder-in-bapi-struktur-fuellen/" target="test_blank"&gt;https://tricktresor.de/blog/kundenfelder-in-bapi-struktur-fuellen/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 16:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-custom-fields-in-bapi-structure-for-so-creation/m-p/12592972#M2010324</guid>
      <dc:creator>thkolz</dc:creator>
      <dc:date>2022-10-17T16:32:56Z</dc:date>
    </item>
  </channel>
</rss>

