<?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: Issue with BAPI Extensions and Custom table Update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-extensions-and-custom-table-update/m-p/11672235#M1945031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to save text more than 255 characters , you should use long text (FM : SAVE_TEXT and READ_TEXT) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at following liink .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/display/ABAP/Long+Texts" title="https://wiki.scn.sap.com/wiki/display/ABAP/Long+Texts"&gt;Long Texts - ABAP Development - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2016 09:40:07 GMT</pubDate>
    <dc:creator>sabirshah1</dc:creator>
    <dc:date>2016-04-20T09:40:07Z</dc:date>
    <item>
      <title>Issue with BAPI Extensions and Custom table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-extensions-and-custom-table-update/m-p/11672234#M1945030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have scenario where we need to update certain custom fields in VBAP via BAPI Extensions. The number of fields are so large that is more 960 characters so it is running into a dump. Hence forth we are note able to add those fields in the extension structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have avoided the solution of adding VALUE_PART5 and VALUE_PART6 in BAPI since it would require a lot of Regression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we have came up with solution to add all these custom fields in a separate custom table with key fields as same as in VBAP table, all we need to&amp;nbsp; ensure now is that we need to update the VBAP and the custom table Synchronously just like how VBAK and VBAP are updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have decided to call this updation of the custom table in an update function module using V1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using a BAPI to change and create quotations, The issue is we are not sure where can we add the logic of calling this update function inside this BAPI to achieve the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share some advice to achieve the same, also if there are any alternate solutions are there please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #8b8b8b; font-size: 11px; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" class="jivecontainerTT-hover-container font-color-meta" data-objectid="2016" data-objecttype="14" href="https://answers.sap.com/community/abap/switching-enhancing-and-adapting-standard-programs" style="font-size: 11px; color: #3778c7; background: #f8f8f8;"&gt;ABAP Switching, Enhancing, and Adapting Standard Programs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 09:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-extensions-and-custom-table-update/m-p/11672234#M1945030</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2016-04-20T09:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with BAPI Extensions and Custom table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-extensions-and-custom-table-update/m-p/11672235#M1945031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to save text more than 255 characters , you should use long text (FM : SAVE_TEXT and READ_TEXT) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at following liink .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/display/ABAP/Long+Texts" title="https://wiki.scn.sap.com/wiki/display/ABAP/Long+Texts"&gt;Long Texts - ABAP Development - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 09:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-extensions-and-custom-table-update/m-p/11672235#M1945031</guid>
      <dc:creator>sabirshah1</dc:creator>
      <dc:date>2016-04-20T09:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with BAPI Extensions and Custom table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-extensions-and-custom-table-update/m-p/11672236#M1945032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are even not required to add this in the BAPI, you can bypass it like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;* Call standard BAPI&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CALL&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN style="color: #4da616;"&gt;'BAPI_QUOTATION_CREATEFROMDATA2'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; salesdocumentin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;salesdocumentin&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; quotation_header_in&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;quotation_header_in&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; quotation_header_inx&amp;nbsp; &lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;quotation_header_inx&lt;/P&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " (...)&lt;BR /&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;IMPORTING&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; salesdocument&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;salesdocument&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;TABLES&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;return&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; quotation_items_in&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;quotation_items_in&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; quotation_items_inx&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;quotation_items_inx&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;" ...&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;* Check validity&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;LOOP&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;AT&lt;/SPAN&gt; return &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; wa_message &lt;SPAN style="color: #0000ff;"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #4da616;"&gt;'E'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;OR&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #4da616;"&gt;'A'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;EXIT&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;* Success&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;IF&lt;/SPAN&gt; sy-subrc &lt;SPAN style="color: #0000ff;"&gt;NE&lt;/SPAN&gt; &lt;SPAN style="color: #3399ff;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; wa_itab-vbeln&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;salesdocument&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;MODIFY&lt;/SPAN&gt; my_itab &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; wa_itab &lt;SPAN style="color: #0000ff;"&gt;TRANSPORTING&lt;/SPAN&gt; vbeln&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;CALL&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN style="color: #4da616;"&gt;'Z_HR_BADI_TIME_UPDATE'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;IN&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;UPDATE&lt;/SPAN&gt; TASK&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;TABLES&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my_itab&lt;SPAN style="color: #800080;"&gt; = &lt;/SPAN&gt;my_itab&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;CALL&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN style="color: #4da616;"&gt;'BAPI_TRANSACTION_COMMIT'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;* Failure&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ELSE&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;CALL&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN style="color: #4da616;"&gt;'BAPI_TRANSACTION_ROLLBACK'&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&amp;nbsp; &lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;" raise message error&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-family: courier; color: black;"&gt;&lt;SPAN style="color: #0000ff;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 09:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-extensions-and-custom-table-update/m-p/11672236#M1945032</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-04-20T09:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with BAPI Extensions and Custom table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-extensions-and-custom-table-update/m-p/11672237#M1945033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then only inside the bapi my run time structures will be holding the values for the y fields, neither the BAPI extension nor the tables will hold those values at the point where you are asking to write the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the exact reason i need to code inside the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 08:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-extensions-and-custom-table-update/m-p/11672237#M1945033</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2016-04-21T08:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with BAPI Extensions and Custom table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-extensions-and-custom-table-update/m-p/11672238#M1945034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you cannot pass your data in&amp;nbsp; BAPIPAREX&amp;nbsp; structure, use Enhancement technique to add a new parameter (Function module, Enhance Interface) and call your FM IN UPDATE TASK in an implicit enhancement at end of the BAPI FM. Could/should you also adapt business object (SWO1) BUS2031?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 07:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-extensions-and-custom-table-update/m-p/11672238#M1945034</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-04-22T07:47:22Z</dc:date>
    </item>
  </channel>
</rss>

