Debugging ABAP Code From Within Webdynpro Application

Hello Experts,
We use ABAP RFC Function in Our Java Webdynpro application, We need to debug the parameters pass from the webdynpro application to the ABAP Function.
In order to do that we:
1. Defined a JCO connection with "Single Server Connection" as the Destination Type.
2. We have loged on to the relevant system and client using SAP GUI with the same user that run the webdynpro application.
3. We have activate the external debugging in se80 Utilities -> Settings
4. We have set an HTTP (external) breakpoint in the ABAP code,
As mentioned in the article:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e9a9d90-0201-0010-478e-991dbea73a30
However, we recieve a dump in the R3 system:
RFC_DEBUGGING_NO_DIALOG_USER
ShrtText
RFC debugging is only possible with dialog user
What happened?
You attempted to debug a program by RFC. However, in this destination
there is a user whose user type permits communication without dialog.
This means, for example, that debugging with a system user is not
possible.
What can you do?
Restart the program and take note of the following:
You can do one of the following:
1. You can change the user listed in the RFC destination and enter a
dialog user.
2. In the target system of RFC you can change the user type of the user
listed in the RFC destination to 'dialog'.
3. You can avoid this runtime error by omitting the RFC debugging.
If in the ABAP debugger the statement cursor points to the statement
(CALL FUNCTION ... DESTINATION), you must choose the function
'Execute'.
We checked and the user we use is defined as dialog in SU01 and the user that the webdynpro use to call the functio is the same user as was logged in.
What else should we do?
Thanks,
Eyal

Hello Eyal,
You mentioned the following..
1. Defined a JCO connection with "Single Server Connection" as the Destination Type. 2. We have loged on to the relevant system and client using SAP GUI with the same user that run the webdynpro application.*<---The system that you logged into is your source system*
3. We have activate the external debugging in se80 Utilities -> Settings
4. We have set an HTTP (external) breakpoint in the ABAP code,
and the name of the system defined in the RFC connection will be your target system.
As per the response (dump error message) in this target system you need to have a dialog user.
And this dialog user needs to be defined in the RFC destination that is being used to connect to the target system.
Regards,
Siddhesh

Similar Messages

  • Debugging ABAP Code From Within WebDynpro

    Hi experts,
    I would like to check whether i can debug ABAP code from within webdynpro if i m using a remote J2EE server.
    So netweaver development studio is on my machine
    J2ee server is on a remote machine
    R/3 is also on another remote machine
    Thanks.
    Rgds,
    Daniel

    Hi Daniel,
    One thing note here is
    "You have debugging authorization in the ABAP Workbench in the relevant system.
    Since debugging in the ABAP system via load balancing is not supported, you must reconfigure your JCO destinations so that the calls take place on a dedicated ABAP application server. For Web Dynpro, this is done in the Web Dynpro Content Administrator. In the destination maintenance, specify Single Server Connection as the Destination Type ".
    Other than that ideally it works with j2ee and abap on diff systems.
    Regards
    Ayyapparaj

  • Execute ABAP code from within SAPScript code

    http://www.sapdevelopment.co.uk/sapscript/sapscript_executeabap.htm

    Hi
    Do u have any question??? or are you trying to give suggestion???
    If u have query how to call a report in script here is ur answer
    The Form :
    /:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
    /:USING &EKKO-EBELN&
    /:CHANGING &CDECENT&
    /:ENDPERFORM
    The report :
    ZKRPMM_PERFORM_Z1MEDRUCK.
    DATA : BEGIN OF it_input_table OCCURS 10.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_input_table.
    * déclaration de la table output_table contenant les
    variables exportées
    DATA : BEGIN OF it_output_table OCCURS 0.
    INCLUDE STRUCTURE itcsy.
    DATA : END OF it_output_table.
    DATA : w_ebeln LIKE ekko-ebeln,
    * w_vbeln LIKE vbak-vbeln,
    w_zcdffa LIKE vbak-zcdffa.
    * FORM CDE_CENT
    FORM cde_cent TABLES input output.
    it_input_table[] = input[].
    it_output_table[] = output[].
    READ TABLE it_input_table INDEX 1.
    MOVE it_input_table-value TO w_ebeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = w_ebeln
    IMPORTING
    output = w_ebeln.
    SELECT SINGLE zcdffa FROM ekko
    INTO w_zcdffa
    WHERE ebeln = w_ebeln.
    it_output_table-name = 'CDECENT'.
    MOVE w_zcdffa TO it_output_table-value.
    MODIFY it_output_table INDEX 1.
    output[] = it_output_table[].
    ENDFORM.
    Reward all helpfull anwers
    Regards
    Pavan

  • Debug ABAP code in InfoPackage

    Hi friends,
    How i can debug a ABAP code from a variable selection in Infopackage?
    Thanks,
    EA

    I guess you would have figured it out - but for the use of people who might chance upon this post while searching ...
    to debug the ABAP code in an Infopackage - you need to run it in dialog mode ( Start Data Load Immediately ) and not in background. This is because background processes cannot be debugged.

  • Timecapsule - opening files from within an application!!

    I have a time capsule... 500Mb
    I have an airport extreme with external hard drive - 250 Mb.
    Through Finder, I can place files on either of these drives and open them from Finder.
    If I open Numbers, or Pages, then try to open any file on Timecapsule, it appears that there are no files
    If I open Number, or Pages, then try to open any file on the Airport Extreme external disk - it works!
    Simple question really.... why cannot I see or open any file from within an application that resides on Timecapsule?? It's driving me crazy!!!
    Message was edited by: GrahamDurkin

    File dialogs have the ability to "group" items, which prohibits you from changing sort options.  The group icon looks like six little squares.  Click on it and instead of grouping by date, group by "none" and then you can change sort orders.

  • Problem regarding BAPI call from a webdynpro applications

    Hi,
      We are trying to call a BAPI in R/3 system from a webdynpro application through the standard method. But we are getting some problems in JCO settings. We already wasted so much time in solving those problems. Is there anyway where i can access BAPI from Webdynpro application.
    Rgrds,
    Anna

    Hello Anna,
      You can do it by using SAP Java Connector API's in the implementation of the Webdynpro application. You can refer to the sample programs for JCO at http://service.sap.com/connectors and download the latest version of SAP JCo in that install those files as per the installation document in the downloaded zip. The downloaded zip contains information about JCo APIs and sample programs.
    Hope this will solve your problem.
    Best Regards,
    Srinivas.

  • Calling A Webdynpro Application From Another Webdynpro Application

    Hi,
    i want to call a webdynpro application from another webdynpro application with sending parameters.
    i used this method,
    CALL METHOD cl_wd_utilities=>construct_wd_url
        EXPORTING
          application_name = lv_webapp
        IMPORTING
          out_absolute_url = lv_url.
    CONCATENATE lv_url '?param1=' lv_param INTO lv_url.
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->CREATE_EXTERNAL_WINDOW(
        URL = LV_URL
    lo_window->open( ).
    but this method shows the parameters on the address bar.
    is there a method to send the parameters to another webdynpro application without show the parameters on the address bar?
    Can somebody help me pls?
    Thanks.

    I've used a server cookie before. This was built for BSP, but it is really usable anywhere.  It just writes the data temporary into the database.  This way you can just pass one meaningless URL parameter - like a GUID and use this key to read the data (the server cookie) upon initialization of the new application.  I generally serialize all the data that I want into one server cookie by serializing a class. I can then restore whatever attributes of the class that I want on the receiving side.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bd/4cd23a09313b37e10000000a11405a/frameset.htm

  • How to execute a workflow from a webdynpro application???

    hi friends....
    How to execute a workflow from a webdynpro application???
    we are using ep6, ecc5????

    If you want to start a workflow in the backend, you need to call a RFC that starts it.

  • How to extract the code of standard webdynpro application

    Hi,
    We are on ECC5.0, ERP2004 ESS/MSS ,EP6
    Can someone tell me, How can we get the code of a standard webdynpro application into NWDS.
    ( I am familiar that, to modify the standard ESS applications, we need to use JDI.)
    is it compulsory that , unless and until i have JDI i can't see that code , no other way?
    Regards,
    NR

    Hi Sharadha,
    after installing the JDI, what are the steps that needs to be done to get the code of standard Webdynpro application, lets say <b>sap.com/essinfam</b>.
    Can u post some links where I can get the step-by-step process of calling a Standard Webdynpro ESS application into my NWDS?
    Regards,
    NR

  • Copy application from within an application?

    Ok, this may be a bit of a stretch, but is it possible to create a new application as a copy of an existing one from within an application?
    To explain: I'm envisioning an APEX framework where I have a "core" application which has all of my standard functionality built in; whenever I want to build a new application, I copy that, rather than building a new one from scratch. Information about the applications (active status, authentication method, created by, last modified by, description, etc.) would be stored in a central (custom) table (this much has been covered by Scott Spendolini in this presentation).
    So, I'd like to build an application which would show me the data from this central table, and also have a wizard that would a) copy the core application to a new ID, potentially setting some features in the process, and b) create the appropriate record in the central table.
    Thanks,
    -David

    David,
    I am having the same thoughts and will watch this thread. I believe what you are referring to is "subscribing to a master application" of which I have no experience in.
    Just saw another thread similar to this one:
    See {thread:id=1774693}
    Jeff
    Edited by: jwellsnh on Nov 22, 2010 1:58 PM

  • How to create Default Schema from within the application

    Hi friends
    I am creating users using the following within my application using this syntax
    BEGIN
    APEX_UTIL.CREATE_USER
    (:P124_USER_ID, :P124_USER_NAME,:P124_USER_FIRST_NAME,:P124_USER_LAST_NAME,' ',:P124_USER_EMAIL_ID,'xxxx');
    END;
    The default workspace for the user is set as blanks. I would like to set it to be the default workspace as per the current logged in user.
    Can you help me with the syntax for this
    thank you in advance
    Laxmi

    Laxmi,
    The subject of the post is "How to create Default Schema from within the application".
    But your question asks how to set the "default workspace" for a newly created user.
    Those are different questions and not the ones I think you need answered.
    Let me answer this question "How can you set the default schema for an account when creating the account and set it to the same value used for the default schema attribute of the administrator account used to authenticate to the currently running application?".
    In the apex_util.create_user call use named parameter notation and fetch the information about the currently logged-in user first, e.g.,declare
      l_workspace               varchar2(256);
      l_user_name               varchar2(256);
      l_first_name              varchar2(256);
      l_last_name               varchar2(256);
      l_web_password            varchar2(256);
      l_email_address           varchar2(256);
      l_start_date              varchar2(256);
      l_end_date                varchar2(256);
      l_employee_id             varchar2(256);
      l_allow_access_to_schemas varchar2(256);
      l_person_type             varchar2(256);
      l_default_schema          varchar2(256);
      l_groups                  varchar2(256);
      l_developer_role          varchar2(256);
      l_description             varchar2(256);
    begin
    apex_util.fetch_user (
      p_user_id                  => apex_util.get_current_user_id,
      p_workspace                => l_workspace,
      p_user_name                => l_user_name,
      p_first_name               => l_first_name,
      p_last_name                => l_last_name,
      p_web_password             => l_web_password,
      p_email_address            => l_email_address,
      p_start_date               => l_start_date,
      p_end_date                 => l_end_date,
      p_employee_id              => l_employee_id,
      p_allow_access_to_schemas  => l_allow_access_to_schemas,
      p_person_type              => l_person_type,
      p_default_schema           => l_default_schema,
      p_groups                   => l_groups,
      p_developer_role           => l_developer_role,
      p_description              => l_description);
    apex_util.create_user(
      p_user_id        => :P124_USER_ID,
      p_user_name      => :P124_USER_NAME,
      p_first_name     => :P124_USER_FIRST_NAME,
      p_last_name      => :P124_USER_LAST_NAME,
      p_email_address  => :P124_USER_EMAIL_ID,
      p_web_password   => 'xxxx',
      p_default_schema => l_default_schema);
    end;Scott

  • I didn't receive my purchases from within the application!

    May be purchased from within one application yesterday but I did not receive my purchases.

    If you didn't receive what you purchased in the application, you will need to contact iTunes store support.
    http://www.apple.com/lae/support/itunes/contact/
    File a ticket using the link above.
    HTH

  • I can not purchase from within the application clash of clans where necessary to answer the security questions that forgot their answers please help thank you

    I can not purchase from within the application clash of clans where necessary to answer the security questions that forgot their answers please help thank you

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then see if this user tip helps : https://discussions.apple.com/docs/DOC-4551
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then try Apple ID Account Security
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • How To debug ABAP code using sapui5 application on NWBC

    Hi All
    I am working on NWBC with SAP_PAO_HRPROFESSIONAL_3 Role. This role contains SAPUI5 application. I am trying debug the ABAP code called while executing this application.
    Please help me how to get into ABAP debugger while executing this application.
    Thank you
    Ujj

    HI Ujj,
    First thing to do is look at the role and see which UI5 application is being executed. The UI5 application will be running in the web container of NWBC, you can make it open in a standalone browser (hold down the CTRL key in NWBC and go to the Help Menu) and then turn on the debugging tools (F12) in the browser. There you will see which Gateway services are being called. You will need to set your ABAP breakpoint in the implementation of the Gateway services. Find the class in SE80.
    Hth,
    Simon

  • Debuggng ABAP code from  Portal ?

    Hi ,
    We are enhancing a portal Application ( EP 7.0) which points to the R/3 4.6 c in Backend . This Application  has customised views .  I want to debug  the ABP CODE and see   R/3 logic .
    1) How can  I see the RFC Function modules or Business objjects where logic pertaining to a I view is coded?
    2)How Can I stop at R/3 while processing in the portal , so that I can debug ?
    Thanks in Advance ,
    Dharma .

    There are 2 steps involved in external debugging:
    1. Setting up the external debugging in R3:
    GOTO se37
    From the main menu goto
    Utilities->settings
    Under settings goto:
    ABAP Editor->debugging
    Under debugging subscreen you will get option of external debugging, make sure your user ID is mentioned (Please make sure you login to the portal with the same ID as mentioned here)  and put a checkbox for "IP Matching".
    2. Puting an external breakpoint in ABAP Code:
    Now, you put a external breakpoint in your RFC FM which is getting called from the portal. Now your external debugging is set and once you click on the specific button on portal it will give you the debugging screen the moment it touches the ABAP code in R3.
    Regards,
    Raman.

Maybe you are looking for

  • Enter Incoming Invoice ( MIRO) unalbe to post

    Dear All, While posting the Incoming Invoice using MIRO tran. - credit memo, After Entering the GL Account Layout of Business Area , Cost Center, Partner Business area , and order field indicator shows all tick mark, ( correct sign) , continuos messa

  • Keynote multi-screen presentation

    In about two weeks I have a presentation in a room where I have three separate flatscreens at my disposal. I want to use all three of them, at the same time. Using the 2 Thunderbolt ports and HDMI port of my MacBook Pro, I have managed to connect all

  • File Icons display issue

    I am using File.icon property to get the icon bitmap image of a file. File Icons are not displayed when the operating system display property setting is in 16-bit color mode or 24-bit color mode. When the display property setting is changed to 32-bit

  • Re-creating techniques in photoshop

    Hi, I'm relatively new to photoshop and am wondering if anybody could share some knowledge of how to re-create a similar effect, to the below image. I want to make my images have a yellow tone to them and look slightly old and faded. Can anyone help?

  • Can't download ringtone in iTunes

    About 1 year ago , i purchased ringtone but now i can't download again. in iTunes on my iPhone. i just download again but a window pop up said to me "You have purchased this item before, would you like to purchase it again?" Why i want buy again?