Using logging in WebDynpro application

Hi All,
         I m working on webdynpro application. when ever error occurs at runtime , the entire error log is diplayed on browser thus showing code details to user . how cn i avoid showing error log in browser ?? i hv read about logging , will it help to resolve my problem?? if yes thn how ?? please send me simple steps to follow than web links. Thnx in advance.
Kavita

Hi Kavita,
Let me make it clear about logging:
Logging and tracing are used to debug the code at runtime, these logs are stored in server and not visible to end user in the browser.
I am sure that the problem you are facing is entirely different from this, problem is the way you have coded:
- You should handle the exceptions using try and catch blocks. For example if you are executing RFC then you should catch WDDynamicRFCExecuteException and then you can log the details to standard logger.
- But NullpointerException or ArrayIndexOutofBoundException etc...these kind of exceptions you should not catch but you should code properly like checking for not null condition or checking index size.
If you handle your code well end user wont see any log traces in the browser. If you are still not clear paste the log printed in the browser so that we can help further.
Regards
Abhilash

Similar Messages

  • Scrolling using mouse in webdynpro applications

    Is it possible to scroll using mouse  in webdynpro applciations in portal? Currently we are not getting this functionality by default, although it is there in the BSP pages in portal.
    Why is there a difference ?
    Thanks in adv.

    I agree - there should be no coding required. This is more a function of the Operating System and the Browser to map the actions of the scroll wheel. I experience the the same when I test for WDA.  The scroll will scrolls the entire page unless focused on a table that has scrolling active. Then it scrolls within the table.  However from a development standpoint I didn't do anything to make this functionality active in my application.

  • View custom payslip using the standard webdynpro application in ESS

    Dear All,
    We want to display a custom developed payslip in the Salary Statement webdynpro application in the ESS. Our Custom Payslip gets called from a custom program. Can anyone please let us know how to call this program from the standard webdynpro salary statement appplication.
    With Regards,
    Kaustuv Goswami.

    Hello,
    What you have to do is create an iview for Webdynpro Application which you deployed on the portal ....add it to the workset and the role ....then copy the PCD Location of it and then goto the ECC SPRO -> Cross Application Components -> Home Page Framework -> create a new Resource and specify the PCD Location in the URL of the PCD Column of it ...then create a Service ...assign the resorce created for it ...and then finally add the Service to the SubArea you want and it will show in the portal under that SubArea like Personaol Information or others....
    Hope it helps.
    Shikhil
    Edited by: Shikhil Arora on Dec 4, 2008 3:56 AM

  • What is the programming technique used to build webdynpro applications

    Hi Gurus,
    kindly give me the answers for the following questions
    1) Web Dynpro Applications are built on Which Programming Technique and What
    Pattern are followed?
    2)What are the main components of the WebDynpro?
    3)What is difference between Window and View?
    4)What is Context Mapping and Data Binding?
    5)What is Mapping Origin Node and Mapped Node?
    6) What is View Assembly?
    7) What is Internal Visibility and External visibility?
    8) What are attributes available in the View by Default?
    9)What do you mean the Composite UI Element and Give any 2 examples?
    10) What are the types of Layout? Explain Each?
    11) How data is transferred to the UI Element?
    12) What is View Container and Transparent Container?
    Sorry, this is the WDA Forum, not the Help Me With My Interview Forum!
    Edited by: Neil Gardiner on Dec 8, 2010 4:13 PM

    Use UTF-8 all the way. During both request and response processing.
    More info: [http://balusc.blogspot.com/2009/05/unicode-how-to-get-characters-right.html].
    Edit: I should add, you should in no way do ugly things like myname = new String(( myname.getBytes("iso-8859-1")), "Big5" );on request parameters. Just get the parameter and that's it. The parameter should already be properly encoded if you follow the instructions in the aforementioned article.
    Edited by: BalusC on 8-okt-2009 12:35

  • Cannot save the Interactive form downloaded from abap webdynpro application

    Hello Everyone,
    Can anyone help me here.
    I have created an interactive form in SFP tcode and used in abap webdynpro application.
    scenario is i can downloade the form,fill it, sign it,save it and submit the form.
    Some thing is going wrong when i try to sign the form downloaded from the application.It is giving the error ->
    The document could not be saved. there was a problem in reading the document(26).
    When i try to sign the form save as dialog box will come where we can save the filled form.but here when itry to save it is giving above error.and also i cannot save thye form form file option.
    but form is working fine from sfp tcode not form application link.
    What is going wrong.Can somebody please help me here.
    Regards,
    Menaka.H.B

    Check the enabled and readOnly property of the InteractiveFormUI element in your application.
    enabled should be true and readOnly should be false.
    Also just FYI interactive forms are licensable in Productive environment for which you need Adobe Credentials. You may contact SAP Account Manager and Note 736902 for it.
    Chintan

  • Capturing the LOG OFF url click action in a Webdynpro application

    Hi,
    I have this requirement where I need to know when the User logs off in a webdynpro application.
    I have several webdynpro applications, each independent, and each need to do some clean up tasks when the user clicks on the LOG OFF url in the portal login.
    Is there some standard event attached with the LOG OFF Url of the portal login?
    And could anybody please specify when exactly would the  <i>wdDoExit()</i> method of the application view(s) or the application component controller get's trigerred when the application is run from the portal login?
    Thanks in Advance.
    Regards,
    Swapna Priya.

    Hi Luciano,
    I was successfully able to call the RFC from wdDoExit() method of the component controller.
    Also I could successfully place a custom alert call when the user clicks on the LOGOFFurl in the portal browser.
    Now I have one more pending requirement for me to completely use this cycle of events.....The Portal Browser close action i.e., 'X' action.
    I did find a forum link with some code for the same but i did not understand where to place that code and have already raised a reply for hte same.
    Below is the link:
    /message/230174#230174 [original link is broken]
    Do you have any idea about how to trap this?
    Thanks for all your support
    Regards,
    Swapna Priya.

  • Creation of tables using JDBC or SQLJ in webdynpro application

    Hi,
    I am trying to create tables in javadictionary(MaxDB)using my WebDynpro application.I tried creating tables using SQLJ and JDBC.But I was not able to do it.I can select and insert data into already created tables.
    Whwn I tried creating a table using JDBC I encountered the following exception.
    com.sap.sql.log.OpenSQLException: The SQL statement "CREATE TABLE TMP_DEPID (DEPID varchar(10) NOT NULL,DEPNAME VARCHAR(25))" contains the syntax error[s]: Open SQL syntax error: CREATE ... TABLE is not supported
    SQL syntax error: "VARCHAR" is a reserved keyword and cannot be used as an unquoted identifier
    Does this mean that creating tables is not supported?
    Can anyone help me in this matter?
    Thanks in advance,
    regards
    ~Pradeep Shetty

    Hi Pradeep,
    Yes, OpenSQL does not support creation of tables. But why would you need to create tables at runtime?! The natural way is to create the model at design time of your application, i.e. with the Java DataDictionary.
    However, if for any reason you really need to create database tables at runtime, you can achieve this by using a non-OpenSQL datasource, e.g. you could create a VendorSQL one and use it to obtain JDBC connections in your app. See also http://help.sap.com/saphelp_nw04/helpdata/en/c0/3ad4d5cdc66447a188b582aad537d3/frameset.htm.
    Hope that helps!
    Vladimir

  • How to test webdynpro applications using ecatt

    Hi All,
    Can anyone give me detail explanation of what is ecatt and how it can be used for webdynpro applications.
    Thanks in advance,
    Aleem.

    Hi Aleem,
       The Extended computer Aided Test  tool is known as eCATT. Enable businesses  to record and play back applications as automated test scripts.
      The Primary aim is the automatic Testing of SAP business processes. Each test generates a detailed log that documents the test process and result.
    I have written a wiki page for webdynpro abap testing using ecatt .
    <a href="https://wiki.sdn.sap.com/wiki/x/K8Q">ecatt on webdynproabap</a>
    Regards
    Sathish

  • Need help in developing a webdynpro application using UWL API

    Hi developers,
    Iam developing a new WebDynpro application for UWL using UWL API.the functionality is to dispaly the summary of UWL like number of unread items, total items.
    Iam getting the problem while deploying the application, iam getting warning while deployed the application.
    I have given all possible ways mentioned in the below forum link
    Re: Accessing PortalRuntime at runtime?
    The exact problem is coming at reference file.
    Please giude me how to move forward.
    1. Below is the error when given "tckmcbc.uwl~api" in the service entry
    deployed with warning :
    Finished with warnings: development
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application local/UWLCountDemo and wait. Reason: Clusterwide exception: server ID 21763550:com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application local/UWLCountDemo for startup. Reason=Clusterwide exception: Failed to start dependent service ''tckmcbc.uwl~api'' of application ''local/UWLCountDemo''. Status of dependent component: STATUS_MISSING. Hint: Is the component deployed correctly on the engine?
    2.Below is the error  when i gave PORTAL:sap.com/tckmcbc.uwl~api in the sharing refernce entry
    Finished with warnings: development
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application local/UWLCountDemo and wait. Reason: Clusterwide exception: server ID 21763550:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application local/UWLCountDemo cannot be started. Reason: it has hard reference to resource tckmcbc.uwl~api with type application, which is not active on the server.
    Thanks in Advance
    Sekhar.
    Edited by: sekhar c on Mar 21, 2009 11:24 AM

    Please see Kenichi Unnai in his blog "How to use UWL API for NetWeaver BPM Tasks"
    How to use UWL API for NetWeaver BPM Tasks
    The .sca-file can be found on the sap service marketplace, afterwards you need to import the .sca-file, add the SC to your "MyComponents" and then you can select your necessary DC's.

  • Calling a Webdynpro Application in using WDURLGenerator.getApplicationURL

    Hi,
    I have to call a webdynpro application in an external window using the application name. Please note that no iViews are created out of the application which i am going to call.
    I have DC1 and DC2 and from the Comp Controlller of DC1 , i need to invoke the application in DC2.
    String depObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
    WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"TestApp",WDDeployableObjectPartType.APPLICATION);
    String url = WDURLGenerator.getApplicationURL(depObjectpart) ;
    window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Test View");
    window.show();
    Is this the correct API to get getDeployableObjectName which is in the different DC.
    Please let me know the correct API which i can use to get the getDeployableObjectName and the subsequently the Application which is availbale in the different DC.
    Thanks and Regards,
    Sekar

    Hi Chintan Virani,
    Thanks for your reply.
    Is it possible to get to know through the APis that the Webdynpro Application Deployed in the server is started.
    I hope some API's will be available.I need to open this application only when it is started.
    I tried this,
    IWDDeployableObject deplObj = WDDeployableObject.getDeployableObject("TestApp");
    if (  deplObj.getState() == WDDeployableObjectState.STARTED ) {
        // do something
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object TestApp' since it is not a Web Dynpro object.    null
    Thanks and Regards,
    Sekar

  • How to upload excel file in Webdynpro application using ABAP

    Hi Experts,
    Am developing a webdynpro application in which it will take an excel file as input and display the contents in the form of a table in output. I am able to upload tab delimited text file and populate the table using the below code but not able to do the same with .xls file. Pls let me know if I need to use a different function module for upload excel file.
    get single attribute
      wd_context->get_attribute(
        EXPORTING
          name =  `DATASOURCE`
        IMPORTING
          value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string.
      SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
    Bind With table Element.
      LOOP AT i_data INTO l_string.
        SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
        READ TABLE fields INTO lv_field INDEX 1.
        fs_table-name = lv_field.
        READ TABLE fields INTO lv_field INDEX 2.
        fs_table-age = lv_field.
        APPEND fs_table TO t_table1.
      ENDLOOP.
    lo_nd_data = wd_context->get_child_node( 'DATA_TAB' ).
    lo_nd_data->bind_table( T_TABLE1 ).
    Thanks,
    Subathra

    Dear Exports
    Can anyone guide me how to uplode the .xlsx or ..xls formatted excel file using abap webdynpro without converting it to .txt file. Because my client requirement is only to upload the excel file. because to convert the .xlsx flie to .txt file it will be time taking and cost expanssive. Another requirement is suppose today i have create a application for uploading a file which has 8 columns and 10 rows. suppose tomorrow the client will make some changes in that flat file means the client will add 2 extra columns and 10 more columns in that fil. and will upload that file. Then the new file will be display on the browser or old file. but my requirement is to display the new file in browser.
    Can anyone kindly help to solve my problem. I am completely fresher in this field and I need to do it as soon as possible. Please help to solve the problem. 
    Regards
    Rashmita

  • How to find out who is logged into portal through webdynpro application

    hi,
    whenever anyone logs in through the portal and runs a webdynpro iview, the webdynpro application should be such that it gives the name of the user logged in.
    Eg, if i logiin and run the webdynpro iview, the application should display that I have logged in.
    how can this be done?
    its urgent.

    add the jar file com.sap.security.api.jar
    IWDClientUser wdUser = null;
    IUser user = null;
    IUserAccount[] acct = null;
      try
         wdUser = WDClientUser.getCurrentUser();
         user = wdUser.getSAPUser();
         if (user!=null)
              acct = user.getUserAccounts();
              if (acct[0] != null)
                   strUserID = acct[0].getLogonUid();
                   wdContext.currentContextElement().setCa_UserId(strUserID);
              else
                   strUserID = "acc is null";
         else
              strUserID = "user is null";

  • How to use WebDynpro Applications in Guided Procedure?

    Hello,
    i want to use a WebDynpro    application as a part of a guided procedure. Therefor i developed a simple WebDynpro    application as described in the NetWeaver    Developer Studio Help. The Application consists of only two views. The first view is to enter data, the second displays them. So far so good....
    In the next step i wanted to integrate this application as a CallableObject for execution in my guided procedures process. The wizard asks in step 2 for the "Development component" and WebDynpro    Application. But where do it get this information? Indifferently what path i enter, it only returns an error the the object is not available on the server.
    EDIT: The path to the webdynpro application is something like this: http://host:port/webdynpro/dispatcher/local/WebDynproUITest/UITest
    kind regards,
    Matthias

    Hello Dipankar,
    thx for the blog! This really helped a lot!
    The problem is, that you cant test the WebDynpro as a stand-alone application. What would be the best way to develop a WebDynpro Application for GP?
    Is there a way to start with a 'normal' WebDynpro Application and convert this when finished in a "guided procedure ready WebDynpro for CE Application"?
    I think i will contact you next week with more questions, for now on its weekend
    regards,
    Matthias

  • Print functionality using PDF form in a webdynpro application

    Hello! All
    Currently, we have a webdynpro application and we need to provide the print feature to print the content of the iview display on IE browser. We try the File-> print feature provide by Microsoft through IE but this doesn't work. We are looking for any other option like print to pdf form. We don't know if it is possible. Is there any tutorial, help or anything that can help us to print to pdf form. Please share any other suggestion, comment and it will be much appreciated. Thank you very much.

    Hi,
    The content (which is a pdf content) can be exported as a PDF from a WD Application. For this you can use File Download control whose source is in the form of bytes (which is PDF content).
    Do you have the PDF content already generated?
    If so it is very easy to generate PDF from WD.
    If you need further help, kindly let us know.
    Thanks and regards
    RK

  • Testing Webdynpro Application using ECATT

    Hi
    all
    I am going to test webdynpro Application using ecatt.For this in se80 I selected the
    existing component(z component which was created by me) and i selected the application of that component and right clicked  and selected START ECATT RECORDING and i have given the test cript name at that i have got one error USER ECATT_HTTPDoesnot exist. How to resolve this problem.
    Please give me the soulution regarding this.
    regards
    venkat

    Hi Venkatesh,
    Before you can start recording any webdynpro application make sure that the below settings are done in the ecatt system and the target system , for further information refer ecatt documentation.
    Create User ECATT_HTTP in the eCATT System
    The administrator in the eCATT system must create a user called ECATT_HTTP(with a password). The user requires no special authorization but must be a system user (in transaction SU01, display the user and choose the Logon data tab. Under User Type, select System).
    Activate the Service ecatt_recorder in the eCATT System
           1.      In the eCATT System, start transaction SICF and navigate to the service ecatt_recorder.
           2.      Double-click on ecatt_recorder.
           3.      On the Logon Data tab, enter the user ECATT_HTTPand the password.
           4.      Choose Save.
           5.      Select ecatt_recorder and choose Service/Virtual Host  ->  Activate.
    Activate the Service ecattping in the Target Systems
    Java System
           1.      In the Visual Administrator, choose Server ->Services -> Deploy.
           2.      On the Runtime tab, select Application.
           3.      Select ecattping.
           4.      Choose Start Application.
    ABAP System
           1.      In the target system, start transaction SICF and navigate to the service ecattping.
           2.      Select ecattping and choose Service/Virtual Host ->  Activate.
    Thanks and Regards,
    Balaji.D.N
    Edited by: Balaji DN on Dec 31, 2008 12:04 PM

Maybe you are looking for

  • Is there a way to transfer music I've purchased from my old Apple account to my new one?

    Hi everyone, Many moons ago, when the iPod came out I downloaded iTunes and setup an account using my then current e-mail address aka user ID for iTunes.  However, fast forward about 8 years later and that old e-mail address has long been forgotten. 

  • How to connect a MacBook to external monitor

    I have a MacBook that I am trying to hook up a external monitor to.  I have a HDMI cable that goes from the monitor to a adaptor that goes to the mini display port and the USB port.  I have tried with and without the USB cord.  I have tried messing w

  • User defined PF-STATUS in ALV

    Hi all,       I am doing an ALV through an user defined pf-status.But when I am using this pf-status I am unable to find the standard application tool bar and remaining also.I have seen some threads regarding this. These threads are giving me the sug

  • String operations on internal table text....

    Original table is consists of 2 columns: E         RFC error(SM_DHTCLNT010_READ): Error when opening connection E RFC error(SM_DHLCLNT010_READ): Error when opening connection E RFC error(SM_DHKCLNT010_READ): Error when opening connection E RFC error(

  • How to use "access control - administrator" in SQL

    I have a report with checkboxes to select records for delete. Non administrators can only delete a subset of the records. So for some of the records I would like to hide the checkbox if the user is not an administrator. The checkboxes are created in