<?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 bapi_charact_change in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-charact-change/m-p/3179970#M757069</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 want to use bapi_charact_change but i don't know how. i would like you to give me an example or some help. thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2007 10:11:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-13T10:11:01Z</dc:date>
    <item>
      <title>bapi_charact_change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-charact-change/m-p/3179970#M757069</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 want to use bapi_charact_change but i don't know how. i would like you to give me an example or some help. thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 10:11:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-charact-change/m-p/3179970#M757069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T10:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: bapi_charact_change</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-charact-change/m-p/3179971#M757070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;bapi_charact_change&amp;lt;/b&amp;gt;                                                                                &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; Text&amp;lt;/b&amp;gt;                                                                                &lt;/P&gt;&lt;P&gt;BAPI for Characteristics - Change                                          &lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;                                                                            &lt;/P&gt;&lt;P&gt;Functionality&amp;lt;/b&amp;gt;                                                                                &lt;/P&gt;&lt;P&gt;This BAPI changes a characteristic, if the characteristic exists. If the characteristic does not exist, the BAPI creates the characteristic.                                                                                &lt;/P&gt;&lt;P&gt;The following fields must contain data:                           o   Charact_name (characteristic name)                            o   Data_type (data type)                                         o   Length (number of characters)                                 o   Decimals (number of decimal places)                           o   Status (status) in structure CharactDetail                    o   Description (description) in structure CharactDescription     o   Either field Language_Int (internal language format, 1 character) or Language_ISO (external language format, 2 characters) ISO format overrides internal format. If there is more than one   entry for the same language, the last is relevant.                     &lt;/P&gt;&lt;P&gt;o   According to data type, the values must be entered in the relevantvalues table: numeric, time, and date values in CharactValuesNum, character and boolean values in CharactValuesChar, and currency values in CharactValuesCurr.                                       &lt;/P&gt;&lt;P&gt;The value descriptions are in table CharactValuesDescr, regardless of data type. Check tables are entered in table CharactReferences and restrictions to class types are in table CharactRestrictions.  &lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the BAPI runs successfully, table RETURN contains no messages of type      &lt;/P&gt;&lt;P&gt;     'E'.                                                                          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;Caution&amp;lt;/u&amp;gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The BAPI transfers all information as new, replacing the old information completely. This means that a blank field means "delete entry", not "no change".                                                                      &lt;/P&gt;&lt;P&gt;This BAPI does not change the database. To change the database, call BAPI BapiService.TransactionCommit afterwards.                                                                                &lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt; Parameters&amp;lt;/u&amp;gt;                                                                                &lt;/P&gt;&lt;P&gt;CHARACTNAME                                                       CHANGENUMBER                                                      KEYDATE                                                           CHARACTDETAILNEW                                                  CHARACTDESCRNEW                                                   CHARACTVALUESNUMNEW                                               CHARACTVALUESCHARNEW                                              CHARACTVALUESCURRNEW                                              CHARACTVALUESDESCRNEW                                             CHARACTREFERENCESNEW                                              CHARACTRESTRICTIONSNEW                                            RETURN                                                                        &lt;/P&gt;&lt;P&gt;Exceptions                                                        Function Group                                                    CTBP                                                                          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The imported tables contain info of a charact, which can&lt;/P&gt;&lt;P&gt;be changed or created. The BAPI checks which operation&lt;/P&gt;&lt;P&gt;is requested and executes this one.&lt;/P&gt;&lt;P&gt;First the old info is got wich includes an existence check.&lt;/P&gt;&lt;P&gt;If the charact isn't existing yet, a creation flag is set, other-&lt;/P&gt;&lt;P&gt;wise the charact is to be changed. In this case the old and new&lt;/P&gt;&lt;P&gt;tables are compared. New lines are added to the old table.&lt;/P&gt;&lt;P&gt;Changed lines are updated in the old table. Deleted lines are&lt;/P&gt;&lt;P&gt;deleted from the old table and writ to a seperate deletion table.&lt;/P&gt;&lt;P&gt;These tables have to be converted to the format of the maintainance&lt;/P&gt;&lt;P&gt;module. The converted deletion tables are appended to the old&lt;/P&gt;&lt;P&gt;tables with a deletion flag set. With this info the charact is&lt;/P&gt;&lt;P&gt;changed. In case of creation only the creation BAPI is called&lt;/P&gt;&lt;P&gt;with the obtained info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization&lt;/P&gt;&lt;P&gt;Initialize log.&lt;/P&gt;&lt;P&gt;Authority check&lt;/P&gt;&lt;P&gt;Get old data of charact (existence check included)&lt;/P&gt;&lt;P&gt;Set creation flag if charact doesn't exist&lt;/P&gt;&lt;P&gt;Prepare modification on charact&lt;/P&gt;&lt;P&gt;Update old by new tables in case of change&lt;/P&gt;&lt;P&gt;build tables containing records to be deleted&lt;/P&gt;&lt;P&gt;Execute requested modification on charact&lt;/P&gt;&lt;P&gt;Change charact&lt;/P&gt;&lt;P&gt;Get log messages for change/deletion&lt;/P&gt;&lt;P&gt;Put log messages to return table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can also check the link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1408506"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="193609"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please reward points if found useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 12:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-charact-change/m-p/3179971#M757070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T12:16:59Z</dc:date>
    </item>
  </channel>
</rss>

