Can the role info be passed from portal to ABAP web dynpro application

Hi,
We have some roles in the portal. We call the ABAP web dynpro applications from the portal. Is it possible to pass on the role from the portal to the Web dynpro ABAP application so that we can use this role information in the application.
Thanks,
Pooja

Hi,
you can try to add the expression
  role=<IView.PCDUnit>
as part of the Application Parameters in the iView. This will be the role in 99%. However not all iViews started in the Portal must belong to a role. You can start iViews using page navigation that are not part of a role. Therefore the PCD does not talk about roles but about "units" which is the superordinate term.
the value will be the PCD path of the role - e.g:
  portal_content/myFolder/roles/myRole

Similar Messages

  • Get date from portal in a web dynpro?

    hi all,
    how get date from portal in a web dynpro???
    thanks.

    new Date(System.getTimeInMillis());
    Good luck, Roelof

  • Exiting from ABAP Web Dynpro application

    Hi,
    In ESS portal we have one tab Personal info, there I have created one link and integrated my ABAP web dynpro application.
    I want to exit from the application and go back to the Personal info sub area. created one exit button in my application on press of that i need take this action.
    Please guide me with this
    Thanks!
    Piyush

    Piyush,
    I am not sure whether it works or not just get the navigation url of personalinfo subarea and using portal APIs navigate to that url when you click on exit button
    Thanks
    Bala Duvvuri

  • How to catch URL parameter from Portal URL in Web Dynpro iView

    Hi All,
    I have a web dynpro application running as a portal iView successfully. Now the client wants to make it internationalized with 7 languages. Currently they access the portal - and via role assignment they get to the portal tab with the wd iView. Now they want to send a parameter for the language key with the portal URL. So when they are typing in http://myportal.mydomain.com now they want to type in http://myportal.mydomain.com?sap-locale=de or so. My question is how can I catch this parameter in the WD application when it is running inside a portal iView? Is it at all possible?
    I have written a very small application which is trying to catch a URL parameter named PARAM. The code I have written is the default one as below:
    String paramValue = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("PARAM");
    When I run the application standalone and add the PARAM=something in last of the URL I can catch it. But when I create an iView and while previewing it I add the same PARAM value it is coming as null all the time. Same when I add this iView to a role and show it via role assignment in protal. Please help to let me know how to achieve this. I think if I can read the parameter value from Portal URL in the WD iView - then I can set it as the default locale of the application and then show language specific file to achieve internationalization.
    Your urgent help will be highly appreciated.
    Warm Regards,
    Shubho

    Hi Shubhadip
    Even if you get the parameters, how do you internationalize your application? Are you not following the standard way as described in the following link. In this case you never need to capture any such parameter. This is done by the WD runtime automatically .
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/f4/d95664da179b4db731e21c2e470b72/frameset.htm">Internationalization of WD projects</a>
    You can retrieve application parameters specified at the creation of iview by "adding parameters(with the same name as in iview application parameters) to the default plug of the Component Interface View of the WD application". "onDefaultPlug" method of the interface view controller you get these values as parameters, which you can save in the context node of component controller for later use.This is guaranteed to work.
    But again this is not what you want exactly. You want the user to specify the value at runtime. If you have just 7 languages, you can create 7 set of iviews with different application parameter value indicating language key, and assign to 7 different set of roles, each representing one set of users with common language.
    I hope you find a solution.
    Regards
    kk

  • How to link the ALRTINBOX in a ABAP Web Dynpro application?

    How can I link the ALRTINBOX window in a web dynpro application view?

    Hi Rahki,
    The status of what?
    There are traffic light icons that you can use, or you can set  the cell design (which changes the background colour of a cell (if you are in a table).
    I often use this to indicate on a review step whether a cell/row has been inserted, modified or deleted from a table.
    Chris

  • Pass a parameter in a Web Dynpro Application

    Hi,
    I have a Web Dynpro that Calls a RFC. This RFC needs a parameter (user ID from portal) in order to obtain Info. from the R/3 System.
    I do it with based on the article which calls a bapi "BAPI_FLIGHTLIST".
    The application runs OK when I type the parameter (user ID) in an "input field", it only return the information needed (method button) from R3. Now, if I want to get the parameter (user ID) automatically from the Web Dynpro ( the user who Logon into the portal) the application does not work.
    I try with this code but isn't work.
    wdContext.currentZrfc_Prueba_Portal_InputElement().setZusuario(userid);
    How can I set the parameter (Zusuario) in my input field automatically and after I press the button (method) return my info.???
    Here is the code.
    The method wdDOInit
    Zrfc_Prueba_Portal_Input input = new Zrfc_Prueba_Portal_Input();
    wdContext.nodeZrfc_Prueba_Portal_Input().bind(input);
    The method that Execute a RFC
    //@@ Begin Take USer
           String userid="";
              try {
                   IWDClientUser user = WDClientUser.getCurrentUser();
                   userid = user.getSAPUser().getUniqueName();
              } catch (WDUMException e) {
                   e.printStackTrace();
    //@@ End Take USer
    //@@ Begin Set the login user to Zusuario parameter
              wdContext.currentZrfc_Prueba_Portal_InputElement().setZusuario(userid);
    //@@ End Set the login user to Zusuario parameter
              //@@ Begin Method that execute the RFC
              try {
                            wdContext.currentZrfc_Prueba_Portal_InputElement().modelObject().execute();
                   wdContext.nodeOutput().invalidate();
                   wdComponentAPI.getMessageManager().reportSuccess(
                             "Execute whit the user: "
                                       + wdContext
                                                 .currentZrfc_Prueba_Portal_InputElement()
                                                 .getZusuario().toString());
              } catch (Exception e) {
                   e.printStackTrace();
                   wdComponentAPI.getMessageManager().reportException("Caution " + e);
              //@@ End Method that execute the RFC
    Any help will be rewarded.
    Regards
    Dario

    Hi Bala Duvvuri,
    I taste your code but isn't work.
    This the method wdDoInit
    public void wdDoInit()
        //@@begin wdDoInit()
           Zrfc_Prueba_Portal_Input input = new Zrfc_Prueba_Portal_Input();
           wdContext.nodeZrfc_Prueba_Portal_Input().bind(input);
        //@@end
    This the method ExecuteRFC
    public void ExecuteRFC( )  {
        //@@begin ExecuteRFC()
             Zrfc_Prueba_Portal_Input input = new Zrfc_Prueba_Portal_Input();
           wdContext.nodeZrfc_Prueba_Portal_Input().bind(input);
           //@@ Begin Take USer
           String userid="";
           try {
                   IWDClientUser user = WDClientUser.getCurrentUser();
                   userid = user.getSAPUser().getUniqueName();
              } catch (WDUMException e) {
                   e.printStackTrace();
               //@@ End Take USer
              //@@ Begin Set the login user to Zusuario parameter
              input.setZusuario(userid);          
              //@@ End Set the login user to Zusuario parameter
              //@@ Begin Method that execute the RFC
              try {
                   wdContext.currentZrfc_Prueba_Portal_InputElement().modelObject().execute();
                   wdContext.nodeOutput().invalidate();
                   wdComponentAPI.getMessageManager().reportSuccess(
                      "Execute whit the user: "
                        + wdContext
                                .currentZrfc_Prueba_Portal_InputElement()
                             .getZusuario().toString());
              } catch (Throwable e) {
                   e.printStackTrace();
                   wdComponentAPI.getMessageManager().reportException("Caution " + e);
              //@@ End Method that execute the RFC
        //@@end
    Regards

  • Context not updated from adobe from fields to ABAP web dynpro every time

    Hi,
    I work through a turtorial for interactive adobe form in web dynpro. The turtorial link is as following:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3?prtmode=navigate
    I use Active X adobe form display type and submit button. Basically, it works.
    My problem is the 1st time I change the out_amount in adobe form and click 'Submit'. Everything OK. The corresponding context field in Web Dynpro is updated and showed in my own web dynpro field.
    Then, I change the out_amount again in Adobe form and click 'Submit' again. The context is not updated.
    The interesting thing is when I click 'Submit' the 3rd time, it works again. Same situation happens for 4 and 5 times click 'Submit' and so on.
    It seems I need to click 'Submit' two times and the web dynpro context is then  updated.
    Is there anyone have any clue about my problem?
    Thank you in advance!
    Trey

    Please provide the solution.......

  • Subtotaling on the fly in ABAP Web Dynpro Applications

    I know that I can programmatically add totals and subtotals to a WD ABAP report, but is there anyway for the users to do it ad hoc?  If not, does anyone know if this is coming in any future release of WD?

    Hi,
    Please see this thread Thomas Jung reply.
    [Arithmetic Operation in ALV|Arithmetic Operation in ALV]

  • How to reference Portal Theme in Web Dynpro Application?

    Hi All,
    I have implemented a WDA that is being embedded into the Portal. My customer has designed his own Portal Theme.
    However, the WDAs embedded into the Portal do not appear in the style of the Portal Theme.
    Now, my question is which means are required in order to have the WDAs use the same Theme as the Portal?
    Can I provide WDA parameter WDTHEMEROOT with the URI of the Portal Theme? If yes, how do I get the URI of the Portal Theme?
    I guess parameter WDFORCEEXTERNALSTYLESHEET also is relevant in this matter... Please let me know how I get this working!
    THANKS
    Johannes

    Hi Johan,
    Please go through this links..
    Portal Theme in Webdynpro ABAP
    Re: Deriving Portal Theme
    also check this..
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7015b1f9-535c-2910-c8b7-e681fe75aaf8?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/WDABAP/StylesheetforWDAwithoutintegratinginSAP+Portal
    Cheers
    Kris.

  • How to distinguish the field on which event is triggered? (ABAP Web Dynpro)

    I have an application where there are multiple input fields in the layout. After the user clicks search help for the input field and selects a value, some action has to be performed for each input field. Currently, I am coding the required action in "WDDOMODIFYVIEW" method. This method will be called whenever there is any action on any input field (as its name says), but how can I distinguish on which input field the method is triggered? or How can I know on which field the search help has been triggered?
    or I would be happy to implement any other solution if available.

    HI Deepak Dakshinadi  ,
    You can implement OVS in your input field.
    In the event ON_OVS you will get the value of the attribute  OVS_CONTEXT_ATTRIBUTE which can give you the id of the input field in which OVS is implemented.
    I think by using this you can distinguished among your input field and based on which you can do your particular coding.
    Check the link for implementing OVS.
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    and check the forum to get the id of the field of that particular search help triggered.
    Re: More than 1 OVS in 1 View

  • How to make use of Portal service in the web dynpro application

    hi
    I have some portal service and how to use that in the web dynpro application.
    and also what is the main diff between Portal Component and web dynpro application.
    do we required portal to run web dynpro application.
    thanks
    mmukesh

    Hi,
    >> I have some portal service and how to use that in the web dynpro application.
    Yes. U can use Portal service in webdynpro. Check the link given by subathra.
    >> and also what is the main diff between Portal Component and web dynpro application
    Portal Components are components designed to run in portal server while webdynpro application can run in J2EE WebAS.
    >> do we required portal to run web dynpro application.
    No for general cases. Just WebAS is sufficient to run webdynpro appl. But if u use portal service in ur webdynpro appl, then make sure both (portal service and webdynpro appl) run on same J2EE engine. That is mandatory.
    Regards,
    Vijai

  • Change properties of Roles in Abap web dynpro

    Hello Gurus,
    I need to hid or unhide a role based on a condition in my abap web dynpro.
    Can anyone please update me how I can access it from abap web dynpro.
    Is there an API call from abap to set or reset the invisible in navigation area value in portal?
    Regards,
    Dale

    End of days play, this is what I was able to achieve.
    Realised the masthead jsp is the best place to call my abap web dynpro as it is just after the login and at the load of default framework page.
    I was able to call my abap web dynpro and on success, I am calling the homepage role.
    What I have done in the jsp is written an if else statement:
    1) If it is the first call to the jsp call my abap web dynpro in navigation mode 3. This ensures the roles are not visible and the redirection works before the page loads.
    2) Else load the framework page as usual.
    The only issue I have at this point is, I cannot depend on the first visit of the user.
    I need to know in the jsp where the call to jsp is coming from, if it is coming from login page, i will direct the user to WDA else if the call is from my WDA, the normal load should work.
    It would be ideal if my abap web dynpro could write something in the http header which the jsp could read as success. Still close but dont have the solution working yet
    Regards,
    Dale

  • How do i pass parameters to a web dynpro application ?

    Hi all,
    how do i best possible pass (serverspecific) parameters to a web dynpro application ?
    i wrote a web dynpro application that, among other things, sends an email and stores files on a server directory. Therefor i need parameters like e.g. "mailhost" or "directory".
    The way i chose is to make a *.properties file. But from my point of view there are some disadvantages.
    1) When i deploy the WD App to a new server, i have to edit the properties file before. I don't know how to do that. Do i have to edit the *.properties file again, before i make a new ear-Archive with NWDS ?
    2) When the properties a wrong or change for a deployed app, i have to restart the J2EE Engine. Thats not convenient for a production server.
    Is there a better way ?
    Thanks
    Andreas
    (And I promise to return and reward the answers)

    Hi Andreas,
    You can't use something like portalapp.xml because this is not supported by webdynpro, but ... you can add this parameters at the end off the webdynpro address line. like http://<host>:<port>/webdynpro/dispatcher/local/<Webdynproproject>/<webdynproApplication>?host=yourhost
    In your application you can get these variables:
    String host = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("host");
    when you create a webdynpro iview you can specify the default value for the variables in the URL in the properties of the iview and i think you can personalize them later.
    kind regards,
    Joachim

  • The Web Dynpro Application 'WebAdminApp' has expired.

    Hello all,
    I am getting this error when I click on anything from /nwa.
    The Web Dynpro Application 'WebAdminApp' has expired. Restart the application using the Refresh button or via the following link WebAdminApp.
    I have to configure LogOn Group for the WebDispatcher ( to be able to see the logon group from the java system) and from this link:
    Logon Group Configuration - System Landscape Administration with SAP NetWeaver Administrator - SAP Library
    I got the solution:
    Activities
    You can display the overview page of the existing logon groups if you choose System Management  → Configuration  →  Logon Groups. The Logon Groups frame on the right contains a table that lists all logon groups on all registered systems.
    So, I started /nwa and when I click on Configuration, I am getting:
    The Web Dynpro Application 'WebAdminApp' has expired. Restart the application using the Refresh button or via the following link WebAdminApp.
    Can you suggest me a solution?
    thx
    Chris

    Solution:
    1907152 - Web Dynpro Application 'WebAdminApp' has expired when access NWA

  • Launch ABAP Web Dynpro from UWL

    I have developed an ABAP Web Dynpro application. The application needs to be launched from the UWL. This is not working. I get the message 404 Not found The requested resource does not exist. I think the problem is with the WebDynproNamespace setting in the UWL config file but i am not sure. Anyone have any ideas? Full points to the working answer
    Application Properties (SE80):
    Description     DJ: Link AR Invoice to AP Invoice                                      
    Component       ZDJLINKINV                                                             
    Interface View  MAIN_WINDOW                                                            
    Plug Name       DEFAULT                                                                
    Help Menu Text                                                                         
    Help Link                                                                               
    Show Message Component on Demand                                                      
    Always Display Message Component                                                                               
    Package         ZSAPPHIRE_SUB_01                                                      
    Language        EN                                                                    
    URL             http://<removed for security reasons>/sap/bc/webdynpro/sap/zdjlinkinv
    Transaction SWFVISU:
    (task visualization)
    TS90100177 ABAP Web Dynpro
       (visualization parameters)
       APPLICATION  ZDJLINKINV
       DYNPARAM     WI_ID=$(item.externalid)
       NAMESPACE   SAP
    UWL Configuration:
    <ItemType name="uwl.task.webflow.TS90100177.FISystem" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
          <ItemTypeCriteria systemId="FISystem" externalType="TS90100177" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
              <Properties>
                <Property name="WebDynproApplication" value="ZDJLINKINV"/>
                <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
                <Property name="DynamicParameter" value="WI_ID=$(item.externalid)"/>
                <Property name="openInNewWindow" value="yes"/>
                <Property name="WebDynproNamespace" value="SAP"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>

    Check out the below links:
    1) [UWL work item not launching |http://www.surfingincognito.com/index.php?q=aHR0cHM6Ly9mb3J1bXMuc2RuLnNhcC5jb20vdGhyZWFkLmpzcGE%2FdGhyZWFkSUQ9MTYxMzA2OA%3D%3D]
    2) [Calling Web Dynpro ABAP application as work item|Calling Web Dynpro ABAP application as work item through workflow.;
    3) [Integrating WebDynpro ABAP applications with UWL for workflow in Portal|http://wiki.sdn.sap.com/wiki/display/WDABAP/IntegratingWebDynproABAPapplicationswithUWLforworkflowin+Portal]
    Hope it helps you..

Maybe you are looking for

  • Compaq presario cq61-411wm no booting device error/"hard disk not exist" help!!

    screen is cracked so hooked up a external monitor. no bootable device error in white on black screen. did tests all passes except hard disk. this one gives " hard disk not exist" error..trying to save all my pix of my sons on computer.someone please

  • G5 OS 10.4 and G3 OS 8.6 to wireless router?

    My main internet machine is my G5, but I also connect quite frequently with my G3 which runs various legacy OS 8.6 software. For ease of use, I'd like to connect them both to a wireless router, but never having owned one before I'm unsure on a couple

  • Adobe eLearning Suite 2 Workflows link in Windows START Menu fails

    I just recently purchased the Adobe eLearning Suite 2 and I get an error message when I click on the following link: Start - All Programs - Adobe eLearning Suite 2 - Adobe eLearning Suite 2 Workflows Error message is within an Adobe Air dialog box -

  • Lpr works but adding IP printer does not

    With Mountain Lion on my local host I am able to e.g.: lpstat -h printserver.domain:631   -a    and successfully print using lpr  -H printserver.domain:631   -P print_queue cont.ps However if I go though the adding an IP printer steps in SystemPrefer

  • SQL patch mismatch: Installed in the PDB but not in the CDB - how to correct?

    I have a 12.1.0.1 database in which I wanted to migrate a number of PDBs to AL32UTF character set. To do this I created a second (temporary) database with the correct characterset, unplugged and re-plugged each PDB and ran the DMA U to migrate the PD