<?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: How to debug  a run time error encountered while executing ZFunction Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136085#M1190466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="message" id="6913946"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2009 19:16:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-23T19:16:15Z</dc:date>
    <item>
      <title>How to debug  a run time error encountered while executing ZFunction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136078#M1190459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to create a ZFunction Module that Generated a sales order &lt;/P&gt;&lt;P&gt;for multiple line items and works for both Variant Configurable material and a Normal Material.&lt;/P&gt;&lt;P&gt;I am using BAPI_SLSTRANSACT_CREATEMULTI in my Zfunction Module to create a &lt;/P&gt;&lt;P&gt;Sales order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ZFunction Module works well if I give normal material as input. &lt;/P&gt;&lt;P&gt;It also works well and generates a sales order if I give all Variant Configurable materials as input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I give both Variant Configurable material and a normal material it throws a run time error.&lt;/P&gt;&lt;P&gt;Can some one tell me what is wrong? can some one suggest me how to debug this run time error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Termination occurred in the ABAP program "SAPLCRM_CONFIG_OW" - in                             &lt;/P&gt;&lt;P&gt; "CONFIG_TO_CBASE".                                                                           &lt;/P&gt;&lt;P&gt;The main program was "RS_TESTFRAME_CALL ".                                                                                &lt;/P&gt;&lt;P&gt;In the source code you have the termination point in line 63&lt;/P&gt;&lt;P&gt;of the (Include) program "LCRM_CONFIG_OWF02".                                                 &lt;/P&gt;&lt;P&gt;Source Code Extract                                                                                &lt;/P&gt;&lt;P&gt;Line SourceCde                                                                                &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;|   33|                                       LT_CUXI_CUPRT                                        &lt;/P&gt;&lt;P&gt;|   34|                                       LT_CUXI_CUVAL                                        &lt;/P&gt;&lt;P&gt;|   35|                                       LT_CUXI_CUVK                                         &lt;/P&gt;&lt;P&gt;|   36|                                       LS_CUXI_CUCFG.                                       &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;37&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;                                                                                &lt;/P&gt;&lt;P&gt;|   38|  PERFORM CREATE_PRICING_CSTIC USING IS_CONFIG-CUCFG-CFGINFO.                               &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;39&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;                                                                                &lt;/P&gt;&lt;P&gt;|   40|* set config to cbase                                                                       &lt;/P&gt;&lt;P&gt;|   41|  CALL FUNCTION 'COM_CUXI_SET_SINGLE_CFG'                                                   &lt;/P&gt;&lt;P&gt;|   42|       EXPORTING                                                                            &lt;/P&gt;&lt;P&gt;|   43|            I_CFG_HEADER          = LS_CUXI_CUCFG                                           &lt;/P&gt;&lt;P&gt;|   44|            I_ROOT_INSTANCE       = CV_INT_OBJ_NO                                           &lt;/P&gt;&lt;P&gt;|   45|            I_LOGSYS              = LV_LOGSYS                                               &lt;/P&gt;&lt;P&gt;|   46|       IMPORTING                                                                            &lt;/P&gt;&lt;P&gt;|   47|            E_ROOT_INSTANCE       = CV_INT_OBJ_NO                                           &lt;/P&gt;&lt;P&gt;|   48|       TABLES                                                                                &lt;/P&gt;&lt;P&gt;|   49|            I_TAB_INSTANCES       = LT_CUXI_CUINS                                           &lt;/P&gt;&lt;P&gt;|   50|            I_TAB_PART_OF         = LT_CUXI_CUPRT                                           &lt;/P&gt;&lt;P&gt;|   51|            I_TAB_VALUES          = LT_CUXI_CUVAL                                           &lt;/P&gt;&lt;P&gt;|   52|            I_TAB_VAR_KEYS        = LT_CUXI_CUVK                                            &lt;/P&gt;&lt;P&gt;|   53|            I_TAB_RESTRICTIONS    = LT_CUXI_CURES                                           &lt;/P&gt;&lt;P&gt;|   54|       EXCEPTIONS                                                                           &lt;/P&gt;&lt;P&gt;|   55|            INVALID_INSTANCE      = 1                                                       &lt;/P&gt;&lt;P&gt;|   56|            INTERNAL_ERROR        = 2                                                      &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;57&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;OTHERS                = 3.                                                        58&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;                                                                                &lt;/P&gt;&lt;P&gt;|   59|  IF SY-SUBRC &amp;lt;&amp;gt; 0.                                                         &lt;/P&gt;&lt;P&gt;|   60|    if sy-msgno is initial.                                                       &lt;/P&gt;&lt;P&gt;|   61|      MESSAGE X010 WITH 'COM_CUXI_SET_SINGLE_CFG'.&lt;/P&gt;&lt;P&gt;|   62|    else.                                                                              &lt;/P&gt;&lt;P&gt;|&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;|      MESSAGE ID SY-MSGID TYPE 'X' NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;|   64|              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;|   65|    endif.                                                                                &lt;/P&gt;&lt;P&gt;|   66|  ENDIF.                                                                                &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;67&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;                                                                                &lt;/P&gt;&lt;P&gt;|   68|ENDFORM.                               " CONFIG_TO_CBASE                                    &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 17:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136078#M1190459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T17:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug  a run time error encountered while executing ZFunction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136079#M1190460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Click on ABAP Editor where you see the dump and put a break point there. I hope you are checking this in ST22&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 17:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136079#M1190460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T17:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug  a run time error encountered while executing ZFunction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136080#M1190461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way i forgot to tell you..i am doing this in CRM. this is a Zfunction Module that generates a sales order for VC and normal material in CRM.&lt;/P&gt;&lt;P&gt;Only if i don through my Zprog i get this error. if i create an order on screen i dont get any error&lt;/P&gt;&lt;P&gt;Did u ecnounter this before? how to solve this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: jessica sam on Jan 22, 2009 5:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 17:43:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136080#M1190461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T17:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug  a run time error encountered while executing ZFunction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136081#M1190462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this error will only come in particular scenarios as Message type is X.&lt;/P&gt;&lt;P&gt;Place a break-point at &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;CALL FUNCTION 'COM_CUXI_SET_SINGLE_CFG' &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and check.&lt;/P&gt;&lt;P&gt;You may check for OSS note for this. As this si compeltely based on scenarios. do cross check witht he different datas to figure out exact error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 17:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136081#M1190462</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2009-01-22T17:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug  a run time error encountered while executing ZFunction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136082#M1190463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After getting short dump, click ABAP EDITOR or some button on upper left hand side.&lt;/P&gt;&lt;P&gt;It will take you to the error location in the debugger screen.&lt;/P&gt;&lt;P&gt;Keep a session break-point before the error location and execute the program again.&lt;/P&gt;&lt;P&gt;This way you will be able to debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To keep a session break-point in the debugger screen, all you need to do is keep a break-point and save it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mubeen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 18:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136082#M1190463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T18:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug  a run time error encountered while executing ZFunction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136083#M1190464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Amit...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I Create a Sales order for VC and Non VC items using BAPI_SLSTRANSACT_CREATEMULTI&lt;/P&gt;&lt;P&gt;Is it a limitation for BAPI_SLSTRANSACT_CREATEMULTI&lt;/P&gt;&lt;P&gt;I am trying to create a Sales Order using a Zprogram. I have used BAPI_SLSTRANSACT_CREATEMULTI. If I give the input as Normal material I am able to generate a sale order. If I give the input as VC material I am able to generate a sales order. But if I give both VC and Normal material as input, I get a run time error as follows.&lt;/P&gt;&lt;P&gt;Is it a limitation for BAPI_SLSTRANSACT_CREATEMULTI that we cannot create a sales order with both VC and Non-VC items or am I missing some data which I need to pass when I give both VC and Non VC items? I get this error only for my Zprogram. But if I try to create an order on screen manually I donu2019t get any error. This happens only if I create an order with my Zprogram.&lt;/P&gt;&lt;P&gt;Some one please help me u2026I am just stuggling to get this doneu2026&lt;/P&gt;&lt;P&gt;I dint find any posts that gives me information about this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CUX1 034 u201CNo root instance found in header datau201D                                                                                &lt;/P&gt;&lt;P&gt;In the source code you have the termination point in line 63                                   of the (Include) program "LCRM_CONFIG_OWF02".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 18:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136083#M1190464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T18:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug  a run time error encountered while executing ZFunction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136084#M1190465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont have much idea about CRM side....what I replied earlier is based on general debugging techniques..&lt;/P&gt;&lt;P&gt;Check the Documentation of BAPI in your CRM system and test it to know more till you find any suitable reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 21:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136084#M1190465</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2009-01-22T21:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug  a run time error encountered while executing ZFunction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136085#M1190466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="message" id="6913946"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 19:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-run-time-error-encountered-while-executing-zfunction-module/m-p/5136085#M1190466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T19:16:15Z</dc:date>
    </item>
  </channel>
</rss>

