<?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: To update field using BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-field-using-bapi/m-p/6506690#M1422792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the documentation of the function module BAPI_MATERIAL_SAVEDATA. There is a parameter in the FM - EXTENSIONIN where in new fields added to the table can be used to be updated.&lt;/P&gt;&lt;P&gt;The documentation of that parameters tells you how this can be achieved.&lt;/P&gt;&lt;P&gt;Create 2 structures of the type BAPI_TE_MARA and BAPI_TE_MARAX&lt;/P&gt;&lt;P&gt;Now assign the field structure of the workarea of type BAPIPAREX. Assume gs_extensionin is of type BAPIPAREX and gs_bapi_te_mara is of type BAPI_TE_MARA (this should have the fields that have been added in the table)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
gs_extensionin-structure = 'BAPI_TE_MARA'.
gs_extensionin-valuepart+0(18) = gs_bapi_te_mara-matnr.
gs_extensionin-valuepart+18(length of the new field) = ga_bapi_te_mara-&amp;lt;new field added in the structure&amp;gt;.
append gs_extensionin to gt_extensionin.

gs_extensioninx-structure = 'BAPI_TE_MARAX'.
gs_extensioninx-valuepart+0(18) = gs_bapi_te_mara-matnr.
gs_extensioninx-valuepart+18(1) = 'X'..
append gs_extensioninx to gt_extensioninx.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now pass these tables gt_extensionin and gt_extensionx to the parameters extensionin and extensioninx of the function module BAPI_MATERIAL_SAVEDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try searching SDN using Extending BAPI's&lt;/P&gt;&lt;P&gt;Hope this will help in solving your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2010 07:49:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-19T07:49:38Z</dc:date>
    <item>
      <title>To update field using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-field-using-bapi/m-p/6506689#M1422791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added one field using append structure in table MARC. I want to updated this field usnign BAPI_MATERIAL_SAVEDATA. can anybody tell me the procedure to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 07:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-field-using-bapi/m-p/6506689#M1422791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T07:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: To update field using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-field-using-bapi/m-p/6506690#M1422792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the documentation of the function module BAPI_MATERIAL_SAVEDATA. There is a parameter in the FM - EXTENSIONIN where in new fields added to the table can be used to be updated.&lt;/P&gt;&lt;P&gt;The documentation of that parameters tells you how this can be achieved.&lt;/P&gt;&lt;P&gt;Create 2 structures of the type BAPI_TE_MARA and BAPI_TE_MARAX&lt;/P&gt;&lt;P&gt;Now assign the field structure of the workarea of type BAPIPAREX. Assume gs_extensionin is of type BAPIPAREX and gs_bapi_te_mara is of type BAPI_TE_MARA (this should have the fields that have been added in the table)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
gs_extensionin-structure = 'BAPI_TE_MARA'.
gs_extensionin-valuepart+0(18) = gs_bapi_te_mara-matnr.
gs_extensionin-valuepart+18(length of the new field) = ga_bapi_te_mara-&amp;lt;new field added in the structure&amp;gt;.
append gs_extensionin to gt_extensionin.

gs_extensioninx-structure = 'BAPI_TE_MARAX'.
gs_extensioninx-valuepart+0(18) = gs_bapi_te_mara-matnr.
gs_extensioninx-valuepart+18(1) = 'X'..
append gs_extensioninx to gt_extensioninx.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now pass these tables gt_extensionin and gt_extensionx to the parameters extensionin and extensioninx of the function module BAPI_MATERIAL_SAVEDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try searching SDN using Extending BAPI's&lt;/P&gt;&lt;P&gt;Hope this will help in solving your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 07:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-update-field-using-bapi/m-p/6506690#M1422792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-19T07:49:38Z</dc:date>
    </item>
  </channel>
</rss>

