<?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'  Using Extension in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023166#M1609017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to see that field in BAPI_TE_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2011 04:16:19 GMT</pubDate>
    <dc:creator>madhu_vadlamani</dc:creator>
    <dc:date>2011-07-22T04:16:19Z</dc:date>
    <item>
      <title>'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023154#M1609005</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 have added append structure in MARA table&lt;/P&gt;&lt;P&gt;ZZCNAME is append structure name. and below the custom fields.&lt;/P&gt;&lt;P&gt;1)ZZCUSTOMERID NUMC(10)&lt;/P&gt;&lt;P&gt;2)ZZCUSTOMERNAE CHAR(4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to insert data to these fields using CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me how to do this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried like this after searching from internet .. but does not updated. should i have to create structure forZZCNAMEX also?&lt;/P&gt;&lt;P&gt;rex-STRUCTURE = 'ZZCNAME'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+0(10) = 'ZZCUSTOMERID'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+10(10) = 'ZZCUSTOMERNAME'.&lt;/P&gt;&lt;P&gt;APPEND rex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rexx-STRUCTURE = 'ZZCNAMEX'.&lt;/P&gt;&lt;P&gt;rexx-VALUEPART1+0(1) = 'X'.&lt;/P&gt;&lt;P&gt;rexx-VALUEPART1+1(1) = 'X'.&lt;/P&gt;&lt;P&gt;APPEND rexx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;passing to bapi as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      extensionin         = rex                                  "APPEND TABLE FIELDS&lt;/P&gt;&lt;P&gt;      extensioninx        = rexx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 06:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023154#M1609005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T06:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023155#M1609006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi princeck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please add your append structure ZZCNAME to the standard structure BAPI_TE_MARA and BAPI_TE_MARAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this change your code as :&lt;/P&gt;&lt;P&gt;rex-STRUCTURE = 'BAPI_TE_MARA'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+0(18) = matnr.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+18(10) = 'ZZCUSTOMERID'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+28(10) = 'ZZCUSTOMERNAME'.&lt;/P&gt;&lt;P&gt;APPEND rex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rexx-STRUCTURE = 'BAPI_TE_MARAX'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+0(18) = matnr.&lt;/P&gt;&lt;P&gt;rexx-VALUEPART1+18(1) = 'X'.&lt;/P&gt;&lt;P&gt;rexx-VALUEPART1+28(1) = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND rexx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;passing to bapi as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extensionin = rex "APPEND TABLE FIELDS&lt;/P&gt;&lt;P&gt;extensioninx = rexx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 11:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023155#M1609006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T11:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023156#M1609007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shailesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont understand  how standard structure BAPI_TE_MARA and BAPI_TE_MARAX is related with Mara table.&lt;/P&gt;&lt;P&gt;I could not find any BAPI structure inside MARA table. Should i have to append custom structure to Both BAPI_TE_MARA and MARAX?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell me whats the meaning for below statements.&lt;/P&gt;&lt;P&gt;rex-STRUCTURE = 'BAPI_TE_MARA'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+0(18) = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rexx-STRUCTURE = 'BAPI_TE_MARAX'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+0(18) = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matnr is value or variable or key field?&lt;/P&gt;&lt;P&gt;Little confusion in understanding this structure. &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>Thu, 21 Jul 2011 14:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023156#M1609007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-21T14:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023157#M1609008</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 have two doubts. can sombody shed light on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Should i have to add cust append structure(ZZXXX) in MARA table and BAPI structures  BAPI_TE_MARA and BAPI_TE_MARAX too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i try to append structure in BAP I structure  BAPI_TE_MARA  after adding MARA table it says its already exist?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) both below Matnr is field name? which is correct value to be passed. &lt;/P&gt;&lt;P&gt;rex-STRUCTURE = 'BAPI_TE_MARA'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+0(18) = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rexx-STRUCTURE = 'BAPI_TE_MARAX'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+0(18) = matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 00:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023157#M1609008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T00:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023158#M1609009</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_TE_MARA  and  BAPI_TE_MARAX are the standard structures to be used with any BAPI that updates MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you need to open  BAPI_TE_MARA  and append your custom structure ZZCNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you do that, BAPI_TE_MARA will have three fields&lt;/P&gt;&lt;P&gt;1)MATNR (Standard) 18 char&lt;/P&gt;&lt;P&gt;2)ZZCUSTOMERID NUMC(10)&lt;/P&gt;&lt;P&gt;3)ZZCUSTOMERNAE CHAR(4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next you need to open  BAPI_TE_MARAX  and append another custom structure ZZCNAMEX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you do that, BAPI_TE_MARAX will have three fields&lt;/P&gt;&lt;P&gt;1)MATNR (Standard) 18 char&lt;/P&gt;&lt;P&gt;2)ZZCUSTOMERID C(1)&lt;/P&gt;&lt;P&gt;3)ZZCUSTOMERNAE C(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now while calling the BAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lv_zzcname TYPE BAPI_TE_MARA,&lt;/P&gt;&lt;P&gt;           lv_zzcnamex TYPE BAPI_TE_MARAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_zzcname-MATNR = ??? ( Here you need to put the material number that you are trying to update)&lt;/P&gt;&lt;P&gt;lv_zzcname-ZZCUSTOMERID = xyz&lt;/P&gt;&lt;P&gt;lv_zzcname-ZZCUSTOMERNAE = abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rex-STRUCTURE = 'BAPI_TE_MARA'.&lt;/P&gt;&lt;P&gt;rex+30 = lv_zzcname.&lt;/P&gt;&lt;P&gt;APPEND rex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_zzcnamex-MATNR = ??? ( Here you need to put the material number that you are trying to update)&lt;/P&gt;&lt;P&gt;lv_zzcnamex-ZZCUSTOMERIDX = 'X'&lt;/P&gt;&lt;P&gt;lv_zzcnamex-ZZCUSTOMERNAEX = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rexx-STRUCTURE = 'BAPI_TE_MARAX'.&lt;/P&gt;&lt;P&gt;rexx+30 = lv_zzcnamex.&lt;/P&gt;&lt;P&gt;APPEND rexx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call bapi with rex and rexx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 00:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023158#M1609009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T00:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023159#M1609010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shailesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So finally Mara table needs to be added custom append structure(ZZCNAME) or not?&lt;/P&gt;&lt;P&gt;just adding only standard structure BAPIXXX is enough?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pls confirm this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: princeck on Jul 22, 2011 3:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 01:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023159#M1609010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T01:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023160#M1609011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 01:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023160#M1609011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T01:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023161#M1609012</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;Sorry to ask you so many questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried adding one field zzIfflg of char(1) with custom structure ZZCUSTM in MARA.(different name ZZCUSTM)&lt;/P&gt;&lt;P&gt;Then i added ZZCUST in BAPI_TE_MARA and ZZCUSTX in BAPI_TE_MARAX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did code like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :  rex LIKE bapiparex OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        rexx LIKE bapiparexx OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        LS_BAPI_TE_MARA TYPE BAPI_TE_MARA,&lt;/P&gt;&lt;P&gt;        LS_BAPI_TE_MARAX TYPE BAPI_TE_MARAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_bapi_te_mara-material = ls_headdata-material. " material number value&lt;/P&gt;&lt;P&gt;ls_bapi_te_mara-ZZIFFLG = 'I'." Pass the zfield and the value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_bapi_te_marax-material         = ls_headdata-material. " material number value&lt;/P&gt;&lt;P&gt;ls_bapi_te_marax-ZZIFFLG          = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rex-STRUCTURE = 'BAPI_TE_MARA'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+0(18) = ls_bapi_te_mara-material.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+18(1) = ls_bapi_te_mara-ZZIFFLG.&lt;/P&gt;&lt;P&gt;APPEND rex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rexx-STRUCTURE = 'BAPI_TE_MARAX'.&lt;/P&gt;&lt;P&gt;rexx-VALUEPART1+0(18) = ls_bapi_te_marax-material.&lt;/P&gt;&lt;P&gt;rexx-VALUEPART1+18(1) = ls_bapi_te_marax-ZZIFFLG.&lt;/P&gt;&lt;P&gt;APPEND rexx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just added one flag field and value I need to be inserted.&lt;/P&gt;&lt;P&gt;But bapi is failing. can you pls correct me.&lt;/P&gt;&lt;P&gt;Regard&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: princeck on Jul 22, 2011 4:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 01:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023161#M1609012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T01:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023162#M1609013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please debug at line 1294 in L1001UEBF01 and see why its failing.&lt;/P&gt;&lt;P&gt;Hope you have called the Commits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also ensure that the fields have the same name in BAPI_TE_MARA and BAPI_TE_MARAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In BAPI_TE_MARA it should be ZZIFLAG and in BAPI_TE_MARAX also it should be ZZIFLAG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 02:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023162#M1609013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T02:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023163#M1609014</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;yes, All field names are same ZZIFFLG.&lt;/P&gt;&lt;P&gt;BAPI is updating for other fields except extension parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused of using below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rex-STRUCTURE = 'BAPI_TE_MARA'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+0(18) = 'MATERIAL'.    "what should be given here? &lt;/P&gt;&lt;P&gt;In Mara table key is MATNR but BAPI_TE_MARA structure has defaut MATERIAL as parameter. there is not MATNR field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+18(1) = 'ZZIFFLG'.   "what should be given here?&lt;/P&gt;&lt;P&gt;18(1) is lenght of field name? and   'ZZIFFLG' is field name .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND rex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rexx-STRUCTURE = 'BAPI_TE_MARAX'.&lt;/P&gt;&lt;P&gt;rexx-VALUEPART1+0(18) = ls_bapi_te_marax-material.   "what should be given here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rexx-VALUEPART1+18(1) = ls_bapi_te_marax-ZZIFFLG.   "what should be given here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND rexx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you pls clear me this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 02:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023163#M1609014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T02:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023164#M1609015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prince,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to see that field in  BAPI_TE_MARA.If there is any issue please check the oss note 914251.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 03:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023164#M1609015</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-07-22T03:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023165#M1609016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhurao&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Yes the note is alread applied in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comments about my above source code.&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>Fri, 22 Jul 2011 04:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023165#M1609016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T04:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023166#M1609017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to see that field in BAPI_TE_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 04:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023166#M1609017</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-07-22T04:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023167#M1609018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;How you declared those fields .The extension of bapi_te_marax must contain the same named fields as the other two extensions, but all must have a type BAPIUPDATE (CHAR 1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: madhurao123 on Jul 22, 2011 9:55 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: madhurao123 on Jul 22, 2011 10:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 04:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023167#M1609018</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-07-22T04:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023168#M1609019</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 can see ZZIFFLG field in both structures BAPI_TE_MARA and MARAX. and also MARA.&lt;/P&gt;&lt;P&gt;All have thesame char(1) type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i debug it.&lt;/P&gt;&lt;P&gt;I can see&lt;/P&gt;&lt;P&gt;EXTENSIONIN of BAPI_TE_MARA&lt;/P&gt;&lt;P&gt;with &lt;/P&gt;&lt;P&gt;TESTxx-01    I                                              " Materialnumber value and Zfield value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXTENSIONIN of BAPI_TE_MARAX&lt;/P&gt;&lt;P&gt;with &lt;/P&gt;&lt;P&gt;TESTxx-01    X                                              " Materialnumber value and X value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But bapi is notupdating it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls advice as per my code. anything should be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: princeck on Jul 22, 2011 6:35 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 04:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023168#M1609019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T04:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023169#M1609020</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;In Both structure BAPI_TE_MARA and MARAx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the type as BAPIUPDATE char(1). before its only CHar(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how about MARA also should have type BAPIUPDATE ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 04:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023169#M1609020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T04:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023170#M1609021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prince,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below code how i updated for sales order bapi .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f you have custom ZZ fields on VBAP and VBAK then you can update these fields using the standard BAPI to create or change the order and update these fields.&lt;/P&gt;&lt;P&gt;A lot has been spoken about this but nowhere does it spell out the pitfalls and give you an end-to-end procedure on how to do it. I even found some "SAP Experts - Ask a question" on Search SAP give a complete wrong answer!!! So here is the correct way to do it.&lt;/P&gt;&lt;P&gt;To do so you first need to ensure that the following 5 tables are in synch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) VBAP: In your append structure you specify your ZZFIELD with the data type as needed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) BAPE_VBAP: In the append structure here also add the ZZFIELD with the data type as needed with limitations. No decimals. Try and stick to char characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) BAPE_VBAPX: In the append structure add the field ZZFIELD of type BAPIUPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(NOTE: (2) and (3) must have the same number of fields in the same order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) VBAPKOZ: In the append structure here also add the ZZFIELD with the data type as needed with limitations. No decimals. Try and stick to char characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) VBAPKOZX: In the append structure add the field ZZFIELD of type BAPIUPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(NOTE: (4) and (5) must have the same number of fields in the same order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly do for VBAK, BAPE_VBAK, BAPE_VBAKX, VBAKKOZ and VBAKKOZX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next we get to the code to fill in the structure EXTENSIONIN&lt;/P&gt;&lt;P&gt;I will demonstrate how to call the create sales order BAPI with custom fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local definitions&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: wa_extensionin TYPE bapiparex,&lt;/P&gt;&lt;P&gt;wa_bape_vbap   TYPE bape_vbap,&lt;/P&gt;&lt;P&gt;wa_bape_vbapx  TYPE bape_vbapx,&lt;/P&gt;&lt;P&gt;wa_bape_vbak   TYPE bape_vbak,&lt;/P&gt;&lt;P&gt;wa_bape_vbakx  TYPE bape_vbakx,&lt;/P&gt;&lt;P&gt;lv_posnr       TYPE posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Processing the header extension&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR wa_bape_vbak.&lt;/P&gt;&lt;P&gt;wa_bape_vbak-ZZFIELD     = 'HDRTEST'.&lt;/P&gt;&lt;P&gt;wa_extensionin-structure = 'BAPE_VBAK'.&lt;/P&gt;&lt;P&gt;wa_extensionin+30(960)   = wa_bape_vbak.&lt;/P&gt;&lt;P&gt;append wa_extensionin to lt_extensionin.&lt;/P&gt;&lt;P&gt;clear wa_extensionin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Processing the line extension&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT line_items INTO wa_lineitems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD 10 TO lv_posnr.&lt;/P&gt;&lt;P&gt;CLEAR wa_bape_vbap.&lt;/P&gt;&lt;P&gt;wa_bape_vbap-ZZFIELD     = 'TEST'.&lt;/P&gt;&lt;P&gt;wa_extensionin-structure = 'BAPE_VBAP'.&lt;/P&gt;&lt;P&gt;wa_bape_vbap-posnr       = lv_posnr.&lt;/P&gt;&lt;P&gt;wa_extensionin+30(960)   = wa_bape_vbap.&lt;/P&gt;&lt;P&gt;append wa_extensionin to lt_extensionin.&lt;/P&gt;&lt;P&gt;clear wa_extensionin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR wa_bape_vbapx.&lt;/P&gt;&lt;P&gt;wa_bape_vbapx-ZZFIELD    = 'X'.&lt;/P&gt;&lt;P&gt;wa_extensionin-structure = 'BAPE_VBAPX'.&lt;/P&gt;&lt;P&gt;wa_bape_vbapx-posnr      = lv_posnr.&lt;/P&gt;&lt;P&gt;wa_extensionin+30(960)   = wa_bape_vbapx.&lt;/P&gt;&lt;P&gt;append wa_extensionin to lt_extensionin.&lt;/P&gt;&lt;P&gt;clear wa_extensionin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Then the call to the BAPI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;order_header_in  = ls_order_header_in&lt;/P&gt;&lt;P&gt;order_header_inx = ls_order_header_inx&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;salesdocument    = lv_salesdocument&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;return           = lt_ret2&lt;/P&gt;&lt;P&gt;order_items_in   = lt_order_items_in&lt;/P&gt;&lt;P&gt;order_items_inx  = lt_order_items_inx&lt;/P&gt;&lt;P&gt;order_partners   = lt_order_partners&lt;/P&gt;&lt;P&gt;order_keys       = lt_order_keys&lt;/P&gt;&lt;P&gt;extensionin      = lt_extensionin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try in the same way in that bapi structures.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 04:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023170#M1609021</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-07-22T04:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023171#M1609022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prince,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post entire code before calling BAPI and structures BAPI_TE_MARA and BAPI_TE_MARAX with data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shailesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 05:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023171#M1609022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T05:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023172#M1609023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shailesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sending you the code&lt;/P&gt;&lt;P&gt;*Append table fields&lt;/P&gt;&lt;P&gt;DATA :  rex LIKE bapiparex OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        rexx LIKE bapiparexx OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        LS_BAPI_TE_MARA TYPE BAPI_TE_MARA,&lt;/P&gt;&lt;P&gt;        LS_BAPI_TE_MARAX TYPE BAPI_TE_MARAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_bapi_te_mara-material = ls_headdata-material.&lt;/P&gt;&lt;P&gt;ls_bapi_te_mara-ZZIFFLG = 'I'." Pass the zfield and the value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_bapi_te_marax-material = ls_headdata-material.&lt;/P&gt;&lt;P&gt;ls_bapi_te_marax-ZZIFFLG  = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rex-STRUCTURE = 'BAPI_TE_MARA'.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+0(18) = ls_bapi_te_mara-material.&lt;/P&gt;&lt;P&gt;rex-VALUEPART1+18(1) = ls_bapi_te_mara-ZZIFFLG.&lt;/P&gt;&lt;P&gt;APPEND rex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rexx-STRUCTURE = 'BAPI_TE_MARAX'.&lt;/P&gt;&lt;P&gt;rexx-VALUEPART1+0(18) = ls_bapi_te_marax-material.&lt;/P&gt;&lt;P&gt;rexx-VALUEPART1+18(1) = 'X'.&lt;/P&gt;&lt;P&gt;APPEND rexx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;品目マスタの登録/変更&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      headdata             = ls_headdata&lt;/P&gt;&lt;P&gt;      clientdata           = ls_clientdata&lt;/P&gt;&lt;P&gt;      clientdatax          = ls_clientdatax&lt;/P&gt;&lt;P&gt;      plantdata            = ls_plantdata&lt;/P&gt;&lt;P&gt;      plantdatax           = ls_plantdatax&lt;/P&gt;&lt;P&gt;      storagelocationdata  = ls_storagelocationdata&lt;/P&gt;&lt;P&gt;      storagelocationdatax = ls_storagelocationdatax&lt;/P&gt;&lt;P&gt;      valuationdata        = ls_valuationdata&lt;/P&gt;&lt;P&gt;      valuationdatax       = ls_valuationdatax&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return               = es_return&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      materialdescription  = lt_materialdescription[]&lt;/P&gt;&lt;P&gt;      extensionin         = rex                                  "APPEND TABLE FIELDS&lt;/P&gt;&lt;P&gt;      extensioninx        = rexx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After subroutine return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF s_return_save-type = 'E' OR&lt;/P&gt;&lt;P&gt;       s_return_save-type = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      " 更新の取消&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      " 更新に失敗しました&lt;/P&gt;&lt;P&gt;      s_message-message = text-003.&lt;/P&gt;&lt;P&gt;      APPEND s_message TO t_messages[].&lt;/P&gt;&lt;P&gt;      CONTINUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      " 更新の確定&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          wait = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      " 正常に更新されました&lt;/P&gt;&lt;P&gt;      s_message-message = text-004.&lt;/P&gt;&lt;P&gt;      APPEND s_message TO t_messages[].&lt;/P&gt;&lt;P&gt;      CONTINUE.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table and structure fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table : MARA&lt;/P&gt;&lt;P&gt;Append Structure : ZZCUSTM&lt;/P&gt;&lt;P&gt;Component : ZZIFFLG &lt;/P&gt;&lt;P&gt;Data Type : CHAR&lt;/P&gt;&lt;P&gt;Length :1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure : BAPI_TE_MARA&lt;/P&gt;&lt;P&gt;Append Structure : ZZCUST&lt;/P&gt;&lt;P&gt;Component : ZZIFFLG &lt;/P&gt;&lt;P&gt;Component type : BAPIUPDATE&lt;/P&gt;&lt;P&gt;Data Type : CHAR&lt;/P&gt;&lt;P&gt;Length :1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure : BAPI_TE_MARAX&lt;/P&gt;&lt;P&gt;Append Structure : ZZCUSTX&lt;/P&gt;&lt;P&gt;Component : ZZIFFLG &lt;/P&gt;&lt;P&gt;Component type : BAPIUPDATE&lt;/P&gt;&lt;P&gt;Data Type : CHAR&lt;/P&gt;&lt;P&gt;Length :1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: princeck on Jul 22, 2011 7:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 05:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023172#M1609023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T05:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: 'BAPI_MATERIAL_SAVEDATA'  Using Extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023173#M1609024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll need to do some customizing to get this code running properly.&lt;/P&gt;&lt;P&gt;SPRO -&amp;gt; Logistics - General-&amp;gt;Material Master-&amp;gt;Field Selection-&amp;gt;Assign Fields to Field Selection Groups&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on "New Entries". Now you can fill the field "Field name" ( MARA-ZZIFLG) and, VERY IMPORTANT, fill the field "Maint.status" 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 "Sel.Group" with a selection group number (choose the 111). Now save, and everithing should now run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 05:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-using-extension/m-p/8023173#M1609024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-22T05:24:12Z</dc:date>
    </item>
  </channel>
</rss>

