<?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 how to extend a existing BAPI? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485504#M1255597</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;I am using a BAPI BAPI_MATERIAL_MAINTAINDATA_RT. I am using the sales data part of it using the Structure BAPIE1MVKERT. Now i have added few Z-fields to the structure BAPIE1MVKERT. How to extend the BAPI BAPI_MATERIAL_MAINTAINDATA_RT now?&lt;/P&gt;&lt;P&gt;What all i should take care of in this? &lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Amirth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2009 12:51:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-10T12:51:37Z</dc:date>
    <item>
      <title>how to extend a existing BAPI?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485504#M1255597</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;I am using a BAPI BAPI_MATERIAL_MAINTAINDATA_RT. I am using the sales data part of it using the Structure BAPIE1MVKERT. Now i have added few Z-fields to the structure BAPIE1MVKERT. How to extend the BAPI BAPI_MATERIAL_MAINTAINDATA_RT now?&lt;/P&gt;&lt;P&gt;What all i should take care of in this? &lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Amirth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 12:51:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485504#M1255597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T12:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to extend a existing BAPI?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485505#M1255598</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;You also need to extend structure MVKE_UEB  and automatically the fields will be populated in the tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 16:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485505#M1255598</guid>
      <dc:creator>venkatesan_nagiah</dc:creator>
      <dc:date>2009-04-16T16:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to extend a existing BAPI?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485506#M1255599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the Bapi extension in us&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : t_bapiparex TYPE STANDARD TABLE OF bapiparex,                                                         "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
       w_bapiparex LIKE bapiparex.

    w_bapiparex-structure = 'BAPE_VBAP'.
    CONCATENATE t_vbap-vbeln t_vbap-posnr 'ZA' INTO w_bapiparex-valuepart1.


  CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
      salesdocument               = w_vbeln1
      order_header_inx            = w_bapisdh1x
    TABLES
      return                      = t_bapiret2[]
      order_item_in               = t_bapisditm
      order_item_inx              = t_bapisditmx

      extensionin                 = t_bapiparex.   "&amp;lt;&amp;lt;Pass your extension fill data
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhhdas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 16:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485506#M1255599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T16:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to extend a existing BAPI?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485507#M1255600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkatesan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I have already extended the structure MVKE_UEB.&lt;/P&gt;&lt;P&gt;But how should i pass the Z-field data to the bapi BAPI_MATERIAL_MAINTAINDATA_RT, so that it can update those fields in MVKE table. It would be helpful, if you can assist me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amirth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 18:59:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485507#M1255600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-21T18:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to extend a existing BAPI?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485508#M1255601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amrita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a parameter SALESEXT with structure BAPIE1MVKEEXTRT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You pass the values in the salesext-FIELD1 in the same order without condensing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more structure SALESEXTX where you pass the value 'X' for each field in the FIELD1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also fill the material FUNCTION, MATERIAL, SALES_ORG, DISTR_CHAN of each structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If length of FIELD1 is not sufficient, then you can use FIELD2 and FIELD3, FIELD4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you need to code user exit EXIT_SAPL1001_003 to transfer the field in the respective structure. ie move the custom fields into structure F_MARC_UEB. (as u already extended MARU_UEB structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from this you need to maintain table T130F.  You can maintain in SE16.  The sample values are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FNAME = MARA-ZZCUS1            (for example name of the customer field)&lt;/P&gt;&lt;P&gt;FGRUP = 211                    (Field group 211 to 240 possible)&lt;/P&gt;&lt;P&gt;PSTAT = EDVKALBQPSZXCFG&lt;/P&gt;&lt;P&gt;KZREF = X&lt;/P&gt;&lt;P&gt;FGROU = GR_GLOB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkatesan Nagiah on Apr 22, 2009 12:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 10:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485508#M1255601</guid>
      <dc:creator>venkatesan_nagiah</dc:creator>
      <dc:date>2009-04-22T10:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to extend a existing BAPI?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485509#M1255602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkatesan,&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;The issue got solved by the above way.&lt;/P&gt;&lt;P&gt;Also i have coded in exit_003 to populate the fields into MVKE.&lt;/P&gt;&lt;P&gt;Thanks for your inputs.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amirth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 11:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-extend-a-existing-bapi/m-p/5485509#M1255602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-22T11:54:16Z</dc:date>
    </item>
  </channel>
</rss>

