Abt writing code in Web Dynpro

Hi experts,
                     I'm new to this SAP Netweaver platform. So can anyone guide me to work in NWDS and give some coding related links.
waiting 4 ur reply,
Shanthi.

Hi
http://help.sap.com/saphelp_erp2005/helpdata/en/95/93fe1e71a2e44691b1f041e67f71aa/content.htm
i think this link will help u
Anita

Similar Messages

  • Add html code in web dynpro application

    Hi
    Is there a method to add HTML Code in web dynpro application so that it works same as HTML works in browser
    I have to add a clock in my application How can i do that
    Best regards
    Suresh

    If you're on NetWeaver CE or otherwise use Wb Dynpro for Java 7.2 or higher, you could use the WebWidget control, see http://help.sap.com/saphelp_nw73/helpdata/en/49/bfa3b2e55657bae10000000a42189d/frameset.htm
    Otherwise, I'm afraid your only option is to use an IWDIframe component in your WDJ project, embedding the HTML.. Be carefulo though, the IWDIframe component is deprecated (since each server roundtrip forced a reload of the IFrame it was pretty useless)
    Hope this helps!
    Best regards,
    Robin van het Hof

  • How to display the data of CJ2C(T-CODE) using web dynpro abap

    Hi all:
        How to display the data of CJ2C(T-CODE) using web dynpro abap.
        CJ2C used to display a Gantt Chart.
        Thanks.

    Hi,
    Create a Value attribute (resource) of type Resource, bind it with the property of File Upload UI element.
    On action place the code and Deploy the application
    byte[] bytes = new byte[ 1024];
    FileOutputStream out = new FileOutputStream( new File( <path in server>));
    InputStream in = resource.read( true);
    int len;
    while( ( len = in.read( bytes)) > 0)
         out.write( bytes, 0, len);
    in.close();
    out.close();
    Regards
         Vinod V

  • How to include source code in web dynpro java deployment

    Hi,
    We dont have NWDI.
    We are creating ear files out of web dynpro applications packaging them as sca files and deploying them in server.
    But the source  code is not included in ear.
    How to include source code with your ear/sca , so that when anyone downloads the sca file later, they are build the Project in the studio.
    How would they typically download? Do they require NWDI ,
    Right now we dont have NWDI in place, but we want to do is parcel the applications such that the source code should be available at a later time for download.
    This is possible with .par files , but what about web dynpro?
    Thanks,
    Deb

    If you are not using NWDI use the _comp file.

  • How can I write java code in web dynpro to show KM content document?

    Dear all developer
    SDN developer who have any easy example java code for get and show KM content documents(documents/com.xx.km/.). We are develop this project by Netweaver Studio 7.0 and using WEB Dynpro application.
    Thank for all comment and advice.
    Jumnong Boonma

    Hi
    i dont have the exact code but yes..i can refer to the link for Web Dynpro applications for the Portal.
    [http://help.sap.com/erp2005_ehp_03/helpdata/EN/42/fa080514793ee6e10000000a1553f7/frameset.htm]
    Here look out for Absolute Navigation.
    Hope it helps...
    Thanks..

  • How to call t-code from web dynpro ABAP application

    Dear Gurus,
    I am new to ABAP web dynpros. I have to add a button and have to call a SAP standard t-code if user clicks on this button? How to accomplish this task? Any help or example would be appreciated.
    Thanks,
    GSM

    Hi GSM,
    You have to create a SAP transaction iView in your Portal, then obtain its URL in your webdynpro and call WDPortalNavigation.absolute() method.
    Below are the same steps in more detail:
    1) Create a SAP Transaction iView or an Internet Application Component iView (whichever you find convenient). While creating you can select whether you want to use SAP GUI for windows or SAP GUI for HTML. For the latter(GUI for HTML) ensure that your ITS is working fine and configured while creating the system in EP.
    2) Open the properties of the SAP transaction iView created. In the OK code field you can give the ok code value just as you give in SAP R/3 in case you want to navigate to the second screen of SAP R/3 when you pass values from WebDynpro.
    Example for the above would be say Transaction "VA03" for displaying Sales order. Suppose from Webdynpro i want to pass a parameter called "Order number" and when i click a button it should pass the order number to R/3 and skip the first screen required for inputting the sales order numbe.
    It should directly go to the main display of sales order for that ordernumber.
    3) Create your WebDynpro component and deploy it on the server. In your WebDynpro use the WDPortalNavigation.absolute() method and give the url of the SAP Transaction iView created as a parameter and also the required parameters that you would like to pass from WebDynpro.
    4) Create a SAP WebDynpro iView in the Portal.
    5) Now run the Component. It should open up your SAP Transaction iview.
    Regards,
    Uday

  • Problem with calling we02 transaction code from web dynpro

    Hello everyone,
    I want to skip the initial screen of we02 tcode for this i have created the URL, provided the idoc number and
    used the function code DYNP_CODE=ONLI for execute button.
    DATA : FINAL_URL TYPE STRING.
    CONCATENATE 'host' '.port' '/sap/bc/gui/sap/its/webgui?~transaction=we02 DOCNUM-LOW='
                ls_itab-docnum ';CREDAT-low=' ' ' ';DYNP_OKCODE=ONLI'
                 into FINAL_URL.
    I am trying to pass the idoc number internally and click on execute button...so that the end user can see the idoc display directly, rather than clicking the execute button manually. But, unfortunately the function code for execute buttong (ONLI) is not working. In WE02 tcode, provided input values are appeaing correctly but not triggering the execute button.
    Please help!
    Thanks in advance...

    Hi Rohit.,
    Did u tried my previous reply.,  Use., & ~OKCODE=ONLI .,
    http://host:8000/sap/bc/gui/sap/its/webgui?sap-system-login-basic_auth=X&sap-client=800&sap-language=EN&transaction=we02&okcode=ONLI
    tis will work.,
    Thanks & Regards
    Kiran

  • How to get the Response Code when a URL is launched from Web Dynpro

    Hello Experts,
    I have a Web Dynpro Application in which in one of its views i have an IFrame UI element in which i will show a resource stored somewhere ..
    But before showing it i want to check if the resource actually exists. For this i have to check the HTTP Response code from Web Dynpro Application without setting it in the Iframe..
    I am using the following code to get the Response Code:
    try{
    URL url = new URL("Some Url");
    HttpURLConnection.setFollowRedirects(false);
    HttpURLConnection connection = (HttpURLConnection) url.openConnection();
    connection.connect();
    wdComponentAPI.getMessageManager().reportSuccess("Response code ="+connection.getResponseCode());
    }catch(Exception e){
    wdComponentAPI.getMessageManager().reportSuccess("Exception");
    Now the Problem is whatever response Code occurs 403 (for No Proper Authorization), 404 (for Resource not found) etc..
    i always get Response Code=  500 (which is for Internal Server Error) shown in the messgae i have printed.
    Please let me know the correct way of getting the Response Code from Web Dynpro.
    Also my resource is lying on a SAP Portal 6.4
    Best Regards
    Sundeep
    Edited by: Sundeep Sethi on Feb 18, 2008 9:07 AM
    Edited by: Sundeep Sethi on Feb 18, 2008 10:23 AM

    Hi,
      Check this code from /thread/5242768 [original link is broken] if it works.
    try{
    URL myurl = new URL("http://calendar.google.com");
    URLConnection connection = myurl.openConnection();
    if(connection instanceof HttpURLConnection) {
    HttpURLConnection httpConnection = (HttpURLConnection) connection;
    HttpURLConnection.setFollowRedirects(true);
    httpConnection.setRequestMethod("HEAD");
    httpConnection.connect();
    System.out.println("Response = "+httpConnection.getResponseCode());
    catch(Exception e) {
    // print exception
    Regards,
    Harini S

  • How to get Portal User Context  in Web Dynpro application

    I have successfully integrate a web dynpro app into SAP Netweaver Portal.
    Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.
    Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?
    IUserContext userContext = request.getUser();
    String firstName = userContext.getFirstName();
    String lastName = userContext.getLastName();
    If yes, can someone point me the name of the jar file I have to import.
    Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.

    Hi ,
    you can use the below code to get User details and  add com.sap.security_2.0.0 > lib > com.sap.security.api.jar
    try
              IWDClientUser clientUser = WDClientUser.getCurrentUser();
    String firstName = clientUser.getFirstName();
    String lastname = clientUser.getLastName();
    catch (WDUMException e) {
                wdComponentAPI.getMessageManager().reportException("Error Retrieving User"+e.toString(),true);
    Regards,
    Sunitha Hari

  • Problem deploying sample web dynpro application.

    I am not able to deploy and run a sample code of Web Dynpro. It gives the following error.
    <b>Caught exception while checking the login credentials for SAP J2EE Engine. Check your login information. Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Access Denied.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMEXC)
    </b>
    I am able to log in to SDM using the same password but not deploy the code.
    I have also tried restarting the server, SDM.

    Hi,
    Try opening Visual Admin if your not able to login with username(administrator) and password. Problem with NWD2004s do the following steps.
    C:\usr\sap\J2E\JC01\j2ee\configtool->configtool.bat->open it
    1. Click on Secure store
    2. Right you will find :
    admin/password/J2E->retype your admin passowrd which you gave during installation=>SAVE properly
    Restart the server and try login visual admin
    Now you deploy.... Otherwise see this thread same problem but solved.
    Re: An Deploy Problem about Credentials.
    Regards
    Suresh

  • CAF DB Update for CAF Entity Service from Web Dynpro

    Hi all,
    I have created an entity service in CAF called “Contacts’ which contains the following attributes.
    phoneNo
    cellNo
    emailID.
    Another entity service called "Person" is created. This contains the following attributes.
    personId
    personName
    personAddr
    contactsRef. (Cardinality -> 0..n , Relational Type -> Composition)
    That means Contacts entity service is used within Person entity service. Now it is working fine within CAF service browser. Now the Web Dynpro DC of CAF application is used within another custom Web Dynpro DC project. I want to store data from Web Dynpro.
    Within the context of component controller of  Web Dynpro the structure is like
    APerson
         |_ personId
         |_ personName
         |_ personAddr
         |_ contactsRef       
                    |_ phoneNo (Under contactsRef)
                    |_ cellNo (Under contactsRef)
                    |_ emailID (Under contactsRef)
    So I have written the following code within web dynpro custom method.
    APerson person = PersonServiceProxy.create();
    java.util.List ls = new ArrayList();
    for(int i=0; i<4;i++)
    AContacts contact = ContactsServiceProxy.create();
    contact.setCellNo("9092130156");
    contact.setEmailID("[email protected]");
    contact.setPhoneNo("432258");
    contact.getAspect().sendChanges();
    ls.add(contact);
    person.setRelatedModelObjects("contactsRef",ls);
    person.setPersonID("9999");
    person.setPersonName("xyz");
    person.setPersonAddr("ABC, KOL");
    wdContext.nodeAPerson().bind(person);
    person.getAspect().sendChanges();
    CAFServiceFactory.getServiceFacade(idendityDefinition.class);
    After saving the data from Web Dynpro I am trying to test it from CAF service browser. But I am getting only the parent row. I mean only the value of personId, personName and personAddr fields which I have stored from Web Dynpro. But no value is coming within the table for Contacts entity service for composition relation.
    Could anybody help me how can I solve my problem?
    Thanks & Regards
    Chandan
    Message was edited by:
            Chandan Jash

    Hi Chandan,
    Can you do person.getRelatedModelObjects() and get the contact object, to check whether it is null, also check in the CAF DB whether the data you entered is present.
      I am not sure the code is actually adding the contact model object to person.
    Go thru this SDN Blog on usage of the CMI API's, there is a link for CMI documentation in it which might help you get the right code for adding the contact object.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115.
    award points if  info is helpful
    Regards,
    Anish

  • Display XML in Web Dynpro

    Hello,
    i have a string variable filled with xml. And now i want to display this code in Web Dynpro with an ui element.
    I tried a text_edit but it only shows the text but i want it to be displayed like in an IE.
    Anybody an idea?
    Regards Robert

    Ok, so an Iframe ist not the best solution right now.
    So i did what you said and uploaded the xml content to the ICM cache and generate an URL.
    Now i tried to open the URL with an external Window, but inside the new opened IE i can't see anything.
    Maybe my coding is not complete?
    Regards,
    Robert
    DATA:
            lv_xml_content        TYPE string,
            lo_http_response  TYPE REF TO if_http_response,
            lv_url            TYPE string,
            lv_xfile          TYPE xstring,
            lr_conv           TYPE REF TO cl_abap_conv_out_ce,
            lo_window_manager TYPE REF TO if_wd_window_manager,
            lo_api_component  TYPE REF TO if_wd_component,
            lo_window         TYPE REF TO if_wd_window.
      cl_abap_conv_out_ce=>create( RECEIVING conv = lr_conv ).
      lr_conv->convert( EXPORTING data   = lv_xml_content
                        IMPORTING buffer = lv_xfile ).
      CREATE OBJECT lo_http_response TYPE cl_http_response.
      lo_http_response->append_data( lv_xfile ).
      lo_http_response->set_content_type( 'text/xml' ).
      lo_http_response->server_cache_expire_rel( expires_rel = 500 ).
      lo_http_response->set_status( code = 200 reason = 'OK' ).
      cl_http_server=>server_cache_upload(
        EXPORTING
          url      = 'Test.xml'
          response = lo_http_response ).
      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 = 'Test.xml'
                        title = 'XML im Internetexplorer'
      lo_window->open( ).
    Edited by: Thalin on Sep 21, 2010 3:45 PM

  • Accessing cookies in Web Dynpro EP7 (NW07 )

    In 6.40 (EP6), we were able to access cookies using the following line of code in web dynpro:
    Cookie[] cookieset = TaskBinder.getCurrentTask().getApplicationSession().getWebContextAdapter().getHttpServletRequest().getCookies();
    We are upgrading to NW07 and the getWebContextAdapter method is no longer available.  Is there a way to access cookies in NW07 through web dynpro java?
    Thanks,
    Jeff

    Hi,
    Their no way to access the cookies from Webdynpro, it will be handled by the framework.
    Regards
    Ayyapparaj

  • CAF DB update from Web Dynpro

    Hi all,
    I have created an entity service in CAF called “Contacts’ which contains the following attributes.
    phoneNo
    cellNo
    emailId.
    Another entity service called "Person" is created. This contains the following attributes.
    personId
    personName
    personAddr
    contactsRef. (Cardinality -> 0..n  , Relational Type -> Composition)
    That means Contacts entity service is used within Person entity service. Now it is working fine within CAF service browser. Now the Web Dynpro DC of CAF application is used within another custom Web Dynpro DC project. I want to store data from Web Dynpro. So I have written the following code within web dynpro custom method.
    APerson person = PersonServiceProxy.create();
         java.util.List ls = new ArrayList();
        for(int i=0; i<4;i++)
        AContacts contact = ContactsServiceProxy.create();
         contact.setCellNo("9092130156");
         contact.setEmailID("[email protected]");
         contact.setPhoneNo("432258");
         contact.getAspect().sendChanges();
        ls.add(contact);
         person.setRelatedModelObjects("contactRef",ls);
         person.setPersonID("9999");
         person.setPersonName("xyz");
         person.setPersonAddr("ABC, KOL");
         wdContext.nodeAPerson().bind(person);
         person.getAspect().sendChanges();
         CAFServiceFactory.getServiceFacade(idendityDefinition.class);
    After saving the data from Web Dynpro I am trying to test it from CAF service browser. But I am getting only the parent row. I mean only the value of  personId, personName and personAddr fields which I have stored from Web Dynpro. But no value is coming within the table for Contacts entity service for composition relation.
    Could anybody help me how can I solve my problem?
    Thanks & Regards
    Chandan

    Hi Chandan,
    Can you do person.getRelatedModelObjects() and get the contact object, to check whether it is null, also check in the CAF DB whether the data you entered is present.
      I am not sure the code is actually adding the contact model object to person.
    Go thru this SDN Blog on usage of the CMI API's, there is a link for CMI documentation in it which might help you get the right code for adding the contact object.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115.
    award points if  info is helpful
    Regards,
    Anish

  • ESS Address Required Field Web Dynpro

    Hi,
    Trying to make a field on the ESS Address screen mandatory.  Viewed the Web Dynpro Java Code and updated the label to required - which put the * next to the label on the screen, however I cannot see where the validation check exists.
    Do I have to validate the code in web dynpro and if so where or is it a ABAP issue?
    Have read in other postings (e.g. Re: ESS Web dynpro for portugal) that the required fields can be updating in the table V_T588MFPROPC.  I'm unsure if this is correct as a required field 'City' does not exist in this table, which is a mandatory field.  Also what values should I enter and how is the error message format created?
    Thanks
    Brian

    Hi,
    Setting the attribute of  field as required will only add a * mark in front of it.
    If you want to make it mandatory in WebDynpro code then please go through the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/a%20simple%20input%20form%20with%20message%20and%20error%20service%20support.pdf">following link</a>.
    As said by you many of the HR screens field attributes can be configured in SPRO.
    SPRO - Personal management - Personal Administration - Customizing UI - Change Screen Modifications.
    Hope this helps you.
    We can do that setting in backend then thats fine else you can do that in WebDynpro.
    Regards,
    Nagaraju Donikena.
    Regards,
    Nagaraju Donikena

Maybe you are looking for

  • How do I complete online .pdf form and then print?

    Sometimes, I can enter data on an online .pdf form and sometimes, I cannot.  I need to complete forms and then print them rather than print a blank form to complete by handwriting.  Window XP and Vista on my computers.  I have installed some Adobe an

  • Video will not import onto sequence, only audio when inserted.

    Hi, I'm trying to import AVCHD video into a Premiere Pro project sequence. I was able to do this only seconds ago and when I came to just one clip, it wouldn't import. It is the same file (AVCHD) and I was just able to do it. Note that when I press i

  • Back Ground job errors.

    Hi, we ve run the backgrnd job but it is giving errors that job is for generating orders for prices the orders were able to be generated in the foreground but all have list price validation errors eg like 2006416602. Can anyone tell me how to check 

  • What config should be done before running the ETL of EBS R12 vison demo

    Do the ETL for financial analytics, based on the EBS R12 vison demo database. I checked the doument, it quite complicated. Could I skip all the configuration steps in http://download.oracle.com/docs/cd/E12127_01/doc/bia.795/e12083/toc.htm (chapter 7

  • How to reactivate editing tools iMovie 09 8.0.6.(821)

    Final stages of edition of 20 minutes and all editing tools, including advanced, ceased operation. Got the "QUIT UNEXPECTEDLY" notice. Tried restarting Tried shut down and rebooting to no avail. Everything on the project panel is frozen. Cursor works