ESS W4 application - picking up state from Emergency address

Hello,
The W-4 application in ESS is picking up emergency address of an employee and giving an option to create an IT0210 record for that state also (if the state is different from the work state of the employee). However, this is not desired and emergency address should not have any thing to do with W-4 records of the employee.
Since we could not find any configuation to avoid this, we have implemented the BADI HRXSS_PER_SUBTYPE with custom logic to check only Infotypes 0207, 0208, and 0209 for the W-4 application. Only if active records exist for these infotypes, employee will be able to create a W-4 record for that state.
However I wanted to check with few other people out there, if there is any configuration available to prevent this from happening (instead of implementing the BADI).
Any inputs will be appreciated.
Thanks,
Shanti

Hi Siddharth,
I am having a similar requirement, and I did exactly as you have explained in this blog and one other blog as well.
However after the filtration is done and lets the subtype table contains 2 entries, it is being passed in to the class CL_HRPA_PERNR_INFTY_XSS : IF_HRPA_PERNR_INFTY_XSS~READ_METADATA,
Here my subtype table is being read and compared with a table   process_allowed_subtypes. This tables contains all the subtypes which were present before filtration.
The below given code then gets executed and since the entries are different in both tables an exception is generated. I really am not sure how this process_allowed_subtypes table is being filled.
Can you please suggest a way out?
* If the user has restrictions on subtypes on top of the t7xssspersubtype table, he gives it via the url parameters.
* Obviously, if the parameters are not available then do not process further for restrictions.
* If the url parameters contain subtypes that are not present in the t7xsspersubtype then throw an exception.
       IF process_allowed_subtypes IS NOT INITIAL.
         LOOP AT subtytab INTO subty_l.
           READ TABLE process_allowed_subtypes WITH TABLE KEY subtype = subty_l-subtype TRANSPORTING NO FIELDS.
           IF sy-subrc <> 0.
             DELETE TABLE subtytab FROM subty_l.
           ENDIF.
           IF sy-subrc = 0.
             DELETE TABLE process_allowed_subtypes WITH TABLE KEY subtype = subty_l-subtype.
           ENDIF.
           CLEAR subty_l.
         ENDLOOP.
* If the url parameters are given, then loop through the subtype-table and eliminate the subtypes that are not needed.
         DESCRIBE TABLE process_allowed_subtypes LINES lin.
         IF lin > 0.
           RAISE EXCEPTION TYPE cx_hrpa_invalid_customization.
         ENDIF.
       ENDIF.
     CATCH cx_hrpa_invalid_customization.
       IF 1 = 0.
         MESSAGE ID 'PG' TYPE 'E' NUMBER '016'.
       ENDIF.

Similar Messages

  • How do i CC: a group from my address book

    when I reply to a message, how do I pick a group from my address list and have the reply cc:'ed to everyone in that group ?
    in the "WRITE" box that pops up, there's no reference to address list and when I start typing the name of the group, it does not come up in the suggested completions.
    thanks
    richard

    In principle, open a Cc: box in your email message composition window, and add the "group" (aka Mailing List) to that.
    Is it OK for all the members of the List to see and know each others' addresses? Would Bcc: be appropriate?
    I don't like the sound of the Mailing List not being volunteered as a possible address. What if you use F9 to reveal the Contacts Sidebar and add it from there?

  • Use of Open and close data set in to pick up files from application server

    Hi,
    As per my earlier posts i m making a programm which will pick excel sheet from application server and make auto PR by bapi and this all process will be handle by background processing (SM36, SM37). My concer is all proces are working fine but my files are not been picked by application server , when run on my own machine everything is working fine.I never used OPENDATA SET command before , so i have no idea how it will be used , can anyone provide me details with my set of codes where it should be used ....
    sou_dir_name = 'Y:\Sucess\'.
    tar_dir_name = 'Y:\destination\'.
    Open dataset sou_dir_name for input in text mode encoding default.
    if sy-subrc eq 0.
       do.
           read dataset sou_dir_name into file_table.
       if sy-subrc ne 0.
         exit.  " end of file.
    enddo.
    endif.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        DIRECTORY  = sou_dir_name
        FILTER     = '.'
      IMPORTING
        FILE_COUNT = file_count
        DIR_COUNT  = dir_count
      TABLES
        FILE_TABLE = file_table
        DIR_TABLE  = dir_table
      EXCEPTIONS
        CNTL_ERROR = 1
        OTHERS     = 2.
    IF SY-SUBRC <> 0.
    ENDIF.
    loop at file_table into wa_file_table.
    clear  :  strr , str1 , str2 , str3 .
      strr = wa_file_table-PATHNAME .
      concatenate sou_dir_name strr into str1 .
      concatenate tar_dir_name strr into str2 . " success
      concatenate tar_dir_name1 strr into str3 .         " failed
    FILE = STR1 .
    *start-of-selection.
    *&  Function For Retrieve Data From Excel
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = FILE
        i_begin_col                   = col_start
        i_begin_row                   = row_start
        i_end_col                     = col_end
        i_end_row                     = row_end
      tables
        intern                        = excel_bdcdata
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3.
      IF sy-subrc NE 0.
    WRITE : / 'File Error'.
    EXIT.
    ENDIF.
      loop at excel_bdcdata.
        translate excel_bdcdata to upper case .
        move excel_bdcdata-col to it_index.
        assign component it_index of  structure  wa_file to <fs> .
        move excel_bdcdata-value to <fs>.
        at end of row.
          append wa_file to it_file .
            clear wa_file.
          endat.
      endloop.

    Parsing XML data:
    http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
    or alternatively check out ABAP online help for "CALL TRANSFORMATION".
    For creating the material master look at BAPI_STANDARDMATERIAL_CREATE.
    Thomas

  • My reader will not open a PDF file that I have downloaded from a government web site (an application form) - it states that the file is not good.  I can open on the web site but not from my mac computer

    My reader will not open a PDF file that I have downloaded from a government web site (an application form) - it states that the file is not good.  I can open on the web site but not from my mac computer.

    Maybe this: http://helpx.adobe.com/acrobat/kb/pdf-error-1015-11001-update.html ?
    Do you have a link to that document?

  • Is it possible to change application state from a component?

    I was wondering if it is possible to change application state from within a custom component and if so, what would the syntax be if I had an application named "zzz" and I wanted to change the app state from "state1" to "state2" from my component?
    Thanks!

    Hi,
    you always have a static class Application.
    Application.application will be the root component. After that you can change it state.
    Application.application.currentState = "state2";
    But it's not the best way to change states. It's better to dispatch events from components and change states in listeners.

  • How to access application state from stateless web service?

    I have a beginner J2EE question. After reading through J2EE tutorial, I still don't know how to create an application that would run on J2EE server, and which would have a web service interface to other world, and which would have several threads running, which would connect to other enterprise applications via TCP? Because if I understand it correctly, web service requires a stateless session bean, which means that it can't access any stateleful session bean (except always create one and remove it instantly). So there seems to be no way to store application state and have running threads.
    I'm asking this because .NET seems to have a very simple Application dictionary, which can save all application objects, including threads, and it is very easy to access this Application state from a stateless web service. Isn't there any similar functionality in J2EE? And if not, how it should be done in Java world then?
    I guess that the Connector architecture could be the solution, but it is not documented in the tutorial.

    There's nothing in the J2EE spec that says that you have to use Web Services. Web Services by definition are stateless.
    If your requirements are that you have to use a session bean along with a Web Service, then the architecture needs to be rethought, because it doesn't seem to me that Web Services are what you want.
    That said, you can use a hybrid. You can expose some of the functionality of your application as Web Services while the remaining is implemented in a classic J2EE type framework that is stateful.
    I would also think that you could store your application state via entity beans. You could save and load them when the web service is accessed. An entity bean doesn't require a database... just some form of persistence (could be an XML file for instance).
    You need to decide which components of J2EE make sense when and where.

  • Limitation on SQL executing select statement from ADO and Oracle 8.1.7.1 OleDB Driver

    Hi,
    we are running a query with a big dunamic select statement from VB code using ADO command object. When Execute method is called system hangs and control won't return back to the application. it seems to be that there is some type limitation on Query string length. Please tell us if there is any?
    we are running Oracle 8.1.7 Server on Windows 200 Server and connecting from a W2K professional, ADO 2.6 and Oracle OLEDB 8.1.7.1 OLEDB Driver.
    Sample code:
    Dim rs As ADODB.Recordset
    Dim cmd As ADODB.Command
    Set cmd = New Command
    With cmd
    .CommandText = ' some text with more than 2500 characters
    .CommandType = adCmdText
    Set rs = .Execute
    End With
    when i debug using VB6 and when .Execute line is called system hangs or return a message method <<somemethod> of <<some class name>> failed error.
    Any help is appreciated.
    Thanks,
    Anil

    A stored procedure would only slow you down here if it was poorly written. I suspect you want to use the translate function. I'm cutting & pasting examples from the documentation-- a search at tahiti.oracle.com will give you all the info you'll need.
    Examples
    The following statement translates a license number. All letters 'ABC...Z' are translated to 'X' and all digits '012 . . . 9' are translated to '9':
    SELECT TRANSLATE('2KRW229',
    '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
    '9999999999XXXXXXXXXXXXXXXXXXXXXXXXXX') "License"
    FROM DUAL;
    License
    9XXX999
    The following statement returns a license number with the characters removed and the digits remaining:
    SELECT TRANSLATE('2KRW229',
    '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', '0123456789')
    "Translate example"
    FROM DUAL;
    Translate example
    2229
    Also, LIKE '%<string>%' is going to be rather expensive simply because it has to compare the entire string and because it forces full table scans, rather than using indexes. You could speed this sort of query up by using interMedia Text (Oracle Text now in 9i). If you can eliminate one of the '%' options, you could also improve things.
    My guess is that your stored procedure is inefficient and that's causing the problem-- 5k rows per table should be pretty trivial.
    If you post your query over on the PL/SQL forum, there are better performance tuners than I that might have more hints for you. To get really good advice, though, you'lllikely have to get at least the execution plan for this statement and may need to do some profiling to identify the problem areas.
    Justin

  • Pick the  file from FTP Server and place it on the App. Server of R/3

    Hi Guys,
      I had a requirement where i need to pick the file from the FTP Server and place it on the Application Server in R/3. If anybody has an Idea on acheiving this or if anybody has the piece of Code Snippet to acheive the same, Help me out.
    Regards,
    Kittu Chowdary.

    hi kittu,
    chk the demo programs RSFTP00* if they can help u

  • Can we run in Background job which can pick a file from front end ?

    Hi All,
    I would like to run a report in Background job , for this i need to pick a file from front end services(Local drive or share folder)
    Is there any alternate FM=>GUI_UPLOAD  to upload data from front end services or any other solution for this?
    I am getting error=> "No batch" and " Cannot perform frontend function in batch input mode"
    Could you please help on this ?
    Thanks for your help in advance.
    Regards,
    Prasad.

    Hello Prasad,
    IF you keep your file on a shared folder on your front end, you can access it via OPEN DATASET if your application server has access to that path.
    You can test it out by asking Basis to try and access your front end file from the app server itself.

  • If I preorder an iPhone 5 will it arrive at my house on the 21st or is that when it'll ship? I would like to have it the day it comes out so if it would be faster to order it online and then pick it up from the apple store, let me know! Thanks

    If I preorder an iPhone 5 will it arrive at my house on the 21st or is that when it'll ship? I would like to have it the day it comes out so if it would be faster to order it online and then pick it up from the apple store, let me know! Thanks

    My experience is with the iPhone 4S and the "new" iPad, both of which I ordered early on the opening pre-order day. In both cases the wording from Apple during the media event was "pre-orders will start on ABC date for delivery on XYZ date" which was also the same day they were to go on sale in stores.  In both cases, the UPS truck rolled up earlier than usual XYZ date as promised to hand me my new iPhone/iPad. In both cases there were instances of confusion due to some pre-order confirmations stating incorrectly "SCHEDULED SHIPPING DATE: XYZ".  In both cases that caused much fear, panick, and trepidation that fed upon itself as it permeated a widely scattered forum linked community of "adults" that seem to collectively revert to a state of childish impatience and ultimately child-like glee as they obsessively refresh their dedicated tracking browser window; become convinced that there is no hope of escaping the dread delayed shippment, and then finally receive their new toy exactly when they were supposed to.  Not that I personally would ever succumb to that of course.  Er uhm ... it's just what I've seen you know .. nothing I can really relate to.

  • Retrieve city and state from zip code that is entered by user

    I am trying to use AJAX to retrieve city and state from a table based on a zip code that is entered by the user. Two are text fields (zip code and city) and one is a SELECT field (state).
    1. I defined an application item called TEMPORARY_APPLICATION_ITEM.
    2. I defined an application process called SET_CITY_STATE as follows:
        a. Process point: on demand
        b. type: anonymous block
        c. process text:
    <pre>
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    apex_util.set_session_state('P2_CO_CITY',v_city);
    apex_util.set_session_state('P2_CO_STATE',v_state);
    EXCEPTION
    WHEN OTHERS
    THEN
    apex_util.set_session_state('P2_CITY','Unknown city');
    apex_util.set_session_state('P2_STATE',null);
    END;
    </pre>
    3. Javascript is defined in the region header:
    <pre>
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_city_state(pValue){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_City_State',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    get = null;
    //-->
    </script>
    </pre>
    4. In the HTML Form Element Attributes of the P2_CO_ZIP text item: onchange="pull_city_state(this.value)";
    The city and state are not being populated. I checked the select statement and it is retreiving the city and state in SQL WORKSHOP > SQL COMMANDS.
    I would like to use it for the mailing address as well, so I would need to make the application process / javascript a bit more generic to be used in two places.
    I placed the application on apex.oracle.com:
    Workspace: RGWORK
    Application: Online Certification Application (28022)
    Can someone assists, please.
    Thank you,
    Robert
    Edited by: sect55 on Jun 2, 2009 4:11 PM

    Hi Robert,
    Try using XML instead of session state -
    Change the application on demand process with the following script -
    >
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CO_CITY">' || v_city || '</item>');
    HTP.prn ('<item id="P2_CO_STATE">' || v_state || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS
    THEN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CITY">' || 'Unknown city' || '</item>');
    HTP.prn ('<item id="P2_STATE">' || '' || '</item>');
    HTP.prn ('</body>');
    END;
    >
    in your javascript make sure you typing the application process name correctly as it is case sensitive.
    Hope this helps,
    Regards,
    M Tajuddin
    web: http://tajuddin.whitepagesbd.com

  • Executing db2 import statement from java

    we have developed an web application using J2EE technology on websphere and DB2 as a backend.
    I have to now develop a utility for data uploading from Excel to DB2. we can do it using IMPORT statement now i want to know is it possible to execute IMPORT statement from JSP/ Servelet and using javabeans.

    Yes, it is possible :-)

  • Customizing ESS~BEN application

    Hi All,
    Some customization is required in the ess~ben application.
    Requirement: The buttons in the ContainerPlanDetailView (of controller VcBenefitsPlanDetail) have to be copied in the PlansOfPlanTypeView (of controller VCBenefitsPlansOfPlanType). The functionality is also to be copied, i.e. the action performed by the buttons in both the view should be the same.
    I also want to know how we define navigation between perspective in this application or any ESS application.
    Thanks,
    Vibha Singhal

    Hi Vibha,
                First you copy  the buttons from layout tab of ContainerPlanDetailView  to layout tab of PlansOfPlanTypeView. Create actions with same names as  in ContainerPlanDetailView. Now copy the code  from methods onActionXXX of ContainerPlanDetailView   to that of PlansOfPlanTypeView.
    Check this [link|http://help.sap.com/saphelp_erp2005/helpdata/en/43/41840d47041806e10000000a1553f6/content.htm], if it is helpful for navigation  between perspectives
    Regards,
    Siva

  • Change base view state from a custom component

    I'm pretty new to flex and I'm having a small issue in change the view state from a component.
    My Application have 2 custom components called userlogin and main menu. In the main application page I have userlogin component in one state and the main menu component in another. I'm trying to change the state if the login in successful from user login to main menu. I have the following function written inside the login component.
    private function IsUserLoggedIn(evt:ResultEvent):void
                    if (evt.result.islogin.toString() == "true")
                        currentState = "MainMenu";
                    else
                        Alert.show("Login failed, please try again.", "Login Failed");
    This code worked when I had all the controls in the main page. But then I created components and included them in to components and now when the login is success, its giving the following error.
    ArgumentError: Undefined state 'MainMenu'.
        at mx.core::UIComponent/getState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UI Component.as:9908]
        at mx.core::UIComponent/findCommonBaseState()[E:\dev\4.0.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9928]
        at mx.core::UIComponent/commitCurrentState()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:9750]
        at mx.core::UIComponent/setCurrentState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\ core\UIComponent.as:9701]
        at mx.core::UIComponent/set currentState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6087 ]
        at components::UserLoginForm/__btnSubmit_click()[C:\Projects\WarrantyAutomation\src\componen ts\UserLoginForm.mxml:60]
    I'm sure this has something to do with accessing the states from a custom component, but I do not know how to change the state to the main menu. Please help me with this. Any help is greatly appriciated.

    Hi dasun1981,
    private function IsUserLoggedIn(evt:ResultEvent):void
                    if (evt.result.islogin.toString() == "true")
                        currentState = "MainMenu";
                    else
                        Alert.show("Login failed, please try again.", "Login Failed");
    If I am right the above function is in your userlogin component and the two components "userlogincomponent" and "maincomponent" are in main application file and the states were also defined in main application file.
    But in the function above the currentState refers to the state of the userlogin component and not the main application ...but the states are defined in main application file...that's the reason why the exception was thrown...
    Instead you replace the line in the above function with the below line:
    Application.application.currentState = "MainMenu";
    Please mark it as answer if it helped you.
    Thanks,
    Bhasker Chari

  • Allow this application to be installed from the install software task sequence action without being deployed

    What functionality does this setting enable when checked?  The only thing I find in product documentation (CM2012_Web.chm, 2/1/2014) states:
    For applications to be installed by using a dynamic variable list, the following setting must be enabled on the
    General tab of the application’s Properties dialog box:
    Allow this application to be installed from the Install Application task sequence action instead of deploying manually
    Note - My ConfigMgr 2012 R2 CU1 Application Properties now displays a tab labeled "General Information".  I do not find one labeled "General".  The configuration setting also reads "Allow this application to be installed
    from the install software task sequence action without being deployed" instead of "Allow this application to be installed from the Install Application task sequence action instead of deploying manually"
    Is application installation using a dynamic variable list the only time this configuration setting is used and functions?

    Yes, you only have to check that when using the dynamic variable list(s).
    Torsten Meringer | http://www.mssccmfaq.de

Maybe you are looking for

  • Windows 8 to windows 8.1 update failure

    hello everybody. I updated my laptop, hp envy ts touchsmart sleekbook 4-1202ea, from windows 8 to windows 8.1. It is giving boot configuration data is missing some information with error code 0xc0000034. Whenever I power on my laptop it shows me the

  • Application pool unable to check out application module instance in TOMCAT!

    Hi, I am able to run my bc4j application (WITH jsp CLIENTS) in JDEVELOPER just fine. But when I deploy it to TOMCAT, it gives me an error : "oracle.jbo.common.ampool.ApplicationPoolException: JBO-3003: The application pool WoopsBC4J.WoopsBC4JModule,

  • Change "Share" button email link default behavior of opening in Office Web App

    When staff use the "share" button to share documents. The URL link that get's emailed out defaults to opening in the browser Office Web App view. How can we change this so it defaults to opening in the client side application? The URL that is sent vi

  • To display bill of lading info in FBL3N

    Dear Experts, Could any one please share experience with me that if it is possible to display bill of lading info in FBL3N? if so how what configuration needs to be done? Thanks a lot. Regards Simon

  • Password expiry tracking report

    Hi, Appreciate anyone can help me. I have change the password expiry setting in the RZ10, from 30 days to 60 days. Is they any report tracking to check on the password expiry upon reset the password instead of counting it manually?Can we get this inf