Web Dynpro Code Wizard - code patterns

Hello,
the code patterns that are generated by the very helpful Web Dynpro Code wizard seem to be a little inconsistent in their syntax structuring.
If I were to ask the wizard to read me a context node - I would get something like (some bits removed for brevity):
data lo_nd_result type ref to if_wd_context_node.
  data lo_el_result type ref to if_wd_context_element.
  data ls_result type wd_this->element_result.
* navigate from <CONTEXT> to <RESULT> via lead selection
  lo_nd_result = wd_context->get_child_node( name = wd_this->wdctx_result ).
* get element via lead selection
  lo_el_emp_search_result = lo_nd_emp_search_result->get_element( ).
* get all declared attributes
  lo_el_emp_search_result->get_static_attributes(
    importing
      static_attributes = ls_emp_search_result ).
Yet if I were to ask the wizard to generate a message I would get:
*  get message manager
data lo_api_controller     type ref to if_wd_controller.
data lo_message_manager    type ref to if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
call method lo_api_controller->get_message_manager
   receiving
     message_manager = lo_message_manager
*  report message
call method lo_message_manager->report_t100_message
   exporting
     msgid                     =
     msgno                     =
     msgty                     =
*     p1                        =
*     p2                        =
*     p3                        =
*     p4                        =
*     msg_user_data             =
*     is_permanent              = ABAP_FALSE
*     scope_permanent_msg       = CO_MSG_SCOPE_CONTROLLER
*     view                      =
*     show_as_popup             =
*     controller_permanent_msg  =
*     msg_index                 =
*     cancel_navigation         =
*     enable_message_navigation =
   receiving
     message_id                =
Edited by: Thomas Jung on Apr 27, 2010 8:56 AM

post  split to avoid silly size/formatting limits
Ok - both work - but one is using the:     
result = class_ref->methodname( parameters = paramvalue )
and one is using 
call method class_ref->methodname
                                  exporting parameters = paramvalue
                                receiving result = result.
As I often have to review code written by others, I encourage them to use these wizards - it helps speed code and prevents simple mistakes.  But code that contains multiple different syntax structure approaches is harder to read (albeit only slightly), moreover - it looks sloppy.
But why are they not consistent in their syntax structure? (one could also argue why do we have multiple syntax structures for the same operation - but that's a different discussion).
Is there some way customers can update these structures to match with their own internal coding standards - or something we can change so that they go one way or another?
I look forward to other's thoughts on the same topic.
Cheers,
Chris

Similar Messages

  • Why web dynpro commented my code out?

    Hi All,
    <b>as i tried to save the code for a method i have written in a view.java. the web dynpro comment my code out. and gives me the following message:</b>
    The following code section can be used for any Java code that is
    not to be visible to other controllers/views or that contains constructs
    currently not supported directly by Web Dynpro (such as inner classes or
    member variables etc.). </p>
    Note: The content of this section is in no way managed/controlled
    by the Web Dynpro Designtime or the Web Dynpro Runtime.
    <b>i  have had this problem couple of times already. sometimes i just needed to try one more time, it worked fine again. i just lose my patient to type the code again and again...
    does anybody know wwhat's wrong?</b>
    thanks!

    Hi guys,
    the webdypro has sometimes my code commented out and sometimes complete thrown away. so i guess i the problem is that i didn't pay attention to the UCA and code had errors.
    now i tried it again, i have no problem any more.
    thank you all!
    Ting

  • UI-Type using the Web Dynpro Dode Wizard

    Hi,
    every time i use the Web Dynpro Code Wizard and choose the Form i still get the UI-Element-Type "InputField". Is it possible to select ohter Element-Types for example DropDownByIndex or Text_Edit?
    i hope we can fix this.
    best regards,
    Michael

    Ofcourse you ca change it to UI-type that you want.
    change the Standard Cell Editor to DropDownbyKey all the UI elements will change(Default it will be InputField because most of the forms contains more number of InputFields ), also you can change the individual context attribute UI type also by changing the CellEditor of a table Column.
    Abhi

  • Web Dynpro Model Wizard Exception

    Hi there,
    I've recently installed the latest Netweaver'04 Sneak Preview and I get the following exception when generating an R3 Adaptive RFC model (using the "create model" Wizard):
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError: com/sap/tc/logging/LogController)
    Here are the rest of the details that the error displays:
    Plugin: Web Dynpro Model Editor Services
    Pugin ID: com.sap.ide.webdynpro.service.modeleditor
    Class: com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog
    Method: nextPressed
    Message: Internal error - see detail information in exception trace.
    I'm on Version: 2.0.11 of the NetWeaver Developer Studio.
    Anyone else out there with the same problem?
    Thanks,
    Gough

    Hi,
    Do check if the following link helps.
    Problem Connecting with SAP R3 for creating new model
    Regards,
    Vijith

  • BSP vs Web Dynpro ABAP

    Hello,
    we are looking for a listing that states the functional and technical differences between Web Dynpro ABAP an BSP.
    Is there anybody who has come along such a list ?
    Tx a lot in advance!
    Best regards,
    Ana

    Annette,
    check this
    The SAP Web Application Server (WAS) provides a page-based programming model with server-side scripting as well as server page technology for developing, designing and implementing Web applications:
    Business Server Pages (BSP). Server-side scripting enables direct access to all elements in the application server (such as function modules, database tables, ABAP Objects, and so on.).
    We can create HTML pages or Business Server Pages (BSPs) with server-side scripting in ABAP or JavaScript.
    The HTMLB and XHTMLB HTML Business libraries are available as BSP Extensions for a uniform layout and its associated usability advantages.
    And In the Web Application Server, the presentation layer is separate from the business logic. This makes it possible to implement front-end technology.
    Why BSP NOT WebDynpro
                              BSP
                  ABAP WEBDYNPRO
    Currently PMUSA/JMC customers are using Fire fox (Mozilla), Internet Explorer and Netscape navigator web browsers to access WEBUYPM application.
    BSP supports these web browsers.
    Restricted (Some of the features will not be supported by WebDynpro)
    Existing WEBUYPM application is written in HTML, Business HTML and JavaScript language.
    BSP supports these languages. And it allows even to mix ABAP, HTML and JavaScript thus has more flexibility to convert WEBUYPM application into BSP.
    Web Dynpro does not support HTML/JavaScript.
    Existing WEBUYPM displays the trade communications (Information tab) based on JavaScript and custom configuration file
    BSP supports JavaScript, we can display the trade communications in BSP too.
    Web Dynpro does not support Java Script.
    Existing WEBUYPM application has different colors schemes, Logos and graphical elements for PMUSA/JMC companies.
    BSP support s multiple color schemes/logo. These color schemes can be set dynamically based on company code selection at runtime.
    Separate Themes has to be developed for each User Interface elements.
    Development effort needs to be involved to even display a logo.
    BSP supports client side (user) validations. As most of these validations can be done at client side, the no. of hits on the server can be reduced and thus giving better response for the user inputs.
    In this way, performance can be increased.
    Web dynpro does not support any client side validations, every time the request must be sent to server to validate the useru2019s input. This increases the traffic and reduces the performance
    WEBUYPM application has logos, images.
    BSP supports Client side caching, and thus loads these element from client side very quickly.
    Web dynpro supports very little use of caching on the client side, and hence quite a significant delay in starting on some customeru2019s browsers.
    BSP has no restriction on user interface possibilities, Ex. Grid, drop down boxes, Font colors, size etc.
    Significantly more restrictive in user interface possibilities.
    Ex. Only those fonts, which are provided by SAP, can be used.
    Appearance can be changed dynamically using same web pages, to support different colors for different companies.
    We can have same (or better) look and feel if we convert the application into BSP.
    As there is no HTML coding involved in web dynpro the same look and feel as we have it today can't be achieved by using web dynpro.
    BSP is built for developing any type of web application (including mobile applications. It can be accessed from desktop, laptop, and any kind of smart devices like PDA.
    Web dynpro applications can not be accessed from PDA s (Not possible)
    Why WebDynpro NOT BSP
                 ABAP WEBDYNPRO
                               BSP
    Personalization can be given to the end user if they do not want see any of the user-interface elements.
    We can not hide any of the user-interface elements (Ex buttons ex) during the runtime.
    Note - Current WEBUYPM application does not support any of these options.
    Currently we are setting/retrieving the runtime context values in a session.
    Web dynpro supports State full applications.
    No additional development would be required. 
    BSP also supports to set runtime values and to retrieve the runtime context values, but minor development would be required to achieve this functionality. 
    Currently users can see view source for WEBUYPM HTML pages.
    Using Web dynpro this can be restricted thus providing more security to the application.
    HTML view source can be available to the users, Users can see the HTML client side code (not server side coding) as it does today.
    By using Adobe Flash Island, powerful web pages (RIA) can be created.
    But, Flash Island comes with Net weaver.
    BSP does not support Flash Island. But, BSP supports Java Script.
    JavaScript is essential for the new trend of rich internet applications (RIA), it is used by all the new applications, Ajax, Widgets, Flash, and even Microsoft is supporting JavaScript for the new generation of RIA
    Web dynpro has wizard tools to generate the code to create/configure the User Interface elements.
    Development effort would be required to create UI elements.
    We dynpro has uniformity as we use standard colors provided by SAP
    Uniformity can be achieved by using style sheets (minor development would be required).
    Thanks
    Bala Duvvuri

  • Logical Destinations in Web Dynpro Java

    Hi!
    Is it possible to access logical HTTP destinations maintained in SAP NetWeaver Administrator via Configuration Management -> Security ->Destinations in Web Dynpro Java source-code.
    I would like to use such a destination to configure an URL target for a IWDFrame UI element.
    Thank you very much in advance!
    Regards,
    Thomas

    I found out that there is a [Destination Service API|http://help.sap.com/saphelp_nwce711/helpdata/en/8b/8e7dac1e661d44bf2a676fd3948cc6/content.htm] for this purpose. Unfortunatly I am still not able to provide the required components security.class and tc/sec/destinations/interface to the web dynpro component. Maintaining them via Project Properties -> Web Dynpro is not allowed any more, and I couldn't find them in the DC perspective to add them as DC dependency.
    Has anybody got an idea where these two libraries have gone?
    Regards,
    Thomas
    PS: The 7.0 procedure, which can be found in various posts, doesn't seem to work any more for CE 711.

  • Web dynpro + adobe form

    Hello all,
    I am using interactive adobe form in wed dynpro for abap. I have created three fields in form which are input fields and one submitt button. I have on submit event in web dynpro for abap code to save the data in some z table. when i am clicking on submitt button, i am getting error "could not post data to".
    Can anybody tell me how to get rid of this error.
    Regards,
    Sagar

    Hello Sagar,
    You might not have mapped the adobe form fields to your table properly.
    Regards,
    Chenna.

  • Web Dynpro ALV grid sub totals

    Hi,
    I have managed to get totals working with web dynpro ALV using code like this :
      DATA: lr_field TYPE REF TO cl_salv_wd_field.
    For total calculations...
      lo_value->if_salv_wd_std_functions~set_aggregation_allowed( abap_true ).
      lr_field = lo_value->if_salv_wd_field_settings~get_field( 'N_OF_DLRS' ).
      lr_field->if_salv_wd_aggr~create_aggr_rule( aggregation_type = if_salv_wd_c_aggregation=>aggrtype_total ).
    Please can someone advise how i can do subtotals also.  Thanks
    Edited by: Samir Vora on Jul 15, 2009 12:40 PM

    Hi,
    For creating subtotals, you can have a look at following article:
    [Tutorial for Creation Subtotals using ALV|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20abap/tutorial%20for%20creating%20totals%20and%20subtotals%20using%20alv.pdf].
    Hope this helps.
    Regards
    Manas Dua

  • Web Dynpro Callable Object :"Cannot read callable object description "

    Hi All,
    I'm getting the following error:
    "Cannot read callable object description from component"
    and also "Cannot read callable object description from component" in two different Web Dynpros.
    The code in the Web Dynpros is similar:
    try
             IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
             WebDynproResourceAccessor resourceAccessor = new WebDynproResourceAccessor(textAccessor);
             //ITechnicalDescription techDesc = TechnicalDescriptionFactory.newTechnicalDescription("FRESH_PARAMS","Fresh_Parameters To Be Called",resourceAccessor,locale);
              ITechnicalDescription techDesc = TechnicalDescriptionFactory.newTechnicalDescription("FRESH_PARAMS","Fresh",resourceAccessor,locale);
             //Pre-Existing Structure for Input
             IStructureInfo input = techDesc.getInputStructureInfo();
             IAttributeInfo firstName = input.addAttribute("firstName",IAttributeInfo.BASE_STRING);
              IAttributeInfo lastName = input.addAttribute("lastName",IAttributeInfo.BASE_STRING);
              IAttributeInfo phoneNum = input.addAttribute("phoneNum",IAttributeInfo.BASE_STRING);
              IAttributeInfo Place = input.addAttribute("Place",IAttributeInfo.BASE_STRING);
              IAttributeInfo Email = input.addAttribute("Email",IAttributeInfo.BASE_STRING);
              IAttributeInfo Company = input.addAttribute("Company",IAttributeInfo.BASE_STRING);
              //Setting multiplicity
              firstName.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              lastName.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              phoneNum.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              Place.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              Email.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              Company.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              //Pre-Existing Structure for Output
              IStructureInfo output = techDesc.getOutputStructureInfo();
              IStructureInfo userStruct1 = output.addStructure("userStruct1");
              userStruct1.addAttribute("firstName",IAttributeInfo.BASE_STRING);
              userStruct1.addAttribute("lastName",IAttributeInfo.BASE_STRING);
              IStructureInfo userStruct2 = output.addStructure("userStruct2");
              userStruct2.addAttribute("phoneNum",IAttributeInfo.BASE_STRING);
              userStruct2.addAttribute("Place",IAttributeInfo.BASE_STRING);
              userStruct2.addAttribute("Email",IAttributeInfo.BASE_STRING);
              userStruct2.addAttribute("Company",IAttributeInfo.BASE_STRING);
              return techDesc;
        catch (InvocationException ex)
             ex.printStackTrace();
             return null;
    Can someone tell me where I'm going wrong.
    Thanks
    Srikant

    Hi Zornista Yankulova
    I'm getting  this error:
    " Cannot read callable object description from component: Failed to create delegate for custom controller com.infosys.creator.wdpco.COGetDocTypeInterface. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)"
    Where the places i can go wrong??
    Please let me know.
    My code is like this?
    public com.sap.caf.eu.gp.co.api.ITechnicalDescription getDescription( java.util.Locale locale )
        //@@begin getDescription()
        try
             IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
             WebDynproResourceAccessor resourceAccessor = new WebDynproResourceAccessor(textAccessor);
             //ITechnicalDescription techDesc = TechnicalDescriptionFactory.newTechnicalDescription("FRESH_PARAMS","Fresh_Parameters To Be Called",resourceAccessor,locale);
              ITechnicalDescription techDesc = TechnicalDescriptionFactory.newTechnicalDescription("FRESH_PARAMS","Fresh",resourceAccessor,locale);
             //Pre-Existing Structure for Input
             IStructureInfo input = techDesc.getInputStructureInfo();
             IAttributeInfo firstName = input.addAttribute("firstName",IAttributeInfo.BASE_STRING);
              IAttributeInfo lastName = input.addAttribute("lastName",IAttributeInfo.BASE_STRING);
              IAttributeInfo phoneNum = input.addAttribute("phoneNum",IAttributeInfo.BASE_STRING);
              IAttributeInfo Place = input.addAttribute("Place",IAttributeInfo.BASE_STRING);
              IAttributeInfo Email = input.addAttribute("Email",IAttributeInfo.BASE_STRING);
              IAttributeInfo Company = input.addAttribute("Company",IAttributeInfo.BASE_STRING);
              //Setting multiplicity
              firstName.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              lastName.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              phoneNum.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              Place.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              Email.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              Company.setMultiplicity(IAttributeInfo.MULITIPLICITY_1_1);
              //Pre-Existing Structure for Output
              IStructureInfo output = techDesc.getOutputStructureInfo();
              IStructureInfo userStruct1 = output.addStructure("userStruct1");
              userStruct1.addAttribute("firstName",IAttributeInfo.BASE_STRING);
              userStruct1.addAttribute("lastName",IAttributeInfo.BASE_STRING);
              IStructureInfo userStruct2 = output.addStructure("userStruct2");
              userStruct2.addAttribute("phoneNum",IAttributeInfo.BASE_STRING);
              userStruct2.addAttribute("Place",IAttributeInfo.BASE_STRING);
              userStruct2.addAttribute("Email",IAttributeInfo.BASE_STRING);
              userStruct2.addAttribute("Company",IAttributeInfo.BASE_STRING);
              return techDesc;
        catch (InvocationException ex)
             ex.printStackTrace();
             return null;
        //@@end
      //@@begin javadoc:execute()
      /** Declared method. */
      //@@end
      public void execute( com.sap.caf.eu.gp.co.api.IExecutionContext executionContext )
        //@@begin execute()
        try
              IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
              WebDynproResourceAccessor resourceAccessor = new WebDynproResourceAccessor(textAccessor);
              this.executionContext = executionContext;
              //Input
              IStructure input = executionContext.getInputStructure();
              String firstName = (String)input.getAttribute("firstName");
              String lastName = (String)input.getAttribute("lastName");
              String phoneNum = (String)input.getAttribute("phoneNum");
              String Email= (String)input.getAttribute("Email");
              String Place = (String)input.getAttribute("Place");
              String Company = (String)input.getAttribute("Company");
              wdContext.nodeInput().currentInputElement().setFirstName(firstName);
              wdContext.nodeInput().currentInputElement().setLastName(lastName);
              wdContext.nodeInput().currentInputElement().setPhoneNum(phoneNum);
              wdContext.nodeInput().currentInputElement().setEmail(Email);
              wdContext.nodeInput().currentInputElement().setPlace(Place);
              wdContext.nodeInput().currentInputElement().setCompany(Company);
              //Output
              IStructure output = executionContext.getOutputStructure();
              String f = wdContext.nodeInput().currentInputElement().getFirstName();
              String l = wdContext.nodeInput().currentInputElement().getLastName();
              String pn = wdContext.nodeInput().currentInputElement().getPhoneNum();
              String e = wdContext.nodeInput().currentInputElement().getEmail();
              String p = wdContext.nodeInput().currentInputElement().getPlace();
              String c = wdContext.nodeInput().currentInputElement().getCompany();
              output.setAttributeValue("firstName",f);
              output.setAttributeValue("lastName",l);
              output.setAttributeValue("phoneNum",pn);
              output.setAttributeValue("Email",e);
              output.setAttributeValue("Place",p);
              output.setAttributeValue("Company",c);
        catch(Exception ex)
             ex.printStackTrace();
        //@@end
      //@@begin javadoc:complete()
      /** Declared method. */
      //@@end
      public void complete( )
        //@@begin complete()
        try
              IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
                        WebDynproResourceAccessor resourceAccessor = new WebDynproResourceAccessor(textAccessor);
              IStructure output = executionContext.getOutputStructure();
              IStructure user1 = output.addStructure("userStruct1");
              IStructure user2 = output.addStructure("userStruct2");
              String f = wdContext.nodeInput().currentInputElement().getFirstName();
                        String l = wdContext.nodeInput().currentInputElement().getLastName();
                        String pn = wdContext.nodeInput().currentInputElement().getPhoneNum();
                        String e = wdContext.nodeInput().currentInputElement().getEmail();
                        String p = wdContext.nodeInput().currentInputElement().getPlace();
                        String c = wdContext.nodeInput().currentInputElement().getCompany();
              user1.setAttributeValue("firstName",f);
              user1.setAttributeValue("lastName",l);
              user2.setAttributeValue("phoneNum",pn);
              user2.setAttributeValue("Email",e);
              user2.setAttributeValue("Place",p);
              user2.setAttributeValue("Company",c);
              executionContext.addResultState("Success");
              executionContext.processingComplete();
        catch(InvocationException e)
             e.printStackTrace();
        catch(EngineException ex)
             ex.printStackTrace();
        //@@end
       * The following code section can be used for any Java code that is
       * not to be visible to other controllers/views or that contains constructs
       * currently not supported directly by Web Dynpro (such as inner classes or
       * member variables etc.). </p>
       * Note: The content of this section is in no way managed/controlled
       * by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      private IExecutionContext executionContext;
      //@@end
    Thanks
    Srikant

  • Accees Denied on a Web DynPro based iView

    Hello,
    I've created a Wen DynPro application which is working well. I am trying to embed it at the portal, for that I've created a System which is connected to the WAS and used the Web DynPro iView wizard in order to show this application.
    The problem is that when I Preview this iView the GUI loads but I am unable to open the combo boxes there for example. At the left side of the browser I receive an "Access Denied" error. What could be the problem here?

    Hi Roy
    Check this OSS Note - 779659 Changing Theme disables Drop-Down-By-Index
    I faced similar problem in Enterprise Portal after following this note I am able to see the values in drop down.
    Regards
    Senthil

  • Web Dynpro Code Wizard doesn't have context tab

    When doing web dynpro development and when clicking the Web Dynpro Code Wizard, I can't see the context tab.  It looks like this: [http://twitpic.com/z2q92].  In other SAP systems I have seen the wizard look like this, where it has two tabs one of which is the context tab: [http://twitpic.com/z2qgh].  As the context tab is very useful, I would like to know how to get it to display. 
    I have searched in the SE80 settings and can't find any option related to this.  I also searched the forums here and could not find any related posts.  We're using the 700 release level 13 (as seen in this screenshot: [http://twitpic.com/z2qkf]).  Is there something I can do to make this tab appear?  If we need to implement a note or a newer support pack, which one would it be?

    As you stated the system without the context tab is NetWeaver 7.0.  The context tab and the extra wizards were new features in NetWeaver 7.0 Enhancement Package 1.  Your system would have to be updated to this NetWeaver Enhancement Package level in order to have this functionality.

  • Web Dynpro Code Wizard in WDJ??

    Hi Guys,
    in Web Dnypro ABAP I frequently use the Code Wizard Tool to generate source code, call methods in controllers etc.. I guess you know what tool I mean..
    Is there such a thing for Web Dynpro Java as well?? Let me know!!
    Later, Johannes

    Hi,
    there is no code wizard in webdynpro Java. But You can use cntrl+space to see methods.
    Example you just type wd then press cntrl+space then you can see all the interfaces and classes starting from wd like  wdcontext,wdcomponentAPI etc. After that press dot(.) and see the methods under it.
    I hope it helps.
    Regards,
    Rohit

  • Experiences - Applying support packs to enhanced SAP Web Dynpro code

    Just thought I might highlight some experiences we've had with applying support packs for XSS. (Reply if you have your own experiences or a proven better way)
    Firstly, we are using Travel within XSS and have some significant developments to get this working globally.  Rightly or wrongly, we added our own DC's within the ESS application area and need to take this into account during support packs.
    As advised by SAP, we have not directly applied the support pack source code to the modified track, but created a separate SPXX track which we manually need to reaply all of our changes.  It dissapoints me that SAP don't recommend doing what the help.sap.com states, but there must be a reason for this (supposedly the meta data tool not yet available in NW04 will address the main reason).
    In order to get our custom DC's from the old track to the new; I needed to add all non-generated objects to an activity, connect SPXX-1 track to the SPXX track and transport all the way through to the approval stage to get it migrated (the connection can be terminated after this is done).  Again - Less than ideal, especially if you accidentally transport a generated file or miss a file.
    Then for all SAP Web Dynpro changes, we've documented all changes to the nth degree and it's at this point we manually reapply the changes - taking into account any SAP changes that may have occurred.
    I hope SAP promotes doing this a better way soon, but here's a process for anyone else needing to do this.
    Regards,
    Matt

    As you stated the system without the context tab is NetWeaver 7.0.  The context tab and the extra wizards were new features in NetWeaver 7.0 Enhancement Package 1.  Your system would have to be updated to this NetWeaver Enhancement Package level in order to have this functionality.

  • Source code for "Creating an Extended Web Dynpro Application"?

    Hello!
    I'm a rookie in the field of SAP Netweaver and I'm justing getting started with some tutorials. My problems with "Creating an Extended Web Dynpro Application" are to massive to be posted on this forum in this stage. What I want to have some help with is to find the source code for that tutorial so I can get som guidence from there.
    Following text is cut out of this page:
    http://help.sap.com/saphelp_nw70/helpdata/EN/5d/f42fef2eec724597a03b6bcc670c2c/frameset.htm
    Creating an Extended Web Dynpro Application
    You can download the Web Dynpro project for the current tutorial from the Software Developer Network SDN (http://sdn.sap.com -> Web Application Server -> Web Dynpro -> Sample Applications and Tutorials) in two versions: one skeleton version you can use for exercises and one final version (solution) for an immediate build, deployment and run on the Java engine of the SAP Web Application Server.
    How hard I try I can't find the specific source code on sdn.sap.com
    Does anyone have a clue where it is?
    Thanks!
    Best regards
    /Johan Månsson Lindströ

    Hi!
    I did what you said but I seem to miss the IDE folder. This is what it looks in my Explorer
    C: > Program Files > SAP > IDE > CE > eclipse > (no folder called "examples")
    I also did a search in this eclipse folder for "examples" but I did'nt find the example I'm looking for
    I am running a newer version of NWDS:
    SAP NetWeaver Developer Studio
    SAP NetWeaver 7.1 Composition Environment SP03 PAT0000
    Maybe that's why things don't look the same?

  • 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

Maybe you are looking for

  • Can not update creative cloud

    Can not update creative cloud, it keeps saying "Installer was unable to access a critical file/directory. Please try installing again.(Error code: 43) Contact Customer Support". Any ideas?

  • Do I need a newer Version

    I currently have DTS.NLM ZENWorks Transaction Server Version 2.02.06 January 31, 2005 I am getting abends on this. Is there a newer version and if so where can I get it. Thanks Scott pgator17

  • J2sdk 1.4.1 Subject.doAs() odd (?) behaviour.

    I browsed through the forums and it seems like several other people have noticed the same, but nobody has explained it. See threads: http://forum.java.sun.com/thread.jsp?forum=61&thread=302862 http://forum.java.sun.com/thread.jsp?forum=61&thread=3190

  • PLEASE HELP: How to format ext HD with Disk Utilities (FAT32 format)

    Hi, Please help. I need to format a 360 GB Lacie Hard-drive on FAT32 format. How can I do it with the Disk Utilities Application? I tried but only see Apple extended, extended (journaled), MS-dos, and others, but no FAT32. Also, if the Hard drive has

  • PC and OS switch, now Bridge previews are blurry

    Yesterday I (well, my son--not me!) moved my Photoshop CS4, Bridge, ACR, LR2 to a new PC. Operating system changed from XP to Windows7. Previews are blurry; I cleared cache, in Preferences, I've got Monitor Size Previews selected, Software Rendering