Related activities and new webdynpro abap

Hi, Experts,
I have to include an webdynpro abap as a link in the related activities (MSS). All the custo is doing (areas, services, etc), but i don't know how to recover the correct pernr for the employee in the abap source code.
Do anyone know it?

Hi,
There is a big difference if you want an employee number of the current user or some other employee that the manager has selected in MSS in some other web dynpro application.
If you just need to find the employee number of the current user, that's easy. You can for example use function HR_GETEMPLOYEEDATA_FROMUSER, or just get it from table PA0105 (infotype 105, subtype 0001).
Anyhow, if there is a need for you to get the selected employee from other component in the portal page, and especially if the other component is standard Java Web Dynpro component, things get much more complicated. You need to catch a portal event. But probably you are after something that my first suggestion would help?
Regards,
Karri

Similar Messages

  • Where do i find daily posted question on sap abap and sap webdynpro abap

    Hi
    where do we find Daily posted questions on sap abap and sap webdynpro abap in scn sap  so that i can go through the questions and answer them .

    Hi,
    Go to the Content tab of any space and click on discussions. Then you can sort them by date created or any other
    For ex: This link for WDA discussions: - Web Dynpro ABAP
    You can also click on Receive email notifications for any space to get updates on that space.
    hope this helps,
    Regards,
    Kiran

  • My Trips and Expenses - Webdynpro ABAP - Change Copy Delete button links

    Hello All,
    We are using ESS and MSS applications in our scenario. We are using EHP4 version of ECC6.0.
    I have configured my homepage framework with custom entries in SAP (resources, services, ... ) and custom Portal content (iviews, pages, ...  copied from SAP delivered stuff ). I have a very good understanding of this and I have no issues with the portal navigation and tying my custom homepage framework entries to the custom PCD locations.
    The only problem I have is with the Webdynpro ABAP application for "My Trips and Expenses". I can get to this application without any problem.
    Within the My Tirps and Expenses application, there are buttons for Displaying, Changing, Copying and Deleting existing Travel Trip Requests and Expense Reports. When I click on any of these buttons, the corresponding page/iview from the standard SAP ESS role is being launched. I would like to point these buttons to my custom page/iview from my custom role.
    I did not find any place where I can make this setting. I am not sure how the Service IDs for the standard SAP services are being linked to the application.
    I hope some one might have looked into this and any input would be really appreciated.
    Thanks,
    Raj

    I figured this out.
    This application makes use of Object Based Navigation and if you adjust the roles assigned to the user accordingly, this will automatically pick up the custom pages form the custom role.
    Thanks,
    Raj

  • HCM Forms and Related activities

    Hi,
         I have configured the search process for HCM forms in related activities. Although the process is working fine i am having two issues.
    1. when i click on search process it opens in a new window and launches another window to display the "display_process" iview, so there are 2 popup windows. Can we make the display process iview to open in the first popup window which is the related activities launcher.
    2. when i click on the search process link for the first time the initial pernr is passed to it. When i click on another pernr in the employee search iview and click on the search process link, it still uses the old pernr. if i wait for 5 mins and then click on the search process iview, it displays the correct pernr. I think there is a delay in refreshing the shared memory area for holding the pernr. is this a known issue?
    Thanks,
    Anand

    Hi Siddharth,
                         I have done the configuration for related activities and used the "Related activities launcher" to lauch the "Search process" page (com.sap.pct.erp.hradmin.11.show_processes). This is working fine.
    When i click on the link (Search Process) in related activities for HCM Forms, a popup window appears for the search process page and it launches another popup window which displays the "Display Process" screen. is this the standard behaviour?
    The first popup window title is "Related activities launcher (search Process)" and the second popup window title is "Display Processes"
    If not how to display the "Display process" screen within the first popup window.
    ==============
    The personnel number form Employee Search is not passed to the Search process iview until i refresh the related activities iview. Is this a known issue or am I missing any configuration.
    Thanks,
    Anand
    Edited by: Kirupanand Venkatapathi on Aug 17, 2011 9:48 AM
    Edited by: Kirupanand Venkatapathi on Aug 19, 2011 11:40 AM

  • New to webdynpro abap

    Hello,
    I am quite new webdynpro abap. I would like to display a dropdown box, input field on an iView. The selected value from dropdownbox and entered input value together has to be displayed during runtime. I was looking around for a step by step by guide which i couldn't find. Please provide me a solution for which points are rewarded
    best regards,
    k.c.

    Hi,
    There are 2 dropdown UI elements present in WD abap.
    1. For DropDownListByKey:
    Create a dropdownby key element in your view, and bind the selectedKey property to whichever node attribute you wish to bind. When you select a value in the dropdown, it is this value you have to bind and init method write code to popuate the values to the dropdown.
    The wddoinit method: write the following code:
    data: lt_valueset type standard table of wdr_context_attr_value,
    ls_valueset type wdr_context_attr_value,
    lr_node_info type ref to if_wd_context_node_info,
    lr_node type ref to if_wd_context_node,
    wa_kna1 type <your kna1 table type>.
    lr_node = wd_context->get_chilod_node( 'NODE_KNA1MOD' ).
    lr_node_info = lr_node->get_node_info( ).
    loop at kna1 into wa_kna1.
    ls_valueset-value = wa_kna1-kunnr. "this will be the selected value
    ls_valueset-text = wa_kna1-kunnr. "this will be the displayed value in the UI
    append ls_valueset to lt_valueset.
    endloop.
    lr_node_info->set_attribute_value_set(
    exporting
    name = 'KUNNR'
    value_set = lt_valueset ).
    you can find more info at:<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4884180951809e10000000a155106/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4884180951809e10000000a155106/frameset.htm</a>
    2. Dropdown by Index:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/dd/b0884118aa1709e10000000a155106/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/dd/b0884118aa1709e10000000a155106/content.htm</a>
    Define a node (for eq. 'TEXT') with cardinality '0..n' with attribute (for eq. 'TEXT').
    In the view create a UI element DropDownIndx
    Bind the text property of DropDownbyIndex UI element to attribute Text of context node Text.
    For populating the values to the node text;
    In the WDDOINIT method you can prepare an internal table with the values and bind it to the node and the lead selection defines the selected element.
    The below code sample may help.
    method WDDOINIT .
    for populating the values in drop down
    data:
    node_text type ref to if_wd_context_node,
    stru_text type if_componentcontroller=>element_text,
    tab_text type if_componentcontroller=>elements_text .
    node_text = wd_context->get_child_node( name = if_componentcontroller=>wdctx_text ).
    Set/fill your values
    stru_text-text = 'Value1'.
    append stru_text to tab_text.
    stru_text-text = 'Value2'.
    append stru_text to tab_text.
    set values to the node
    call method node_ddi_also_text->bind_table
    exporting
    new_items = tab_text.
    endmethod.
    for reading the values which user has selected in dropdown; for reading the selected index you can write the logic/method for the Onselect event of dropdownbyindex ui element. in the method read the attribute of the node text. the lead selection of the node gives the selected element (you can use the code wizard to read the context).
    Hope this helps.
    Regards,
    Suresh

  • Sort negative amount in webdynpro ABAP (EHP5)

    Hello,
    We ahve recently installed EHP5. We are now re-implementing Enterprise Compensation Management (ECM) with the new WebDynpro ABAP MSS iViews.
    We have the following issue: one of our column in the compensation planing iView displays positive and negative amounts. the problem is that when we sort this column (ascending or descending), the negative amounts do not appear in the correct order. This is an example how it comes:
    6,050.05
    7,159.59
    8,910.65
    8,980.85
    1,707.10-
    10,110.90
    13,644.30
    16,645.69
    17,135.79
    2,013.95-
    anyone having the same issue?
    Many thanks
    Lucas

    Hello Lucas,
    the numeric content of the relevant columns is interpreted as 'String-like' and sorted in that way, i.e.
    the digits of a number are compared to the digits of another number from left to right. This leads to wrong sorting results as the amount of digits a number consists of is not equal for each number within the same column. Usually issues like this occur if the function module which supplies the content marks the column as sortable (COLTYPE = 'SORTABLE'  but only table COLUMN_CONTENT is filled. Columns marked as SORTABLE which don't contain content that can be sorted 'straight foreward' by
    comparing the characters of one column entry to another from left to right MUST supply a second table SORT_COLUMN_CONTENT which contains the content converted in a sortable way. In your case table SORT_COLUMN_CONTENT must be filled with the numbers enriched with leading zeros, i.e. 000009270000 instead of 92,700.00 which is the 'display value'. please check if correct SORT_COLUMN_CONTENT is provided.
    If this is the case,
    Otherwise please provide correct SORT_COLUMN_CONTENT Further Information about sorting of columns can be found in the Configuration Guide for the Object- and Dataprovider on the Service Market Place (http://service.sap.com/mss).
    Best Regards,
    Deepak.

  • Getting Pernr for WebDynpro ABAP application

    I am building a new WebDynpro ABAP application and I want to be able to get the PERNR for the user logged into the portal and this application.
    I have read some information on this forum about getting the URL or application parameters in order to get the userid or similiar parameters and to handle this within the Window in the HANDLEDEFAULT method of a WebDynpro ABAP application.
    I have looked into this and I don't think pulling information from the application parameters will work.  For example, I checked one of our current services for "Personal Data"  and when I go to the portal content administration,  application parameters, I don't see any reference to userid..etc.  I see Property ID, Property Category, Inheritance, End-User Personalization, and Property Description.  In addition, I do not see any information from the URL itself that I could use. 
    Here is the scenario.  The user logs into the portal using the 3 character Network id which in turn, I assume, gets their SAP userid and PERNR in order to retrieve all the HR infotype information for each service.  By the way, the service I mentioned above, "Personal Data", is written in JAVA, so I am not able to see how this particular service works or handles getting the userid and PERNR.
    Has anyone come across this scenario before and how was it handled in terms of getting the userid and PERNR?

    I was thinking that SY-UNAME would be available, but was not sure.  For some reason, I was thinking I was going to have to pass something from the applicaton parameters or some other method to my WebDynpro ABAP program..
    I am not the portal administrator so I have not yet added my WebDynpro ABAP program to the portal yet.  Once, it's added, I will check out the availablility of sy-uname.
    Thanks.

  • Webdynpro ABAP ALV in SAP ECC6 - EHP4: To disable Column Selection

    Hi All,
    We are using SAP ECC6 EHP4 and  for Webdynpro ABAP application, after each column a vertical white line is appearing, and I need to hide this..
    SAP suggested us to disable COLUMN SELECTION I have tried the below code but still I am not able to get this done..
    Can you please suggest the appropriate method to achieve the same.
    Code:
    * show tab COLUMN SELECTION in Settings page
    CALL METHOD wd_this->alv_conf_table->if_salv_wd_std_functions~set_column_selection_allowed
      EXPORTING value = ABAP_false..
    here alv_conf_table refers to CL_SALV_WD_CONFIG_TABLE.
    Thanks in advance.
    Thanks
    Srinivas
    Edited by: Srinivas Manchi on Apr 22, 2010 11:35 AM
    Edited by: Srinivas Manchi on Apr 22, 2010 1:06 PM

    You have to disable the DDic binding on the column before your override text will show up:
    data: l_ref_cmp_usage type ref to if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      data l_salv_wd_table type ref to iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv( ).
      data l_table type ref to cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
      data l_column type ref to cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'POSTING_DATE' ).
      data l_header type ref to cl_salv_wd_column_header.
      l_header = l_column->get_header( ).
      l_header->set_prop_ddic_binding_field(
        property =  if_salv_wd_c_ddic_binding=>bind_prop_text
        value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
      l_header->set_text( `Posting Date` ).

  • Webdynpro ABAP application integration with portal

    Hi,
          Can someone provide me the complete documentation for
           1. webdynpro ABAP application development and
           2. webdynpro ABAP application  integration with enterprise  portal.
    Thanks...
    Kundan

    hi Kundan ,
    design pattern or paradigm followed by Webdynpro ABAP is
      MVC concept
               M-Model
               V- View
                C-Controller
    and cms with the advantages like Structuring the programming
         Creation of easily manageable application blocks
         Reusability of whole components
    for more documentation about WD ABAP , refer
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7c/3545415ea6f523e10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/nw-ui?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]
    SAP netweaver provides the integrationof ESA , for integartion netweaver provides us wid the People Integartion
    refer
    http://help.sap.com/saphelp_nw70/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    as well
    I hope it helps
    rgds,
    amit

  • WD ABAP Iviews under Related Activities

    Hi,
    I am trying to include standard WD ABAP Iview under ESS in MSS under Team Workset. However it is not working the same way as WD Java Iviews does. Instaed of picking selected Employee's page, it is displaying Manager's page. I have also maintained PCD which starts with EXROLES. Still it is not working. I have been trying for Travel Request WD ABAP Iview.
    So could anybody please let me know as to how to resolve this.
    Thanks!

    Hi,
    In order to retrieve the selected pernr, you have to create a Web Dynpro Java iView, a resource and a service as explained in this topic : MSS - General Information - Related Activities Links persnr.
    1. create a Web Dynpro Java iView using the mss~hras RelatedActivitiesLauncherApp application then open the iView and indicate the name of the service corresponding to your Web Dynpro Abap application.
    2. create a new resource and indicate the id of the Web Dynpro Java iView (ROLES://portal_content...) in the URL of PCD page field
    3. create a new service (service type Web Dynpro Java) and link it to the resource you just created
    4. assign the new service to the subarea
    Regards,
    Pierre

  • Add custom WD ABAP application to MSS related activities

    Hi Experts,
    I try to add a custom WD ABAP application to the related activities of our managers. Please could you tell me exactly what I have to do to achieve this? I've found many threads on SDN about this topic but I was not able to implement a working solution. Here's what I've done so far :
    1. create a WDJ iView using the RelatedActivitiesLauncherApp application and Service ID Z_SERVICE (is this the id of the service we create at step 3 or the name of the ICF service corresponding to my WDA app? what should I put in the object name field?)
    2. create a new resource Z_RESOURCE with URL of PCD page = id of iView created at step 1 (which format should I use : "pcd:portal_content..." or something like "ROLES://portal_content..." ?)
    3. create a new service Z_SERVICE (same id used at step 1) and indicates service type = WD ABAP and resource = Z_RESOURCE (created at step 2)
    4. assign service Z_SERVICE to subarea MSS_HCM_SUB_RELATEDACTIVITY_ESS
    I'm able to see the new link in the related activities but my WDA app is not launched when I click on it.
    Regards,
    Pierre

    Well, here's a quote from another thread (MSS - General Information - Related Activities Links persnr.) :
    Hello Joeri,
    to integrate a WDA application into the related links area you have to perform the following tasks:
    1.) The Service called from the related links area has to be a service/iview based on the WDJ application "sap.com/mss~hras/RelatedActivitiesLauncherApp". This iview has a property in category "Self Services" named "Service-ID". Here you pass the Homepage Framework Service ID from your custom WDA application.
    2.) Your WDA application needs to retrieve the pernr the WDJ Starter application "sap.com/mss~hras/RelatedActivitiesLauncherApp" has stored in the ABAP memory in your Backend. You do this with the Functionmodules from Functionmodulegroup "HRASR00_WDA_SET_GET_DATA". The Pernr Memory Id is "MSS01" if i remember right.
    Thats it. I hope it does help.
    Anyway... I've created a Web Dynpo Abap iView as you suggested and everything works fine. Now I just have to find a way to find out which employee is selected in my WDA app.
    Thanks for your help.
    Regards,
    Pierre

  • WebDynpro ABAP iView not opening in new window

    Hi,
       I have created an iView for a WebDynpro ABAP application and I am having a link in a home page from where the iView should open in a new page. I have set the properties "Launch in new Window" and "Show open in new window option" of the iView but still it doesn't open up in a new window.
        Can someone suggest me what's going wrong?
        Will reward points for helpful answer.
    Regards
    Mukesh

    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 Generate New Version of Enhancements done to Std WebDynpro ABAP obj

    Hi Experts,
    We have enhanced a SAP Std WebDynpro ABAP component (HAP_DOCUMENT_BODY) using Enhancement framework provided by SAP. Multiple enhancements were done on the same component for different requirements. Now, under the Enhancement Implementations folder of this component, you can see 5 enhancements of the component each referring to the 5 different changes done (most of the changes were done to the same view ).
    These changes has now been transported to the Quality System. Now, the client wants one of the changes to be removed. I am not sure of the impact of removing, for eg: the 3rd enhancement,  on the other changes done as multiple enhancements were done in a mixed manner.
    What i want to do is to generate a new version of WebDynpro component on Dev which has all the enhancements done so far using Utilities -> Versions -> Generate new version. Then try to delete the 3rd enhancement folder, so that if something goes wrong, I can always revert to this newly created version on DEV which has all changes available.
    Questions:
    1)  Before that, I would like to know if I can generate versions of the enhancements done of WebDynpro ABAP using enhancement framework by using Utilities -> Versions -> Generate new version ?
    2) If yes, I want to generate one version which has all the enhancements done so far using enhancement framework. For doing so, where should i do the click or selection (Is it Std Main Component or is it Enhancements in the enhancements folder-if so, there are 5 of them, and which one??) before i go to  Utilities -> Versions -> Generate new version. I am not clear where i should select or keep the cursor selected on before generating a new version? 
    Please guide with step by step details.
    Thanks,

    I have moved this post to the HTML5 layouts forum, which is more appropriate.
    I am guessing you are using Rh11 as you have a trial copy. I have some instructions for Rh10 and the only difference should be the script used. See the contact page on my site and request those details. Include a link to this thread.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Webdynpro ABAP and Light Speed Rendering Engine Performance reports

    Hello,
    We will be applying the NW EhP1 and ERP EhP4 in November this year.
    I am very much excited about the new Lightspeed rendering technology that SAP has delivered with Webdynpro ABAP.
    Has anybody installed this already and can you comment about the performance of Webdynpro ABAP AFTER activating this new rendeing engine?
    regards,
    Atul Kulkarni

    We have implemented the EHP1 for NW 7.0 and ERP EHP4 back in May 2009.  The performance of web dynpro  applications is much better with the new rendering engine. The new name is living up to it's character of speed of light.
    The usability of the application has increased with the new trade show plus theme. For example pink background for fields with errors. Access Keys and Hot Keys are very useful, specifically if you are migrating legacy applications from systems/languages which rely heavily on access keys.

  • Create BRF object and call in Webdynpro ABAP

    Hi,
    can you please let me know how can i create BRF obejects and call them in webdynpro ABAP in WDC.
    Thanks,
    Mahesh.Gattu

    Hi Sachin,
    I am new to BRF,and i went through the BRF documents which are provided in Help.sap.Now my requirement is ,I have an webdynpro screen to create a policy number.When i click on Save all the fields should be validated through BRF.Being new to this environment,i need a start up help to achieve this.Please let me know the steps to validate the fields in webdynpro.
    Thanks
    Naresh Bammidi

Maybe you are looking for

  • Traffic lights in ALV list header

    how do i display traffic lights as icons in ALV list header. for example, in the code below, i want to display a green icon at the end of closed items and a red icon at the end of the open items:             closed : 4 [green-icon]             open  

  • Master-Detail Relationship problem

    I've spent 1.5 days already trying to solve this problem. I'm creating a JClient application using BC4J with a Master-Detail relationship. The relationship between tables is a many-to-many thru an intersection table. I've gotten my master and detail

  • Large File Processing Problem

    HI Group, I am facing problem in XI while processing 48 MB File through File adapter,I have used Content Conversion in the design. I am using normal 64Bit operating system with Max of 2GB heap size,still I am facing the problem,Can any body tell me h

  • Tweet-deck don't work properly, scroll e window problems.

    hi, I'm a new user! I have used yaourt for install tweetdeck and after the installation the program seems to work but there are some problems 1) the welcome window like the options panel is totally white! and i can't see anything o press some button.

  • Import of Playlist not possible

    Hi, since iTunes 8.1 it's impossible to import and sync prepared playlists (format: m3u). The playlist are listed, but they are empty. The music library is empty too. If I use an older version (i.e. 8.0.2), everything works fine. Looks like bug in iT