<?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 Using: BAPI_MATERIAL_SAVEDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-material-savedata/m-p/1638638#M284594</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 try to use the above FM like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZGRO_TEST.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: HEADDATA LIKE BAPIMATHEAD.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: RETURN   LIKE BAPIRET2.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF RETURNM OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE BAPIRET2.&lt;/P&gt;&lt;P&gt;DATA: END   OF RETURNM.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LTEXT OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE BAPI_MLTX.&lt;/P&gt;&lt;P&gt;DATA: END   OF LTEXT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: MATNR    LIKE MARA-MATNR VALUE '000000000000000592'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  HEADDATA-MATERIAL   = MATNR.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  LTEXT-APPLOBJECT  = 'MATERIAL'.&lt;/P&gt;&lt;P&gt;  LTEXT-TEXT_NAME   = MATNR.&lt;/P&gt;&lt;P&gt;  LTEXT-TEXT_ID     = 'PRUE'.&lt;/P&gt;&lt;P&gt;  LTEXT-LANGU       = SY-LANGU.&lt;/P&gt;&lt;P&gt;  LTEXT-FORMAT_COL  = '*'.&lt;/P&gt;&lt;P&gt;  LTEXT-TEXT_LINE   = 'first  Inspection Text'.&lt;/P&gt;&lt;P&gt;  APPEND LTEXT.&lt;/P&gt;&lt;P&gt;  LTEXT-TEXT_LINE   = 'second Inspection Text'.&lt;/P&gt;&lt;P&gt;  APPEND LTEXT.&lt;/P&gt;&lt;P&gt;  LTEXT-TEXT_LINE   = 'third  Inspection Text'.&lt;/P&gt;&lt;P&gt;  APPEND LTEXT.&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         = HEADDATA&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            RETURN           = RETURN&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            MATERIALLONGTEXT = LTEXT&lt;/P&gt;&lt;P&gt;            RETURNMESSAGES   = RETURNM.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  BREAK-POINT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works (i hope) OK.&lt;/P&gt;&lt;P&gt;But i get some return like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;RETURN&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The material 592 has been created or extended&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;RETURNM with 4 entries&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Trying to create: 592 ____ ____ ____ __________ ____ __ ___ ___&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The material cannot be maintained since no maintainable data transferred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to change: 592 ____ ____ ____ __________ ____ __ ___ ___&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material 592 changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;Can i give the FM any Information for using it&lt;/P&gt;&lt;P&gt;in UPDATE-Mode or is my using in this case correct??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2006 15:18:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-20T15:18:40Z</dc:date>
    <item>
      <title>Using: BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-material-savedata/m-p/1638638#M284594</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 try to use the above FM like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZGRO_TEST.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: HEADDATA LIKE BAPIMATHEAD.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: RETURN   LIKE BAPIRET2.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF RETURNM OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE BAPIRET2.&lt;/P&gt;&lt;P&gt;DATA: END   OF RETURNM.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LTEXT OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE BAPI_MLTX.&lt;/P&gt;&lt;P&gt;DATA: END   OF LTEXT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: MATNR    LIKE MARA-MATNR VALUE '000000000000000592'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  HEADDATA-MATERIAL   = MATNR.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  LTEXT-APPLOBJECT  = 'MATERIAL'.&lt;/P&gt;&lt;P&gt;  LTEXT-TEXT_NAME   = MATNR.&lt;/P&gt;&lt;P&gt;  LTEXT-TEXT_ID     = 'PRUE'.&lt;/P&gt;&lt;P&gt;  LTEXT-LANGU       = SY-LANGU.&lt;/P&gt;&lt;P&gt;  LTEXT-FORMAT_COL  = '*'.&lt;/P&gt;&lt;P&gt;  LTEXT-TEXT_LINE   = 'first  Inspection Text'.&lt;/P&gt;&lt;P&gt;  APPEND LTEXT.&lt;/P&gt;&lt;P&gt;  LTEXT-TEXT_LINE   = 'second Inspection Text'.&lt;/P&gt;&lt;P&gt;  APPEND LTEXT.&lt;/P&gt;&lt;P&gt;  LTEXT-TEXT_LINE   = 'third  Inspection Text'.&lt;/P&gt;&lt;P&gt;  APPEND LTEXT.&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         = HEADDATA&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            RETURN           = RETURN&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            MATERIALLONGTEXT = LTEXT&lt;/P&gt;&lt;P&gt;            RETURNMESSAGES   = RETURNM.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  BREAK-POINT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works (i hope) OK.&lt;/P&gt;&lt;P&gt;But i get some return like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;RETURN&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The material 592 has been created or extended&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;RETURNM with 4 entries&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Trying to create: 592 ____ ____ ____ __________ ____ __ ___ ___&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The material cannot be maintained since no maintainable data transferred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to change: 592 ____ ____ ____ __________ ____ __ ___ ___&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material 592 changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;Can i give the FM any Information for using it&lt;/P&gt;&lt;P&gt;in UPDATE-Mode or is my using in this case correct??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 15:18:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-material-savedata/m-p/1638638#M284594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T15:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using: BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-material-savedata/m-p/1638639#M284595</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 need to create a new text you can use fm SAVE_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that BAPI can't insert only a text but at least one field should be changed: it seems the BAPI has tried to open the material for new (no) plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 15:30:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-material-savedata/m-p/1638639#M284595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T15:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using: BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-material-savedata/m-p/1638640#M284596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dieter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation of the parameter MATERIALLONGTEXT says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Note                                                                                
Different long texts (basic data texts, purchase order texts, internal  
    comments, sales texts, material memos) can be created for a material.   
    This requires the fields APPLOBJECT, TEXT_NAME, TEXT_ID, and LANGU or   
    LANGU_ISO in table parameter MATERIALLONGTEXT to contain entries.       
    Depending on the content of field TEXT_ID, the field TEXT_NAME must have
    the following structure:                                                                                
The material number is transferred first. If it has fewer than 18       
    characters, the remaining characters must be filled with blanks. If it  
    is a material memo (LTXT), the plant key must also be transferred from  
    character 19 onwards; in the case of a sales text (0001), this must be  
    the sales organization and distribution channel. The combinations       
    allowed for the four different fields are indicated in the following table:&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;                                                         &lt;/P&gt;&lt;P&gt;Thus, I guess the problem might be the leading '0'. You should try to write the material number just as '592'.&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>Sun, 24 Sep 2006 15:08:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-material-savedata/m-p/1638640#M284596</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-09-24T15:08:27Z</dc:date>
    </item>
  </channel>
</rss>

