Callback invoked only if abap-debug set to true

I use NCo ver 2.0.1 and VS.NET 2003
I instantiate a sapproxy object of type client and one of type server.
After that i've set the .callback property of the <b>sapproxy-client</b> to the <b>sapproxy-server</b> instance.
If I call sample functions Stfc_Connection and Stfc_Connection_Back I report no problems.
I have to use another function (<b>CDesk_Show</b>) calling more then one callback function on the sapproxy-server instance.
I put breakpoints on these function.
If I invoke the main function (the one internally calling callback functions i.e Cdesk_show) without ABAP-DEBUG option set to true, I get an exception and execution don't  stop on callback-function-breakpoints.
If I set ABAP-DEBUG to true, execution stops at these breakpoints(i.e in Visual studio) and everything works fine and no exception is thrown.

Hi,
Obviously, your function module or the callback function needs to somehow access SAPGUI. In this case, the option use_sapgui=1 should be used. The option abap_debug also enables SAPGUI access in addition to turning on the ABAP debugger.
Regards,
Guangwei

Similar Messages

  • What is the utility of watch point and break point in ABAP DEBUGGING !

    What is the utility of watch point and break point in ABAP DEBUGGING !
    PLEASE TELL ME IN DETAILS AND IF POSSIBLE WITH SCREEN SHOTS !

    Hi,
    Breakpoints, Watchpoints, and Checkpoints
    Summary
    The standard Breakpoints tool is always located on the Breakpoints desktop. With this tool, you can manage breakpoints, watchpoints and checkpoints. In addition, you can monitor the current status of the different breakpoint types.
    Detailed Description
    Breakpoints
    In the Breakpoints area, you will see a list of all the breakpoints set so far. If one of the breakpoints has just been reached, this is marked with a yellow arrow. The visibility (Debugger, session, user) and type (line, ABAP command, …) is displayed for each breakpoint.
    If you double click the Navigation() column, the system will display the breakpoint in the respective source code.
    The visibility of a breakpoint can be changed through the dropdown list. To change the visibility of several breakpoints, mark them and select the pushbutton Save as Session Breakpoint or Save as User Breakpoint.
    You can change the visibility of all Debugger breakpoints using the menu path Breakpoints-> Save Debugger BPs as -> ....
    In addition, you have functions for creating, changing, activating and deactivating breakpoints at your disposal.
    Watchpoints
    In the Watchpoints area, you will see a list of all the watchpoints set so far. The watchpoint last set is highlighted with a yellow arrow.
    For each watchpoint you will see not only the current value but the value before the last changed. (Technically speaking, each time you create the watchpoint and each time the watchpoint variable is changed, a clone of this variable is created.)
    In this way, you can always determine what changes have been made to the monitored variable. For complicated data structures, such as internal tables or structures, select the pushbutton „Compare Variables“( ) and choose the Diff tool to compare the old and new variable values.
    In addition, you have functions for creating, changing, activating and deactivating watchpoints at your disposal.
    Checkpoints
    In addition, you can edit conditional and unconditional checkpoints using the Breakpoints tool. This function is provided in the new Debugger only. Conditional checkpoints are set first in the source code using the ASSERTstatement; unconditional checkpoints are set using the BREAK-POINT statement. These have the effect that programs will be continued only if a preset condition is fulfilled. In the following window, these checkpoints can be searched for, activated, or deactivated.
    Pls refer to :
    http://help.sap.com/saphelp_nw70/helpdata/en/e2/5f5a42ed221253e10000000a155106/frameset.htm
    Regards,
    Renjith Michael.

  • What is utility of watch points and break point  in ABAp debugging !

    What is utility of watch points and break point  in ABAp debugging !

    Hi,
    Breakpoints, Watchpoints, and Checkpoints
    Summary
    The standard Breakpoints tool is always located on the Breakpoints desktop. With this tool, you can manage breakpoints, watchpoints and checkpoints. In addition, you can monitor the current status of the different breakpoint types.
    Detailed Description
    Breakpoints
    In the Breakpoints area, you will see a list of all the breakpoints set so far. If one of the breakpoints has just been reached, this is marked with a yellow arrow. The visibility (Debugger, session, user) and type (line, ABAP command, …) is displayed for each breakpoint.
    If you double click the Navigation() column, the system will display the breakpoint in the respective source code.
    The visibility of a breakpoint can be changed through the dropdown list. To change the visibility of several breakpoints, mark them and select the pushbutton Save as Session Breakpoint or Save as User Breakpoint.
    You can change the visibility of all Debugger breakpoints using the menu path Breakpoints-> Save Debugger BPs as -> ....
    In addition, you have functions for creating, changing, activating and deactivating breakpoints at your disposal.
    Watchpoints
    In the Watchpoints area, you will see a list of all the watchpoints set so far. The watchpoint last set is highlighted with a yellow arrow.
    For each watchpoint you will see not only the current value but the value before the last changed. (Technically speaking, each time you create the watchpoint and each time the watchpoint variable is changed, a clone of this variable is created.)
    In this way, you can always determine what changes have been made to the monitored variable. For complicated data structures, such as internal tables or structures, select the pushbutton „Compare Variables“( ) and choose the Diff tool to compare the old and new variable values.
    In addition, you have functions for creating, changing, activating and deactivating watchpoints at your disposal.
    Checkpoints
    In addition, you can edit conditional and unconditional checkpoints using the Breakpoints tool. This function is provided in the new Debugger only. Conditional checkpoints are set first in the source code using the ASSERTstatement; unconditional checkpoints are set using the BREAK-POINT statement. These have the effect that programs will be continued only if a preset condition is fulfilled. In the following window, these checkpoints can be searched for, activated, or deactivated.
    Regards,
    Renjith Michael.

  • Abap debugging

    Dear All
    Could anyone guide me about abap debugging for sd and user exits and their role.
    Regards
    KAPIL MORE

    It depends on what you exactly want to do.
    There are ways by which you can go into the program and debug.
    a. You can go to the program, put a '/h' in the ok code. Then execute the program. In the Menu >> Environment >> Break point, put the break point on say for example on Messages. Then press F8. You can reach the message where the program errors out. You can also set the watch points for the values.
    b. You know a program. You know why the program may be erroring out. Say for example, you are not getting the company code on the invoice print. Then, go to the invoice print program. Search for field BURKS. Put a break point there and then try to print the invoice. The program will stop where you have put a break point. You can check from there why it is not working.
    There are many other ways and means but it only comes by repeatedly doing it...
    You can find the user exit for SD in SPRO >> Sales and Distribution >> System Modification >> User Exit in SD... There is a lot of documentation in these nodes which you will have to read..
    MV45AFZZ is the widely used userexit in Sales order...
    I would say an ABAPer can be your best teacher...
    Hope this helps...
    Regards,
    Mukund S

  • ABAP Proxy Set up and Load balancing

    Hi All,
    We have a SAP ECC 5.0 PRD server in our landscape. I need to set up ABAP Proxy in the server.
    They have implemented Load balancing in the ECC 5.0 PRD server. They have two servers (One Central Server and another APP Server) and one of the servers will be used at any point in time based on load conditions.
    Now where exactly i have to perform the ABAP Proxy set up and how does it work at runtime.
    Thanks in advance.
    Regards,
    Sudharshan N A

    Hey,
        refer to this.
    R3 side
    SLDCHECK
      Use this transaction to access the SLD of XI.
    SLDAPICUST
      Create an entry for respective XI server
      requires hostname, port username and ip.
      Can have multiple enteries for different servers.
      But you can check only one entry.
      based on the entry that is checked, respective SLD API will be triggered from
      SLDCHECK.
    SM59 (T type connections).
      To connect to the SLD you need 2 types of TCP/IP connections.
      1)LCRSAPRFC:-
          In this you require the gateway host(ip address) and gatewayservice(sapgw[system no.])
          YOu also need to give Program ID.
          Entry of corresponding Program ID must be maintained in SMGW.
          IN SMGW Click GoTo->logged on Clients.
          If entry is not there for corresponding XI.
          Create a communication channel in XI, pointing to R3 and give a Program ID
          in the channel. Once the channel is activated, corresponding Program ID wil
          appear in SMGW.
      2)SAPSLDAPI:-
         In this case follow the same porcedure as for LCRSAPRFC.
       As far as the Program ID is concerned te procedure mentioned above is for
       Customized RFC's
       The RFC destinations mentioned here are both standard RFC's
       Hence for these two RFC's no need to Create Program ID's. you just need to
       change the System ID of the Program ID.
       Both these RFC's are maintained in the J2ee server of XI.
    SPROXY.
       In this transcation you can check the Proxies.
       If the proxies are not activated (i.e. if the message interfaces are not active)
       this step is optional
       then you need to maintain one G type RFC destination pointing the resepctive XI server.
       In the G tpye RFC destination give the Ip adress of the XI server in the target
       host and set the path prefix as /rep.
       Goto SPROXY->Goto->connection test-> click on the table SPROXSET.
       In this table maintain enteries for ADDRESS_ONLY_FROM_SPROXSET and IFR_HTTP_DEST
       The values corresponding to these enteries will be the G tpye RFC destination.
    In order to connect R3 to the Integaration server you need to maintain H type
    The default RFC is XI_INTEGRATIONSERVER. In you need to give the Target host entry as the
    Ip address and Path Prefic as.../sap/XI/engine/?type=entry (this you can get from SXMB_ADM of XI)
    You can also create the H type RFc of your own.
    goto SXMB_ADM(r3) and open Integration engine configuration.
    regards,
        Milan

  • WD ABAP: debugging?

    Hi,
    need to know how to debug a ABAP WD prog... breakpoint is set but ignored... is there a special debug mode to run the program with?

    >as in wd for Java ...for a server there is a debugging port and it is to be set as debugging ON ....so find is there any debugging port in WD for ABAP .....
    There is no debug port or debug setting that must be set for the ABAP engine.  The ABAP Virtual Machine has the capability to dynamically switch a running process in and out of debug mode - including the ability to remotly attach a debug session to an already running process.

  • ABAP Debug Mode in SAP and webMethods

    HI,
    Can anyone help resolve why I am receiving this message when I set the ABAP debug mode to yes on the SAP server? com.sap.mw.jco.JCO$Exception: (105) ERROR_NO_DIALOG_USER: ERROR_NO_DIALOG

    HI,
    Very possibly the webMethods generic "SAP User" is set up as a "CPI-C" user in SAP. This means that this user can never log directly onto the SAP system, or participate in a 'dialog process' (actual GUI interraction). This is a common approach to ensure that no one can actually log onto the SAP system using this user id (other licensing issues may apply).
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • [svn:osmf:] 11139: Extending class with a 'processLoadingState' stub, invoked when load state is set to LOADING.

    Revision: 11139
    Author:   [email protected]
    Date:     2009-10-26 03:02:38 -0700 (Mon, 26 Oct 2009)
    Log Message:
    Extending class with a 'processLoadingState' stub, invoked when load state is set to LOADING.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/osmf/media/LoadableMediaElement.as

    Strobe was used to verify that the problem was not with my OSMF implementation. Since the results were the same, I am more supsicious of OSMF itself or the underlying AIR framework than the player implementation. Either way, the information I've seen says that progressive download of h.264 video is supported on mobile devices with AIR. It would appear that this is not true in all cases.
    The issue has not been observed on not occur on the desktop. It only occurs with StageVideo enabled playback with autoplay on.
    In the actual product the videos play one at a time. Once the user has finished with a video, the player clears the references to the media. These are OSMF calls; the media assigned to the player is nulled. If this is not sufficient for garbage collection, then I am at a loss as to how to proceed. My test uses four videos that are roughly 1 MB. If there is a memory use problem, then it would appear something is broken in AIR or OSMF.
    I want to be sure I report this correctly. The code involved is more than a snippet, it's a media player designed to be embedded in an app. Do I need to include the complete implementation or will a description be sufficient?

  • ASP Web Forms Error: Session state can only be used when enableSessionState is set to true

    Hello,
    I am developing a custom application page for a custom Web Forms I am creating, which I plan on using for custom task form into SharePoint 2010 Foundation.
    Currently, I am trying to test it in Debug Mode using Visual Studio 2010 but when I am trying to use Sessions I get the error:
    Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration
    I've already done this on trying to fix:
    On my page
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestForm.aspx.cs" Inherits="TestForm" EnableSessionState="True" %>
    And on my web.config
    <pages enableSessionState="true">..<httpModules>
    <remove name="Session" />
      <add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    </httpModules>
    Note: I am getting an error when I try to add <module> into web.config
    ASP .NET State Service is currently running.
    And the part where it keeps error is when in PageLoad, I try to set a List object something like this:
    List<object> myobject
    get
    if (Session["object"] == null)
    Session["object"] = new List<object>();
    return Session["object"] as List<object>;
    set
    Session["object"] = value;
    protected void Page_Load(object sender, EventArgs e)
    myobject= new List<object>();
    BUT the error still persists! I also try to restart IIS but still the error still happens.
    I am running out of ideas so can you help me out?
    Thank you!

    Could be your skype intercepting your requests at 80 port, in Skype options uncheck
    Or Your IE has connection checked for Proxy when there is no proxy
    Or your fiddler could intercept and act as proxy, uncheck it!
    Solves the above problem, It solved mine!
    HydTechie
    HydPhani

  • Can we create Interactive forms only with ABAP & without using GP,  or Java

    Hi,
    I would like to know if we can create Interactive forms only with ABAP & without using GP or Java. We want to develop an offline solution using Interactive forms, but would like to use only ABAP for creating the forms. All the documents so far either refer to creating the forms, in reference to / in sync with: ISR (Service Requests), GP (General Procedures) or Java. Can this be done with ABAP alone?
    Regards,
    Ramesh
    Edited by: Ramesh Nallabelli on Apr 16, 2008 12:02 AM

    Hello Ramesh,
    You should be able to create Adobe Interactive Forms using only the ABAP stack (without GP, Java, etc). Please refer to the thread below. Hope it helps.
    Re: help for-offline interactive forms based on sending receiving mails in ABAP
    Regards,
    Rao

  • Role in UME whereas user can be created only in ABAP

    Hi experts,
    I want to create a user with a MDM EC Administrator role in my WAS Java UME. But i get the following exception while doing so:
    1.5#001CC46BDFC200660000153C0000108000044D2CF9474AB3#1210755462890#com.sap.security.core.persistence.datasource.imp.R3PersistenceBase#sap.com/tc~wd~dispwda#com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.createPrincipalDatabag()#J2EE_ADMIN#305344#SAP J2EE Engine JTA Transaction : [631ffffffd660226ffffffb5]#IWDFVM2160.wdf_ERP_103929350#J2EE_ADMIN#72cab7e0219311dd998a001cc46bdfc2#SAPEngine_Application_Thread[impl:3]_4##0#0#Error#1#/System/Security/Usermanagement#Java#An exception was thrown in the UME/ABAP user management connector. Message: {0}.##An exception was thrown in the UME/ABAP user management connector. Message: {0}.
    [EXCEPTION]
    {1}#2#BAPI_USER_CREATE1@ERPCLNT001: ID=01, NUMBER=491, MESSAGE=You are not authorized to create users in group#com.sap.security.core.persistence.datasource.PersistenceException: BAPI_USER_CREATE1@ERPCLNT001: ID=01, NUMBER=491, MESSAGE=You are not authorized to create users in group
         at com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.handleBapiRet2Table(R3PersistenceBase.java:1186)
    I problem is - role is existing in UME whereas i could create users only in ABAP. This role is not even visible in the ABAP side!
    Is there any way to assign this role to that user?
    Thanks in advance
    Swarna

    you can access the users at http://<host name>:5<sys.no>00/useradmin
    You will get to see all the users you created in WAS ABAP... and here you can attach the j2ee roles to him..
    Please come back if this reply doesnot answer you..
    Award points if this found helpful

  • Session state can only be used when enablesessionstate is set to true.

    When I try to open up a certain webpage it says; Session state can only be used when enablesessionstate is set to true. What does it mean and what should I do?

    Contact the webmaster for that site and report the problem.

  • Basic ABAP Debugging

    What is the best way to start learning ABAP debugging. I have very limited knowledge of programming. Are there any good books to start of.
    Edited by: Kumar Reddy on Dec 17, 2007 3:05 PM

    Dear Kumar,
    You can check the following links:
    www.sappro.com/downloads/Settings&SystemAreas.pdf
    http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm
    Well I feel that debugging is nothing else but an understanding of the functioning of the code.
    So to to really debug a code it is better to have a good understanding of the codes and what they are suppossed to do.
    Hope this helps you.
    Do award points if you found them useful.
    Regards,
    Rakesh

  • The debug setting app color error

    My app has some image with alpha shadow.
    In the debug setting the shadow color is different form the origin color,
    but in the release setting the shadow color is the origin color.
    I think may be there is some variable not initialize.
    So, in the release setting the color is right because the debugger not fill the data to the memory,
    and in the debug setting the color is wrong because the debugger fill some data like 0xcdcdcdcd to the memory.
    but, I don't know which variable I forget to initialize.
    Can some one help me guess which variable I forget to initialize.
    【the origin image】
    left【the release setting】 right【the debug setting】
    【the code】
    the main function is 'void
    CEngineDeviceImpl::Render(IGuiFrame* pGuiFrame)'
    class CEngineDeviceImpl : public IEngineDevice
    bool m_canvasCreated;
    D3D11_VIEWPORT m_canvasViewport;
    Microsoft::WRL::ComPtr<ID3D11Texture2D> m_canvasTex;
    Microsoft::WRL::ComPtr<ID3D11ShaderResourceView> m_canvasSRV;
    Microsoft::WRL::ComPtr<ID3D11RenderTargetView> m_canvasRT;
    void CEngineDeviceImpl::CreateCanvas(float canvasWidth, float canvasHeight)
    // Set the 3D rendering viewport to target the entire window.
    m_canvasViewport = CD3D11_VIEWPORT(
    0.0f,
    0.0f,
    canvasWidth,
    canvasHeight
    CD3D11_TEXTURE2D_DESC sceneDesc(DXGI_FORMAT_B8G8R8A8_UNORM, int(canvasWidth), int(canvasHeight),
    1, 1, D3D11_BIND_RENDER_TARGET | D3D11_BIND_SHADER_RESOURCE);
    DX::ThrowIfFailed(m_d3dDevice->CreateTexture2D(&sceneDesc, nullptr,
    m_canvasTex.GetAddressOf()));
    DX::ThrowIfFailed(m_d3dDevice->CreateRenderTargetView(m_canvasTex.Get(), nullptr,
    m_canvasRT.ReleaseAndGetAddressOf()));
    DX::ThrowIfFailed(m_d3dDevice->CreateShaderResourceView(m_canvasTex.Get(), nullptr,
    m_canvasSRV.ReleaseAndGetAddressOf()));
    m_canvasCreated = true;
    void CEngineDeviceImpl::Render(IGuiFrame* pGuiFrame)
    ASSERT(pGuiFrame);
    SetRenderTargetToCanvas();
    SpritesBegin();
    pGuiFrame->Render();
    SpritesEnd();
    SetRenderTargetToBackbuffer();
    SpritesBegin();
    DrawCanvasImageToBackbuffer();
    SpritesEnd();
    ID3D11ShaderResourceView* null[] = { nullptr, nullptr };
    m_d3dContext->PSSetShaderResources(0, 2, null);
    void CEngineDeviceImpl::SetRenderTargetToCanvas()
    m_d3dContext->RSSetViewports(1, &m_canvasViewport);
    m_d3dContext->OMSetRenderTargets(1, m_canvasRT.GetAddressOf(), nullptr);
    m_d3dContext->ClearRenderTargetView(m_canvasRT.Get(), Colors::Orange);
    void CEngineDeviceImpl::SetRenderTargetToBackbuffer()
    // Reset the viewport to target the whole screen.
    auto viewport = m_deviceResources->GetScreenViewport();
    m_d3dContext->RSSetViewports(1, &viewport);
    // Reset render targets to the screen.
    ID3D11RenderTargetView *const targets[1] = { m_deviceResources->GetBackBufferRenderTargetView() };
    m_d3dContext->OMSetRenderTargets(1, targets, nullptr);
    void CEngineDeviceImpl::SpritesBegin()
    // Get the 2D orientation transform.
    D2D1::Matrix3x2F _2DTransform = m_deviceResources->GetOrientationTransform2D();
    // Convert the Matrix3X2F tranform to XMMATRIX.
    DirectX::XMMATRIX transformMaxtrix =
    _2DTransform._11, _2DTransform._12, 0, 0,
    _2DTransform._21, _2DTransform._22, 0, 0,
    0, 0, 1, 0,
    _2DTransform._31, _2DTransform._32, 0, 1
    // To make sure the sprite is drawn in the correct position when the device orientation changes,
    // we pass the 2D orientation transform to the Begin function.
    m_sprites->Begin(SpriteSortMode_Deferred, m_states->NonPremultiplied(),
    nullptr, nullptr, nullptr, nullptr, transformMaxtrix);
    void CEngineDeviceImpl::SpritesEnd()
    m_sprites->End();

    Thank you!
    I know the reason.
    the wrong:
    m_sprites->Begin(SpriteSortMode_Deferred, m_states->NonPremultiplied(),
    nullptr, nullptr, nullptr, nullptr, transformMaxtrix);
    the right:
    m_sprites->Begin(SpriteSortMode_Deferred, m_states->Opaque(),
    nullptr, nullptr, nullptr, nullptr, transformMaxtrix);
    the follow code is the key:
    #ifdef _DEBUG
    auto color = DirectX::Colors::CornflowerBlue;
    #else
    auto color = DirectX::Colors::Black;
    #endif
    // Clear the back buffer and depth stencil view.
    context->ClearRenderTargetView(m_deviceResources->GetBackBufferRenderTargetView(), color);
    context->ClearDepthStencilView(m_deviceResources->GetDepthStencilView(), D3D11_CLEAR_DEPTH | D3D11_CLEAR_STENCIL, 1.0f, 0);
    Because the debug and the release use different color to fill the RT,
    and the SpriteBatch Begin with NonPremultiplied,
    so the color mixed different in debug and release.

  • Why are there only 10 options under "Set Metadata Format"?

    Why are there only 10 options under "Set Metadata Format"?
    These are:
    Caption
    Title
    Filename
    Author
    Copyright
    Comments
    Keywords
    Date/Time
    Aperture
    Shutter Speed
    Has anyone found a way to to change this?

    Hi.
    Can you find the "Comments" field into the Metadata? Because I don't find it and when I write something in the box Aperture tells me that the box is "unlink" from the metadata...
    How can I add a (free) comment to my photos in a book?
    Thank you very much for your reply
    Bye

Maybe you are looking for

  • To determine the amount of space currently used in each tablespace

    I am preparing for OCA and came through a question. QUESTION 389 You need to determine the amount of space currently used in each tablespace. You can retrieve this information in a single SQL statement using only one DBA view in the FROM clause provi

  • Cisco 7941 Not Registering in CME 8.6

    Hi I would appreciate if somebody could really help me with this. The status-> Firmware version list on my phone is as below: Load File: *term41.default* App Load ID:jar41sccp.9-3-1ES13.sbn JVM Load ID:cvm41sccp.9-3-1ES13.sbn OS Load ID:cnu41.9-3-1ES

  • Plotting 2 Columns of Data Against Each Other, Not With Time

    I have several data columns, one with current, one with voltage, one with time. I am trying to make and IV curve, plotting the current and voltage against each other, preferably with the voltage as the Y axis and current as the X axis. However, every

  • Mant. orders, Capacity load and material shortage messages on IP10 and IP30

    Hi Experts, In customizing, If we have marked on capacity and material checks for planned work orders (Order type PM02) and maintained the finite scheduling check in work center then system only shows capacity overload message while scheduling on IP1

  • Deployment in Developer Studio

    Hi all, when I deploy some application in developer studio this takes lots of time to deploy and get the warning bellow: Aug 23, 2006 9:04:36 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] IN