Modification in standard webdynpro abap application

Hi
In my portal for some of my ESS applications are used in webdynpro abap for example travel expense and travel request now i have a requirement like i have to make the create travel expense button disable based on the condition llike i only he has to click create travel expense after creating travel request .So can anybody let us know how to do modofications in the standard webdynpro abap application.
Thanks in advance.

Hi
For making changes in the standard web dynpro compoenent, you need to create and implement enhancement.
For this you can find many links in SDN  on how to create enhancement.
Now coming to your specific requirement.
Here what you can do is open the standard component.
1. press ctrl +F4, It will open a popup there give some name to your enhancement.and desicrption . then press Enter.
     Assign it to teh package you want.
2. Go to the view where you want to disable the button, There go to the layout and find the ID of the button. say it is 'BTN'.
3. Now go to methods tab, scroll right and selct post exit method of wddomodifyview emthod.
4. there write the code with the condition you want.
if  flag  eq 'yes'.
data  lv_btn type ref to cl_wd_button.
lv_btn ?= view->get_element( 'BTN' ).
lv_btn->set_enabled( abap_false ).
endif.
5. one last thing is you can create a attribute named flag of type string and set its value to 'yes' when you want the button to enable.
Thanks
Sarbjeet Singh

Similar Messages

  • Attach File in WebDynpro ABAP Application

    Hi everyone
    I need your help to attach files in custom WebDynpro ABAP application. Kindly share if there is any sample standard WebDynpro ABAP application or share some sample code.
    Best Regards
    Iftikhar Ali

    This question has been answered in following link.
    [http://forums.sdn.sap.com/thread.jspa?forumID=249&threadID=2137285]
    Regards
    Iftikhar Ali

  • Apply custom themes to WebDynpro ABAP application in Portal

    Hi,
    We have just upgraded the E-Recruitment to EHP4. We have two instances of ECC in which one acts as HR instance and the other one for E-Recruitmet. We have created custom themes for portal and need to apply the same for the WebDynpro ABAP applications for E-REcruitment. I have downloaded the theme and from portal and uploaded the same in MIME folder using SE80 transaction. I have also added the parameter sap-cssurl=/sap/public/themes/<my custom theme folder name>.
    Also tried giving the url in application parameter as
    SAP-EP-THEMEROOT=http://<hostname>/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/customer/<custom theme>
    Is there any other way to apply themes for WD ABAP applications. I dont want to customize the standard applications and just want to apply the themes.
    Any suggession on this is highly appreciated.
    Kind Regards,
    Vivek.

    Hi,
    to create theme for webdynpro abap application, use Eclipse Plugin.  Please remeber to check the version of theme file before using theme.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10d5ef40-465e-2c10-9ca9-f548bfc3f236
    setup custom theme for webdynpro abap application.
    FEATURED EVENTS
    Regards
    Baby

  • F4 help issue with Webdynpro ABAP application

    Hi,
    I am facing a strange issue with the F4 help in my webdynpro abap application.
    I have few fields for Purchase Order and Line item on the screen and they have corresponding F4 helps associated with them.
    When i select for F4 help, sometimes the screen simply blanks out and a white screen is displayed. When i refresh the screen and try the same scenario again, i can see the value list correctly.
    This issue occurs very randomly with no specific pattern. If anyone else has faced this issue earlier, kindly let me know how to get rid of this issue.
    Any pointers to resolve this issue will be helpful.
    Note: I am using SAP version 702 SP09.
    Thanks,
    Ramanath

    Hi,
    we cannot help you from offline, you need to check the standard procedures like
    SICF->is your application node is active.
    FQDN->check fully qualified name is configured
    You can also try to execute standard SAP application, if sap application also has problem running then you may have to get the help of BASiS people to look into that and raise a support ticket.
    If sap applications are running and your custom developed applications are not running then look into this application if there is any URL parameters need to supply etc.

  • Personalization option for Standard Webdynpro ABAP iView

    Hello Experts,
    We are stuck with an issue on personalizing a Webdynpro ABAP application.  Personalization option is available for Webdynpro Java iViews, when we preview the iView from the Administrator's login and do a Control + Right click.  This will provide a dialog box where we can personalize the iView.  We can do personalization on the existing fields (hiding the fields, changing the text etc).  But this is not happening with Webdynpro ABAP iView. 
    Scenario:
    We have a Standard Webdynpro ABAP iView which has 3 rows of links (Row1 - 5 links, Row2 - 2 links and Row3 - 2 links).  The client wants only one link in Row1, one link in Row2 and one in Row3.  I tried hiding the other links through Personalization.  It is not working as am able to see the changes only with the Admin ID.  When I assign this iView to a different user and tried viewing the iView its showing all the links. 
    But the strange thing is that, if I hide the complete row (eg. Row2 both the links are hidden),  then am able to see the complete row being hidden with both the Admin ID and also the end user's ID.  So not sure where am I missing.
    Please refer the link for the Personalization option available for Webdynpro ABAP iView.
    [http://help.sap.com/saphelp_nw04s/helpdata/en/46/98ce61f37d19ace10000000a11466f/frameset.htm|http://help.sap.com/saphelp_nw04s/helpdata/en/46/98ce61f37d19ace10000000a11466f/frameset.htm]
    Any help in this regard will be greatly appreciated.  Thanks in advance.
    Cheers
    Madhu

    Hi Volker,
       Thanks for your reply.
       I think, I have set the properties of the iView right. I have tried with all the options for the property "Launch in new window" property of the iView but it didn't work.
       "By home page framework" I mean that the link of the iView in portal has been created using the "Home page framework" i.e. from "SPRO" transaction in the backend.
       Please let me know if you need any other input from me.
    Regards
    Mukesh

  • How to Pass personal number(pernr) to the ESS Webdynpro ABAP Application

    Hi,
    How to pass personal number of employee to the standard ESS webdynpro ABAP application as application parameter of iview.
    Thanks
    Srikanth

    Hi
    For WebDynpro application in iView there is a property to set Parameter for WebDynpro application.
    Handel these passed parameters in Default plug of Interface Controller.
    Note string passed as parameter in iview is case sensitive.
    Try this code to get URl of Deployed application
    String appURL = null;
    try {
         WDDeployableObjectPart currentAppPart =wdThis
                                  .wdGetAPI()
                                  .getComponent()
                                  .getApplication()
                                  .getDeployableObjectPart();
    appURL = WDURLGenerator.getApplicationURL(currentAppPart);
    } catch (final WDURLException ex) {
    wdComponentAPI.getMessageManager().reportException(
                             new WDNonFatalException(ex),
                             false);
    Mandeep Virk

  • Error in opening webdynpro abap application

    hi All,
    I am facing below issue in opening webdynpro abap application, this is first WDA application in production system, please help me in resolving this issue.
    ============================================================================
    Error when processing your request
    What has happened?
    The URL http://grp.mysap.pg.com:9500/sap/bc/webdynpro/sap/zgpuvstapp/~ucfLOADING was not called due to an error.
    Note
    The following error text was processed in the system GRP : A request for server adln5412 has been sent to server adln5411; see Note 1364846
    The error occurred on the application server adln5411_GRP_10 and in the work process 3 .
    The termination type was: ERROR_MESSAGE_STATE
    The ABAP call stack was:
    Method: PREPROCESS_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system GRP in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server adln5411_GRP_10 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 3 in transaction ST11 on the application server adln5411_GRP_10 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 400 -u: BS6402 -l: E -s: GRP -i: adln5411_GRP_10 -w: 3 -d: 20100929 -t: 140306 -v: ERROR_MESSAGE_STATE -e: A request for server adln5412 has been sent to server adln5411; see Note 1364846
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    ============================================================================
    Edited by: brahmanandam ausali on Sep 30, 2010 4:11 AM

    Hi Shibli,
    I'm facing the same issue with the POWL only if called from a part of the network outside our country (Italy) so I think it would be a network configuration problem as you suppose. Can you explain us the configuration of the balancer and dispatcher to solve the issue?
    Thanks
    Mattia

  • Calling Portal iView from a WebdynPro ABAP application

    Hi ,
    I have a requirement where I need to call an iView in my portal from the Webdynpro application also existing in the portal.
    Can anyone provide me the method with source code( if possible ) to call an iView existing in the portal from the WebDynPro ABAP application.
    Best Regards
    Sid

    Hi Siddharth,
    Well, I think you can go for Portal Navigation concept.
    Please check the required source code in WDR_TEST_PORTAL_NAV Web Dynpro component. That will illustrate both Page based Navigation and Object based Navigation.
    Hope that should solve your problem.
    Regards
    <i><b>Raja Sekhar</b></i>

  • How to Call the RFC in Webdynpro abap application

    Dear Experts,
    Good Evening to all...
    I have to add two numbers using RFC in webdynpro abap application. If we give the numbers in the input screen then the RFC should add it and give it in the output screen. This is the application for that I have created the RFC.
    But the problem is i don't know how to call the RFC in that Webdynpro abap application and how to link the input view and output view with that RFC...? I am new to Webdynpro abap. Please kindly help me on this... I am struggled here... I need your help in this....
    Thank You.

    Hi Jaga,
    You asked the same question again.
    Without closing the [previous one|Re: Where SAP store the uploaded files?].
    I think Abhi has answered your question.
    If not please elaborate on the problem.
    The solution btw is to create a Service Call.
    Sumit

  • Error in webdynpro(ABAP) application development

    Hi,
           I am very new in webdynpro (ABAP) application development. I want to create some application based on webdynpro ABAP for few Z- Report. What is the prerequisite to develop a application based  on webdynpro( ABAP ) .Because when I am trying to create application in se80 and giving the related functional model name in wedynpro component field , I am getting the error like Web Dynpro Comp./Intf. ZOS_xxx_FM does not exist. How to proceed further?
    Thanks,
    Kundan

    Hi,
    Can you be more clear...
    Please refer this link  for Personalization-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/22/719f42f2ff7e5fe10000000a155106/content.htm
    Regards,
    Lekha.

  • Call WebDynpro Abap application with trasaction

    Hello Experts,
    can I call my WebDynpro Abap application with a trasaction ?
    Regards
    sas

    hi,
    Go through this link
    [****************/Tutorials/WebDynproABAP/TransactionCode/Create.htm]
    Hope it will help you.
    Regards,
    Rohit

  • Getting prob while creating view in webdynpro ABAP application

    Hi Guys,
    I am facing a problem while creating a view for webdynpro ABAP application. It is giving an error as "ICF service "/sap/public/bc/WebDynpro/ViewDesigner" inactive".
    can anybody let me know how to solve this problem.
                   Thanks In Advance
    Regards
    Ravikumar

    I think check Internet explorer Tools ->Internet Options ->Connections.>Lan Connections> if the proxy or anyting checkbox is clicked coz it doesn't work with Internet on .
    Please reward if useful.

  • WebDynpro ABAP application issue from Portal after ECC 6 upgrade to SP14

    Hi,
       We have recently upgraded the Kernel, ABAP and Java stack of ECC 6.0 system to SP14. After the upgrade most of the WebDynpro ABAP applications doesn't load and just flickers when run from Portal as a WebDynpro iView, but they run perfectly fine when accessed directly using URL. These were running fine prior to the upgrade. Can someone suggest what can be going wrong.
       Will reward points for helpful answer.
    Regards
    Mukesh

    Hi Mukesh,
    As Gajendra said, restarting the service in SICF sometimes works for us, but not always.  We have also had to deactivate the entire Webdynpro node, and then reactivate it and all of the services below it.
    Obviously something changed in the SP, given that we now have to do this every time we create a new WDA application.
    Cheers,
    John

  • Webdynpro ABAP application on MSS Overview screen

    Hi Guru's,
    We are having a customized Overview screen in MSS which is all Webdynpro Java application.I am trying to add Webdynpro ABAP custom application link on the overview page.I created a IVEW ,then PAGE, assigned to Workset and then to role .
    Copied the PCD location and assigned in the Resources of Homepage framework.
    When I do preview it is fine but when I run it through Overview..I am getting 404 page error.
    Again its webdynpro ABAP application in the Overview page..What are the steps for it ..I created Area,Subarea ,Services and assigned Resources which has the PCD location with ROLES:// ...
    Also in Services I mentioned it as WEBDYNPRO ABAP application.
    Please suggest me ay steps I may be missing.
    Thanks,
    ST

    Also I was comparing the links through HTTP WATCH that was trying to read:
    The first one is from direct page assignment under ROLE in Portal:
    http://DEV SYSTEM/sap/bc/webdynpro/SAP/zhr_associate_form/;sap-ext-sid=bNrjr3FDhSA9HxracqUNhQ9H0Rpx1m12qVv5aAWcHbEw
    The Second one is referred under overview from Homepage Framework:
    http://DEV SYSTEM/sap/bc/webdynpro/sap.com/pcui_gp~xssutils/XssMenuArea/;sap-ext-sid=bNrjr3FDhSA9HxracqUNhQE37DBLWEEK_COBmuSIHeeA
    I am for sure missing something ..can you please suggest.
    Thanks,
    ST

  • How to Integrate HCM Process with Webdynpro ABAP Application

    hi,
    I have issue regarding how to integrate HCM Process with Webdynpro abap application.
    I had created one HCM process for transfer using Hrasr_dt T code and also created form scenario and work flow.
    How to Integrate HCM Process with Webdynpro ABAP Application
    by
    Parthasarathi

    hi suhasini,
    Thanks for your reply,
    Can u explain in detail.. and Give any documents or links...
    by
    Parthasarathi

Maybe you are looking for