Coding standards for developing java iviews

Hi All,
Are there any coding standards to be explicitly followed to develop Java iviews in SAP Enterprise Portal ? Does SAP has any specific java coding standards to get the SAP certification for the developed iviews ?
regards,
sreeram

Hi Sreeram,
> Are there any coding standards to be explicitly
> followed to develop Java iviews in SAP Enterprise
> Portal ?
No. What you can find (for example within the PDK doc or partially created by wizards) are templates for the different kind of iViews, especially for JSPDynPages. But you have to care - even these templates are not really "clean" - there are objects used to store data which shouldn't...
> Does SAP has any specific java coding standards to get
> the SAP certification for the developed iviews ?
No. What is needed is the proper use of namespaces, but this primarily concerns portal objects within the PCD. Some implementation things are to be considered, for example if i18n is offered, it really has to work. But SAP does not care about the source code of the iViews.
Hope it helps
Detlev
PS: Please consider to reward points for helpful answers on SDN. Thanks in advance!

Similar Messages

  • Specifications for developing java card

    Hi,
    Plz give me the details of GSM specifications to be followed for developing java card.im using now javacard kit 2_2_1 version plz give me the details.

    Hi Kalyan
    You can get a lot of UDF already discussed in Forum and Blogs, Wiki
    As you said you are familiar with Java then you wont find any difficulty
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=xi+udf&adv=false&sortby=cm_rnd_rankvalue
    Thanks
    Gaurav

  • Using oracle personal for developing java application?

    Can I use Oracle 9i Personal Edition for developing Java applications? Does it provide a JDBC Type 4 driver?
    Thanks a lot.
    [email protected]

    SIR I WANT TO UPLOAD MY DEVELOPER FORMS BY USING ORACLE 8I SERVER?
    CAN U TELL ME THE PROCEDURE IN DETAIL?
    I WILL BE THANKFUL TO U
    MY EMAIL ADDRESS IS [email protected]

  • Resources for developing java UDFs used in XI

    I am with some Java background working in XI
    for developing Java UDFs used in XI are there any online resources or books other than from the SAP help and SAP certification material.

    Hi Kalyan
    You can get a lot of UDF already discussed in Forum and Blogs, Wiki
    As you said you are familiar with Java then you wont find any difficulty
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=xi+udf&adv=false&sortby=cm_rnd_rankvalue
    Thanks
    Gaurav

  • What are the best coding standards for ADF 11g?

    Hi,
    Do we have any link that will suggest the best coding standard practices used for ADF 11g?
    I am looking out from the perspective of some standards that can be defined before starting my project to know the team on how to
    1. Minimize Duplicity and max reusability of code
    2. Package the code
    3. Resource bundle usage and its calls
    4. Maintainning format consistency eg. date display format, number format
    5. Exception handling
    6. Logging
    7. Namiing conventions
    Also then we might have standards on
    1. Task flow dev.
    2. EO and VO creation standards
    3. UI development standards [purely ADF component based]
    Thanks in advance
    Edited by: user8925296 on May 26, 2010 3:24 PM

    The ADF Enterprise Methodology Group has a page on standards that gives you a starting point on many of your questions: http://groups.google.com/group/adf-methodology/web/adf-coding-standards
    John

  • API - method for Webdynpro Java iview functionality of Print

    I know.. you would love to post me with n different blogs and forums discussion about how to print from webdynpro java application.
    But lets read before what i am looking for..
    There is standard "Print" function available on webdynpro for java iview.. and layout and all its just fine for us. though we want to trigger this event from a screen button. as going to iview properties is very user friendly.
    I was looking for some iview api which can help me.. We are on NW 7.01 SP6 at the moment. And this is for standard ESS applications.
    Thanks a lot for your inputs.
    Regards,
    Sudhir

    Hi
    You can write Java program for printing. Call the java class from screen (button or Url). Also you can write the content to XMl file.open the xml file in action. so that u will get print preview and print option.

  • Urgent: Customize BP for Products Java iView

    Hi,
    We have implemented Business Package for Products 50.3.1 in EP 6.0.
    I want to ewmove some buttons like create document and change materials in the Java iView provided in the Business Package.
    I have no idea how this customization could be done?
    Is there any configuration setting in the R/3 needs to be done?
    Please share the documents if there is any for the customization.
    Thanks and Best Regards,
    Prashil

    Hi Marko,
    I don't know the BP, but this exception clearly states that within the method <i>getPage</i> within the class <i>ListPortalComponent</i> a <i>CRMContextException</i> is referenced (probably should be thrown), which in fact does not exist within the classpath.
    <i>If</i> I would have the BP at hand (and you have, that's your advantage), just check if the class exists. If not, you could try a workaround and check the cause for the exception, if you achieve that it should not be thrown, the JVM won't complain...
    Is the BP delivered within one or within several PAR's? If it takes several PAR's, maybe <i>CRMContextException</i> is in one, <i>ListPortalComponent</i> in another PAR and no SharingReference could be set (but I wouldn't call this very probable for the common package <i>com/sap/pct/crm/generics</i>; nevertheless, it's an idea).
    Just try to analyze around this...
    Hope it helps
    Detlev
    PS: You didn't mark your question as question?!

  • Which is the best and user freindly IDE for developing Java GUI application

    Please advice me if there is any good IDE for developing all kind of Java applications.
    I m confused about which IDE to use.
    I have Searched on Net also. and most of the answers i found was for JBuilder and JBoss.
    But cant confirm until u guys suggest me.
    Because i think this is the best place to ask questions about java.
    Please advice

    If you're developing JSPs and Servlets....
    I've found that using Eclipse (which is free) coupled with the MyEclipse plug-in (an advanced J2EE specific plug-in which costs $29.99USD/year) was the best for me. I've tried several free J2EE Eclipse plug-ins, didn't like them. Wasn't a big fan of NetBeans either, but I liked it tons better than the other Eclipse plug-ins.
    Therefore, IMHO for free I'd go with NetBeans, for a small fee I'd go with Eclipse/MyEclipse plug-in.
    If you are new to J2EE but not to Java, you may want to consider going straight to JSF and Sun's Java Studio Creator. This is not free, but the fee is one-time and development is (mostly) visual using Java Studio Creator.

  • Coding standards for Web dynpro ABAP

    Hello all,
    Can anybody please help me by providing the code review checklist for Web dynpro ABAP?
    Thanks and Regards,
    Rohini Shankar

    Hello friend,
    WebDynpro     *
    1     Do not implement Data intensive operations in UI layer     
    2     Avoid database selects in the WebDynpro code.Use the corresponding BAPIs ,Methods     
    3     Are ABAP OO Classes like Assistance class are being used for application coding ?     
    4     Are Windows/Views only used for the sole purpose of hosting views and context?     
    5     Are a reasonable number of views put in a single WD Component instead of creating multiple WD Components ?     
    6     Unneccessary usage of dynamic programming and dynamic component avoided      
    7     Are singleton nodes used in case of nesting in the context ?     
    8     Is deep nesting of containers, Groups and Tabstrips avoided ?     
    9     Is the UI element TreeByKey or TreeByTableNestingColumn used instead of the Tree UI element ?     
    10     Is the checkbox "Accessibility Checks Active" ticked in the WD Component properties     
    11     Are the WD Component Instances deleted when no longer needed (IF_WD_COMPONENT_USAGE=>DELETE_COMPONENT)     
    12     Are the OTR texts defined  for all the labels, texts(where ever appropriate) in properties of all the UI elements      
    13     Has the Generation limit been checked for all the components developed     
    14     Sufficients commets are written at the beginning of every major block to explain the processing logic.     
    *Error Handling     *
    1     Is SY-SUBRC checked after CALL function modules      
    2     Use Assertions if you face unexpected errors which usually never ever occur!     
    Extended Check and Clean Up
    1     Have following been removed :     
         ·      Unused variables                       
         ·      Unused text elements                   
         ·      Unused tables from TABLES statement     
         ·      Commented out parts of the code     
         ·      Code segments which do nothing     
    2     Is extended program check completed  and all errors/warnings removed      
    These are the things which i used for my project.
    Thanks,
    Sri Hari

  • What is the best way of creating admin-only parameters for a java iView?

    Hi,
    I would appreciate some advice from more experienced developers...
    The scenario is as follows: I have created an Org Chart maintenance application that generates and renders xml&xsl-based Org Charts. This is the maintenance iView.
    I am creating a second iView that points to each org chart(the 'Viewer' iView). This iView will be re-used many times, for different parts of our organisation. My problem is I want the portal administrator to be able to set the specific Org Chart that each instance of the 'viewer' iView points to. This needs to be editable as a configurable property.
    I imagine that this is accomplished through the use of properties, what is the best way to accomplish this?
    Many thanks,
    Mark Hockings

    I believe that you should be able to specify the 'personalization' property to be no-dialog. This doesn't allow users to be able to change the property, but can be changed when creating the iView definition
    I hope this helps
    D

  • Need Help For Developing Java Network RPG

    Greetings,
    Did anyone develop any similar game?I'm developing one for my final year project and i need some guidelines on that.
    Thanks for your help in advanced.
    Cheers,
    yc

    Since you are making a 2D game I suppose that speed is not really important. Don't make it too hard on yourself and use objectstreams.
    first thing you need is a class which holds all the variables you want to send (like position, health, whatever) and let it implement the "Serializable" interface.
    next stop: the client side connection
    socket     = new Socket(ipaddress, port);     
    obi = new ObjectInputStream(socket.getInputStream());
    obu = new ObjectOutputStream(socket.getOutputStream());and the server side connection:
    ServerSocket s = new ServerSocket(port);
    while(true) { // keep accepting new connections
    socket = s.accept();
    obu = new ObjectOutputStream(socket.getOutputStream());
    obi = new ObjectInputStream(socket.getInputStream());
    }make sure you turn around output and input. The server won't continue unless his output has input on the clientside.
    with the objectoutputsstream you can send the objects:
    obu.writeObject(netData);
    obu.flush();
      // make sure you flushreceiving the object:
    netData = (YourNetData) oi.readObject();so what you need is a client side function that sends objects, a client side thread that handles received objects.
    The easiest way to make a server is making an array of client threads and put the socket and the objectstreams in the thread. The thread can read an incoming object and send it to all clients in the array. This way you never have to change your server, you only have to change the object you send.

  • ESS  Java Iviews vs. SAP GUI for HTML Templates

    Hi
    We are currently implementing ESS in 4.6c using ITS.  We are planning on using the standard delivered ESS services and some custom iviews. We are planning on creating the custom iviews in Java as we can re-use when we upgrade to WAS6.4.
    Can we use both Java iviews via a JCo (similar to MSS)and the standard delivered ESS services using ITS ?
    Do we need create internet services for the Java iviews that will connect with R/3 thru Jco ( Is it the same as SAP GUI for Java)?

    Just got of a project where we implemented ESS/MSS on R/3 4.6 using custom iViews in JAVA. Basically we developed one iView template that can be configured using attributes for different services. Each service can be used for ESS and MSS. This decreases frontend development work quit a lot because for most new services you only need to develop RFC's and then configure the iView to use those RFC's and the metadata.
    Depending on you timeline you will either need one frontend and one backend resource. You can use one resource if that person knows JAVA and ABAP but it will take longer to finish the service or you can have multiple resources if your timeline requires to have multiple services finished at the same time. You can mail me directly if you have more questions: [email protected]

  • Java iview development

    Hi Friends
    I am very new to this area and directly starting with EP6.
    I have requirement to development java iviews(content) for EP6 ,but I am not getting a pointer how to develop it,if there is sample app available(java code) and how to develop with J2ee engine will be very useful to me.
    I looked at iviewstudio and there all the material deal with EP5 and tomcat but my requirement is for EP6 and there is nothing existing in SDN for EP6 content development, there are some presentations but they also talk about EP5.
    Can I develop java iview as content in NWDI and J2EE engine(EP6) directly or do I need to install tomcat.
    ANy sample code(tutorial) and a basic example with step by step procedure and also describing what all interfaces, portal classes I need to use to develop(EP6 + J2ee + NWdi) it.
    ANy help is highly appreciated.
    regards
    Rohit

    Hi All
    I downloaded pdk 6.0 SP6 and trying to install it in portal through SDM but it is giving following exception.
    ===========================================================================
    Deployment started Wed Oct 13 22:48:21 IST 2004
    ===========================================================================
    Starting Deployment of com.sap.pct.pdk.pct.epa
    Aborted: development component 'com.sap.pct.pdk.pct.epa'/'sap.com'/'SAP AG'/'630.20040715121826.0000':
    Caught exception during module deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application sap.com/com.sap.pct.pdk.pct.epa.. Reason: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception while deploying: java.lang.NullPointerException', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Exception while deploying: java.lang.NullPointerException; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception while deploying: java.lang.NullPointerException', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Exception while deploying: java.lang.NullPointerException
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineSingleModuleOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment of com.sap.pct.pdk.pct.epa finished with Error (Duration 4837 ms)
    =========================================================
    Has anybody experienced this.
    ANy pointers will be helpful.
    regards
    Rohit

  • Java iView Runtime Error in BEx Designer

    Hi,
    Through analyzer, Query is working absolutely fine
    When trying to run a query via the query designer I get the two messages :
    1.In development
    Java iView Runtime
    copyright 2002 SAP AG.All rights reserved.
    An exception occured while processing your request.
    If this situation persists,please contact your system administrator
    2.and in Quality
    503 Service Unavailable
    Application Stopped
    Thanking you,
    Tarun Brijwani.

    Hi,
    Thank you very much for your reply.
    From your reply, I have some doubts.
    You mentioned that you reduced the no of info objects in the rows in query definition and the problem got solved.
    1.Did you check that for the some queries which were already containing less no.of rows, it did not show this error.
    2.And you were getting this this error only in the those particular queries which were containing more no.of rows?
    3.Have you again tried by placing more no.of info objects in rows after you solved the error?
    Please reply even if you didn't try all these things coz it will be very helpfull for us in further investigation.
    Thanking You,
    Tarun Brijwani.
    Edited by: Tarun Brijwani on Feb 6, 2009 12:02 PM

  • Java iviews and PDV  Urgent!!!!

    Hello FOlks
    I am working on EP5.0SP5. I need to do some modification to the existing custom developed java iviews. These iviews were developed using PDV. There is no much documentation available on this. So if any one could tell me where begin the modifications for these iviews it will be of great help to me.
    I need to make some columns removed from the iviews etc.
    Any help will be of great help. I am working on PDV for the first time.
    Thanks

    Hi,
    In <b>beforePdvExecuteSource</b>(IDataViewer portalDV) you should set the portalDV source, ususaly using a JCO.Table:
    JCO.Table table = getDataTable();
    ISource myJCoSource = portalDV.createSource(table);
    portalDV.setSource(myJCoSource);
    when getDataTable() is a method you should write (probably exists in some way or another in the code you have), which creates a new JCO.Table, fills it with data and returns it.
    Removing columns will be done in that method, by deleting lines like:
    table.addInfo("ID", JCO.TYPE_STRING, 0);
    In <b>afterPdvExecuteSource</b>(IDataViewer portalDV)
    you can add meta-data used by the portalDV while displaying the table, like personalization settings,
    columns display types, target url for data in a column with a link display type, etc.
    In <b>afterTableViewCreate</b>(TableView table) you can handle the display properties of your table (e.g. setting columns visibility, etc.)
    In <b>onContainerCreate</b>(TableView tableView) you construct your gui. The given tableview contains the data you put in the source, formatted according to afterTableViewCreate, and should be added to the form (like in doProcessBeforeOutput in ordinary dynPage).
    Hope that helps,
    Yoav.

Maybe you are looking for