<?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: Update  Characteristics values for Functional location in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-characteristics-values-for-functional-location/m-p/8391507#M1643958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use BAPI_CHARACT_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you could do is to first use BAPI_CHARACT_GETDETAIL to query a characteristic, then it will populate the relevant tables with data. You can then use this data to call BAPI_CHARACT_CREATE, to create other characteristic values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This should work as both BAPI's have identical interface. Only difference being one creates where the other retrieves the characteristics.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 19:33:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-09T19:33:05Z</dc:date>
    <item>
      <title>Update  Characteristics values for Functional location</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-characteristics-values-for-functional-location/m-p/8391506#M1643957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a class called "SUERTE" with categ.class = "003 - Functional Location".   This class was created by the standard transaction CL01 and its characteristics were assigned to the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in transaction IL02, type the code of functional location, and it displays all the values of the characteristics for class "SUERTE". Right there I can change nay value and updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know BAPI´s name to update the value of the characteristics of a class  (Transaction code  IL02).&lt;/P&gt;&lt;P&gt;I'm just starting in BAPI management , if you could give me an example of how to run and parameters considering the example described above i would appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the bapi  BAPI_CLASS_GET_CHARACTERISTICS got me the characteristic list that is assigned a class. For this BAPI, the parameters according to  my example would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASSNUM = 'SUERTE'&lt;/P&gt;&lt;P&gt;ClassType = '003'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can help me pls with  similar example with right bapi for update characteristics values like transaction IL02 pls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 19:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-characteristics-values-for-functional-location/m-p/8391506#M1643957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T19:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Update  Characteristics values for Functional location</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-characteristics-values-for-functional-location/m-p/8391507#M1643958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use BAPI_CHARACT_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you could do is to first use BAPI_CHARACT_GETDETAIL to query a characteristic, then it will populate the relevant tables with data. You can then use this data to call BAPI_CHARACT_CREATE, to create other characteristic values.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This should work as both BAPI's have identical interface. Only difference being one creates where the other retrieves the characteristics.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 19:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-characteristics-values-for-functional-location/m-p/8391507#M1643958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T19:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Update  Characteristics values for Functional location</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-characteristics-values-for-functional-location/m-p/8391508#M1643959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First read the existng characterstics value with 'BAPI_OBJCL_GETDETAIL' and then you can use &lt;/P&gt;&lt;P&gt;'BAPI_OBJCL_CHANGE' to change the values by modifying tables parameter retrievied from first BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 07:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-characteristics-values-for-functional-location/m-p/8391508#M1643959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-10T07:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Update  Characteristics values for Functional location</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-characteristics-values-for-functional-location/m-p/8391509#M1643960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to use the BAPI BAPI_OBJCL_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this BAPI  performs the process that is normally performed by the standard transaction IL02, I want to upgrade or change the current value of a characteristic of a functional location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you enter the IL02, give the code a functional location, the transaction displays the data  and on the tab "Characteristics" shows all the values of each one of the characteristics associated with that functional location. I want  to modify the value of these characteristics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I have and that I am not running is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*Obtengo las caracteristicas de una clase
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
          EXPORTING
               objectkey       = wa_kssk-objek          "  =  '1001-010'
               objecttable     = p_tcode                  "   =  'IFLOT'
               classnum        = l_classnum               "   =  'SUERTE'
               classtype       = wa_kssk-klart           "    =  '003'
          TABLES
               allocvaluesnum  = i_CARACT_NUM       "devuelve las caract num
               allocvalueschar = i_CARACT_CHAR       "devuelve las caract char
               allocvaluescurr = i_CARACT_CURR        "devuelve las caract curr 
               return          = i_return.






    loop at i_caract_num.
      read table caract_num into wa_num with key charact = i_caract_num-charact.
      if sy-subrc ne 0.
        append i_caract_num to caract_num.
      endif.
    endloop.
    loop at i_caract_char.
      read table caract_char into wa_char with key charact = i_caract_char-charact.
      if sy-subrc ne 0.
        append i_caract_char to caract_char.
      endif.
    endloop.
    loop at i_caract_curr.
      read table caract_curr into wa_curr with key charact = i_caract_curr-charact.
      if sy-subrc ne 0.
        append i_caract_curr to caract_curr.
      endif.
    endloop.


*Aqui es donde no me funciona 
     CALL FUNCTION 'BAPI_OBJCL_CHANGE'
      EXPORTING
        objectkey          = wa_kssk-objek        "  = '1001-010'
        objecttable        = p_tcode                 "  = 'IFLOT'
        classnum           = l_classnum             "  = 'SUERTE'
        classtype          = wa_kssk-klart          "  = '003'
      TABLES
        allocvaluesnumnew  = caract_num
        allocvaluescharnew = caract_char
        allocvaluescurrnew = caract_curr
        return             = return.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont now where i can give the caracteristic name and the new value in the bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case I want to change a caracteristic type CURR, so using the debugging, i modify  on the table "caract_curr" the "value_to" and I put the new value that i want, but the BAPI  did nothing;  i consulted by the transaction IL02 and caracteristic continues with the old value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic data are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class = 'SUERTE'&lt;/P&gt;&lt;P&gt;Cat Class = '003'           "functional location&lt;/P&gt;&lt;P&gt;Table = 'IFLOT'&lt;/P&gt;&lt;P&gt;Characteristic = 'VALOR_STOCK_APS'         "Type CURR&lt;/P&gt;&lt;P&gt;Current value = 0 USD&lt;/P&gt;&lt;P&gt;New value = 1000 USD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can explain me how   I can  pass these values ​​to the BAPI so that I run after changing the value of the feature "VALOR_STOCK_APS" from 0 to 1000 USD and that it can be reflected upon entering the transaction IL02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 12:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-characteristics-values-for-functional-location/m-p/8391509#M1643960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-15T12:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Update  Characteristics values for Functional location</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-characteristics-values-for-functional-location/m-p/8391510#M1643961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to modify i_caract_curr table for 'VALOR_STOCK_APS'  before calling 'BAPI_OBJCL_CHANGE'&lt;/P&gt;&lt;P&gt;BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_caract_curr.&lt;/P&gt;&lt;P&gt;      read table i_caract_curr into wa_curr with key charact = 'VALOR_STOCK_APS' .&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;         wa_curr-VALUE_FROM = New value here&lt;/P&gt;&lt;P&gt;         modify i_caract_curr from wa_curr where = 'VALOR_STOCK_APS' .&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 11:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-characteristics-values-for-functional-location/m-p/8391510#M1643961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-18T11:00:25Z</dc:date>
    </item>
  </channel>
</rss>

