<?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 add write statement in BAPI_MATERIALSAVEDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742610#M1112511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the problem exactly, you can put anything in the write statement you want. your are not forced to use tha bapi message ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

      CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
          headdata                   = h_headdata
          clientdata                 = h_bapi_mara
          clientdatax                = h_bapi_marax
          plantdata                  = h_bapi_marc
          plantdatax                 = h_bapi_marcx
*   FORECASTPARAMETERS         =
*   FORECASTPARAMETERSX        =
*   PLANNINGDATA               =
*   PLANNINGDATAX              =
          storagelocationdata        = h_bapi_mard
          storagelocationdatax       = h_bapi_mardx
          valuationdata              = h_bapi_mbew
          valuationdatax             = h_bapi_mbewx
*   WAREHOUSENUMBERDATA        =
*   WAREHOUSENUMBERDATAX       =
         salesdata                  = h_bapi_mvke
         salesdatax                 = h_bapi_mvkx
*   STORAGETYPEDATA            =
*   STORAGETYPEDATAX           =
*   FLAG_ONLINE                = ' '
*   FLAG_CAD_CALL              = ' '
*   NO_DEQUEUE                 = ' '
       IMPORTING
         return                     = wa_return
       TABLES
         materialdescription        = ta_bapi_makt
*   UNITSOFMEASURE             =
*   UNITSOFMEASUREX            =
*   INTERNATIONALARTNOS        =
*   MATERIALLONGTEXT           =
          taxclassifications         = ta_bapi_mlan
*   RETURNMESSAGES             =
*   PRTDATA                    =
*   PRTDATAX                   =
*   EXTENSIONIN                =
*   EXTENSIONINX               =
                .


      WRITE wa_return-message.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code, here I use the bapi message but you can also write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
concatenate 'hello this material' h_headdata-material 'is now created with my own message' into youremessage seperated by space.
write youremessage.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur de smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2008 10:05:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-10T10:05:53Z</dc:date>
    <item>
      <title>To add write statement in BAPI_MATERIALSAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742605#M1112506</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 m using BAPI_MATERIALSAVEDATA for MM02 T.code.&lt;/P&gt;&lt;P&gt;After execution of BAPI,it displays the default message that the material 30006578 has been created or extended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change this default message produced by BAPI_MATERIAL_SAVEDATA.&lt;/P&gt;&lt;P&gt;Can anybody help regarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2008 09:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742605#M1112506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-08T09:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: To add write statement in BAPI_MATERIALSAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742606#M1112507</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;It means you want to dispaly that message in the output ie In the Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cannot change the standard message but 1 thing is that we can BAPI_MATERIAL_SAVEDATA is copied to Z or YBAPI_MATERIAL_SAVEDATA and check message from where it is generating then in that place comment the standard message write your own message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 04:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742606#M1112507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T04:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: To add write statement in BAPI_MATERIALSAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742607#M1112508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLz help how to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 04:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742607#M1112508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T04:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: To add write statement in BAPI_MATERIALSAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742608#M1112509</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;If you want to customise the standard BAPI you need to copy it to ZBapi and change the message accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 05:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742608#M1112509</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2008-11-10T05:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: To add write statement in BAPI_MATERIALSAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742609#M1112510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;do like this but was not sure whether we can change it.&lt;/P&gt;&lt;P&gt;LOOP AT it_return INTO wa_return WHERE type EQ 'E'.&lt;/P&gt;&lt;P&gt;            v_error_desc = wa_return-message.&lt;/P&gt;&lt;P&gt;over lay v_error_desc with u r own message and &lt;/P&gt;&lt;P&gt;now display u r message.&lt;/P&gt;&lt;P&gt;          ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 05:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742609#M1112510</guid>
      <dc:creator>mahaboob_pathan</dc:creator>
      <dc:date>2008-11-10T05:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: To add write statement in BAPI_MATERIALSAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742610#M1112511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the problem exactly, you can put anything in the write statement you want. your are not forced to use tha bapi message ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

      CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
          headdata                   = h_headdata
          clientdata                 = h_bapi_mara
          clientdatax                = h_bapi_marax
          plantdata                  = h_bapi_marc
          plantdatax                 = h_bapi_marcx
*   FORECASTPARAMETERS         =
*   FORECASTPARAMETERSX        =
*   PLANNINGDATA               =
*   PLANNINGDATAX              =
          storagelocationdata        = h_bapi_mard
          storagelocationdatax       = h_bapi_mardx
          valuationdata              = h_bapi_mbew
          valuationdatax             = h_bapi_mbewx
*   WAREHOUSENUMBERDATA        =
*   WAREHOUSENUMBERDATAX       =
         salesdata                  = h_bapi_mvke
         salesdatax                 = h_bapi_mvkx
*   STORAGETYPEDATA            =
*   STORAGETYPEDATAX           =
*   FLAG_ONLINE                = ' '
*   FLAG_CAD_CALL              = ' '
*   NO_DEQUEUE                 = ' '
       IMPORTING
         return                     = wa_return
       TABLES
         materialdescription        = ta_bapi_makt
*   UNITSOFMEASURE             =
*   UNITSOFMEASUREX            =
*   INTERNATIONALARTNOS        =
*   MATERIALLONGTEXT           =
          taxclassifications         = ta_bapi_mlan
*   RETURNMESSAGES             =
*   PRTDATA                    =
*   PRTDATAX                   =
*   EXTENSIONIN                =
*   EXTENSIONINX               =
                .


      WRITE wa_return-message.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code, here I use the bapi message but you can also write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
concatenate 'hello this material' h_headdata-material 'is now created with my own message' into youremessage seperated by space.
write youremessage.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur de smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 10:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-add-write-statement-in-bapi-materialsavedata/m-p/4742610#M1112511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T10:05:53Z</dc:date>
    </item>
  </channel>
</rss>

