<?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 Updating User-defined fields using BAPI  BAPI_MATERIAL_SAVEDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-user-defined-fields-using-bapi-bapi-material-savedata/m-p/1403574#M194958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 60 user defined fields in append structure of MARA.&lt;/P&gt;&lt;P&gt;I enhanced BAPI_TE_MARA structure with user defined fields (same as Mara append structure)and also enhanced BAPI_TE_MARAX with same user defined field names but dataelement as "BAPIUPDATE" for all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now My question is how to populate internal tables EXTENSIONIN and EXTENSIONINX. I saw few discussions on SDN network , but I did not find proper answers. PL provide sample code to update customer-defined fields sucessfully using BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2006 12:42:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-10T12:42:05Z</dc:date>
    <item>
      <title>Updating User-defined fields using BAPI  BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-user-defined-fields-using-bapi-bapi-material-savedata/m-p/1403574#M194958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 60 user defined fields in append structure of MARA.&lt;/P&gt;&lt;P&gt;I enhanced BAPI_TE_MARA structure with user defined fields (same as Mara append structure)and also enhanced BAPI_TE_MARAX with same user defined field names but dataelement as "BAPIUPDATE" for all fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now My question is how to populate internal tables EXTENSIONIN and EXTENSIONINX. I saw few discussions on SDN network , but I did not find proper answers. PL provide sample code to update customer-defined fields sucessfully using BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 12:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-user-defined-fields-using-bapi-bapi-material-savedata/m-p/1403574#M194958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T12:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Updating User-defined fields using BAPI  BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-user-defined-fields-using-bapi-bapi-material-savedata/m-p/1403575#M194959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Populate the fields in BAPI_TE_MARA and mark the flag for the corrsponding fields in BAPI_TE_MARAX to X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If BAPI_TE_MARA has 2 fields FLD1 and FLD2 u need to populate these 2 fields and the flags corresponding to these fields i.e. FLD1 and FLD2 in BAPI_TE_MARAX as X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to use BAPI_TRANSACTION_COMMIT after the material update BAPI.&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 12:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-user-defined-fields-using-bapi-bapi-material-savedata/m-p/1403575#M194959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T12:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Updating User-defined fields using BAPI  BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-user-defined-fields-using-bapi-bapi-material-savedata/m-p/1403576#M194960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply. I understand how to populate EXTENSIONIN and EXTENSIONINX certen extend.&lt;/P&gt;&lt;P&gt;My problem is I have 60 customer defined fields in Mara. the total lenght of the field BAPIPAREX-VALUEPART1 is only 240 char. my total fields lenghts are much more than 240 char. and also I did not understand the usage of field VALUEPART2,VALUEPART3,VALUEPART4 in BAPIPARX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clarification purpuse of these fields. Appreciate any sample code for updating multiple user defined 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>Mon, 10 Jul 2006 13:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-user-defined-fields-using-bapi-bapi-material-savedata/m-p/1403576#M194960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T13:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Updating User-defined fields using BAPI  BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-user-defined-fields-using-bapi-bapi-material-savedata/m-p/1403577#M194961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VALUEPART2,VALUEPART3 and VALUEPART4 are also to be used for populating data in the custom fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say you have added a structure to MARA called STR1 which has 3 fields, 10 char each. You also need to create STR1X which has 1 character flags for the fields in STR1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To populate values in these fields u need to maintain the extension tables as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIPAREX-STRUCTURE         = 'STR1'.&lt;/P&gt;&lt;P&gt;BAPIPAREX-VALUEPART1+0(10)  = '1st FLD'.&lt;/P&gt;&lt;P&gt;BAPIPAREX-VALUEPART1+10(10) = '2nd FLD'.&lt;/P&gt;&lt;P&gt;BAPIPAREX-VALUEPART1+20(10) = '3rd FLD'.&lt;/P&gt;&lt;P&gt;APPEND BAPIPAREX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIPAREXX-STRUCTURE       = 'STR1X'.&lt;/P&gt;&lt;P&gt;BAPIPAREXX-VALUEPART1+0(1) = 'X'.&lt;/P&gt;&lt;P&gt;BAPIPAREXX-VALUEPART1+1(1) = 'X'.&lt;/P&gt;&lt;P&gt;BAPIPAREXX-VALUEPART1+2(1) = 'X'.&lt;/P&gt;&lt;P&gt;APPEND BAPIPAREXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have more than 60 fields you could split the fields in to multiple strucutres and populate the extensions for each structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;P&gt;*Please reward useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 13:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-user-defined-fields-using-bapi-bapi-material-savedata/m-p/1403577#M194961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T13:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Updating User-defined fields using BAPI  BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-user-defined-fields-using-bapi-bapi-material-savedata/m-p/1403578#M194962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply. let me try passing fields to VALUEPART2 and VALUEPART3 and VALUEPART4 fields also. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 13:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-user-defined-fields-using-bapi-bapi-material-savedata/m-p/1403578#M194962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T13:52:22Z</dc:date>
    </item>
  </channel>
</rss>

