How to implement result states in custom web dynpro components

Hi all,
My callable objects are custom implemented -web dynpro Componenets
How am i to implement the result states in them so that i can use them to take logical decisions.?
There is decision dialog component in  Process Control Callable Object. It has Exit states. I need my component also to have exit states like that
Help me to implement this.
Points assured for help

Hi Shobhendra,
You can define the result states of your custom Web Dynpro callable object like this in the getDescription() method:
//add success result state
IGPCOResultStateInfo success =               technicalDescription.addResultState("Success");
success.setDescriptionKey("Success");
//add failure result state
IGPCOResultStateInfo failure =               technicalDescription.addResultState("Failed");
failure.setDescriptionKey("Failure");
And in the custom comelete() method (which will be called at the end of the execution of the WDP comp from GP) you can set the actual resultstate at runtime:
executionContext.setResultState("Success");
or
executionContext.setResultState("Failed");
The result states defined in the WDP callable object will appear in the the GP design time and you can set target for each result state.
For more info on how to implement the WDP callable object check the doc:
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59">Implementating Web Dynpro callable Object</a>
Please let me know if you need any further help.
Thanks,
Dipankar
[P.S. Award points for helpful answer]

Similar Messages

  • Posted a new wiki on "Developing custom Web Dynpro pplications using GRT"

    This article describes how to develop custom Web Dynpro Java ESS applications using Generic Reporting Tool (GRT) / Reporting Framework (RFW)
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=235966686

    Hi,
    Its an awesome WIKI, lots of inputs and a eye-opener which shows clearly how powerful FPM is and what we can do with existing components.
    Thanks for the Wiki.
    Regards
    Tushar Shinde

  • How to create a OTR Text in Web Dynpro ?

    Hi All,
    Please help, How to create a OTR Text in Web Dynpro ?
    Urgent.
    Thanks in advance.
    Kaleem.

    Hi Kaleemullah,
    To create OTR Text, T-Code is SOTR_EDIT. If you run this transaction then one screen will appear. There you can choose Long Text or Short Text based on your
    Text. You can choose language also. In Text field you can enter your text. You can put WDYV in your Object Type field. In Text block Length can be increased to 25 as it may be problem if language conversion of Text happens. You must fill your package field and save the OTR.
    I hope you can be able to create OTR Text now.
    Best Regards,
    bansidhar

  • How to change color of label in web dynpro?

    All,
    I was wondering how could be change the color of web dynpro tag label.
    I tried using html tag font in the text, but it does not work out.
    Does the label tag in webdynpro have a encode property, if so how can we set that to false.
    If there are any docs regarding the same please do forwrd me the docs
    thanks,
    Paul

    Hi,
    U can color the lable by applying the themes in webdynpro
    Go through this link.
    Make your WebDynpro application theme specific
    /people/lisha.peter/blog/2005/07/07/make-your-webdynpro-application-theme-specific
    Colourful webdynpro :
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/colourful webdynpro applications.pdf
    Download of Themes;
    Theme Editor files for SP13
    Hope this helps u
    Regards,
    Vijayakhanna Raman

  • How we can done background job in web dynpro abap

    Hi expert,
    my requriment is how i can set background job in web dynpro .
    regard's
    vikash

    The same way you do it in normal ABAP. There is nothing Web Dynpro ABAP specific about starting a background job.
    There are API Function modules that begin with the name JOB_*.  Have a look at the online help for samples:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d40543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d4d543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d67543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d74543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d8e543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096ce5543b11d1898e0000e8322d00/frameset.htm

  • 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)

  • Download/Upload of Web Dynpro Components

    Hi everyone,
    Does anybody know if there is a way to dowload the web dynpro components from a SAP system and upload into a diferent one, like smartforms and dynpro screens do?
    Thanks in advance,
    Raphael Xavier

    Hi Raphael,
    This feature is not currently in the standard system. However there is a beta version of a plugin for exporting and importing Web Dynpro ABAP components.You would have to use the SAPLink program (ZSAPLINK) to export and import objects. Please go through this link to download the necessary stuff.
    [http://code.google.com/p/saplink/|http://code.google.com/p/saplink/]
    For any problems while uploading these nuggets into SAP you can post your queries [here|www.saplink.org].  Also refer to Thomas Jung's comments in [here|How to install the SAPlink plugins;.
    Regards,
    Uday

  • JavaDoc with Web Dynpro Components and SS9

    Hi All,
         Has anyone been able to get custom JavaDoc linkages to work correctly in NDS when working with components?
         I know I can get it to work if I manually attach the source and the JavaDoc location in the Properties -> Java Build Path for each of the .jar files (in each project that uses the Web Dynpro components in question), but I feel this should carry over automatically if I configure this information in the included project.
         The good news is that the configuration stays with a using project even when choosing the "Refresh from DC settings" option, but when adding a used DC the first time isn't there some way to have this information automatically added?  This information is already configured at the project level for the used components.
         Any suggestions, or should I just grit my teeth and say everyone has to add in these values manually?
         Thanks,
            --Greg

    Hi Naddy,
    Check the standard tables that are being used in the application for display/change/create of data. If these tables have a "Customer Include", your first step should be to define the Customer Include Structure and define your new custom components in it (the ones that you need to show on the statndard view.)
    Step 2: Create and enhancement of the standard component in which the view is present. In this enhancement, update the context so that the new fields that are present in the standard table (due to Customer Include) become available in the Context.
    Step 3: Create enhancement of the view on which the field has to be included. Firstlyupdate context of view from context of controller. Now ur fields will be available in context of view. Also create context attributes that will control visibility, read-only etc of UI elements. Now enhance the layout of the view, create your custom fields and bind value/visibilty/read-only etc to the respective context attributes that you have created.
    Also write a post exit method for domodify and check the mode of the standard application (create/change/display). Accordingly set values of the read-only, visibility etc.
    Regards,
    Reema.

  • Problem with breakpoints in Web Dynpro components

    Hello experts,
    I have problems with breakpoints in methods of Web Dynpro components. Sometimes everything works as expected and a new window with the debugger comes up. Sometimes the breakpoints are ignored, and debugging is impossible. It even happens that a colleague can debug and I can't or vice versa.
    I am setting breakpoints with button "Set/Delete External Breakpoint", and the message always is "Breakpoint is set for user xxx". But sometimes when I display a method there is a warning that external debugging is not active. What does that mean and what is the reason for that?
    As adviced in the SAP help document "Debugging Web Dynpro ABAP Applications" I have enabled the new Front-End Editor and the new debugger, but still the problem exists. Does anybody experience similar problems or have an explanation for this?
    A second question concerns the different types of break points. My Web Dynpro component has an assistance class, and if I want to set a breakpoint there, I can choose between a session breakpoint and an external breakpoint. What exactly is the difference between these types? And here in the forum I sometimes read about internal breakpoints. Is this even a third type, or the same as session breakpoints?
    Thanks, Karsten

    Hi Kartsen.
    External Breakpoint -> can be started from outside the SAP GUI (e.g. WebDynpro)
    Session breakpoints are used if you start a programm or something like that in SAP GUI.
    I have the same problem ... sometimes he does not recocnize a new break point ... so I just reload the page and the break point works.
    If external debugging is not active, you habve to activate it in SE80 Utilities->External Breakpoints.
    Also make sure that in your Settings the correct debugging user is set:
    Utilities->Abap_Editor->Debugging.
    Cheers,
    Sascha

  • Field length change in Web Dynpro Components iView

    Hi,
    We are using SAP MDM Web Dynpro Components - Configuration Manager (NW7.3) to develop the UI. One of the issue while disply field is, Though field maintained in MDM has only 2 charaters UI that displays a full-screen-width field.
    I would like to display actual field length maintained in reposiroy for each field. Is it possible??
    Cheers,
    Rc

    This is closed.
    By mistake Raised Twice....I guess I need break

  • Deploying MDM Web Dynpro Components on NWCE 7.2 - /wdconfig not displayed

    Hi all -
    I'm trying to deploy the MDM Web Dynpro Components Framework  (the goal is to
    have NW CE connect to and 'see' the MDM repositories) and according to the URL
    http://help.sap.com/saphelpnwmdm71/helpdata/en/4a/8c20a0dc93203be10000000a42189b/frameset.htm,
    one of the steps is to run the MDM Web Dynpro Configuration Manager application
    (_http://<server>:<port>/mdm/wdconfig).  However, I get an error stating the page
    wasn't found (example: Error: Requested file /wdconfig does not exist).
    Looking further, I see that WD Framework needs to be configured as a pre-req.
    I'm in the JSPM and I see that MDM JAVA WD FRAMEWORK 7.1 7.11, MDM JAVA API Library
    and MDM Java Connector needs to be deployed (JAVA API and Connector are first).
    Under the 'Deployed Components' tab in JSPM, I see :
    >> sap.com/MDM_JAVA_API - 7.1
    sap.com/com.sap.mdm.tech.apireset
    sap.com/com.sap.mdm.tech.connector
    sap.com/com.sap.mdm.tech.mdm4j
    >> sap.com/MDM_JAVA_WD_FRAMEWORK - 710.711 (SP05)
    sap.com/tc/mdm/wdcomps/core/ear
    I deployed MDM_JAVA_API first and have restarted the NWCE system.
    I don't see any error in the logs and the URL for the /wdconfig still does not exist.
    Is there something that I have to deploy?  Can someone point me to a document other than
    the help.sap.com that talks about CE 7.2 and MDM 7.1 configurations?  I do have the master
    and install guide for both. 
    Please advise!
    Thanks!
    -s

    Update:
    Hi - thanks for the followup.
    I have the correct SCAs.  I have done the following:
    UNDEPLOY both components
    Restarted the services
    Deployed the JAVA_API first
    Restart services
    Deployed the Framework
    Restarted the services
    Yes, even though the docs said I can deploy them in order, I think there may have been
    a few hitches that the error logs didn't catch.
    Specifically, when I re-deployed the FRAMEWORK 7.1 7.11, there were now 19 components
    listed instead of one.
    I am able to go to ~mdm/wdconfig now.
    However, I get a new message:
    "You are not authorized to use MDM Web Dynpro Components Configuration Manager".
    Even though I'm the Administrator? 
    I did see in the docs that I need to create a Project first and that the userID that logs in
    should exist in UME and the MDM system.
    (_http://help.sap.com/saphelp_nwmdm71/helpdata/en/4a/41a40c343f2ab1e10000000a42189c/content.htm)
    I am looking into that now.  I think I will close this thread and start a new one
    specifically for that.
    Thanks!
    -s

  • Cannot make entry in used web dynpro components

    Hi,
    I have added public part in Used DCs
    But when i try to add the used Web Dynpro Component , i dont see the DC i have added when i click browse button
    what dependencies should be given while adding the public part in Used DCs ? i have given only default ie build time
    thanks.

    Hi,
    Follow this way, hope it will helps you
    1:Add Component of childDC to PublicPart and build it (RightClick on DC>DevelopmentComponent>Biuld)
    2: Expand parentDC>DC MetaData>DC Definition>RightClick on UsedDcs>Add used DC>Select childDC>Finish.
    Build parentDC as above (not Rebuild)
    3:Now expand ParentComponent>RightClick on Used Web Dynpro Components>Add UsedComponent> give name and choose browse >select childDC component> Ok>Finish
    Regards
    LN

  • ESS-where can I find FcLinks & FcNavigations Web Dynpro Components ?

    Hi,
    I am working on ESS BP.
    Can anyone, let me know where can I find the FcLinks & FcNavigations web dynpro components. I mean in whcih DCs in ESS package, I can find this.
    I could find these in used web dynpro components, in 'Release Working Time'  of 'Working Time'. But, couldn't able to locate them in which DC they are present.
    Thanks & Regards,
    Raj

    Hi ,
    It s a part of FPM framework. Its available in sap.com/pcui_gp~xssutils.
    Its a PCUI_GP component, and is not editable. In case you are looking to edit the links, you can configure them thru SPRO in the backend.
    Regards
    Bharathwaj

  • How-to add a custom Web Dynpro iView to the MSS Employee Profile

    Hello everybody,
    i have created a small How-to guide of how to add a custom iView/Web Dynpro application to the standard MSS Employee Profile for ECC 6.0.
    The How-to guide can be found <a href="https://wiki.sdn.sap.com/wiki/display/profile/2007/04/15/How-toaddacustomWebDynproiViewtotheMSSEmployee+Profile">here</a>
    I hope its of any value.
    cheers,
    Markus

    Hello Luca,
    unfortunatelly it wont work. A WDA Application does not have access to the Floorplan Manager for XSS Applications. So until SAP develop an interface, you have to stick for such a task to WDJ.
    regards,
    Markus

  • How to create result state target in DC

    Hi,
    Currently i am able to create the result state for the callable object in Development Component.. But after adding the callable object into Guided Procedure, I'm not able to define the Target for the result state as there is no dropdown list control for me to select. (e.g. if success, target to Action A.. if failure, target to Action B)
    May i know how can i code the target state in development component, so that when i add the callable object i am able to define the target..
    Thanks,
    Cindy

    Hi Cindy;
    Could you explain your problem in detail.
    If you want to bring in a result in a webdynpro CO add the follwing codes in the getdescription Method in the interface controller.
    IGPCOResultStateInfo resultStateSuccess     = technicalDescription.addResultState("RESULT_NAME_FAILURE");
              resultStateSuccess.setNameKey("FAILURE_KEY");
              resultStateSuccess.setDescriptionKey("FAILURE_DESCRIPTION_KEY");
    And the following code in the complete method in the component controller
    IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
              IContextElement contextElement = wdContext.currentContextElement();
              IGPExecutionContext executionContext = contextElement.getExecutionContext();
              try
              executionContext.setResultState("Failure");
                             executionContext.processingComplete();
              catch(GPInvocationException e)
                   String localizedMessage= textAccessor.getText("ERROR_SETTING_PARAMETERS");
                               wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
              catch(GPEngineException e)
              String localizedMessage = textAccessor.getText("INTERNAL_ERROR");
    I hope this will solve your problem.
    Kindly let us know the result
    Regards
    Sivaprasath

Maybe you are looking for

  • Views dropdown on list view web part doesn't work

    Thank you very much beforehand for any help with this issue, I really can't figure out what is going on. So, I have big list (36125 items and about 25 public views there) and view selector on list view web part just stopped respond there couple of da

  • Bonjour for windows: "The printer you have selected is no longer available"

    Whenever I go to try and set up sharing my imacs printer with wifes windows computer, the bonjour for windows app at first sees my two printers, but as I select them I then get a message stating that "the bonjour printer you have selected is no longe

  • Document Level JavaScript to turn off caching for a PDF?

    I have been trying to find a way to ensure that a fillable PDF leaves no trace of itself on a computer that was used to open it. For example, if a user acceses a fillable PDF via browser or Reader, once they are done and have closed the browser or Re

  • Computer not recognizing quicktime

    Although I have found a few threads with the same problem, I have yet found a solution that works for my computer. I have downloaded the stand alone quicktime.....and that didn't work, I have tried uninstalling itunes and reinstalling....that didn't

  • IMac Frozen randomly for no obvious reason

    My iMac has been acting up weird since two accidental power-off 2 weeks ago. The power off was due to a plug fail at my old house and it happened 2 times in 10 minutes. I eventually fixed the plug and made sure that never happened again. But the 2nd