<?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: Run Time Error causing problem! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283532#M1634054</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;&lt;/P&gt;&lt;P&gt;Note 1172946 - Dump in sales order after configuration change using BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is Describtion &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Summary

Symptom

You block the configuration profile of a configurable material, for example, to change the configuration profile. However, the configurable material has already been used in sales orders.
In this situation, you use the BAPI_SALESORDER_CHANGE to change the configuration of one of these orders. In spite of the blocked configuration profile, the system processes the BAPI without issuing an error message.
After unblocking the configuration profile, you open the relevant order in transaction VA02 and perform further characteristic value assignments.
If you then save the order, the short dump "MESSAGE_TYPE_X" occurs and the system issues message CUIB1 699 ("Duplicate owners: Contact LO-VC development").


Other terms

VBAP-CUOBJ, CUOBJ, MESSAGE_TYPE_X, CUIB1699, CUIB1 699, owner, IBINOWN, configuration, BAPI_SALESORDER_CHANGE, BAPI


Reason and Prerequisites

This problem is due to a program error.

During the processing of the BAPI, CUOBJ is deleted from the order item due to the blocked configuration, but the owner in IBINOWN is not deleted. After a new characteristic value assignment in VA02, the system tries to write a further entry for the owner to the table IBINOWN. However, since the old entry still exists, a short dump occurs.


Solution

Implement the attached program corrections.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2011 09:24:14 GMT</pubDate>
    <dc:creator>deepak_dhamat</dc:creator>
    <dc:date>2011-10-17T09:24:14Z</dc:date>
    <item>
      <title>Run Time Error causing problem!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283527#M1634049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following error when i am trying to save my sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have maintained the Credit Limit on delivery in our organisation and this run time error is coming during saving the sales order:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Errors         MESSAGE_TYPE_X&lt;/P&gt;&lt;P&gt;Date and Time          14.10.2011 11:04:22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Short text&lt;/P&gt;&lt;P&gt;     The current application triggered a termination with a short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What happened?&lt;/P&gt;&lt;P&gt;     The current application program detected a situation which really&lt;/P&gt;&lt;P&gt;     should not occur. Therefore, a termination with a short dump was&lt;/P&gt;&lt;P&gt;     triggered on purpose by the key word MESSAGE (type X).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Error analysis&lt;/P&gt;&lt;P&gt;     Short text of error message:&lt;/P&gt;&lt;P&gt;     Duplicate owners: Contact LO-VC development&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Long text of error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Technical information about the message:&lt;/P&gt;&lt;P&gt;     Message class....... "CUIB1"&lt;/P&gt;&lt;P&gt;     Number.............. 699&lt;/P&gt;&lt;P&gt;     Variable 1.......... " "&lt;/P&gt;&lt;P&gt;     Variable 2.......... " "&lt;/P&gt;&lt;P&gt;     Variable 3.......... " "&lt;/P&gt;&lt;P&gt;     Variable 4.......... " "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Trigger Location of Runtime Error&lt;/P&gt;&lt;P&gt; Program                                 CL_CBASE_SPECIAL_ERP==========CP&lt;/P&gt;&lt;P&gt;Include                                 CL_CBASE_SPECIAL_ERP==========CM006&lt;/P&gt;&lt;P&gt;Row                                     51&lt;/P&gt;&lt;P&gt;Module type                             (METHOD)&lt;/P&gt;&lt;P&gt;Module Name                             IF_CBASE_CHECK~CHECK_OWNER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ce Code Extract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SourceCde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1           it_owner          = lt_owner&lt;/P&gt;&lt;P&gt;2         IMPORTING&lt;/P&gt;&lt;P&gt;3           et_instance_owner = lt_inst_owner ).&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5       LOOP AT lt_inst_owner REFERENCE INTO ls_inst_owner&lt;/P&gt;&lt;P&gt;6            WHERE instance &amp;lt;&amp;gt; iv_root_instance&lt;/P&gt;&lt;P&gt;7            AND   del_flag IS INITIAL.&lt;/P&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;9         TRY.&lt;/P&gt;&lt;P&gt;0 *           check configuration is marked for deletion&lt;/P&gt;&lt;P&gt;1             cl_cbase=&amp;gt;get_current_cbase_by_instance(&lt;/P&gt;&lt;P&gt;2               EXPORTING&lt;/P&gt;&lt;P&gt;3                 iv_instance            = ls_inst_owner-&amp;gt;instance&lt;/P&gt;&lt;P&gt;4                 iv_check_only_buffer   = ggc_true&lt;/P&gt;&lt;P&gt;5               IMPORTING&lt;/P&gt;&lt;P&gt;6                 eo_cbase               = lo_cbase ).&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;8 *           no deletion&lt;/P&gt;&lt;P&gt;9             CHECK lo_cbase-&amp;gt;marked_for_deletion( ) IS INITIAL.&lt;/P&gt;&lt;P&gt;0 *           no owner change&lt;/P&gt;&lt;P&gt;            lo_cbase-&amp;gt;get_owner_of_cfg(&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                iv_instance = ls_inst_owner-&amp;gt;instance&lt;/P&gt;&lt;P&gt;              IMPORTING&lt;/P&gt;&lt;P&gt;                es_owner    = ls_other_owner ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            CHECK ls_other_owner = is_owner.&lt;/P&gt;&lt;P&gt;          CATCH cx_cbase_error .                        "#EC NO_HANDLER&lt;/P&gt;&lt;P&gt;        ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MESSAGE x699(cuib1).&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CATCH cx_cbase_error .                              "#EC NO_HANDLER&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me out to find a possible solution for this as i have very less idea to solve this because i m SD Consultant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 10:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283527#M1634049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-14T10:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Run Time Error causing problem!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283528#M1634050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ashu,&lt;/P&gt;&lt;P&gt;see oss notes &lt;STRONG&gt;1172946&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To view this link you need to have market place user id &amp;amp; password[Click here|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1172946]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;koolspy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 11:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283528#M1634050</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-10-14T11:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Run Time Error causing problem!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283529#M1634051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Koolspy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to solve this issue.&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 12:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283529#M1634051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-14T12:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Run Time Error causing problem!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283530#M1634052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CHECK ls_other_owner = is_owner.
CATCH cx_cbase_error . "#EC NO_HANDLER
ENDTRY.

MESSAGE x699(cuib1).
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace your code as Message &lt;SPAN __default_attr="green" __jive_macro_name="color"&gt;E699&lt;/SPAN&gt;(cuib1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 13:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283530#M1634052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-14T13:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Run Time Error causing problem!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283531#M1634053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;consult your basis admin to apply the above note.&lt;/P&gt;&lt;P&gt;( Did you open that link which i had given earlier. )&lt;/P&gt;&lt;P&gt;That note must be applied by basis admin only.&lt;/P&gt;&lt;P&gt;So that your problem will be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Koolspy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 08:55:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283531#M1634053</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-10-17T08:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Run Time Error causing problem!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283532#M1634054</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;&lt;/P&gt;&lt;P&gt;Note 1172946 - Dump in sales order after configuration change using BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is Describtion &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Summary

Symptom

You block the configuration profile of a configurable material, for example, to change the configuration profile. However, the configurable material has already been used in sales orders.
In this situation, you use the BAPI_SALESORDER_CHANGE to change the configuration of one of these orders. In spite of the blocked configuration profile, the system processes the BAPI without issuing an error message.
After unblocking the configuration profile, you open the relevant order in transaction VA02 and perform further characteristic value assignments.
If you then save the order, the short dump "MESSAGE_TYPE_X" occurs and the system issues message CUIB1 699 ("Duplicate owners: Contact LO-VC development").


Other terms

VBAP-CUOBJ, CUOBJ, MESSAGE_TYPE_X, CUIB1699, CUIB1 699, owner, IBINOWN, configuration, BAPI_SALESORDER_CHANGE, BAPI


Reason and Prerequisites

This problem is due to a program error.

During the processing of the BAPI, CUOBJ is deleted from the order item due to the blocked configuration, but the owner in IBINOWN is not deleted. After a new characteristic value assignment in VA02, the system tries to write a further entry for the owner to the table IBINOWN. However, since the old entry still exists, a short dump occurs.


Solution

Implement the attached program corrections.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 09:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283532#M1634054</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-10-17T09:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Run Time Error causing problem!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283533#M1634055</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;Tell your BASIS Guy to implement Above Note  using Snote  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to confirm  The latest code  in your Standard include FV45SFCO_CONFIGURATION_PROCES1  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check This code is there or NOt  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if da_conf_subrc &amp;gt; 0.

    clear vbap-stdat.
    clear vbap-cuobj.
    if not call_bapi is initial and
     not *vbap-cuobj is initial and
     not vbak-vbeln is initial.
     call function 'CUCB_GET_OWNER_OF_CFG'
         exporting
              i_instance = *vbap-cuobj
         importing
              e_owner    = da_owner
         exceptions
              others     = 1.
     if sy-subrc = 0.
       da_key(10) = vbak-vbeln.
       da_key+10(6) = xvbap-posnr.
       if da_owner-object_type eq config_vbps and
          da_owner-object_key  eq da_key.
         call function 'CUCB_CHECK_AND_DELETE_CONF'
              exporting
                   root_instance       = *vbap-cuobj
                   owner               = da_owner
              exceptions
                   invalid_instance    = 1
                   not_a_root_instance = 2
                   invalid_owner       = 3
                   not_registered      = 4
                   others              = 5.
       endif.
     endif.
   endif.
    message i360 with us_matnr da_conf_subrc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 09:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283533#M1634055</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-10-17T09:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Run Time Error causing problem!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283534#M1634056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 05:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-causing-problem/m-p/8283534#M1634056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-24T05:15:04Z</dc:date>
    </item>
  </channel>
</rss>

