Logging in a custom file (Web Dynpro Java Version: 7.0.11)

Hi all,
Is it possible to redirect the logging (no matther by Category or Location) to be written in some custom log file, not to the one big general log?
And if so, please hint me how to do it.
I will be very grateful if you don't send me links but just some short, simple explanation! I have already read as many links as I can
Thanks,
Ogy

Hi Ognyana,
I have also come across such a scenario. Can you please provide the solution found by you for the same.
Thanks in advance!
Rgards,
Manish

Similar Messages

  • Where Web Dynpro Java version of Adobe Forms are used in ESS MSS

    Hi, SDN Expert.
    I am working on research the use of Adobe Interactive Forms in the current processes of HCM ESS MSS.
    We are on ECC5.0, EP7.0, and ESS MSS SP21. We are in the midst of upgrading to ECC6.0.
    Do you know where Web Dynpro  Java version of Adobe Forms are used in ESS MSS are used? OR are they all in Web DYnpro ABAP version in ECC6.0?
    Thanks,
    KC

    Sergio,
    FYI.
    I am trying to see how the form I design/modify in TCode: SPF are working together to these piece of codes I found in NWDI WD4J pcui_gpisrsap.com --> VcISRShowForm DC --> ShowForm view:
    public void wdDoInit()
        //@@begin wdDoInit()
              InteractiveForm form =
                   (InteractiveForm) ((View) wdThis.wdGetAPI()).getElement("IsrForm");
              form.setDynamicPDF(true);
              form.bindPdfSource((IWDAttributeInfo) null);
        //@@end
    public static void wdDoModifyView(IPrivateShowForm wdThis, IPrivateShowForm.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
              logger.pathT("Entering: wdDoModifyView");
              // Dynamic context generation
              // Bind context
              if (wdContext.nodeNewGenericChildNodes().size() > 0) {
                   if (wdContext.currentContextElement().getContextToBeReset())
                        wdContext.nodeData().getContext().reset();
                   IWDNodeInfo genericNode = wdContext.nodeData().getNodeInfo();
                   IWDNodeInfo origNode =
                        wdThis
                             .wdGetVcISRShowFormController()
                             .wdGetContext()
                             .nodeGenericNode()
                             .getNodeInfo();
                   IWDNodeInfo childNode;
                   IWDNodeInfo deepChildNode;
                   for (int i = 0;
                        i < wdContext.nodeNewGenericChildNodes().size();
                        i++) {
                        childNode =
                             origNode.getChild(
                                  wdContext
                                       .nodeNewGenericChildNodes()
                                       .getElementAt(i)
                                       .getAttributeValue("name")
                                       .toString());
                        deepChildNode = childNode.getChild("DATA");
                        genericNode.addMappedChild(
                             childNode.getName(),
                             null,
                             childNode.isSingleton(),
                             childNode.isMandatorySelection(),
                             childNode.isMultipleSelection(),
                             childNode.getPathDescription(),
                             false,
                             true);
                        genericNode.getChild(childNode.getName()).addMappedChild(
                             deepChildNode.getName(),
                             null,
                             deepChildNode.isSingleton(),
                             deepChildNode.isMandatorySelection(),
                             deepChildNode.isMultipleSelection(),
                             deepChildNode.getPathDescription(),
                             false,
                             true);
                        genericNode
                             .getChild(childNode.getName())
                             .getChild(deepChildNode.getName())
                             .addAttributesFromDataNode();
              // Avoid another context generation - all context have been generated
              wdContext.nodeNewGenericChildNodes().invalidate();
              InteractiveForm form = (InteractiveForm) view.getElement("IsrForm");
              //Set the template source of the form (if necessary)
              if (wdContext
                   .currentIsrParamsElement()
                   .getSetTemplateSourceNecessary()) {
                   form.setTemplateSource(
                        wdContext.currentIsrParamsElement().getTemplateSource());
                   wdContext.currentIsrParamsElement().setSetTemplateSourceNecessary(
                        false);
              logger.pathT("Exiting: wdDoModifyView");
        //@@end

  • Storing Current Logged on User Details in Web Dynpro Java

    Hi Experts,
    My GP Process containd 2 steps:
       - Create Activity
       - Evaluate and Approve
    The user creates the Activity and the manager approves it.
    I have to make sure the User Details are avaialble for the Manager to see.
    How do i store the user details logged on.
    I need the "Name", "Date" and "Time" of the user when he creates the Activity.
    Can somebody guide me how to do it using Web Dynpro java.????
    Thanks a lot.
    Cheers
    Gaurav Raghav

    Hi Gaurav,
    Make use of background callable object which retrieves the logged in user details. If you are using WD and you need the logged in user infomation use the IWDClient . Code for getting this is there in sap help.
    Thanks,Uma.A

  • How to create a user in UME Database using web dynpro java custom application

    Hi,
    Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
    My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
    Please suggest me.
    Thanks and Regards,
    Amit

    Hi Amit,
    Generated Documentation (Untitled)
    This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
    You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
    Hope it helps,
    D.

  • Reading contents of uploaded excel file in web dynpro java

    Hi All.
    I am aware how to provide facility to upload files in web dynpro java. But my requirement is that on uploading a particular file (for eg. an excel file having 10 columns), I need to read the contents of that file and store it in a table in R/3.Can anyone suggest a way how I can read the contents of the uploaded file?
    Thanks and Regards,
    Saurabh.

    Hi.
    I am having the following requirement : I have a FileUpload UI element where user clicks Browse button, selects a file from the local system and presses a Upload button. Upon pressing Upload, the name of the selected file and the contents of the file should be shown.
    In the View context, I have two value attributes: FileName of type String and FileResource of type binary.
    This is the code that I have in the Upload button action handler :
      public void onActionUpload(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload(ServerEvent)
        IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(
                 IPrivateReadExcelView.IContextElement.FILE_RESOURCE);
        IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType)attributeInfo.
                 getModifiableSimpleType();
        IPrivateReadExcelView.IContextElement element = wdContext.createContextElement();
        String fname = binaryType.getFileName();
        wdComponentAPI.getMessageManager().reportSuccess("File selected - "+fname);  //Statement 1
         try {
              wdComponentAPI.getMessageManager().reportSuccess("Successful");    // Statement 2
              InputStream in = new FileInputStream(fname);
              HSSFWorkbook wb = new HSSFWorkbook(in);
              wdComponentAPI.getMessageManager().reportSuccess("Successful");    //Statement 3
              int sheetsNo = wb.getNumberOfSheets();
              for (int i=0;i<sheetsNo;i++) {
                   HSSFSheet sheet = wb.getSheetAt(i);
                   Iterator rowsNo = sheet.rowIterator();
                   while(rowsNo.hasNext()) {
                        HSSFRow rows = (HSSFRow)rowsNo.next();
                        Iterator colsNo = rows.cellIterator();
                        while(colsNo.hasNext()) {
                             HSSFCell cell = (HSSFCell)colsNo.next();
                             wdComponentAPI.getMessageManager().reportSuccess("File uploaded" +
                                  "successfully");
                             if(cell.getCellType()==1) {
                                  wdComponentAPI.getMessageManager().reportSuccess("00000"+
                                       cell.getStringCellValue());
                             else if(cell.getCellType()==0) {
                                  String str=""+cell.getNumericCellValue();
                                  wdComponentAPI.getMessageManager().reportSuccess("11111"+str);
         catch(Exception e) { wdComponentAPI.getMessageManager().raisePendingException();
        //@@end
    On pressing Upload button, name of selected file is being shown(Statement 1). I am also getting Statement 2 in the output. However I am not getting Statement 3 onwards.
    Where am I going wrong? Can anyone shed some light on this?

  • File Visibility in uploading the file using web DynPro java

    hello,
    i have gone through the tutorial " uploading & downloading the file using web DynPro java".
    the upload functionalty is working fine. but i need to know thw path where these files are getting uploaded ??
    Waiting for the reply..
    Regards,
    Viren Gupta

    Hi Viren,
    Are you are refering to the below tutorial for upload and download:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e10426-77ca-2910-7eb5-d7d8982cb83f?QuickLink=index&overridelayout=true
    If yes, then answer is that the file is stored in the context of the application only as "com.sap.ide.webdynpro.uielement-definitions.Resource" object. Please read through the tutorial to understand the full process.
    WD doesn't really upload to server automatically unless there is any explicit code written. All it does is to store the file in a temp context which you can access and write your own code to store it in a particular location.
    Regards,
    Mahesh

  • Make custom Web Dynpro java iView properties

    Hi All,
    Please guide me as to creation of custom Web Dynpro java iView properties in NW 04s .
    I have already gone through the music box example but  still have doubts .
    ANy pointers?
    Regards
    Radhika Kuthiala
    Edited by: Radhika Kuthiala on Dec 13, 2011 9:49 PM

    I don't think this can be done since WDJ apps can also run standalone (not in a portal)

  • Maintaining custom Web Dynpro Java applications

    We are a relatively new Web Dynpro Java shop, and I hope to propose a standard for code modification documentation to my organization. I have a few questions for WDJ maintenance developers:
    When documenting creation and modification activities, what is the benefit of using the javadoc comment convention?
    In the controller implementation tab, when I use the Source --> Add JavaDoc Comment tool, the comment block is always inserted into the
    //@@begin imports
    tag. Is the automatically generated tag
    //@@begin documentation
    in the controller implementation tab useful? Should summary information and ongoing modification comments for the controller be stored here?
    Does anyone require full javadoc comments on every new method? @param, @return, @exception?
    Do the NWDS/Eclipse Tasks and/or Bookmarks provide any real value? I have observed that bookmarks are useless for flagging code changes because they are dropped whenever edits are saved. I'd like to leverage Tasks, are there any examples of using them successfully that can be shared with me?

    The Java source in Web Dynpro is generated from the meta-data. Manual changes must be done exclusively inside the so-called user coding areas marked by comments //@@begin ID ... //@@end. That has the consequence that many of the Eclipse source code and refactoring functionality does not work anymore resp. is overwritten by the code generation step. Please be careful.
    Armin

  • System.out.println in Web Dynpro Java

    I call System.out.println in some components in web dynpro java.  But I cannot find the standard console output file of SAP J2EE Engine. Anyone know where is the location of standard output file?

    Thanks Deepak. Your link blog is working.
    Sreeni: I cannot find a start-up log file. Could you please tell me the real path?
    Edited by: Nuttakorn Boonthamtanarung on Apr 1, 2010 6:58 AM

  • Set Security Question & Answer using UME API in Web dynpro Java

    Hi Experts,
    I;ve developed a Web Dynpro java application to create a user in UME.
    I am able to set all the user account related attributes but I am not able to set the security question and answer as I do not see any attribute for the same.
    Can anyone please suggest how to set the Security question and answer in UME?
    This is required so that if the user wishes to reset his password / forgets password, we can ask him the security question which he selected at the time of registration.
    Please let me know if it can be achieved at the code level and whether UME API supports security question and answer or any such attribute.
    Also, if no such attribute is present by default in UME at the moment; can we create/configure some custom attributes in UME and store the security question and answer into those attributes. This would serve our purpose.
    Kindly assist.
    Regards,
    Anurag

    Hi,
    Thanks a lot for the reply!!!
    I have one doubt here:
    You've mentioned the below code to fetch the security questions in your reply:
    IUser user = WDClientUser.getCurrentUser().getSAPUser();
    String CUSTOMER_NAMESPACE = "com.sap.security.core.usermanagement";
    String attmotname [] = user.getAttribute(CUSTOMER_NAMESPACE,"MotherName");
    String attlucknum [] = user.getAttribute(CUSTOMER_NAMESPACE,"LuckyNumber");
    String attmobnum [] = user.getAttribute(CUSTOMER_NAMESPACE,"MobileNumber");.
    But this would be only applicable when the user has already logged on to the portal as it uses "WDClientUser.getCurrentUser().getSAPUser();" code.
    On the contrary, I want the security questions and answer to be accessed even when the user is not logged on to Portal so that based on the question & answer, the user can reset his password.
    Please suggest, how can we achieve this and where and how to set the custom attributes for the same?
    Do we have to set the Publicly Viewable Custom Attributes present at location you mentioned in your reply?
    Also, if yes; please let me know how to set the custom attributes?
    Thanks & Regards,
    Anurag

  • Web Dynpro Java and Adobe Interactive forms Which Tool Should I Use?

    Hello Experts,
    Can anyone help me with deciding the right technology to use among WDJ and Interactive form by adobe. I want to prepare a presentation to showcase the strong and weak points in order to decide the final technology.
    Thanks in advance for the help.

    I personally prefer Web Dynpro Java without Interactive forms in most cases.
        Interactive forms are developed on top of Web Dynpro, so you are including an extra tier with the complexity it adds.
        PDF files tend to go big and performance tends to go down. In average, my forms weight between 1 - 5 Mb so network traffic is a bottleneck.
        The scripting environment is very poor.
        On the other hand PDFs interfaces are nicer than WDJ, but I think navigation is worst in part because of the performance issues. Considering this, reporting could be a good use of Interactive Forms.
        The best scenario for using Interactive Forms is for off-line applications, which can't be done with WDJ. For example, if you want your customer to fill an order list, you can send automatically an offline pdf file wich he can fill and submit to your company, initiating a bpm.
    Best regards, Aldo.

  • Problem: Changing Language for Web Dynpro Java within NW Portal (i18n)

    Hi Experts out there,
    I hope all you had a nice Christmas and a big New Years Eve :)!!!
    i got a challenge for you about WD Java and internationalization (i18n)
    Here is the scenario:
    We are using a SAP NetWeaver Portal 7.0 and my task is to implement some smaller Web Dynpro  Applications.
    These Applications must be i18n conform, so i just created (according to the corresponding WD Java tutorial) some ".xlf" files.
    Okay...Everything is working fine. The user can log at the portal and the application is displayed in his language, which is "english" or "german". (the application is just a simple form)
    So far so good...Now here comes the point where it's getting tricky...
    When the user wants to change his assigned language (of the portal user) he can use the "personalize" button in the Masthead (-> change portal language). All the portal content should now be displayed in his new chosen language.
    For example the user is logged into the portal with "german" as portal language and now changes his languages settings into "english". After this everything in the portal (navigation, portal iViews ) is displayed in the changed language (from english into german) ...
    BUT: my Web Dynpro  Java Application stays as the original languages setting was. That means the whole portal is now english, but my WD Java Appl. stays german .
    Only if the user logs of and logs in again, the WD Java Appl. is displayed in the corresponding portal language...
    VERY Strange?!?!
    Can anybody give me a hint how to solve this problem?
    I guess i have to re-initiate the Web Dynpro  Application some how ...(like killing the application and restarting it ...) but is just a "weak guess"...
    Any Help / Hint is more than welcome !!!
    Cheers
    Stefan

    Hi Stefan,
    This correct see SAP Note [947081|https://service.sap.com/sap/support/notes/947081]
    If the locale for the Web Dynpro iView is changed in the portal (through portal personalization), this is not reflected in the running login session. The user needs to logoff and login again, in order to see the locale change in the Web Dynpro iView.
    Regards,
    Leo

  • Consuming External Web Services in Web Dynpro Java

    Hi All,
    I an trying to consume external web service in Web dynpro java using Adaptive Web Service Model.
    But getting below mentioned error while executing the web service
    Exception on execution of web service with WSDL URL 'D:\Web Service Project\CurrencyConvertor.asmx.xml' with operation 'ConversionRate' in interface 'CurrencyConvertorSoap'
    Steps i followed are as below:
    1. Created  Adaptive Web Service Model for this i select WSDL source as "Local File System or URL"
    In next step i select No logical destination radio button and click on next
    In next step, browse the WSDL file and successfully import the WSDL file.
    2. After successfully importing the WSDL file i wrote below code in Init method:
    WebModel modelweb = new WebModel();               
    Request_ConversionRate reqConversion = new Request_ConversionRate(modelweb);
    ConversionRate conversion= new ConversionRate(modelweb);
    reqConversion.setConversionRate(conversion);
    wdContext.nodeRequest_ConversionRate().bind(reqConversion);
    3.After that execute the model - code is given below :
        IWDMessageManager manager = wdComponentAPI.getMessageManager();
        try
          wdContext.currentRequest_ConversionRateElement().modelObject().execute();
          wdContext.nodeResponse().invalidate();
          wdContext.nodeConversionRateResponse().invalidate();
        catch(Exception e)
          manager.reportException(e.getMessage(), false);
    Please let me know how to resolve this.
    Thanks
    Sandy

    Hi,
    You need to use destinations for metadata and modeldata.
    Configure those destination in Visula admin.
    you can refer to following link.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
    Regards,
    Shruti.

  • Creating sales order using web dynpro JAVA

    Hello everyone,
    i am new to web dynpro. Can any one tell me how to creating sales order by web dynpro JAVA using BAPI.
    Thanks.
    Vinita Sharma

    Hi...
    you can use Adaptive RFC methodology in web dynpro java to work with BAPIs..... these are standard bapi's provided
    Here are required Bapis... select which one you want....
    BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
    BAPI_ORDER_CHANGE_STATUS_GET Change status for order
    BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
    BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
    BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
    BAPI_SALESORDER_GETSTATUS Sales order: Display status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
    check this thread SALES ORDER creation using BAPI
    sample java program which will call SAP bapi function sales order create
    PradeeP

  • Deploying problem of web dynpro java application

    Hi,
    I have a web dynpro java application with no problem about deploying.
    I copied this application with another name.
    I tryed new application to deploy but sdm aborted with error.
    Error
    19.Tem.2011 10:22:25 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Settings
    SDM host : vserver0202
    SDM port : 52018
    URL to deploy : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
    Result
    => deployment aborted : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
    Aborted: development component 'HF_PERS_RAPOR_BUTCE'/'local'/'LOKAL'/'0.2011.07.19.10.22.15'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application local/HF_PERS_RAPOR_BUTCE.. Reason: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted

    Hi,
    Since the exception says "Are all referenced components deployed and available on the engine?"
    Check wether any DC is used as a used DC in the webdynpro component which you are deploying.
    If any used DC is available try to deploy that DC in the server and then deploy ur webdynpro application.
    If all reference DC's are avialable in server, still if you get this error try to rename the component and reload+rebuild the project and deploy it.
    Hope this helps you...
    Regards,
    Saleem Mohammad.

Maybe you are looking for

  • HT203167 i purchased a tv show season pass and it is not showing up in my itunes account

    i purchased a tv season pass and it isnt showing up in my itunes

  • Error while compiling pro*c code in oracle 11gR2 on AIX6.1 (64bit)..

    Hi , We are migrating from oracle 10gR2 on AIX 5.3 to oracle 11gR2 on AIX 6.1 (64bit Kernal) . As pat of this , we need to migrate all the pro*c codes and for that we are trying to complie those files on the new server . But while compiling , we are

  • Back to School promo UK

    I added a Macbook to my shopping cart, and selected yes when it asked me if I also wanted an ipod nano. I selected a 2gb ipod nano and it asked me what colour I wanted, but the only choices were black or white and the nano now comes in other colours

  • Hard disk crashed.  Syncing with i Tunes

    My HD crashed and I want to sync my i pod back with my i tunes library. When I log in to itunes there's a message indicating it will erase everything I currently have. How do I sync both libraries (apparent) on itunes?

  • Transport costs problem

    Hello, i have a condition ZT which is the condition for transport costs.It appears / does not appear in the condition schema in my purchase order. When i create my billing document , can i insert and additional line for the transport(even if there is