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.

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

  • Debugging the webdynpro abap application from portal.

    I  developed a  WebDynpro  application and integrated in portal. I have to catch some portal events.For that i have written some code in my application. I tried to debug the application from portal  by using all the available break-point types.but we could not .
    Anybody have an idea how to debug a WebDynpro  application from portal.
    Thanks,
    Kumar.

    Hi
    Few links to check:
    External debugging is not working
    Re: Debugging Abap webdynpro appln
    Re: Unable to Debug WD ABAP application
    Dedug is not working in Production Server.
    a) Check on number of R/3 sessions opened at a time.
    b) Check that user ID configured in portal using System Mapping Under 'Delegate User Administration' is the same user for which you are setting external breakpoint in backend system.

  • 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

  • Error While Accessing WD ABAP iView from Portal

    Hello Everyone,
    I have created an iview from ABAP WD in portal. Now, when I have assigned this role to a user without admin role it is throwing the following exception. I would greatly appreciate your help.
    Exception ID:02:42_23/09/09_0037_107611250
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : pcd:portal_content/myfolder/com.SalfordCityCouncil.ESS10/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/com.SalfordCityCouncil.PurchaseOrder/com.scc.ivu.CreatePurchaseOrder
    Component class : com.sapportals.portal.sapapplication.SAPApplicationIntegratorComponent
    User : TRAVELTU2
    at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:973)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    Regards,
    Gopal.

    Hi,
    It looks like a permission issue. You should check the permissions of the folder containing the system in the portal. (System Administration > System Configuration then Open Permissions on the system object). Every user who is supposed to have access to the iView should be there as End User (for instance : Everyone (group), Administrator = none, End User = checked).
    Regards,
    Pierre

  • Retrieve already deployed webdynpro for java source code from portal server

    HI ,
       We have webdynpro for java apllication already deployed on the J2EE server.  We found the ear file related to this application.  But I am not able to make any changes to the ear file in NWDS as it cannot be directly imported into NWDS.  We do not have NWDI for software logistics and the resource who built the WDJ application has left the company.  Is there any way that I can retrieve the complete source code of the application from the portal.  I need to make some changes to Webdynpro component and its view.  I have worked with basis team to retrieve the ear file from portal server.  But I could not make any progress just with the ear file.  Thank you for your help in advance
    Regards,
    KMM.

    You are probably breaking some license agreement by de-compiling the content of the 'war' files. Why not ask the people who provided the 'war' file if you could have the source and build system.

  • Q: ABAP code from db to memory decreases performance?

    Hi Gurus,
    We have a problem with some ABAP code (a start routine in a BI load). Basically the situation is: we had some code that builds a hierarchy (and inserts into hierarchy table) based on an attribute load, which worked fine but was to slow.
    As we do not need the hierarchy anymore we changed the code to only build the hierarchy in memory (the reason why we need it at all is because building this is the only way we can ensure to load the right records in the attribute load) and now, it is sloweru2026.which we do not understand.
    In general we have replaced:
    SELECT SINGLE * FROM /BIC/HZTVFKORG INTO nodelast
      WHERE nodeid = lastnode2.
    With:
      READ TABLE VirtHierarchy INTO nodelast
        WITH KEY nodeid = lastnode2.
    And replaced:
      UPDATE /BIC/HZTVFKORG FROM nodelast.
    With:
      MODIFY TABLE VirtHierarchy FROM nodelast.
    And replaced:
      INSERT INTO /BIC/HZTVFKORG VALUES node.
    With:
      APPEND node TO VirtHierarchy.
    As we see it, this should increase the performance of the start routine and the load (it takes several hours for just 50000 records), but it is actually running slower now...
    Does anybody have any idea about why this is not improving performance?
    Thank you in advance,
    Mikael

    Dear Mikael Kilaker,
    There are few reason:
    1. Data overload in memory.
    , if you try to execute
    SELECT SINGLE * FROM /BIC/HZTVFKORG INTO nodelast
    WHERE nodeid = lastnode2.
    With:
    READ TABLE VirtHierarchy INTO nodelast
    WITH KEY nodeid = lastnode2.
    And replaced:
    UPDATE /BIC/HZTVFKORG FROM nodelast.
    With:
    MODIFY TABLE VirtHierarchy FROM nodelast.
    And replaced:
    INSERT INTO /BIC/HZTVFKORG VALUES node.
    With:
    APPEND node TO VirtHierarchy.
    inside any loop conditions, this approach will make the system slow because it will load entire table into memory then system still need to cater space for selected value thus make system not really effective when you execute large volume of data.
    2. Unsorted data.
    It is really great practice if you sort nodelast. It is extra steps but the effect greatly decreased response time when system manipulating sorted data in the internal table.
    3. Use binary search in READ table.
    Try to use this code
    READ TABLE VirtHierarchy INTO nodelast
    WITH KEY nodeid = lastnode2 BINARY SEARCH.
    this practice also will increase performance when you execute large data inside internal table.
    Do reward points if this helps you

  • Calling ABAP Code From BSP

    Hello all,
    I dont have much idea of BSP ans would like to have some inputs from you all.
    I would like to know that can I call ABAP transaction from BSP page ?
    I have got a set of column entries just as an ALV column on my BSP page and I would like to provide hotspot or double click functionality so that for each of the entries in the table , the BSP page navigates to ABAP tcode and back to BSP page.Is this functionality possible?
    any help would highly be appreciated.
    Regards
    Amruta

    Hi Amruta ,
    You can't call an R/3 transaction directly from BSP.
    But you can achieve all the functionalities it does .
    for ex ..if an r/3 transaction is a report , u hav to code in BSP editor .u can call function modules from BSP .
    But one thing u hav to concern is ,,in BSP Apllication logic is seperatd from Business logic .
    U hav to move all your results into an itab / params and display that inside HTML tables .
    Start ur journey from here .......
    http://help.sap.com/saphelp_erp2004/helpdata/en/e6/e23fd8c47e11d4ad320000e83539c3/frameset.htm
    All the best .
    Regards,
    J

  • Move ABAP code from Z-namespace to other namespace

    Hello,
    I wonder how one can move custom ABAP code that was created in the Z-namespace to a NEW namespace, that was just created upon a confirmed "request namespace". The Z-namespace ABAP code is developed to work in SAP ERP.
    I have learned that you need the developer key of an SAP ERP installation to move ABAP code to the new namespace.
    Now, if a third party is performing this namespace move, what kind of developer key do they need? Can one give them the developer key of the created namespace or do they need THEIR OWN developer keys?

    Hello Rob,
    Thanks for the reply . I would not be deleting the objects from the sap namespace as I would need to do a double maintenance in both (customer as well as the sap namespace). However , if I have some code that gets generated and want  to have it in both my namespaces , would this(just copying it) be the best way ?
    Thanks,
    ~Vj

  • How to Stop at Source System's Abap Code from BI Infopackage Trigger

    Hi Experts,
    I have enahanced 2 fields to some standard data source, that fields data is comiong fine to RSA3 in Source system.
    i am not getting 2 fields data to BI  PSA, but that 2 fields data  i am getting at in RSA3 Tcode  source system.
    i have tried all the ways to get data to BI PSA, but no luck.
    so, while running infopacke from BI i need to stop  at  Source System's Abap code where i have wriiten the code for those 2 fields.
    so, please any  one can explain, how to stop at source system's Abap Code once i  trigger infopackage from BI.
    Regards,
    Nagaraju K.

    Hi,
    which data source on your working?
    master data or transaction data
    enter the TCODE- CMOD
    choose the project
    select the funciton exit - EXIT_SAPLRSAP_001 - Transaction data
                                        EXIT_SAPLRSAP_002 - master data attr
                                        EXIT_SAPLRSAP_003 - mster data text
                                        EXIT_SAPLRSAP_004 - master data hier.
    choose the include program - ZXRSAU01.
    go to source code tab -> go to change mode -> find the code will start form here
    EX- : when " ZLIS_13_VDITM
    if not required don't put break-point .
    just comment it code.
    Thanks,
    Phani.

  • Not able to remove the ABAP code from Transformation

    Hello Experts,
    We have transformation for DSO in that for one infoobject, field routine is written, Break Point is hard coded there and it's move to production. Now we are trying to remove that break point from development and then move it production.
    we are doing following activity to remove the break point.
    1. Open the transformation.
    2. Open the field routine.
    3. Going to ABAP code in field  routine.
    4. Remove the hard coded Break Point from ABAP code.
    5. Saving the code.
    6. It's taking to again filed routine window.
    7. We close the window and activate the transformation.
    8. When again check the ABAP code in field routine then it shows hard coded Break Point again.
    9. Not able to remove the hard coded break point.
    Can anyone know how to do this.
    Help will be appreciated.
    Thanks

    Hi,
    As pointed above, after point 6 don't simply close the window but click on Transfer Value and then activate your transformation. Refresh the system and check again.
    Regards,
    Arminder

  • How to get source code from portal app

    Hi,
    I have a successful Web dynpro portal application running, which I would like to modify. We lost the source code. Is there any way that I can get the source code from the portal?.
    Thanks and I appreciate your help.
    /Sunita.

    Hi,
    You can extract class files from app.jar and decompile it(.ear->.wda) but it is only generated classes without metadata. Metadata is stored in .wda file but format is not compatible with studio. That all options you have.
    Go through the following links, it will be helpfull to you
    Some of the solutions provided in it
    [Re: Retrieve the source code from .EAR;
    [Restore source code from ear file;
    Regards
    Raghu

  • Testing T-code from portal fails

    Hi all,
    While trying to connect to back end system from portal sys config-support - SAP application - SAP transaction and testing for SAP Local system for PA20 i get the following error:
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : com.sap.portal.appintegrator.sap.Transaction
    Component Name : com.sap.portal.appintegrator.sap.Transaction
    Exception in SAP Application Integrator occured: Unable to parse template '<ClientWindowID><System.r3name><System.client><Request.Language><User.Accessibility><LAF.RightToLeft>'; the problem occured at position 16. Cannot process expression <System.r3name> because Invalid System Attribute: System: &#39;SAP_LocalSystem&#39;, Attribute: &#39;r3name&#39;. .
    Exception id: 11:11_30/10/08_0001_4635250
    See the details for the exception ID in the log file
    Can you please suggest a solution for this. I have looked into the forum and found only 2-3 relevant threads however, trying these out unfortunately didn't resolve this error.
    Regards.

    Mohammad,
    You are moving in the right direction.
    There are only few things missing.
    1. You need to worry only about ITS, not connector or Web AS settings.
    Make sure you setup:
    a.ITS Host Name: <host>:<port, usually 800X>
    b.ITS Path: /sap/bc/gui/sap/its/webgui
    c.ITS Protocol: http
    2. Add a new Alias name:
    Right click on the system, select Open->System Aliases
    Give it a name TEST_SYS_ALIAS
    Click Add button
    Save
    3. Do Connection test for ITS only.
    If fails - see the error. It can be SSO problem or /sap/bc/gui/sap/its/webgui is not activated on the backend.
    Let me know if you need help with those.
    If success - go and test your transaction again.
    Select system TEST_SYS_ALIAS
    Transaction code - any Tcode you need (PA20 or SMEN for system menu)
    SAP GUI Type: SAP GUI for HTML
    It should work.
    Regards,
    Slava
    Edited by: Slava Plyushchikov on Nov 1, 2008 6:21 PM
    Edited by: Slava Plyushchikov on Nov 1, 2008 7:31 PM

  • Run an ABAP code from Notepad

    Hello Experts,
    I have created a standard ABAP code in SE38, one of my requirements is to be able to run codes that are stored in Notepad, I have used the READ DATA SET to read the contents of the Notepad, but how can I execute it?

    HI
    GOOD
    TRY OUT THIS LOGICS
    DATA FNAME(60) VALUE 'myfile'.
    DATA: TEXT1(12) VALUE 'abcdefghijkl',
          TEXT2(5),
          LENG TYPE I.
    OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE.
    TRANSFER TEXT1 TO FNAME.
    CLOSE DATASET FNAME.
    OPEN DATASET FNAME FOR INPUT IN BINARY MODE.
    DO.
      READ DATASET FNAME INTO TEXT2 LENGTH LENG.
      WRITE: / SY-SUBRC, TEXT2, LENG.
      IF SY-SUBRC <> 0.
        EXIT.
      ENDIF.
    ENDDO.
    CLOSE DATASET FNAME.
    DATA FNAME(60) VALUE 'myfile'.
    DATA: TEXT1(4) VALUE '1234    ',
          TEXT2(8) VALUE '12345678',
          TEXT3(2),
          LENG TYPE I.
    OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE.
       TRANSFER: TEXT1 TO FNAME,
                 TEXT2 TO FNAME.
    CLOSE DATASET FNAME.
    OPEN DATASET FNAME FOR INPUT IN TEXT MODE.
       DO 2 TIMES.
          READ DATASET FNAME INTO TEXT3 LENGTH LENG.
          WRITE: / TEXT3, LENG.
       ENDDO.
    CLOSE DATASET FNAME.
    thanks
    mrutyun

  • ABAP program from portal or browser

    Hello All,
    I have an ABAP program which extracts some data from the database. The program is on my solution manager system. I want to create a UI , either on the portal or as a standalone browser page, which executes that ABAP program and outputs the data as per the filters/ user input.
    Please suggest me how to start off. Please let me know the step by step procedure.
    Thanks,
    Shahid Ahmed.

    Hello Friend,
    To create an user interface in portal / browser, you can use BSP / Web Bynpro.
    And to reuse the code of the ABAp program which you have, better to create a functional module with the input parameters and internal table as export. Call that function module from the BSP / web Dynpro application.
    Hope it will help you.
    Regards
    Krishnendu

Maybe you are looking for

  • Print alv report directly to spool  from a badi method

    Hallo ! I am trying to save a log in spool on converting process I am doing on Idoc data in Method of Badi implementation (badi : HRALE00OUTBOUND_IDOC). The spool request is created but the list there contains no data. Here is the code I put in the b

  • Filtering of values from a specific field

    Hi Everybody We have a requirement where a column called "Role" will have a both numberic and character values in it. Ex: 01 , 02 , .99 , .98 , 101 , PRM , PRS , EOS , PMS etc. Now the user doesnt want any of these numeric values to appear in prompts

  • MacBook pro stuck at white screen right after the chime.

    Hi, yesterday I partitioned my hard drive and made a different partition titled backtrack 5. I inserted the backtrack live DVD into my MacBook Withe the option at boot and it installed on that exact partition. Then I exited opted Mac sox again. Brows

  • Basic Layer Question ( I should already know).

    Scenario: I open an image/ Background layer. I duplicate that layer, and apply a Levels adjustment that I'm happy with. Next, I decide to do an "effect" layer such as sharpening, etc., but I want to be able to control the effect of the "Sharpening" L

  • Getting a song from Garageband into iMovie without a PC?

    Surely I'm missing something. Surely a portable tablet computer doesn't need to sync with a PC in order to accomplish such a task. Surely there's an obvious answer to this that I've overlooked. Surely.