<?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: CUCB_GET_CONFIGURATION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cucb-get-configuration/m-p/1727702#M317113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madeline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you use FM VC_I_GET_CONFIGURATION instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this sample codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...

select single * from vbap where vbeln = p_vbeln  
                            and posnr = p_posnr.

if sy-subrc = 0.
  l_instance = vbap-cuobj.
endif.

call function 'VC_I_GET_CONFIGURATION'
  exporting
      instance            = l_instance
   tables
      configuration       = i_configuration
   exceptions
      instance_not_found  = 1
      internal_error      = 2
      no_class_allocation = 3
      instance_not_valid  = 4
      others              = 5.

loop at i_configuration.
  ....
endloop.

...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2006 22:53:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-28T22:53:29Z</dc:date>
    <item>
      <title>CUCB_GET_CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cucb-get-configuration/m-p/1727701#M317112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the function module CUCB_GET_CONFIGURATION, but I'm a little confused as to what to use for the import parameters, and I can't seem to find documentation on it... could anyone explain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background: I'm doing a user exit for when the user presses Save for Orders, in VA01 and VA02, using Z_MV45A_SAVE_DOCUMENT_PREPARE. I would like to use the characteristic values in variant configuration (Extras -&amp;gt; Configuration)... so that's what I'm getting at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original thread: &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="264569"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Madeline&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 22:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cucb-get-configuration/m-p/1727701#M317112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T22:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: CUCB_GET_CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cucb-get-configuration/m-p/1727702#M317113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madeline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you use FM VC_I_GET_CONFIGURATION instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this sample codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...

select single * from vbap where vbeln = p_vbeln  
                            and posnr = p_posnr.

if sy-subrc = 0.
  l_instance = vbap-cuobj.
endif.

call function 'VC_I_GET_CONFIGURATION'
  exporting
      instance            = l_instance
   tables
      configuration       = i_configuration
   exceptions
      instance_not_found  = 1
      internal_error      = 2
      no_class_allocation = 3
      instance_not_valid  = 4
      others              = 5.

loop at i_configuration.
  ....
endloop.

...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 22:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cucb-get-configuration/m-p/1727702#M317113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T22:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: CUCB_GET_CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cucb-get-configuration/m-p/1727703#M317114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that all you need to pass is the CUOBJ number which is found in VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 22:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cucb-get-configuration/m-p/1727703#M317114</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-28T22:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: CUCB_GET_CONFIGURATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cucb-get-configuration/m-p/1727704#M317115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that we use this function module in most of our programs.  Works pretty good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

 data: i_char type table of comw with header line.
 

* Retrieve Characteristics.
  call function 'CUD0_GET_VAL_FROM_INSTANCE'
       exporting
            instance           = vbap-cuobj
       tables
            attributes         = i_char
       exceptions
            instance_not_found = 1.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 23:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cucb-get-configuration/m-p/1727704#M317115</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-28T23:16:06Z</dc:date>
    </item>
  </channel>
</rss>

