<?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: VARIANT CONFIGURATION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938215#M1486886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josef - you are a champion. Thats got it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I give you a big sloppy digital kiss.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jun 2010 07:30:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-28T07:30:26Z</dc:date>
    <item>
      <title>VARIANT CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938209#M1486880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try to implement my own configurator using several BAPI's around the variant configuration. Based on BAPI_CFG_CREATE i can do my own configuration of a material. The BAPI provides as Exporting values CFG_HANDLE and ROOT_INSTANCE both values are temporary. Once i have finished the configuration i try to save the configuration using FM CUCB_CONFIGURATION_TO_DB. But i cant't save my configuration because i only have the temporary ROOT_INSTANCE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how i can save my configuration to the data base? Or how i can make my teporary instance to a persistent instance to make me able to save with FM CUCB_CONFIGURATION_TO_DB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a part of my coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA l_handle   TYPE bapicu-cfg_handle.&lt;/P&gt;&lt;P&gt;DATA l_instance TYPE bapicu-instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_CFG_CREATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    object_id              = 'KM000004'&lt;/P&gt;&lt;P&gt;    root_type              = 'MARA'&lt;/P&gt;&lt;P&gt;    root_name              = 'KM000004'&lt;/P&gt;&lt;P&gt;    plant                  = '0001'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    cfg_handle             = l_handle&lt;/P&gt;&lt;P&gt;    root_instance          = l_instance&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    error                  = 1&lt;/P&gt;&lt;P&gt;    OTHERS                 = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After launching my test report the values are filled like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_handle = 999999999999990001&lt;/P&gt;&lt;P&gt;l_instance = 00000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_instance contains the temporary instance number. I need to know how i can transfrom it to a persistent instance configuration id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Josef&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 14:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938209#M1486880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T14:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938210#M1486881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I fond the solution by myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 08:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938210#M1486881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938211#M1486882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What was your solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 02:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938211#M1486882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T02:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938212#M1486883</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;the solution is very simple if you know what to do. but it is allways the same question. How?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After launching my test report the values are filled like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_handle = 999999999999990001&lt;/P&gt;&lt;P&gt;l_instance = 00000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_instance contains the temporary instance number. I need to know how i can transfrom it to a persistent instance configuration id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transform the temporary instance id to a persistent id:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the save function will do this for you. here is a code example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_root_object-object_type  = 'VBPS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_root_object-object_key = &amp;lt;your object key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  "Save configuration to database&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CUCB_CONFIGURATION_TO_DB'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      root_instance                 = l_handle&lt;/P&gt;&lt;P&gt;      root_object                   = ls_root_object&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      new_instance                  = ev_new_instance ==&amp;gt; NEW PERSISTENT INSTANCE ID&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      invalid_instance              = 1&lt;/P&gt;&lt;P&gt;      invalid_root_instance         = 2&lt;/P&gt;&lt;P&gt;      no_changes                    = 3&lt;/P&gt;&lt;P&gt;      already_registered_for_update = 4&lt;/P&gt;&lt;P&gt;      instance_is_a_classification  = 5&lt;/P&gt;&lt;P&gt;      OTHERS                        = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    "Your error handling&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;    COMMIT WORK AND WAIT.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 05:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938212#M1486883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T05:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938213#M1486884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josef, thanks for the reply.  It seems to want to work.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem Im having now with this FM is I get a short dump MESSAGE_TYPE_X  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technical information about the message:   &lt;/P&gt;&lt;P&gt;Message classe...... "CUIB1"               &lt;/P&gt;&lt;P&gt;Number.............. 699                   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is that I have an entry in the table IBINOWN for the material Im creating the configuration for.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas of how I initialize that entry?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 06:42:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938213#M1486884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T06:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938214#M1486885</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;that is no problem. I solved the problem with this code. I generated a unique KEY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_root_object-object_type  = 'VBPS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE objkey FROM ibinown INTO ls_root_object-object_key&lt;/P&gt;&lt;P&gt;    WHERE instance = v_handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUID_CREATE'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        ev_guid_32 = lv_guid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE lv_guid v_matnr INTO ls_root_object-object_key SEPARATED BY '_'.&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;BR,&lt;/P&gt;&lt;P&gt;Josef&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 07:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938214#M1486885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T07:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938215#M1486886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Josef - you are a champion. Thats got it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I give you a big sloppy digital kiss.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 07:30:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938215#M1486886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T07:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938216#M1486887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 07:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938216#M1486887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T07:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938217#M1486888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Josef,&lt;/P&gt;&lt;P&gt;I am also facing the same prbolem that the FM 'CUCB_CONFIGURATION_TO_DB', gives me shortdump &lt;/P&gt;&lt;P&gt;Duplicate owners: Contact LO-VC development&lt;/P&gt;&lt;P&gt;Message class....... "CUIB1"&lt;/P&gt;&lt;P&gt;Number.............. 699&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to understand how are you fetching the object-key from IBINOWN because the l_handle is not existing in IBINOWN.&lt;/P&gt;&lt;P&gt;can you pls help me in identifying the value of objct-key??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI.. I wanna assign this cuobj in a purchase order line item..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in adv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Husain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 07:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/6938217#M1486888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-29T07:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: VARIANT CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/14067622#M2041545</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try to havé the same behaviour than CU50. Following your post, I used the MF :&lt;/P&gt;&lt;P&gt;BAPI_CFG_CREATE&lt;/P&gt;&lt;P&gt;BAPI_CFGINST_CHARCS_VALS_SET&lt;/P&gt;&lt;P&gt;GUID_CREATE&lt;/P&gt;&lt;P&gt;CUCB_CONFIGURATION_TO_DB&lt;/P&gt;&lt;P&gt;CS_BOM_EXPL_MAT_V2&lt;BR /&gt;but I can not reproduce the result of CU50&lt;/P&gt;&lt;P&gt;can you please help me&lt;/P&gt;</description>
      <pubDate>Sun, 06 Apr 2025 13:38:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration/m-p/14067622#M2041545</guid>
      <dc:creator>wbenkahla</dc:creator>
      <dc:date>2025-04-06T13:38:10Z</dc:date>
    </item>
  </channel>
</rss>

