Get URL parameters of Web Dynpro Application using Floor plan manager

Hi Experts,
I have a web dynpro component using FPM. The default window of the application is FPM_WINDOW which is an interface view of component of FPM framework. so I cannot get the URL parameters in handledefault of a normal web dynpro app which is not using FPM. How do I get URL parameters in this case through FPM? Thanks!

Hi,
I guess you might have created the application under FPM_OIF_COMPONENT/FPM_GAF_COMPONENT. For that add the pramaters to the PARAMTERS tab of teh application.
Now, you can use
data lo fpm type ref to if_fpm.
lo_fpm = cl_fpm=> get_instance( ).
  CALL METHOD lo_fpm->mo_app_parameter->get_value
    EXPORTING
      iv_key   = 'PERNR'            "Application param name
    IMPORTING
      ev_value = lv_pernr.
Regards,
Lekha.

Similar Messages

  • Getting URL parameter in Web Dynpro when using iViews in netweaver portal

    Hello Everybody,
    I'm having the following issue:
    I created a WD-Application which would be accessed directly via URL with some parameters.
    Getting these parameters works fine using the logic from the following link:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/2233b60c21072ce10000000a155369/frameset.htm
    Now I want to implement my WD-Application into the netweaver portal.
    My colleagues customized it that far, so that I can access the WD via a portal-link.
    The only thing is, that the logic getting the URL parameters from above does not seem to work in this context any more.
    Do I need different coding getting the parameters from the portal URL or is this a matter of missing "portal-customizing"?
    Any ideas in this matter are kindly appreciated.
    Thanks in advance and regards,
    Marc

    Hi Marc,
    I'm doing the same and it works fine.
    Here is my coding:
      DATA: lt_url_parameters TYPE tihttpnvp.
      data: ls_url_parameters type line of tihttpnvp.
    * Read URL Parameters
      wdevent->get_data( EXPORTING name  = if_wd_application=>all_url_parameters
                         IMPORTING value  = lt_url_parameters ).
      read table lt_url_parameters into ls_url_parameters with key name = 'MODE'.
      if sy-subrc = 0.
        case ls_url_parameters-value.
          when '1'.
          when '2'.
       endcase.
      endif.
    Check the following:
    1.) are you using the event handler "HANDLEDEFAULT" of your WINDOW to get the url parameters?!
    2.) in the portal iview with your wd application, the property "Application Parameters" has to be filled (in my example:  mode=1)
    If you need the value in the init method of your first view, you can store the parameter in an attribute of your component controler and read it in your view.
    Regards,
    Andreas
    Edited by: Andreas Leis on Jul 14, 2009 11:05 AM

  • Web dynpro application using workflow

    Hi all,
    I have developed a web dynpro application and attached that to the portal, so the user will login into the portal and will access the application. We have a new requirement now, when a user enters the data and hit save button on the web dynpro application, the workflow should trigger and should send the filled out (everything filled in) web dynpro application to his superior, the supervisor should be able to click on a link (which he should get through workflow) and should get the web dynpro application filled in. I am not sure how can I do this, so can you please guide me through.
    Thanks,
    Raj

    Hi Raj,
    could I suggest perhaps that you have a good search of SCN - there have been multiple posts about this sort of thing in the past.
    for example : the wiki article
    [Integrating WebDynpro ABAP applications with UWL for workflow in Portal|http://wiki.sdn.sap.com/wiki/display/WDABAP/IntegratingWebDynproABAPapplicationswithUWLforworkflowin+Portal]
    is it perhaps that you do not use the UWL at your site? Or do you want to to send an email to the manager with a link directly to the approval application? The last case is one that I've come across many times before - it just means that you'll need to generate an approval task that is ended by a wf event and send an email to the manager with a URL parameter in the launch of the WDA application so that the app can pick up the details required to display and raise the WF event to complete the approval wf task.
    There are all sorts of ways of persisting the information in the form so that the manager can see it in the approval. You can use the workflow container, you can use a db table, you could even use a shared memory area (not that I'd recommend this for this usage). But this is more a case of how to persist information in a workflow and probably a better question (search first, it's probably been answered already) for the WF forum and not the WDA forum.
    Good luck in designing and building your application. Perhaps when you are done you could write a blog about your experience and further share how to do this with others.
    Cheers,
    Chris

  • How to get User Id in Web dynpro application

    Hi Experts,
    I am running web dynpro application with authentication checkbox set. I want to display user id of the user in my application. I am using following code in Init method of component controller.
    IWDClientUser wdUser = WDClientUser.getCurrentUser();
    WdContext.currentContextElement().setUserName           (wdUser.getClientUserID());
    Here I am getting some integer value as userId.
    I am not using Portals, so solutions suggested for portal are not useful for me .
    Is there any way to get this uset id.
    Thanks in advance

    hi
    try this piece of code
              IWDClientUser wdUser = WDClientUser.getCurrentUser();
              IUser user = wdUser.getSAPUser();
              if (user != null)
                        IUserAccount[] acct = user.getUserAccounts();
                        if(acct[0] != null)
                                  String strUserid = acct[0].getLogonUid();
    wdContext.currentZtms_Fm_Regupdate_InputElement().setAssoid(new String(strUserid));
    Note: Defining the IUser will show an error. To resolve this, within the properties of
    the project, choose Java build path -> Libraries -> Add external jars ->
    com.sap.securities -> lib -> com.sap.security.api. Open this file and retype the code.

  • Web dynpro application using java

    Hi Experts,
    I am new to netweaver . I developed one web dynpro application in  NWDI  but input fields are disabled on screen .
    please suggest reason why it is happend.
    Thanks,
    Santosh.

    Hi Santosh,
    Once you create the input fields in NWDS you need to bind input field with context attribute to enable in the display screen.
    Refer to this Re: Calendar UI element in NWDS and also refer to Tutorials & Samples for Web Dynpro Java [original link is broken]
    Hope it helps
    Regards
    Arun
    Edited by: Arun Jaiswal on May 4, 2010 12:19 PM

  • How to make changes to stdandard web Dynpro applications used in ESS

    Hi all
          I have uploaded the standard ESS Business Package,
    now the requirement is to change some features in the web dynpro application in it.How do I go about it?
    Regards
    Mansoor

    Even though those are tow different tabs, but both are under one view controller.
    So create a node and pass the data.. so data will be available to both tabs.
    View controller is local controller
    component controller is global controller.
    if you want to access the node outside your view then declare the node in component controller.
    Regards
    Srinvias

  • Add text view using floor Plan Manager

    I have a very basic knowledeg of web dynpro ABAP. I'm working with the Floor Plan Manager for the first time. I have a requirement to add the 2 text view in the Sales order so that the user can maintain the comments and those will get saved along with the date time and the user id. Also the next time user can see all the previous comments in the one text view and add his own comments in the other text view. Can any body please help how to achieve this using the Floor Plan Manager?
    Thanks in advance!

    Hello Nilesh,
    Do you want to create a new FPM application or do you want to enhance the existing application?
    If you are planning for new FPM application then you need to create an webdynpro component and implement the IF_FPM_UI_BUILDING_BLOCK interface. And then in the component's view you can create the text views and write the logic to store/retrieve user comments.
    If you want o enhance the existing application, then you need to enhance the corresponding view and add the text views.
    Hope this helps. By the way there is a separate forum for "Floorplan Manager". You can post your FPM related questions there.
    BR, Saravanan

  • Leave request application in Floor plan manager?

    Hi Gurus,
    I have a webdynpro leave request application which is in Floor Plan Manager in Java webdynpro.
    My leave request java WD application has 4 different functional steps like view-> edit->review-> complete.
    User completes the steps one by one...and for that there are 4 screens--and user moves from one screen to another after completing each step.
    Now I made the changes in the edit view which has the duration field which needs to be filled with half of the work schedule allocated to the employee per day if they chose half day leave in the application.
    As per the requirement duration field populated the data(half of the work schedule allocated to the employee per day ) but when I hit review button,navigation goes to the next screen duration field has the value of full work schedule (say 8 hours)which suppose to be half of the workschedule .(say 4 hours).
    any clues ?what will be the root cause of this problem..............
    Higher points will be rewarded for the useful inputs.............
    Thanks in Advance,
    Dharani

    Hi,,
    check the minimum duration for the particular leave type in SPRO->Personnel Management->Time Management->Time Data Recording and adminsitration->Absences->Absence Catalog->Define absence types
    double click here, u shd be getting the absence type details. check if any minimum duration is set here.
    also, chek the work shcdule assigned to the e ployee in infotype 7
    As far, as i understand, for half-day leave, you dont have to do any chenges in the webdynpro application. This purely depends on your time config.
    Please consult the time/HR consultant in this matter
    Thanks and Regards
    Reshma

  • Help URL for ESS web dynpro applications

    Hi gurus,
      I am trying to assign help URL for a standard ESS iView( Record working time).
      When i go to the iView properties i have property showhelp. I have the same property for the page record working time.
      When i set this property to yes at the page level the help option shows up and whn i set this at the iView level the help option does not show up ( in the right hand corner of the page or iView)
      My main question... how do i set up the help url for this help. becuase even for page when i click on help it says "no help found"
      I want to give a URL for this help link.
       Any thoughts on why this option is not popping up when i set the show help option for iView and how to enable the help URL for iView as well.
       Appreciate any help on the same.
    regards
    Sam

    The Help option should show up in the iview tray if you set it at the iView level.  Im not sure why that part isnt working for you.
    For the iView help, you can set the property URL to Help Topic property on the iview or page. 
    If your version doesnt have this property, you can use the PCD inspector (available under system administration>Support>Portal Content Directory-->PCD Inspector).  Browse to the iview, click on prop editor, click the Switch to PCM property.  Edit the com.sap.portal.iview.HelpUrl and enter your help url.
    Hope this helps-
    Marty
    Message was edited by:
            Marty McCormick

  • Work_item id not getting read in the web dynpro application

    Giving Error like 'Parameter WI_ID contains an invalid value' while calling Work Item ID in Webdyn Pro ABAP Application. I followed the documentation that I got from SDN. We are trying to display a Webdynpro Application with data of Requtester when a user clicks work Item In UWL.
    Can you please tell me what i might be missing here.
    Thanks,
    Rajat

    Hi rajtg,
    The details you have described is not enough to analyse the error. I would debug the error in any case to see the window inbound plug , probably you are passing some data which is not matching the type of the data expected in WDA.

  • How to set Application Parameters in web dynpro application

    Hello everyone,
    I have a requirement where I need to set a table as a scrollable table , as i go through this link
    [http://help.sap.com/saphelp_nw04s/helpdata/EN/b5/ac884118aa1709e10000000a155106/content.htm]
    I found that there is a application parameter WDTABLENAVIGATION which needs to be set to SCROLLBAR
    I checked on every bit in nwds for the DC where I can set this parameter but could nt find it .
    Can anyone please help me out in finding this and making my table scrollable.
    regards,
    Raj

    Thanks for the response arindam,
    Do you have any idea how to set value , i tried with some values and it has been ending up in errors.
    Kindly help me out ..
    Regards,
    Raj

  • Error using Floor plan manager (FPM)

    Hi,
    When i try to create a new FPM view or application, i will get an error msg "An internal error occured: String index out of range: -4." each time i click the next button and will be unable to procced.
    Any idea what is causing this error? there seems to be no exceptions in the logs.

    Hi beng,
    Just check this hope this might be helpful,
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/how-toaddacustomWebDynproiViewtotheMSSEmployeeProfile%28ECC+6.0%29&
    Regards,
    Tilak

  • Using floor plan manager in SRM 7.0

    I want to create a custom application with a mixture of SAP standard webdynpro screens/components and custom webdynpro components. When I try to include a standard component, for example /SAPSRM/WDC_MODC_NAME, in a custom application, what are the steps that should be followed? As of now, I'm just adding this component as an UIBB in the subview of the component configuration. If I do this way, my custom screens are displayed properly, but when I click on the tab containing this standard component, I get the "Access via NULL reference" error. Can someone please let me know what the missing piece is? Please let me know if you need more information/detail of the scenario and error.
    Thank ye all....

    Hi,
    P-Card is not supported in Classic Scenario because of MM side capability.
    Configuration Guides are available in SAP Solution Manager or offline download version in http://service.sap.com/srm-inst .
    Regards,
    Masa

  • Web Dynpro Application URL Host Name Not Correct

    Hello,
    I am developing a web dynpro application in our development system but when I activate the application it gets a URL that points to our test system.  When I test the application in HTTP Service (SICF) the URL for the development system is passed to the browser.  WHere do you maintain the host that is being used to build the URL for the web dynpro application when it is activated.
    Thanks,
    Jim N.

    Hello,
    To configure the FQDN (host name full), please take a look at these:
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/67/be9442572e1231e10000000a1550b0/content.htm] and
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/43/e86de5008b4d9ae10000000a155369/frameset.htm].
    Regards,

  • Call ESS FPM CATS Working time application from non FPM web dynpro application on click of button

    Hi,
    My requirement is to launch ESS Working time application HRESS_AC_CATS_1 from custom web dynpro application.
    ESS CATS working time application is configured in LPD_CUST launchpad.
    I tried using method  cl_hr_navigation_services=>navigate in my custom web dynpro but it did not work.
    Regards,
    Ibrahim

    In case you want to use Launchpad, you can use ABAP class CL_APB_LAUNCHPAD_API. If choose not to use Launchpad, you can use method CONSTRUCT_WD_URL of ABAP class CL_WD_UTILITIES to generate the URL. Specify Web Dynpro application and Web Dynpro Configuration as parameter. Finally create an external window using method CREATE_EXTERNAL_WINDOW that points to that URL.

Maybe you are looking for

  • Using a radio button in cfmail / form.

    Hello; This is a silly question, but I can't remember how to program in radio buttons for a cfmailer. I have 3 radio buttons, basically, I just need to know what the users choice was when they checked it off. The following is my radio buttons and wha

  • No video on wmv file

    When i play an WMV file on QuickTime Player - I get sound, but no video .... any suggesions?

  • Satellite R830 and video output through HDMI

    Just wondered if it's normal for my laptop to output a max of 1280x768 through HDMI to my 26" LCD TV? Its a Satellite R830 i3 with hd3000 graphics. I have 8GB RAM. Tried under Windows 7 and 8 but the same. Also tried custom resolution but it just say

  • Getting index error on ActionListener in for loop

    Hi, I am working on a little project where I want to create an array of buttons that each individually delete their record in an ArrayList, well everytime I press the delete button I get an index error, I have been toying around with it and just can'

  • Can't update 3gS to ios5

    Can't get any help from apple because I'm out of warranty. I highly doubt there is a resolution that doesn't involve reformatting my hard drive or something drastic like that! All I wanted to do was updatemy 3GS to ios5 and this is the debacle I enco