<?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 with custom z-fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406968#M196344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;__________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the function module documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of characters reserved in the two parameters for the content of a customer-defined field must be the same as the number of characters for the corresponding work area field. &amp;lt;b&amp;gt;If the number of characters required is smaller, the remaining characters in the two parameters must be filled with blanks. Only then may the content of another field be transferred.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;__________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Length of material number is 18 characters. So, when you do BAPI_TE_MARAX-MATERIAL = IT_MATERIAL_NUMBER-MATERIAL make sure that IT_MATERIAL_NUMBER-MATERIAL is right-filled with spaces (i.e. if it is does not have 18 characters by itself).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2006 17:55:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-10T17:55:36Z</dc:date>
    <item>
      <title>BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406958#M196334</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'm using the fm BAPI_MATERIAL_SAVEDATA to create a material in our R/3 (4.7) test system. That works fine, but now I have an additional field to fill with data. This field is an customer field in an mara-append (MARA-ZFORST). I fill this field in the extentionin structure of the BAPI_MATERIAL_SAVEDATA. When I'm debugging the fm, I see there ist a call of fm MATERIAL_MAINTAIN_DARK. This fm has the table TMARA_UEB. A look in this table shows that my z-field is filled correctly. The call ends with no error, the material is created, BUT without my z-field in mara. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx &lt;/P&gt;&lt;P&gt;Yvonne Adler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 07:25:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406958#M196334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T07:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406959#M196335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Yvonne,&lt;/P&gt;&lt;P&gt;the given BAPI - BAPI_MATERIAL_SAVEDATA contains EXTENSIONIN and EXTENSIONINX under TABLES tab. z-fields in MARA table can be passed to this internal table, which will update the specific value in MARA. &lt;/P&gt;&lt;P&gt;The structures BAPI_TE_&amp;lt;NAME&amp;gt; (&amp;lt;NAME&amp;gt; = MARA, MARC, MARD, MBEW, MLGN, MLGT, MVKE) and the relevant checkbox structures BAPI_TE_&amp;lt;NAME&amp;gt; (&amp;lt;NAME&amp;gt; = MARAX, etc.) must first be extended by the customer to include the fields required. The standard structures contain only the corresponding key fields. When including new fields in these structures, make sure that the field has the same name as the field in the database table. In addition, the fields in the structures BAPI_TE_&amp;lt;NAME&amp;gt; may only be of the&lt;/P&gt;&lt;P&gt;type CHARACTER. The data element BAPIUPDATE must be used for the fields in the checkbox structure (except for key fields).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 08:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406959#M196335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T08:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406960#M196336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yvonne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you pls. let us kow how extensionIN and ExtensionINX structues are populated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a thought, for populating ExtensionIn and ExtensionINX parameters for this BAPI, &lt;/P&gt;&lt;P&gt;Have you filled both BAPI_TE_MARA and BAPI_TE_MARAX structures properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Akshay Bhagwat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 08:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406960#M196336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T08:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406961#M196337</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;BAPI_MATERIAL_SAVEDATA you have table prameters&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;EXTENSIONIN&lt;/P&gt;&lt;P&gt;EXTENSIONINX&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;read the documentation on these two parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 08:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406961#M196337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T08:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406962#M196338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx for your quick replies,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first I extend the structures BAPI_TE_MARA by my customer field ZZFORST (char 10), then I extend the structure BAPI_TE_MARAX by field ZZFORST (BAPIUPDATE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call of the fm:&lt;/P&gt;&lt;P&gt;********************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;STRUCTURE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:&lt;/P&gt;&lt;P&gt;  BAPIMATHEAD,  "Headerdata&lt;/P&gt;&lt;P&gt;  BAPI_MARA,    "Clientdata&lt;/P&gt;&lt;P&gt;  BAPI_MARAX,   "Clientdatax&lt;/P&gt;&lt;P&gt;  BAPI_MARC,    "Plantdata&lt;/P&gt;&lt;P&gt;  BAPI_MARCX,   "Plantdatax&lt;/P&gt;&lt;P&gt;  BAPI_MAKT,    "Material description&lt;/P&gt;&lt;P&gt;  BAPIPAREX,    "Extensionstruktur&lt;/P&gt;&lt;P&gt;  BAPIPAREXX,&lt;/P&gt;&lt;P&gt;  BAPIRET2.     "Return messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  BAPI_TE_MARA  LIKE BAPI_TE_MARA,&lt;/P&gt;&lt;P&gt;  BAPI_TE_MARAX LIKE BAPI_TE_MARAX,&lt;/P&gt;&lt;P&gt;  V_FILE        TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INTERNAL TABLE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*to store the output data&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF it_material_number OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE BAPIMATINR.&lt;/P&gt;&lt;P&gt;DATA:END OF it_material_number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*for materialtext&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF IT_MATERIALDESC OCCURS 0.&lt;/P&gt;&lt;P&gt;     INCLUDE STRUCTURE BAPI_MAKT .&lt;/P&gt;&lt;P&gt;DATA:END OF IT_MATERIALDESC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*für z-feld&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF IT_BAPIPAREX OCCURS 0.&lt;/P&gt;&lt;P&gt;     INCLUDE STRUCTURE BAPIPAREX.&lt;/P&gt;&lt;P&gt;DATA:END OF IT_BAPIPAREX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*für z-feldx&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF IT_BAPIPAREXX OCCURS 0.&lt;/P&gt;&lt;P&gt;     INCLUDE STRUCTURE BAPIPAREXX.&lt;/P&gt;&lt;P&gt;DATA:END OF IT_BAPIPAREXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*to return messages&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF IT_RETURN2 OCCURS 0.&lt;/P&gt;&lt;P&gt;     INCLUDE STRUCTURE BAPIRET2.&lt;/P&gt;&lt;P&gt;DATA:END OF IT_RETURN2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF IT_RETURN OCCURS 0.&lt;/P&gt;&lt;P&gt;     INCLUDE STRUCTURE BAPIRET1.&lt;/P&gt;&lt;P&gt;DATA:END OF IT_RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PROCESSING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      BAPIMATHEAD-MATERIAL = IT_MATERIAL_NUMBER-MATERIAL.&lt;/P&gt;&lt;P&gt;      BAPIMATHEAD-IND_SECTOR = 'S'.&lt;/P&gt;&lt;P&gt;      BAPIMATHEAD-MATL_TYPE = 'ZRHD'.&lt;/P&gt;&lt;P&gt;      BAPIMATHEAD-BASIC_VIEW = 'X'.&lt;/P&gt;&lt;P&gt;      BAPIMATHEAD-PURCHASE_VIEW = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      BAPI_MARA-MATL_GROUP = 'RH01'.&lt;/P&gt;&lt;P&gt;      BAPI_MARA-OLD_MAT_NO = '0815'.&lt;/P&gt;&lt;P&gt;      BAPI_MARA-BASE_UOM = 'FM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      BAPI_MARAX-MATL_GROUP = 'X'.&lt;/P&gt;&lt;P&gt;      BAPI_MARAX-OLD_MAT_NO = 'X'.&lt;/P&gt;&lt;P&gt;      BAPI_MARAX-BASE_UOM = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      BAPI_MARC-PLANT = '0100'.&lt;/P&gt;&lt;P&gt;      BAPI_MARCX-PLANT = '0100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IT_MATERIALDESC-LANGU = 'DE'.&lt;/P&gt;&lt;P&gt;      IT_MATERIALDESC-MATL_DESC = 'RH TEST-Material'.&lt;/P&gt;&lt;P&gt;      APPEND IT_MATERIALDESC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      BAPI_TE_MARA-MATERIAL = IT_MATERIAL_NUMBER-MATERIAL.&lt;/P&gt;&lt;P&gt;      BAPI_TE_MARA-ZZFORST  = '0000704148'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      BAPI_TE_MARAX-MATERIAL = IT_MATERIAL_NUMBER-MATERIAL.&lt;/P&gt;&lt;P&gt;      BAPI_TE_MARAX-ZZFORST  = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IT_BAPIPAREX-STRUCTURE  = 'BAPI_TE_MARA'.&lt;/P&gt;&lt;P&gt;      IT_BAPIPAREX-VALUEPART1 = BAPI_TE_MARA.&lt;/P&gt;&lt;P&gt;      APPEND IT_BAPIPAREX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IT_BAPIPAREXX-STRUCTURE  = 'BAPI_TE_MARAX'.&lt;/P&gt;&lt;P&gt;      IT_BAPIPAREXX-VALUEPART1 = BAPI_TE_MARAX.&lt;/P&gt;&lt;P&gt;      APPEND IT_BAPIPAREXX.&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                   = BAPIMATHEAD&lt;/P&gt;&lt;P&gt;          CLIENTDATA                 = BAPI_MARA&lt;/P&gt;&lt;P&gt;          CLIENTDATAX                = BAPI_MARAX&lt;/P&gt;&lt;P&gt;          PLANTDATA                  = BAPI_MARc&lt;/P&gt;&lt;P&gt;          PLANTDATAX                 = BAPI_MARcx&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;         RETURN                      = IT_RETURN2&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;          MATERIALDESCRIPTION        = IT_MATERIALDESC&lt;/P&gt;&lt;P&gt;          EXTENSIONIN                = IT_BAPIPAREX&lt;/P&gt;&lt;P&gt;          EXTENSIONINX               = IT_BAPIPAREXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report runs without an error, the material was created, but without z-field. Does anyone see the error in coding?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 08:58:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406962#M196338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T08:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406963#M196339</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;after your BAPI call ,call this BAPI &amp;lt;b&amp;gt;BAPI_TRANSACTION_COMMIT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; if not IT_RETURN2[] is intial.
 loop at it_return2 where TYPE = 'S'.
 call function 'BAPI_TRANSACTION_COMMIT'.
 exit.
 endloop.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 09:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406963#M196339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T09:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406964#M196340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your coding, but the same result: material without z-field was created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;yvonne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 09:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406964#M196340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-19T09:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406965#M196341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Yvonne, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you find a solution for that? I'm in a similar situation. I try to change only a z-field of the mara through the BAPI.&lt;/P&gt;&lt;P&gt;During debugging I can see that the extension-table is correctly setting the z-field at the structure of TMARA_UEB. The FuMo MATERIAL_MAINTAIN_DARK comes back without errors only with message: No changes made, because no maintainable data given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change a standard field of mara the changes are written to db, but the z-field is still untouched. I called the MATERIAL_MAINTAIN_DARK directly - same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 13:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406965#M196341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T13:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406966#M196342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm so sorry, but I have no solution, yet. An other ABAP coder advised me to make a hard UPDATE on DB after the successful call of the FB 'BAPI_MATERIAL_SAVEDATA'.&lt;/P&gt;&lt;P&gt;Something like that:&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                   = BAPIMATHEAD&lt;/P&gt;&lt;P&gt;          CLIENTDATA                 = BAPI_MARA&lt;/P&gt;&lt;P&gt;          CLIENTDATAX                = BAPI_MARAX&lt;/P&gt;&lt;P&gt;          PLANTDATA                  = BAPI_MARc&lt;/P&gt;&lt;P&gt;          PLANTDATAX                 = BAPI_MARcx&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;         RETURN                      = IT_RETURN2&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;          MATERIALDESCRIPTION        = IT_MATERIALDESC&lt;/P&gt;&lt;P&gt;          EXTENSIONIN                = IT_BAPIPAREX&lt;/P&gt;&lt;P&gt;          EXTENSIONINX               = IT_BAPIPAREXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        UPDATE MARA SET ZZFORST = '0000704148'&lt;/P&gt;&lt;P&gt;        WHERE MATNR = IT_MATERIAL_NUMBER-MATERIAL.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think that's not the best solution, I#d rather like to use only the FB. If you solve the problem, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Yvonne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 14:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406966#M196342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T14:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406967#M196343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a guess... In your program after the statement&lt;/P&gt;&lt;P&gt;BAPI_TE_MARA-MATERIAL = IT_MATERIAL_NUMBER-MATERIAL call the conversion function i.e. CONVERSION_EXIT_MATN1_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to pass the material number in the internal format. Is this happenning in your program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 14:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406967#M196343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T14:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406968#M196344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;__________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the function module documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of characters reserved in the two parameters for the content of a customer-defined field must be the same as the number of characters for the corresponding work area field. &amp;lt;b&amp;gt;If the number of characters required is smaller, the remaining characters in the two parameters must be filled with blanks. Only then may the content of another field be transferred.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;__________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Length of material number is 18 characters. So, when you do BAPI_TE_MARAX-MATERIAL = IT_MATERIAL_NUMBER-MATERIAL make sure that IT_MATERIAL_NUMBER-MATERIAL is right-filled with spaces (i.e. if it is does not have 18 characters by itself).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 17:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406968#M196344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T17:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406969#M196345</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;Iam also in same situation. I could create material, but I could not save custom fields. did you find any solution. If you have the solutions pl let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 23:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406969#M196345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T23:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406970#M196346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi M Master Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solutions to update zfields from this Bapi?. I tried as explained in documentation. but zfield not updating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 10:44:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406970#M196346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T10:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406971#M196347</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;thnx for your hint, but I get my new material number from the function BAPI_STDMATERIAL_GETINTNUMBER. So it is in the right format with 18 characters, e.g '000000000000600281'. That should not be the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Yvonne Adler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2006 06:14:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406971#M196347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-12T06:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406972#M196348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yvonne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realised SAP released new OSS note for BAPI BAPI_MATERIAL_SAVEDATA for updating user-defined fields.&lt;/P&gt;&lt;P&gt;Make sure the patch applied on your system. Iam also waiting to apply this note by our Basis team. But in Our environment is take min couple of weeks to apply patch. Hope this should solve our problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OSS Note # 914251&lt;/P&gt;&lt;P&gt;Support Package:SAP_APPL  SAPKH60004 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the oss note text.&lt;/P&gt;&lt;P&gt;Symptom&lt;/P&gt;&lt;P&gt;If user-defined fields are defined for table MARA, and the values are entered in table EXTENSIONIN when BAPI_MATERIAL_SAVEDATA is called, then the values of the user-defined fields cannot be saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other terms&lt;/P&gt;&lt;P&gt;BUS1001  MM17&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_MATERIAL_SAVEDATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MARA  BAPI_TE_MARA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXTENSIONIN   EXTENSIONINX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason and Prerequisites&lt;/P&gt;&lt;P&gt;The material number is missing in the internal table for BAPI_TE_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution&lt;/P&gt;&lt;P&gt;Use the correction instructions to implement the correction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 01:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406972#M196348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T01:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406973#M196349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hariprasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the note. Our basis team implement the correction in our test system, but it seems to have no affect to our problem. The z-field is still empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Yvonne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 09:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406973#M196349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T09:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406974#M196350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yvonne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl update this conversation if you find any solution for updating zzfields. I have close to 100 custom fileds and configurd custom Material Master. Iam also trying to update custom data using this function. I too have same problem. did you make sure maintaing all fields in table T130F. SAP asking to maintain T130f table for custom fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 11:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406974#M196350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T11:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406975#M196351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved the problem myself. The reason zzfields are not updating when you call this bapi is  maintaining all zzfields in table T130f. Not only makinfg an entry in this table , make sure maintain status is filled and field status group also filled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t130f- PSTAT -Maintenance status&lt;/P&gt;&lt;P&gt;t130f-SFGRU - Special field selection group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these two fields should filled with proper values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 17:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406975#M196351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T17:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406976#M196352</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;I am facing the same problem of updating Z field in MARA through BAPI BAPI_MATERIAL_SAVEDATA. I  correctly extended the structures BAPI_TE_MARA by my customer field ZZWAUK_MATNR (char 18), then I extend the structure BAPI_TE_MARAX by field ZZFORST (BAPIUPDATE). Did you guys find any solution.&lt;/P&gt;&lt;P&gt;Kindly help me how to do it because you allready had this issue, hope will get some help from any one of 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:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406976#M196352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T06:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA with custom z-fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406977#M196353</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;I was also facing the same problem, but I could bring the BAPI to work correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, here my program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  zp601931_test_004.
DATA: ls_headdata      TYPE bapimathead,
      lt_extensionin   TYPE STANDARD TABLE OF bapiparex,
      ls_extensionin   LIKE LINE OF lt_extensionin,
      lt_extensioninx  TYPE STANDARD TABLE OF bapiparexx,
      ls_extensioninx  LIKE LINE OF lt_extensioninx,
      lt_messages      TYPE bapiret2_t,
      ls_bapi_te_mara  TYPE bapi_te_mara,
      ls_bapi_te_marax TYPE bapi_te_marax.


CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
  EXPORTING
    input  = '2'
  IMPORTING
    output = ls_headdata-material.

ls_headdata-basic_view = 'X'.

ls_bapi_te_mara-material = ls_headdata-material.
* Here I want to write 4 in my Append Field !!!!!
ls_bapi_te_mara-zztest1 = '4'.

ls_bapi_te_marax-material         = ls_headdata-material.
ls_bapi_te_marax-zztest1          = 'X'.

ls_extensionin-structure         = 'BAPI_TE_MARA'.
ls_extensionin-valuepart1+0(18)  = ls_bapi_te_mara-material.
ls_extensionin-valuepart1+18(1)  = ls_bapi_te_mara-zztest1.
APPEND ls_extensionin TO lt_extensionin.

ls_extensioninx-structure         = 'BAPI_TE_MARAX'.
ls_extensioninx-valuepart1+0(18)  = ls_bapi_te_mara-material.
ls_extensioninx-valuepart1+18(1)  = ls_bapi_te_marax-zztest1.
APPEND ls_extensioninx TO lt_extensioninx.

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
  EXPORTING
    headdata       = ls_headdata
  TABLES
    returnmessages = lt_messages
    extensionin    = lt_extensionin
    extensioninx   = lt_extensioninx.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
  EXPORTING
    wait = 'X'.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    i_structure_name = 'BAPIRET2'
  TABLES
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, the structures BAPI_TE_MARA and BAPI_TE_MARAX were extended to match the append-field of structure MARA (here ZZTEST1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, you'll need to do some customizing to get this code running properly.&lt;/P&gt;&lt;P&gt;So, call the transaction SPRO and open the activity "&amp;lt;i&amp;gt;Logistics - General-&amp;gt;Material Master-&amp;gt;Field Selection-&amp;gt;Assign Fields to Field Selection Groups&amp;lt;/i&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on "&amp;lt;i&amp;gt;New Entries&amp;lt;/i&amp;gt;". Now you can fill the field "&amp;lt;i&amp;gt;Field name&amp;lt;/i&amp;gt;" (I wrote MARA-ZZTEST2) and, VERY IMPORTANT, fill the field "&amp;lt;i&amp;gt;Maint.status&amp;lt;/i&amp;gt;" with 'ABCDEFGKLPQSVXZ' (with F1 on this you'll get a description what that means).&lt;/P&gt;&lt;P&gt;So, now you can save this data and go back to the preceding screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the displayed list you should have your new field displayed, you now need to fill the field "&amp;lt;i&amp;gt;Sel.Group&amp;lt;/i&amp;gt;" with a selection group number (I choose the 111). Now save, and everithing should now run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dominique Delesse&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 09:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-with-custom-z-fields/m-p/1406977#M196353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T09:37:15Z</dc:date>
    </item>
  </channel>
</rss>

