HR-stopping Get Pernr from triggering

hi,
My selection-screen is combination of PNP + other Fields
i am using GET PERNR to retrive values..
my Problem is that When no values is given in PNP fields , i want to Skip
GET PERNR statement.but i am unable to do it..
Kindly give some solution.

hi,
check the fields whether they are initial or not.
if the PNP fields are initial then dont process the GET PERNR.
Dummy code.
If not PNP-fields initial.
GET PERNR.
Endif.
<b>Reward points if useful</b>
chandra

Similar Messages

  • How to get PERNR from employee search(teamviewer) iView in to a WD-4-ABAP.

    Hello All,
    I had developed a new Web Dynpro for ABAP (WD4A) component for updating a custom Infotype. This application is meant for the manager to maintain some specific data through portal for his employees in the team.
    WD4A application is built based on the employee number it receives from the portal.
         How could I get PERNR from employee search(teamviewer) iView in to my WD4A component?
    In portal I had developed a test page by copying the standard page from MSS com.sap.pct.erp.mss.general_information, and added my WD4A application through an iView into this page.
    Then I hided all the other iVews in the page except (1) employee search and (2)my WD4A iVew. On the preview everything appears fine.
    During the preview of this page it triggers the WDDOINIT of WD4A component main view and then the WDDOMODIFYVIEW. When I select an employee from the employee search, then it triggers only WDDOMODIFYVIEW in the WD4A application and not the WDDOINIT anymore.
    In my  WDDOMODIFYVIEW I had inserted the following code:
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_portal_manager = lo_api_component->get_portal_manager( ).
      DATA lo_api_controller TYPE REF TO if_wd_view_controller.
      lo_api_controller ?= wd_this->wd_get_api( ).
      CALL METHOD lo_portal_manager->subscribe_event
        EXPORTING
          portal_event_namespace = 'urn:com.sap.mss.employeesearch'
          portal_event_name      = 'selection_changed'
          view                   = lo_api_controller
          action                 = 'GET_SELECTED_PERNR'.
    And in the action: 'GET_SELECTED_PERNR'
    METHOD onactionget_selected_pernr .
      DATA lv_str_pernr TYPE string.
      DATA lv_strlen TYPE i.
      DATA lv_pernr TYPE pernr_d.
      DATA lv_offset TYPE i.
      wdevent->get_string(
      EXPORTING
      name = 'PORTAL_EVENT_PARAMETER'
      RECEIVING
      value = lv_str_pernr ).
      lv_strlen = STRLEN( lv_str_pernr ).
      lv_offset = lv_strlen - 8.
      lv_pernr = lv_str_pernr+lv_offset(8).
    ENDMETHOD.
    This is not functioning form me. The action is not getting trigged with the code in WDDOMODIFYVIEW.
    I had gone through several threads in u2018SDN say:
         Pass pernr to WebDynro
         MSS - General Information - Related Activities Links persnr.
         SAP Note: 1112733.
    Most of the threads are answered but incomplete. In some threads people shared document personally which had been helpful.
    I am stuck with this scenario of handling the employee number from employee search iView. Helpful suggestions will be rewarded for sure.
    Thanks in advance.

    Do i understand you correctly that you are not getting the portal event ?
    This can be several reasons ?
    Both portal system and WDA server has to be in same domain and same proptocol to communicate with Portal event.
    Please check in that direction and search posts on this topic.

  • How do i stop getting emails from support!!!!

    How do I stop getting emails from support!!!!

    To stop all email notifications or to select those you want to have go to Your Stuff in the top right of this window. Then select Your Preferences. When that page loads you will see a tab for Email Notifications. Select that and go through the choice for how or when you want to be notified by email, or not.

  • How to I stop getting email from the Apple Support Communities?

    How do I stop getting email from the Apple Support Communities?  I am being innundated with hundreds of emails daily.  Help~~

    If you are getting them from a forum as a whole (as opposed to just individual threads), then towards the top right of that forum page make sure that it says 'receive email notifications' in the Actions box :
    If it says 'stop email notifications' then click on it so as to stop them

  • Request: Function Module - Get PERNR from UserID

    Hi,
    Is a simple Function Module available for getting the PERNR from a UserID?
    For example, I'll send the FM the UserID and will get back the relevant PERNR.
    Please Help.
    Thanks,
    John

    Hi John,
    FM is one way but
    Simple code to Find personnel number for UNAME
      SELECT SINGLE pernr INTO t_pernr
        FROM pa0105
        WHERE subty = '0001' AND
              endda >= sy-datum AND
              begda <= sy-datum AND
              usrid = p_uname.
    Best Regards,
    Aslam

  • How to get pernr from Recruitment module(PB000),

    Hi All,
    I want to read the pernr from the applicant data PBnnnn, There is one GET PERNR,
    for PAnnnn, which reads pernrs from Employee data. Is there any similar way for
    applicant data also?

    Do i understand you correctly that you are not getting the portal event ?
    This can be several reasons ?
    Both portal system and WDA server has to be in same domain and same proptocol to communicate with Portal event.
    Please check in that direction and search posts on this topic.

  • Get PERNR from UNAME

    Hello Experts,
    I am currently writing a program to list all users of a role and their current position. I need to find a way to get PERNR given a username to eventually obtain the position number. Any help would be appreciated.
    Thanks,
    Nicole

    Hi Nicole,
    This depends on the how user ID are maintained in your system.
    You may get the perner using Infotype 0105. There you have field USRID which is the user ID. Using this you can get the PERNR and once you got the PERNR you can get all the details Using different Infotypes.
    Regards,
    Atish

  • Get PERNR from PCPO transaction

    Hi Experts,
    I have,
    1. RunId
    2. G/L account number
    3. Order number
    4. Business area
    Is there any function module which will give me the PERNR output based on above mentioned input?
    Regards,
    Rajneesh

    Hi,
    Once you run the payroll posting you will get the posting number. Go to Document overview there If you double click on that you can see all employees by PERNR wise.

  • How do I stop getting iMessages from my moms phone?

    so my mom and I both have iphones under the same credit card but every time she gets a message through iMessage I get it too and when I get one she also gets it. How would I get it to stop?

    Follow the instructions under the heading "How to unlink a phone number" on this page.

  • TS1424 How do I stop getting charges from itunes for stuff that was free?

    How do I stop charges I am getting for apps that were free?

    Is this what you are referring to...
    http://support.apple.com/kb/HT3702

  • How do I stop "Get Glue" from loading at start-up?

    When I start Firefox, it first initializes correctly; and, then I try to start using it when the Firefox force loads your '''Get Glue''' page upon me. I then have to close your '''Get Glue''' program before I can use anything else. Therefore, my question is: "How do I prevent your '''Get Glue '''program from loading when I never ever even asked for ''that'' program,

    That is not part of Firefox, but appears to be an add-on. You appear to have this add-on installed - https://addons.mozilla.org/firefox/addon/3481/
    For details of how to uninstall the add-on see the [[uninstalling add-ons]] article.

  • Get PERNR in Dynpro on ABAP

    Hi,
    I`am developing a custom service for ESS on ABAP Dynpro.
    How can I get current employee PERNR inside of my ABAP implementation?
    The only way I know getting PERNR from 0105 i.t. using current sy-uname, but I dont like this solution.
    Is where any other way of getting current employee PERNR?
    thanks to all,
    Evgeny

    Hi Evgeny,
    It's probably best to post these types of questions in the HR/ABAP forums in the future. In any case, the only link between the employee record and the user record is IT 0105 so I'm afraid you don't have much choice there. If you don't want to access the employee record using SQL, I believe there is a function module called something like BAPI_EMPLOYEE_GET_DETAILS (check in SE37).
    Cheers,
    Dion

  • GET PERNR EVENT

    Hi experts,
    please tell me about the get pernr event and from which all tables data is fetched during the event.
    thanks,
    ajay

    Hi,
    GET is the command used in Logical database concept for fetching the data
    GET PERNR will fetch all the Pernr's one by one in a Loop like thing
    and for each pernr the data records in other infotypes have been processed
    and it goes on till all the pernr's are completed.
    see the sample code
    start-of-selection.
    Get PERNR from LDB
    get pernr.
    Get data from Respective Infotypes
    rp_provide_from_last p0001 space pnpbegda pnpendda.
    if p0001-kostl in pnpkostl.
    rep_tab-kostl = p0001-kostl.
    rep_tab-pernr = p0001-pernr.
    rep_tab-ename = p0001-ename.
    Get the Position Text
    clear t528t-plstx.
    select single plstx into t528t-plstx from t528t
    where plans = p0001-plans and
    otype = c_type and
    sprsl = sy-langu.
    if sy-subrc = 0.
    rep_tab-ptext = t528t-plstx.
    endif.
    Get the Cost Center Text
    clear cskt-ltext.
    select single ltext into cskt-ltext from cskt
    where spras = sy-langu and
    kokrs = c_kokrs and
    kostl = p0001-kostl.
    if sy-subrc = 0.
    rep_tab-ctext = cskt-ltext.
    endif.
    append rep_tab.
    clear rep_tab.
    endif.
    Regards,
    Harish

  • Why have I stopped getting photostream pictures on my pc

    I have iCloud installed on my iPad (5) and iPad (1) and my PC. Everything was working till sometime recently when I noticed I've stopped getting pictures from my PhotoStream copied up to my PC. Between the two IOS devices, no problem.  Thanks,  Mike

    What confuses me is I don't havve or want it on my Laptop. But now that I have an iPhone, do I have to accept updates recreived on my Laptop so iPhone doesn't become outdated.
    Okay. You don't have to install Safari on the laptop (in order to keep your phone updated).
    Try launching Apple Software Update. Check the Safari entry, and then go "Tools > Ignore Selected Updates".
    That should hide it until a new version comes out. If you get shown a new version, repeat the procedure.

  • Stop getting mail, but keep sending

    I have an IMAP account that I want to stop getting mail from, but still send mail from. How can I do this?

    Hello,
    In addition to not checking for new mail automatically, take the account Offline -- Mailbox/Online Status/Take Offline/choose account.
    Of course, you can also create New Mailboxes, and transfer the messages there, if you will never receive or send with this account. Btw, taking an account Offline, does not prevent sending with that address.
    Ernie

Maybe you are looking for

  • A few quick questions about my new MP3 pla

    Ok, I like to get to know anything I buy so I decided to come here and ask, I hope you dont mind answering (My MP3 player is the MuVo c00): ) In the instruction manual it says that play WMA file reduce the battery life of your player. Since convertin

  • XI 3.0 Which mapping to used when ? If choice is given to me...

    Hi     Out of all mappings (Graphical message mapping ,Java Mapping,XSLT mapping,      ABAP mapping).      If choice is given which mapping i need to use? What are the conditions to      go any specific mapping ?      <u>Pls...expalin me all in detai

  • Mini Not Working-Help Needed ASAP!!

    Hi guys, I have pretty much a massive problem. I just got a 4GB iPod Mini and it isnt working. By not working I mean its not working!! I installed the applications on the CD then connected my iPod expecting it to start charging and......nothing!!! I

  • ITunes Not launching at all

    I upgraded to the latest version of iTunes a couple weeks ago and since then I haven't been able to launch iTunes at all. It looks like it's starting but nothing happens. I check my task manager and it's there and I can't end the process either witho

  • Insert webpart zone in tabs in webpart page using sharepoint designer 2010

    Hi All, I am facing a problem , its looks very easy but i couldn't found any clue about this. i have created a webpart page, after this i have enable to view quick launch in this webpart page. then i have create a some tabs with reference to this sit