<?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_material_savedata in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952439#M392209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i forgot to mention that i am updatinf the material master using custom fields.&lt;/P&gt;&lt;P&gt;i have added some custom fields to MARC and these fields required to be updated.&lt;/P&gt;&lt;P&gt;now please come with ur ideas?&lt;/P&gt;&lt;P&gt;do i need to set any flag for views while updating?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnaks,&lt;/P&gt;&lt;P&gt;anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2007 06:30:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-13T06:30:01Z</dc:date>
    <item>
      <title>Bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952436#M392206</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 facing a problem in updating custom fields using bapi_material_savedata.&lt;/P&gt;&lt;P&gt;I am doing everything correctly but custom fields are not getting updated.&lt;/P&gt;&lt;P&gt;I am passing EXTENSION and EXTENXIONX structure also.extended BAPI_TE_MARC and BAPI_TE_MARCX structures also.&lt;/P&gt;&lt;P&gt;and i committed also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what may be the problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE HELP ME. OR ANYBODY PLEASE GIVE SOME SAMPLE CODE WHICH WORKED PROPERLY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS,&lt;/P&gt;&lt;P&gt;anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 06:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952436#M392206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T06:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952437#M392207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can create all types of materials thru this fm..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for further reference use the following link...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm" target="test_blank"&gt;http://sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u a bit,&lt;/P&gt;&lt;P&gt;all the best,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sampath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;mark helpful answers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 06:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952437#M392207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T06:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952438#M392208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you flagged the fields you need to be updated? Refer to codes below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_update_marc_table USING p_t_so_baseline LIKE t_so_baseline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR:  s_bapimathead,&lt;/P&gt;&lt;P&gt;          s_plantdata,&lt;/P&gt;&lt;P&gt;          s_plantdatax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;p_t_so_baseline holds updated data to modify material status in marc&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF NOT p_t_so_baseline IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Update through bapi will be per line basis&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT p_t_so_baseline INTO  s_so_baseline&lt;/P&gt;&lt;P&gt;                            WHERE z_item_status = c_surplus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Structure for bapi header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      s_bapimathead-material       = s_so_baseline-z_matnr.&lt;/P&gt;&lt;P&gt;      s_bapimathead-purchase_view  = c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Structure for plantdata where values are to be transferred&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      s_plantdata-plant            = s_so_baseline-z_werks.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    For module 3, enter surplus values identified by NB81&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF w_flag EQ 3.&lt;/P&gt;&lt;P&gt;        IF s_so_baseline-z_werks       = c_us06.&lt;/P&gt;&lt;P&gt;          s_plantdata-pur_status       = c_skipmat.&lt;/P&gt;&lt;P&gt;        ELSEIF s_so_baseline-z_werks   = c_us05.&lt;/P&gt;&lt;P&gt;          s_plantdata-pur_status       = c_sur_lvll.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    For module 5, clear surplus status of materials&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ELSEIF w_flag EQ 5.&lt;/P&gt;&lt;P&gt;        s_plantdata-pur_status       = space.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Structure for update flag. Values being flagged with 'x'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    will be updated with the values in s_plantdata&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      s_plantdatax-plant           = s_so_baseline-z_werks.&lt;/P&gt;&lt;P&gt;      s_plantdatax-pur_status      = c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Call bapi BAPI_MATERIAL_SAVEDATA to update mm02-purchase view&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    and table marc&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM f_bapi_material_savedata CHANGING w_retcode1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR: s_plantdata,&lt;/P&gt;&lt;P&gt;             s_plantdatax,&lt;/P&gt;&lt;P&gt;             s_so_baseline,&lt;/P&gt;&lt;P&gt;             s_bapimathead.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_bapi_material_savedata CHANGING p_w_retcode1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: p_w_retcode1,&lt;/P&gt;&lt;P&gt;         s_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            headdata   = s_bapimathead&lt;/P&gt;&lt;P&gt;            plantdata  = s_plantdata&lt;/P&gt;&lt;P&gt;            plantdatax = s_plantdatax&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            return     = s_return. "bapi return messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Commit work after bapi call&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            return = s_return2. "bapi return messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  p_w_retcode1 = sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 06:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952438#M392208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T06:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952439#M392209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i forgot to mention that i am updatinf the material master using custom fields.&lt;/P&gt;&lt;P&gt;i have added some custom fields to MARC and these fields required to be updated.&lt;/P&gt;&lt;P&gt;now please come with ur ideas?&lt;/P&gt;&lt;P&gt;do i need to set any flag for views while updating?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnaks,&lt;/P&gt;&lt;P&gt;anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 06:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952439#M392209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T06:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952440#M392210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi LEO,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don know which view needs to be set to X. Hoe could i set that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnaks,&lt;/P&gt;&lt;P&gt;anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 06:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952440#M392210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T06:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952441#M392211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Add the EXTENSIONIN and EXTENSIONINX in the tables parameter of the fm.&lt;/P&gt;&lt;P&gt;In the structure field of EXTENSIONIN write ' BAPI_TE_MARC' , VALUEPART1 is the field extended, similarly fill teh EXTENSIONINX also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since this is a table, you can add different stcuture like&lt;/P&gt;&lt;P&gt; BAPI_TE_&amp;lt;NAME&amp;gt; (&amp;lt;NAME&amp;gt; = MARA, MARC, MARD, MBEW, MLGN, MLGT, MVKE) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 06:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952441#M392211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T06:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952442#M392212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;I am facing the same problem of updating Z field in MARA through BAPI BAPI_MATERIAL_SAVEDATA. Kindly help me how to update that because you allready had this issue hope will get some help from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards&lt;/P&gt;&lt;P&gt;Tanweer Zaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 06:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/1952442#M392212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T06:14:19Z</dc:date>
    </item>
  </channel>
</rss>

