Badi working only in Debug mode

Hi experts,
It's my first time with Badi, and I'm facing a issue I can't understand.
I've activated badi ME_PROCESS_PO_CUST , and everything work's fine .
From the method "Close" I call a Z... function which writes data on a custom table.
I've tested  it and the system correctly update the table , but when I deactivate  the debug  in the badi's method , it looks like the badi is not implemented and the system doesn't pass trough the function. 
Can somebody adress me to solve it ?
Thank you in advance for any help.
Ciao.

Thank you for your help Sudhir , but the table update it's done by the custom function which should be called by the BAdI. My issue is that the BAdI's method works only if I set a break-point on it. If I do not put a break-point on the BAdI , the function is not called at all !!.
Thanks again for your suggestion.

Similar Messages

  • CRM_ORDER_MAINTAIN works only in debug mode

    Hi Experts,
    I am currently facing a strange issue. I am trying to add a line item to a service ticket, but the code works only in debug mode. Sample code is given below:
    lv_product_i-ref_handle = '0000000001'.
    lv_product_i-ref_guid = lv_header_guid.
    INSERT lv_product_i INTO TABLE lt_product_i.
    ls_orderadm_i-header = lv_header_guid.
    ls_orderadm_i-itm_type = 'ZSG5'.
    ls_orderadm_i-number_int = '0000000010'.
    ls_orderadm_i-ordered_prod = 'SERVICEITEM_SG5'.
    ls_orderadm_i-handle = '0000000001'.
    ls_orderadm_i-mode = 'A'.
    ls_orderadm_i-itm_proc_ident = 'SRVC'.
    INSERT ls_orderadm_i INTO TABLE lt_orderadm_i.
    ls_input_fields-ref_handle = '0000000001'.
    ls_input_fields-objectname = 'ORDERADM_I'.
    CLEAR ls_field_names.
    ls_field_names-fieldname = 'HANDLE'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'HEADER'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'ITM_PROC_IDENT'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'ITM_TYPE'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'MODE'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'NUMBER_INT'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'ORDERED_PROD'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    EXPORTING
    it_product_i = lt_product_i
    CHANGING
    ct_orderadm_i = lt_orderadm_i
    ct_input_fields = lt_input_fields
    EXCEPTIONS
    error_occurred = 1
    document_locked = 2
    no_change_allowed = 3
    no_authority = 4
    OTHERS = 5.
    LOOP AT lt_orderadm_i INTO lv_tempvar.
    lv_item_guid = lv_tempvar-guid.
    ENDLOOP.
    The item guid is coming as initial and no item is being added.But if i put a breakpoint in CRM_ORDER_MAINTIAN, then the guid is being generated properly. Any pointers why the code is behaving like this or someone has faced a similar issue before?
    Thanks and Regards,
    Rohit

    Hi Rohit,
    The above said is also correct + U have to write
      CALL FUNCTION 'CRM_ORDER_SAVE'
        EXPORTING
          IT_OBJECTS_TO_SAVE = GT_OBJ_GUIDS
        IMPORTING
          ET_SAVED_OBJECTS   = GT_SAVED_OBJECTS
        EXCEPTIONS
          OTHERS             = 2.
      COMMIT WORK.

  • CRM_ORDER_MAINTIAN works only in debug mode!

    Hi Experts,
    I am currently facing a strange issue. I am trying to add a line item to a service ticket, but the code works only in debug mode. Sample code is given below:
    lv_product_i-ref_handle = '0000000001'.
    lv_product_i-ref_guid = lv_header_guid.
    INSERT lv_product_i INTO TABLE lt_product_i.
    ls_orderadm_i-header = lv_header_guid.
    ls_orderadm_i-itm_type = 'ZSG5'.
    ls_orderadm_i-number_int = '0000000010'.
    ls_orderadm_i-ordered_prod = 'SERVICEITEM_SG5'.
    ls_orderadm_i-handle = '0000000001'.
    ls_orderadm_i-mode = 'A'.
    ls_orderadm_i-itm_proc_ident = 'SRVC'.
    INSERT ls_orderadm_i INTO TABLE lt_orderadm_i.
    ls_input_fields-ref_handle = '0000000001'.
    ls_input_fields-objectname = 'ORDERADM_I'.
    CLEAR ls_field_names.
    ls_field_names-fieldname = 'HANDLE'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'HEADER'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'ITM_PROC_IDENT'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'ITM_TYPE'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'MODE'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'NUMBER_INT'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    ls_field_names-fieldname = 'ORDERED_PROD'.
    APPEND ls_field_names TO ls_input_fields-field_names.
    INSERT ls_input_fields INTO TABLE lt_input_fields.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    EXPORTING
    it_product_i = lt_product_i
    CHANGING
    ct_orderadm_i = lt_orderadm_i
    ct_input_fields = lt_input_fields
    EXCEPTIONS
    error_occurred = 1
    document_locked = 2
    no_change_allowed = 3
    no_authority = 4
    OTHERS = 5.
    LOOP AT lt_orderadm_i INTO lv_tempvar.
    lv_item_guid = lv_tempvar-guid.
    ENDLOOP.
    The item guid is coming as initial and no item is being added.But if i put a breakpoint in CRM_ORDER_MAINTIAN, then the guid is being generated properly. Any pointers why the code is behaving like this or someone has faced a similar issue before?
    Thanks and Regards,
    Rohit

    Well, during debugging an implicit COMMIT WORK is executed on a regular basis. This might cause the ITEM GUID to be created during debugging.
    However, normally, after CRM_ORDER_MAINTAIN, you should use the CRM_ORDER_SAVE as well. This will return a list of SAVED_OBJECTS. If all objects were saved correctly, do an explicit COMMIT WORK.
    Works fine for us.....

  • Function Module working only in debug mode

    Hi all,
    The following Function Module works only in debug mode. The purpose of this FM is to create a notification and to put it in progress status. If I put a breakpoint before "CALL FUNCTION 'BAPI_ALM_NOTIF_PUTINPROGRESS'" it works. If I execute this FM without putting a breakpoint at that place it creates the notification but doesnt put it in progress status.
    In other words, the last BAPI call doesnot work if I dont put a breakpoint before.
    Can somebody help me to find out where is the problem?
    Thanks,
    Younes
    FUNCTION ZFM_CREATE_NOTIF_IN_PROCESS.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(NOTIFTYP) TYPE  CHAR2
    *"     VALUE(NOTIFHEADER) TYPE  BAPI2080_NOTHDRI
    *"  EXPORTING
    *"     VALUE(NOTIFNUMBER) TYPE  CHAR12
    *"     VALUE(NOTIFCURSTATUS) TYPE  CHAR40
    DATA: gs_bapi2080_nothdre TYPE bapi2080_nothdre,
          gt_return TYPE TABLE OF bapiret2.
    The notification is created with a temporary number
    CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
      EXPORTING
        notif_type         = NOTIFTYP
        notifheader        = NOTIFHEADER
      IMPORTING
        notifheader_export = gs_bapi2080_nothdre
      TABLES
        return             = gt_return.
    READ TABLE gt_return TRANSPORTING NO FIELDS WITH KEY type = 'E'.
    CHECK sy-subrc IS NOT INITIAL.
    *The notication will be saved with a number which isnt temporary
    CALL FUNCTION 'BAPI_ALM_NOTIF_SAVE'
      EXPORTING
        number      = gs_bapi2080_nothdre-notif_no
      IMPORTING
        notifheader = gs_bapi2080_nothdre
      TABLES
        return      = gt_return.
    READ TABLE gt_return TRANSPORTING NO FIELDS WITH KEY type = 'E'.
    CHECK sy-subrc IS NOT INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    The Notif is already created, it will be put in progress status
    NOTIFNUMBER = gs_bapi2080_nothdre-notif_no.
       CALL FUNCTION 'BAPI_ALM_NOTIF_PUTINPROGRESS'
            EXPORTING
              NUMBER             = NOTIFNUMBER
              LANGU              = SY-LANGU
           IMPORTING
             SYSTEMSTATUS       = NOTIFCURSTATUS
           TABLES
             RETURN             = gt_return.

    Hi Emmanuel,
    Now I get your problem: you want to wait to have the commit finished! The call to BAPI_TRANSACTION_COMMIT has an optional parameter 'WAIT' which is space by default which causes only a commit. When you set this parameter to 'X' it will do a commit work and wait.
    This should solve your problem!
    Regards,
    John.

  • Deserialization works only in debug mode

    When I try to deserialize an XML document (defined via File-Connection) it works fine in debug mode but I get an error in non-debug-mode. What's the problem here?
    Error: 2011-12-29 19:31:40.25
    Code: 0x00000001
    Source: Read data from SAP
    Description: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: There is an error in X
    ML document (0, 0). ---> System.TypeInitializationException: The type initializer for 'Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderList1' threw an exception
    . ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderList1..cctor()
    --- End of inner exception stack trace ---
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderList1..ctor()
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializerContract.get_Reader()
    at System.Xml.Serialization.TempAssembly.InvokeReader(XmlMapping mapping, XmlReader xmlReader, XmlDeserializationEvents events, String encodingStyle)
    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
    --- End of inner exception stack trace ---
    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
    at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)

    Yes, there is a potential for a bug. Thus, feel free to log it in
    MS Connect.
    You need to deploy it to the GAC, too. I will better point you to a blog post that covers this: http://www.hoekstra.co.uk/index.php/software-mainmenu-36/ssis-mainmenu-75/73-create-and-use-a-c-assembly-for-ssis.html?start=1
    I suggest when you go live you create a script that will take care of all, but it is not too too laborious.
    Arthur My Blog
    Are you 100% sure? Because I can see that SSIS seeks for the dll in ...DTS/binn. So I see no need to pollute the GAC with this dll.
    My dll is not deployed into the GAC and when I remove it, it will no longer work. I think it works in DTS/binn because the DTExec.exe is located there?
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: c:\Program Files\Microsoft SQL Server\100\DTS\binn\DTExec.exe.Config
    LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///c:/Program Files/Microsoft SQL Server/100/DTS/binn/ClassLibrary1.DLL.
    LOG: Attempting download of new URL file:///c:/Program Files/Microsoft SQL Server/100/DTS/binn/ClassLibrary1/ClassLibrary1.DLL.
    LOG: Attempting download of new URL file:///c:/Program Files/Microsoft SQL Server/100/DTS/binn/ClassLibrary1.EXE.
    LOG: Attempting download of new URL file:///c:/Program Files/Microsoft SQL Server/100/DTS/binn/ClassLibrary1/ClassLibrary1.EXE.

  • My program works only in debugging mode

    Dear All,
    I am just starting to use LabVIEW and developing a instumental driver. 
    The program is rather sequentially designed because I am only used to work with text-based program. 
    The current program is working in debugging mode without any error message.
    To give an idea of how it is composed:
    1. Set up the serial port setting (machine address, baud rate, parity, etc)
    2. Send to the instument the name of a short program to be run. 
    3. Send mutiple string commands to the instruments.  Those string commands construct a short program to control the instrument.
    4. Send another string command to run the short program
    The issue is that it does not work in excution mode.  It looks to me that the communication between the instrument and computer seems to be too fast. 
    Since the program is designed in a sequential manner, it does not have any while-loop or for-loop so I cannot add any timing function. 
    Could anyone give me a hint or a right direction to fix this issue?  It would be really appreciated.  Thank you.
    Solved!
    Go to Solution.

    You could do something like the attached modification.Note how I modified the connector pane for the subVI to use the conventional 4-2-2-4 pattern and notice where I connected the terminals.
    NOTE: I am assuming the VI is supposed to run just once, and that you're not using the Run Continuously button in the toolbar. You're not, right?
    Attachments:
    NE-100_StairFlow_w_RUN00 MOD.vi ‏27 KB
    NE-100_RAT_00_XX MOD.vi ‏18 KB

  • Enhancement works only in debug mode

    Hi all,
    Need help with the issue that I have.I have written an enhancement , in one of the includes that is being called by MIRA(LMR1MF1H) tcode, to set the document type , based on condition.Below is the code snippet :
    Import the flags from memory id
    import is_invo from memory id 'IS_INVO'.
    import is_crme from memory id 'IS_CRME'.
    import is_pdf from memory id 'IS_PDF'.
    * Check whether PDF or scanned document and change doc type to Y3 or Y4
      if is_pdf eq 'X'.
    *    Check if invoice
         if is_invo eq 'X'.
           rbkpv-blart = 'Y3'.
         elseif is_crme eq 'X'.
           rbkpv-blart = 'Y4'.
         endif.
      wait up to 1 seconds.
      endif.
    * Free memory
      free memory id 'IS_INVO'.
      free memory id 'IS_CRME'.
      free memory id 'IS_PDF'.
    Now, When I execute directly, the document type is not getting set...I assume the control is not going to my code at all..as there is no other place where the doc type gets modified...
    However, when i execute in debug mode, it works perfectly fine...Any inputs on why this behaviour ?

    Hi ,
    I am not sure what is going wrong..I think the control is not going to the enhancement point at all ! I set a default value for the flag and still the document type doesnt change..Let me explain the flow of the code, that is written, it may help you guys in understanding..
    I have a Z report, in which, I am preparing the bdc data and also setting the flag is_pdf, based on some criteria.
    In this Z report, I am calling transaction MIRA.Now, MIRA tcode is calling FORM init_miro( in the include LMR1MF1H).Just before this form ends , I have my enhancement code(given above in my first post) written, to change  the doc type...
    Now, to test, I set the is_pdf flag to 'X', but still the doc type doesnt change...so I assume the control is not going there at all
    Also, I am not sure how to use the shared buffer concept..please suggest..

  • Poweroff works only in debug mode

    Hello,
    I am running a fully updated (30.4.14 ) Arch on an oldish P4, and my problem is that the computer does not poweroff of shutdown and reboots instead. The cmd I tried were "systemctl poweroff"  ,"poweroff", "shutdown -P now"
    For some reason, if I append "debug" to the cmdline, powering off works as expected but then the pc boots slowly and i get my logfiles spammed.
    The machine was running Ubuntu 10.04 with kernel 2.6 before where everything worked fine.
    I tried to to add various acpi commands such as "acpi=noirg" or acpi_os_name="Microsoft Windows"
    Whats different in debug mode that makes shutdown work?

    I had the opposite problem on my new system in that it would not reboot; it would always power down but never power back up. My problem was solved by blacklisting the Intel Management Engine driver “mei_me”. I don't know if that driver is your problem or not, but if your system has that driver loaded you could check to see if blacklisting would work by unbinding it before the poweroff:
    Get the device id bound to the driver:
    ls -1L /sys/bus/pci/drivers/mei_me/ | grep ':'
    E.g. 0000:00:1f.0
    Now write (as root) that value to unbind:
    echo 0000:00:1f.0 > /sys/bus/pci/drivers/mei_me/unbind
    Obviously replace 0000:00:1f.0 with your device id.
    If your system still fails to power off, the problem is not with mei_me.
    Otherwise, to save you from having to unbind the driver each time, you can blacklist the mei_me driver:
    E.g.:
    echo blacklist mei_me >> /etc/modprobe.d/fix-poweroff-problem.conf
    And reboot

  • ERMS - Email Linking works only in DEBUG mode!

    Hi All,
    We are on ERMS in CRM 7.0 SP04.
    I am facing a strange issue.
    I have configured a Rule Policy so that when a user send an email to a particular email id a service ticket is created. A small subset of this functionality is that the email that the user sends should get liked to the service ticket that is created under the Processing Log assignment block.
    Now the strange thing is that during normal execution the email does not get logged with the service ticket but when I debug the workflow step using crm_erms_logging the functionality works perfectly and the email gets logged with the service ticket.
    I suspected issues with authorization of the WF-BATCH user but after assigning auths similar to the debug user also the problem is not resolved.
    Quick response would be highly appreciated.
    Kind regards,
    Gaurav

    Hi Gaurav,
    Role: WF_BATCH  has access to the follwoing:
    CRM_ORD_LP
    CRM_ORD_OE
    CRM_ORD_OP
    CRM_ORD_PR
    These objects are responsible for the CRM Order access and needs access to transaction types which you are using in the system. Use "*" or enter transaction type which you are using.
    Let me knwo if it still does not work.
    Regards,
    Namita
    Edited by: Namita Singh on Oct 14, 2009 10:32 AM

  • Weblogic 10.3.3 JRE1.6_0_23 SHA2 Certificates works only in debug mode

    Hello All,
    I have received the new certificates which are using SHA2 algorithm. However my weblogic application server 10.3.3 together with JRE1.6 and default SSL provider (certicom) cannot handle this new SHA2 algorithm (Previously sha1). After reading some post I have changed the ssl provder to Sun standard by enabling the JSSE flag true. (<jsse-enabled>true</jsse-enabled>)
    Unfortunately with this change to the config.xml neither Admin Server nor the managed server starts. Server simply hangs on this step and no error message to find in any of the logs.
    So to be able to see the error I have enabled the debug flag in the weblogic start up options.
    -Djavax.net.debug=ssl
    Suddenly after enabling this (debug) flag Admin server could start, managed server still hangs. This behaviour was tested multiple times by removing and putting the debug flag.
    Has anybody encountered such problem? What changes after setting the debug flag which led the Admin server to start? Even if the Admin server starts why the Managed server still hangs?
    Looking forward for the help.
    Best Regards
    Prasad

    By default, WebLogic Server uses the Certicom SSL implementation, which does not support SHA2* algorithms.
    WebLogic Server 10.3.3 and higher offers the option to switch to the JSSE SSL implementation instead which does support such algorithms.
    Note that in WLS 10.3.3 and higher, the Certicom SSL implementation is deprecated.
    So in WLS 10.3.3 and higher, this issue can be resolved by enabling (argument added to JAVA_OPTIONS) the JSEE SSL provider with the following JVM startup argument:
    -Dweblogic.security.SSL.enableJSSE=true
    The below link offers more details on the JSSE SSL implementation.
    http://docs.oracle.com/cd/E24329_01/web.1211/e24422/ssl.htm#SECMG494
    Thanks,
    Vijaya

  • Updating Custom Table Only in Debug Mode

    Hi All!
    I have been encountering issues in updating a custom table. It would work successfully only in debug mode otherwise it won't update an entry in the table.
    This is the piece of code that would update an entry in the table specifically used in a user exit. The functionality of this code is to automatically remove a transportation block:
    SELECT SINGLE *
    INTO wa_zblock
    FROM zblock
    WHERE zzblknum EQ c_tr01
    AND vbeln EQ p_lvbeln
    AND zzprocessed EQ space.
    IF sy-subrc EQ 0.
    DO.
    CALL FUNCTION 'ENQUEUE_E_TABLES'
    EXPORTING
    MODE_RSTABLE = 'S'
    TABNAME = c_lzblock
    EXCEPTIONS
    FOREIGN_LOCK = 1
    SYSTEM_FAILURE = 2
    OTHERS = 3.
    IF sy-subrc EQ 0.
    wa_zblock-zzprocessed = c_x.
    wa_zblock-zzapproveby = sy-uname.
    wa_zblock-zzapproveon = sy-datum.
    MODIFY zblock FROM wa_zblock.
    if sy-subrc EQ 0.
    COMMIT WORK AND WAIT.
    endif.
    EXIT.
    ENDIF.
    ENDDO.
    CALL FUNCTION 'DEQUEUE_E_TABLES'
    EXPORTING
    MODE_RSTABLE = 'S'
    TABNAME = c_lzblock.
    ENDIF.
    How can I make this update the custom table successful in undebugged mode? Please let me know your thoughts on this.
    Thanks!

    I also suggest you to lock only the entry that will be updated (and not the whole table!) : you will have then far less problems of conflict with updating this table.
    For that, you have to create a lock object on your table (via SE11 - for example EZ_MY_TABLE). This will create 2 function modules named ENQUEUE_E<name of your lock object> (in my example ENQUEUE_EZ_MY_TABLE) and DEQUEUE_E<...>.
    You can then call those FM like this :
    CALL FUNCTION 'ENQUEUE_EZ_MY_TABLE'
      EXPORTING
        MODE_RSTABLE = 'S'
        KEYFIELD1 = ld_keyfield1  " Here are the key values for the entry that you have to update
        KEYFIELD2 = ld_keyfield2
      EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
        OTHERS = 3.
    Best regards,
    Samuel

  • Bad pointer exception in Debug mode.. CView in CDockable pane MFC Feature pack

    Hi
    I have attached a CView in  CDockablePane and it works fine
    in Release mode but it throws bad memory pointer in
    debug mode while closing the application.(Crashing during close).
    Please advise...
    Find the code below how I had attached the View to Dockable pane
    //===================================================
    BOOL COutputWnd::AddView ( CRuntimeClass *pRuntimeViewClass, LPCTSTR lpcszTitle, int nIconIndex,int nTabIndex )
    if ( !pRuntimeViewClass )
    return FALSE;
    int nTabIndex = 0;
    CWnd *pWnd = NULL;
    CCreateContext newContext;
    CTestView *pView = NULL;
    newContext.m_pCurrentDoc = NULL;
    newContext.m_pNewViewClass = pRuntimeViewClass;
    newContext.m_pNewDocTemplate = NULL;
    TRY
    pWnd = ( CWnd* ) pRuntimeViewClass->CreateObject ( );
    if ( NULL == pWnd )
    AfxThrowMemoryException ( );
    CATCH_ALL ( e )
    TRACE0 ( "Out of memory creating a view\n" );
    return FALSE;
    END_CATCH_ALL
    if ( !pWnd->Create ( NULL, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, CRect ( 0, 0, 0, 0 ), &m_wndTabs, AFX_IDW_PANE_FIRST + nTabIndex, NULL ) )
    TRACE0 ( "Create view failed\n" );
    return FALSE;
    m_wndTabs.AddTab( pWnd, _T("Browser Tab"), (UINT)m_wndTabs.GetTabsNum());
    pWnd->SendMessage ( WM_INITIALUPDATE );
    pWnd->SetOwner ( this );
    pView = ( CTestView* ) pWnd;
    if ( NULL != pView )
    pView->Navigate2 ( lpcszTitle );
    return TRUE;
    }//===================================================
    Thanks
    Shajeer

    Hi
    I am calling the AddView from OnCreate of COutputWnd as below
    int COutputWnd::OnCreate(LPCREATESTRUCT lpCreateStruct){
    if (CDockablePane::OnCreate(lpCreateStruct) == -1) return -1;
    m_Font.CreateStockObject(DEFAULT_GUI_FONT);
    CRect rectDummy;
    rectDummy.SetRectEmpty();
    // Create tabs window:
    if (!m_wndTabs.Create(CMFCTabCtrl::STYLE_FLAT, rectDummy, this, 1)){
    TRACE0("Failed to create output tab window\n");
    return -1; // fail to create}
    AddView( RUNTIME_CLASS(CBrowserView),_T("www.google.com"),-1,0);
    return 0;
    Find below the call stack when it crashes
    Bad_Pointer.exe!AfxAssertValidObject(const CObject * pOb=0x00b7e838, const char * lpszFileName=0x014c58c8, int nLine=2372)  Line 99 + 0xa bytes C++
      Bad_Pointer.exe!CFrameWnd::AssertValid()  Line 2373 C++
      Bad_Pointer.exe!CMDIFrameWnd::AssertValid()  Line 384 C++
      Bad_Pointer.exe!CMainFrame::AssertValid()  Line 271 C++
      Bad_Pointer.exe!AfxAssertValidObject(const CObject * pOb=0x00b70068, const char * lpszFileName=0x014d5404, int nLine=288)  Line 107 C++
      Bad_Pointer.exe!CBasePane::GetParentMiniFrame(int bNoAssert=0)  Line 291 C++
      Bad_Pointer.exe!CDockablePane::OnDestroy()  Line 2579 + 0x12 bytes C++
      Bad_Pointer.exe!CTabbedPane::OnDestroy()  Line 215 C++
      Bad_Pointer.exe!CWnd::OnWndMsg(unsigned int message=2, unsigned int wParam=0, long lParam=0, long * pResult=0x001ae47c)  Line 2042 C++
      Bad_Pointer.exe!CWnd::WindowProc(unsigned int message=2, unsigned int wParam=0, long lParam=0)  Line 1755 + 0x20 bytes C++
      Bad_Pointer.exe!CBasePane::WindowProc(unsigned int message=2, unsigned int wParam=0, long lParam=0)  Line 1011 + 0x14 bytes C++
      Bad_Pointer.exe!AfxCallWndProc(CWnd * pWnd=0x00b90af0, HWND__ * hWnd=0x000114d8, unsigned int nMsg=2, unsigned int wParam=0, long lParam=0)  Line 240 + 0x1c bytes C++
      Bad_Pointer.exe!AfxWndProc(HWND__ * hWnd=0x000114d8, unsigned int nMsg=2, unsigned int wParam=0, long lParam=0)  Line 403 C++
      user32.dll!7787f8d2()  
      [Frames below may be incorrect and/or missing, no symbols loaded for user32.dll] 
      user32.dll!7787f794()  
      user32.dll!7787f73d()  
      user32.dll!77880817()  
      user32.dll!77880a65()  
      ntdll.dll!776f99ce()  
      user32.dll!778714c8()  
      Bad_Pointer.exe!CMDIFrameWndEx::OnDestroy()  Line 777 C++
      90909090()
    Thanks!
    Shaj

  • CRM_ORDER_SAVE works properly only in debug mode

    I have a scenario where I'm creating two order documents (using CRM_ORDER_MAINTAIN and CRM_ORDER_SAVE), then linking them with function module CRM_CREATE_BREL_TO_CONTRACT.  After calling CRM_ORDER_SAVE and before CRM_CREATE_BREL_TO_CONTRACT, I "commit work and wait" and call CRM_ORDER_INITIALIZE.  When I set a breakpoint immediately before CRM_CREATE_BREL_TO_CONTRACT (and thus have to pass through debug mode), CRM_CREATE_BREL_TO_CONTRACT works with no problem.  If I don't pass through debug mode, it fails and returns the flag EV_LOCKING_PROBLEM = true.
    I have added "wait X seconds" and have even added a while loop that calls CRM_ORDER_CHECK_CHANGE_ALLOWED.  But when I don't enter debug mode, this while loop runs forever.
    Does anybody know what's happening here?  I suspect there is some kind of problem with document distribution, but I'm not sure.
    Many thanks,
    Tom Peng

    Hello Tom,
    As you may already known, the lock is added in FM CRM_CREATE_BREL_TO_CONTRACT with the following coding:
          IF ls_active_switch-lock_contract <> gc_act_switch-inactive.
    *       Lock contract
            CALL FUNCTION 'CRM_ORDER_ENQUEUE'
              EXPORTING
                iv_guid           = iv_contract_header
              IMPORTING
                ev_already_locked = lv_already_locked
              EXCEPTIONS
                foreign_lock      = 1
                system_failure    = 2
                distributed_lock  = 3
                no_change_allowed = 4
                transferring      = 5
                OTHERS            = 6.
            IF sy-subrc <> 0.
    Here system checks whether activ_switch is active. If yes, the error issued.
    Thus you need to pass the parameter t_active_switch with value false when call FM crm_order_save.
    Hope this information could be helpful.

  • MySQL query works fine for Debug mode not during regular run mode

    Hello fellow Java gurus,
    I'm very much confused at the moment. I have an Java application that populates and accesses a MySQL database. It's a little complicated to explain but basically I've got a few threads that manipulate it. The database itself can handle multiple client connections.
    Now, my first SQL query determines whether records exist within a particular timeframe, since one of my columns is a time of arrival (toa). This works fine in debug and normal run mode. My second SQL query is only executed once the first query returns true, which occurs 100% of the time. The second query is very similar, however, has the very weird behaviour of working the way I want it during debugging mode, but doesn't work at all during normal run mode. I really do not understand. I've tried running the 2nd query using the same connection and also a different connection as to the 1st query but it really doesn't make a difference to the non-working outcome.
    If anyone has any ideas as to as to why this is happening, please help me. Any feedback would be greatly appreciated. I am desperate at the moment.
    Kind regards,
    Mitch.

    Sorry everyone, I've been able to solve it. My boolean variables were being set to their opposite values! Silly me.... cheers anyway....

  • Msi motherboard 990FXA-GD80 wont work only sending debug code

    my motherboard 990FXA-GD80 is not booting to bios ore nothing is coming up to the screen it's only sending debug code:
    FF
    19
    FF
    2b
    3b
    37
    36
    70
    60
    72
    b2
    92
    99
    52
    54
    55
    56
    some times
    44
    45
    46
    why are nothing happening and what can it be
    i have tried out chaining slots for the memory card and to remove/mount the CPU and still it responds the same
    it's a FX-8120 CPU
    i have also tried with a
    is there someone that knows what can be wrong with the motherboard ples i need some help with this.

    FF - means nothing
    19 - Pre-memory South Bridge initialization is started
    FF - means nothing
    2B - Memory initialization. Serial Presence Detect (SPD) data reading
    3B - Post-Memory South Bridge initialization is started
    37 - Post-Memory North Bridge initialization is started
    36 - CPU post-memory initialization. System Management Mode (SMM) initialization
    70 - South Bridge DXE initialization is started
    60 - DXE Core is started
    72 - South Bridge devices initialization
    B2 - Legacy Option ROM Initialization <--- possible Graphics Card Problem too
    92 - PCI Bus initialization is started
    99 - Super IO Initialization
    52 - Memory initialization error. Invalid memory size or memory modules do not match
    54 - Unspecified memory initialization error
    55 - Memory not installed
    56 - Invalid CPU type or Speed
    the Red area is a very bad set of codes as they are mainly Memory and CPU issues
    your some times codes are all DXE IPL is started
    ok from that track of codes it looks to me like either a memory problem (MOST LIKELY) or CPU not Supported problem!
    ok so Read this>>>> >>Posting Guide<< and give us the parts in your Build and exactly what memory and CPU you have?
    also what is the Serial Number of your motherboard (Leave off the last 3 Digits if you do not want to give the full one)? ----- NOTE: its either on the rear of the board or on the UPC label on the Motherboard Box or both!

Maybe you are looking for