<?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: Function Module to modify MARC table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169834#M460068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;  Which feild do you want to update in MARC , as there are many FM which update the table MARC , but they update specific feilds only e.g. KE_PRCTR_MARC_UPDATE.&lt;/P&gt;&lt;P&gt;To get a list of similar FM enter &lt;STRONG&gt;MARC&lt;/STRONG&gt; in SE37 and search for the list of FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2007 10:21:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-02T10:21:27Z</dc:date>
    <item>
      <title>Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169833#M460067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is There any Function Module which modifys the table MARC.&lt;/P&gt;&lt;P&gt;please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169833#M460067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169834#M460068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;  Which feild do you want to update in MARC , as there are many FM which update the table MARC , but they update specific feilds only e.g. KE_PRCTR_MARC_UPDATE.&lt;/P&gt;&lt;P&gt;To get a list of similar FM enter &lt;STRONG&gt;MARC&lt;/STRONG&gt; in SE37 and search for the list of FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169834#M460068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169835#M460069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;i need to modify field VINT2.&lt;/P&gt;&lt;P&gt;please suggest.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169835#M460069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169836#M460070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using function module for modifying a single field you can use the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify marc using &amp;lt;internmal table&amp;gt; transporintg &amp;lt;that fieldname&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keep this inside a loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this will modify the db table marc .. only thefield you want to modify accoring to you internal table...&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;Jayant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please award if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169836#M460070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169837#M460071</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 dont know exactly but try using FM "MARC_MODIFY_BY_RQGRP_DB"..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use Modify statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify MARC using the filed name you want to&lt;/P&gt;&lt;P&gt;rewards if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        nazeer shaik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169837#M460071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169838#M460072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;  I did not find any FM updating the said feild , why dont you use the UPDATE or SET Command for the same.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169838#M460072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169839#M460073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you want to update material master data you should use the appropriate &amp;lt;b&amp;gt;BAPI&amp;lt;/b&amp;gt;. If you are dealing with "normal" materials then you can use &amp;lt;b&amp;gt;BAPI_MATERIAL_SAVEDATA &amp;lt;/b&amp;gt;(IMPORTING parameter PLANTDATA). For retail related material you probably need to use the retail-related BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general you should use BAPIs for modifying master data because the BAPIs check very scrupulous whether all incoming data are consistent. Furthermore, if updating of additional tables is required the BAPI will take care of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169839#M460073</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-05-02T10:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169840#M460074</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;Use &amp;lt;b&amp;gt;BAPI_MATERIAL_SAVEDATA&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169840#M460074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169841#M460075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The suggestion proposed by Jayant is - by far - the worst way of dealing with any master data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169841#M460075</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-05-02T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169842#M460076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;&lt;P&gt;i tried with  BAPI_MATERIAL_SAVEDATA but i am getting run time errors.&lt;/P&gt;&lt;P&gt;under headdata what i have to specify???&lt;/P&gt;&lt;P&gt;could u please suggest.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169842#M460076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169843#M460077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZYTEST02                                                    *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;                                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*

report  zytest02                      .


parameters:matnr like bapimathead-material,
           maktx like bapi_makt-matl_desc     default 'Mat. autm. AE',
           werks like bapi_marc-plant,
           vkorg like bapi_mvke-sales_org,
           vtweg like bapi_mvke-distr_chan.

start-of-selection.

  perform material_create using matnr
                                maktx
                                werks
                                vkorg
                                vtweg.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  material_create
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_MATERIAL  text
*----------------------------------------------------------------------*
form material_create using    value(p_matnr)
                              value(p_maktx)
                              value(p_werks)
                              value(p_vkorg)
                              value(p_vtweg).

  tables: mara.

* shift p_matnr right deleting trailing space.
* translate p_matnr using ' 0'.

  data: headdata    like bapimathead occurs 0 with header line.
  data: clientdata  like bapi_mara.
  data: clientdatax like bapi_marax.
  data: salesdata   like bapi_mvke.
  data: salesdatax  like bapi_mvkex.
  data: plantdata   like bapi_marc.
  data: plantdatax  like bapi_marcx.
  data: return         like bapiret2.
  data: taxclassifications like bapi_mlan   occurs 0 with header line.
  data: commitmessages like bapi_matreturn2 occurs 0 with header line.
  data: returnmessages like bapiret2        occurs 0 with header line.
  data: materialdescription like bapi_makt  occurs 0 with header line.

  data: charx value 'X'.

* Kopfdaten
  headdata-material   = p_matnr.
  headdata-matl_type  = 'FERT'.
  headdata-ind_sector = 'M'.
* Sichten die gepflegt werden sollen
  headdata-basic_view = charx.  "Sicht auf Grunddaten
  headdata-sales_view = charx.  "Sicht auf Vertriebsdaten
* Daten für die Sicht GRUNDDATEN 1
  materialdescription-langu = sy-langu.
  materialdescription-matl_desc = p_maktx.
  append materialdescription.
*---------------------------------------------------------------------*
* Mandantenspezifische Materialdaten
*---------------------------------------------------------------------*
  clientdata-base_uom  = 'ST'.
  clientdatax-base_uom = charx.
*
  clientdata-trans_grp  = '0001'.
  clientdatax-trans_grp  = charx.
*---------------------------------------------------------------------*
* Materialdaten auf Werksebene
*---------------------------------------------------------------------*
  plantdata-plant = p_werks.
  plantdatax-plant = p_werks.

  plantdata-loadinggrp = '0001'.
  plantdatax-loadinggrp = charx.
*---------------------------------------------------------------------*
* Verkaufsdaten
*---------------------------------------------------------------------*
  salesdata-sales_org = p_vkorg.
  salesdatax-sales_org = p_vkorg.
  salesdata-distr_chan = p_vtweg.
  salesdatax-distr_chan = p_vtweg.
*---------------------------------------------------------------------*
* Steuerklassifikation
*---------------------------------------------------------------------*
  taxclassifications-depcountry = 'DE'.
  taxclassifications-tax_type_1 = 'MWST'.
  taxclassifications-taxclass_1 = '1'.
  append taxclassifications.



  call function 'BAPI_MATERIAL_SAVEDATA'
    exporting
      headdata                   = headdata
      clientdata                 = clientdata
      clientdatax                = clientdatax
      plantdata                  = plantdata
      plantdatax                 = plantdatax
*   FORECASTPARAMETERS         =
*   FORECASTPARAMETERSX        =
*   PLANNINGDATA               =
*   PLANNINGDATAX              =
*   STORAGELOCATIONDATA        =
*   STORAGELOCATIONDATAX       =
*   VALUATIONDATA              =
*   VALUATIONDATAX             =
*   WAREHOUSENUMBERDATA        =
*   WAREHOUSENUMBERDATAX       =
       salesdata                  = salesdata
       salesdatax                 = salesdatax
*   STORAGETYPEDATA            =
*   STORAGETYPEDATAX           =
    importing
      return                     = return
    tables
      materialdescription        = materialdescription
*   UNITSOFMEASURE             =
*   UNITSOFMEASUREX            =
*   INTERNATIONALARTNOS        =
*   MATERIALLONGTEXT           =
      taxclassifications         = taxclassifications
      returnmessages             = returnmessages
*   PRTDATA                    =
*   PRTDATAX                   =
*   EXTENSIONIN                =
*   EXTENSIONINX               =
            .
  call function 'BAPI_TRANSACTION_COMMIT'
       exporting
            wait   = charx
       importing
            return = commitmessages.

*  commit work and wait.

* Für den Fall das es notwendig wird die Exclusive Sperre wegräumen
       CALL FUNCTION 'DEQUEUE_EMMARAE'
            EXPORTING
                matnr = p_matnr.



* if return-type ne 'S'.
    format color col_negative.
    loop at returnmessages.
      write: / returnmessages-message.
    endloop.
* endif.

  loop at commitmessages.
    write: / commitmessages-message.
  endloop.

endform.                    " material_create
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 10:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169843#M460077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T10:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to modify MARC table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169844#M460078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 05:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-modify-marc-table/m-p/2169844#M460078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T05:41:53Z</dc:date>
    </item>
  </channel>
</rss>

