DEFAULTING DELIMIT DATE HR INFOTYPE OPERATION

Is it possible to set a default date for delimiting infotypes in function module HR_INFOTYPE_OPERATION...
Rewards guarantee

hi
to set a default date range for the infotype, lets say you want the latest data then you can pass the following parameters to the function module.
move sy-datum to VALIDITYEND.
move 99991231 to VALIDITYBEGIN.
then executel the function module.
Thanks.

Similar Messages

  • Infotype Operation: Infotype with TABNR and HRT tables

    Hi all,
    Can anyone share the code for updating the infotypes and corresponding HRT tables having TABNR field for example infotype 1018 and HRT1018.
    Thanks,
    Shilpa

    Hi,
    Go through below code
    The HR_INFOTYPE_OPERATION function module is used for the Maintenance of HR infotypes, such as inserting, changing, deleting data etc
    Parameters Explained
    Here is a list of the fm's parameters and how they are used, obviously not all parameters will be used depending on what function you are performing i.e. insert, change, delet etc
    infty - Infotype being updated
    objectid - object id from infotype
    number - Personnel number
    validityend - validity end date
    validitybegin - validity begin date
    record - infotype record values to be updated, inserted etc (will be structure of infortyoe you are updating)
    recordnumber - sequence nunber from infotype record you are updating
    Operation - describes what operation is to be performed
    COP = Copy
    DEL = Delete
    DIS = Display
    EDQ = Lock/unlock
    INS = Create
    LIS9 = Delimit
    MOD = Change
    INSS = Create for Actions is not converted to Change
    nocommit - commit yes('X') / no(' ')
    dialog_mode - dialog mode or not, default is '0'
    Example coding for MOD operation
          CONSTANTS: change TYPE pspar-actio VALUE 'MOD'.
          "This code is requred and locks the record ready for modification
          CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
            EXPORTING
             number = p_pernr.
          "loop at p0071 into p_p0071.  "added to put code in context
          validitybegin = p_record-begda.
          validityend   = p_record-endda.
          p_record-endda = pn-begda - 1.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              infty         = '0071'
              subtype       = p_record-subty
              objectid      = P_record-objps
              number        = p_record-pernr     "employeenumber
              validityend   = validityend
              validitybegin = validitybegin
              record        = p_record
              recordnumber  = p_record-SEQNR
              operation     = change
              nocommit      = nocommit
              dialog_mode   = '0'
            IMPORTING
              return        = return_struct
              key           = personaldatakey
            EXCEPTIONS
              OTHERS        = 0.
           "endloop.
         "unlock record after modification
         CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
           EXPORTING
            number = p_pernr.
    Example coding for INS operation
          CONSTANTS: insert TYPE pspar-actio VALUE 'INS'.
          "This code is requred and locks the record ready for modification
          CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
            EXPORTING
             number = p_pernr.
          validitybegin = p_record-begda.
          validityend   = p_record-endda.
          p_record-pernr = p_pernr
          p_record-begda =  pn-begda.
          p_record-endda =  validityend.
          p_record-subty = p_SUBTY.  "subtype of new entry
          p_record-SCREF = p_SUBTY.  "subtype of new entry
          "plus populate any other fields you need to update
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              infty         = '0071'
              subtype       = p_record-subty
              number        = p_record-pernr     "employeenumber
              validityend   = validityend
              validitybegin = validitybegin
              record        = p_record
              operation     = insert
              nocommit      = nocommit
              dialog_mode   = '0'
            IMPORTING
              return        = return_struct
              key           = personaldatakey
            EXCEPTIONS
              OTHERS        = 0.
         "unlock record after modification
         CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
           EXPORTING
            number = p_pernr.
    Thanks,
    venkat

  • FM - HR_INFOTYPE_OPERATION - Unable to delimit data using this FM

    Hi All,
    I am trying to delimit the end date of infotype 0014 using function module "HR_INFOTYPE_OPERATION", Though the FM returns a zero return code and the sy-subrc is also zero. The FM doesnt sav ethe data. I do not get any error in this FM, But i see no date is not delimited.
    I have used the below code to demilt the end date.
    CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
            EXPORTING
             number = int_tab_0014-pernr.
        CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
               INFTY                  = '0014'
               NUMBER                 = int_tab_0014-pernr
               SUBTYPE                = int_tab_0014-subty
               OBJECTID               = int_tab_0014-objps
              OBJECTID               = ' '
               LOCKINDICATOR          = int_tab_0014-sprps
              VALIDITYEND             = int_tab_0014-endda
               VALIDITYEND             = l_valend     "99991231
               VALIDITYBEGIN           = l_valbegin   "20110101
               RECORDNUMBER            = int_tab_0014-seqnr
               RECORD                  = g_record
               OPERATION               = 'MOD'
               tclas                   = 'A'
               DIALOG_MODE             = '1'
              NOCOMMIT                = ' '
            IMPORTING
                RETURN                 = g_return
                KEY                    = g_key.
    call function 'BAPI_TRANSACTION_COMMIT'.
    CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
           EXPORTING
            number = int_tab_0014-pernr.
    I have also tried commit work, but it doesnt work as well.
    Could someone please get me on this? How do i save the delimit of end date?
    Regards,
    Suchitra

    Hi,
       LIS9 does not work to delimit. Instead use INS and try inserting a new record , which should automatically
    delimit the previous record.
    Regards,
    Srini.

  • Infotype Operation

    Hi,
    Can someone explain me following Infotype operation's, with an example please and also, how we should decide which operation for an Infotype will suit the best to the client.
    Create INS
    Copy   COP
    Change MOD
    Delimit LIS9
    Create operation for actions  INSS
    Please do not copy paste R/3 defined definitions here,I have already gone through it and I'm looking for further explanation.
    Thanks,
    Tk

    Hi Tina,
    This FM is generally used to perform data base record change for an Infotype
    INS- Create
    Creates a new record in the system
    COP- Copy
    Copy the existing record from the system
    MOD- Modification
    Change the existing record in the system
    LIS9
    Delimit the Existing record in the system
    And so Onn..
    Look into the code below for your reference
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty         = c_i0014                               "'0014'
          number        = wa_zltcbill-pernr
          validityend   = ld_validityend
          validitybegin = wa_zltcbill-zdate
          record        = wa_0014
          operation     = ld_operation
          tclas         = p_tclas
          dialog_mode   = p_mode
        IMPORTING
          return        = p_wa_return.
    Regards
    Pavan

  • Error coming while modifying data in infotype through HR_INFOTYPE_OPERATION

    I have created a report which reads a excel file fom the system and then upload data in infotype 0077 through HR_INFOTYPE_OPERATION. In this report first I check if the record exists in IT0077 for a particular employee , if not then creates a new record with the input file data and if the records exists then I need to modify that record.
    But the problem is that on updation the function module HR_INFOTYPE_OPERATION always return an error that "Infotype doesnot exist", although its exists in the system.
    Why this error comes when once I excuted the report with a pernr number for creation and then I execute with teh same data to modify it, it gives an error in modification.

    iam not sure
    When we create we have to use INS in the code and when we modify we have to use Operation  MOD
    Since Dilek  our Techinical consultant  is there hope your issue is solved

  • How to set the default display date of Calender prompt of SMPortal???

    Good Day!!
    As for as my knowledge, the default date Visible in all Calender prompt will be the
    Starting Date in the Specified date range either "RelativeDateRange" or "AbosoluteDateRange".
    But we have a requirement to set the default date to a date in the middle of the specified range, I don't find any option to specify in Request Offering Wizard or MP's xml file.
    Our scenario is as follows,
        We are trying to customize the CSPP's request offer "Request Virtual Machine", which has a user promt to select Decommission Date for the New VM. We have configured the date prompt as Relative Date range and set the
    Start date as "1 day next to user's current time" and Maximum date to "90 days after relative date".  So the user will get option to select Decomm date from (1-90) days with the defalut date as 1st day next to his current
    time. But our requirement is to set the default available date as 90th date in the above mentioned Relative Date Range.  
         I couldn't find any option in Request offering Wizard as attached below,
          Also I couldn't even find any tag to specify the default display date in the MP's XML file as attached below. Is there any other <tag> can be included inside <Details> tag to accomplish this ??
        Is there any other way to accomplish this???
        Please advise
    Thanks,
    Narayanababu
    Thanks and Regards, Narayana Babu

    This is probably a link editor parameter, see the linker and loader guide.
    Another thing you can do is write your own sbrk() that will log whenever it's called, so you can at least see how many times it's called and with what values. If you really need in-depth instrumentation, write your own heap routines and give them the same names as the CRTL routines. The linker should find yours first and route all memory operations through them. At least, that's the way it worked for me on SunOS 4.1....

  • SCD type 2 Dimension default expiration date

    I am using OWB 10.2.0.2.8 and exploring the SCD handling for dimensions.
    I have setup a simple dimension with a single level (no hierarchy) using the Wizard, set the SCD property to type 2 and chosen the Trigger History attributes.
    When I now use the dimension in a mapping (basic population from a base table), I want to set the effective date and expiration dates. I am calling a custom function to derive the effective date = current business date and want set the expiration date to a function based value (a system high date rather than NULL).
    The dimension properties in the mapping allow a value to be entered (e.g. TO_DATE('31-dec-9999','DD-MON-YYYY') but not a function call. I am getting the following validation error:
    "VLD-5011: Dimension RISK_CLASS_DIM: The Default Expiration Date of closed records for dimension RISK_CLASS_DIM should be an expression of type DATE.
    Value PKG_CONSTANTS.EFFECTIVE_HIGH_DATE is not a valid date: PLS-00201: identifier PKG_CONSTANTS.EFFECTIVE_HIGH_DATE must be declared"
    Any suggestions?

    the current flag could be set in a Derived Column with an expression like: RowEffectiveDt < GETDATE() && RowExpirationDt >= GETDATE() ? "Y" : "N"
    http://msdn.microsoft.com/en-us/library/ms141680.aspx ? : operator
    http://msdn.microsoft.com/en-us/library/ms139875.aspx
     GETDATE()
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Delimit dates - hr abap

    hi,
      I want to delimit the end date in infotype '0009', when separation action type is executed. guide me how to do that.

    Hi Rajesh,
    Yes it can also be done via a BAdI or User exit.. but the best approach is to do it with a Dynamic Action. This would require no programming effort & as such easy to maintain. It is part of config & usually done by the functional folks. If you are the one doing it, go to SM31 & enter V_T588Z and click mainatin. enter 0000 as the infotype. You should then make entries in the view..
    like ..
              06     18     I     LIS9,0009,,,
    ~Suresh

  • HTMLDB_TOOLS by Vikas  (Post Tab Delimated Data using Text Area)

    Hi
    We want to upload tab delimated data using text area (user will paste data in text atrea instead of uploading csv file)
    The data format will be
    .-----Col_1-----Col_2-----Col_3
    1-----10.78-----12.58-----11.92
    2-----11.66-----12.77-----12.49
    3-----10.83-----13.05-----12.92
    4-----11.54-----13.27-----13.72
    5-----11.45-----12.83-----12.89
    6-----11.81-----11.29-----12.33
    7-----12.60-----12.31-----12.72
    8-----11.78-----12.44-----12.55
    9-----11.97-----11.95-----12.49
    10-----11.50-----12.28-----12.15
    Where
    ----- indicates tabs
    1. Col_1 ,Col_2,..... are column headings
    2. Col_1 heading will be always blank as indicated
    3. Default Data Type for all columns will be varchar2(10)
    4. Number of Columns may vary upto *150*
    Regards
    Edited by: jazib on Jan 21, 2009 8:15 PM

    thanx for the re Dalerich1, but no, unfortunately i have a
    banking CRM-app which i have to simulate, and within that
    simulation swf there has to be that functionality.
    plus, since the app is still in development, it may change
    within the next couple of weeks, so i'd have to be able to record
    the functionality again with captivate (customer requirement) &
    then efficiently & quickly make it work like in the real thing.
    otherwise (if thmy customer wouldn't insist in using
    captivate) i might have dropped captivate in favor of flash a long
    time ago...
    any other directions anybody? i can't believe this simple
    task is costing me so much time and effort.
    thanx
    caveman

  • Default key date, Document date and posting date needs to be changed automa

    Hi Experts,
    The user wants to create a variant for Foreign currency valuation, wherein the default key date, Doc date and Posting date needs to be changed every month automatically. Is it possible?
    Please let me know your thoughts.
    Warm regards,
    Murukan Arunachalam

    Hi
    Please follow this process.
    Only specify fields that should be changed
    Select these fields by entering an X in the checkboxes
    Enter a U in the UPDATEFLAG field
    Always specify key fields when changing the data, including in the checkboxes
    The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
    Maintain quantities and dates in the schedule line data.
    1. Minimum entry:
    You must enter the order number in the SALESDOCUMENT structure.
    You must always enter key fields for changes.
    You must always specify the update indicator in the ORDER_HEADER_INX.
    2. Commit control:
    The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

  • How to change the default "no data found"

    Hi,
    Is there a way to change the default "no data found" message of the "When No Data Found Message" in the Report Attributes?
    I would like to change that message for a French message. I know that I can change it manually in every section, but I would like another default messages appearing when i create a Report Section.
    Thanks

    Can you point me to a tutorial?Sure, Users Guide > Managing...Globalization (Chapter 15?)
    Is this not happening at run-time?Yes. What happens at runtime is the selection of the application to run. If you run a page in the Application Builder (app 4000) and that application had not been translated or your browser language were set to some flavor (flavour) of English, you get 4000. If app 4000 had been translated to French, say, and you request a page in 4000 and have your browser language set to French, then you'll really run the requested page from app 4002 which is a copy of 4000 translated to French long before your request came along.
    If you look at our distribution, you'll find 9 (or more) versions of each of the internal applications in the builder directory.
    Scott

  • Error message while changing the delimit date of a job in ppome

    Hi experts,
    I have delimited a job in ppome to date 11.05.2011. But now i want to remove that delimit date and change it to unlimited(31.12.2999). when iam trying to change the delimit date it is showing a popup message 'select a date between 15.11.2008 and 11.05.2011'. Can anyone say why it is showing this message. how can i delimit that job again to 31.12.2999.? Same problem with the position also.
    Pls help...

    Dear Priaynka,
    Thanx for ur reply, I am again furnishing below the details:-
    I have to change the Valuation Class of the material :-
    7 POS for which Goods Receipt & Invoice Receipt have been done from period 1 to 7.
    1 PO for which Goods Receipt & Invoice Receipt have not been made.
    All the material reced in period 1-7 have been consumed by MFBF. Now no material is available in the material in that plant.
    Should I change the valuation class by deleting the line item of all the PO's  7 POs + 1 PO.
    Please advise, as the fresh PO will be made with new val class and GR/IR and Consyumption will happen after the change is made.
    Please advise if I am wrong in the procedure.
    Regards,
    Alok

  • Short dump while changing the end date of infotype 0167 through PA30

    Hi all,
    I am getting short dump while changing the end date of infotype 0167(Health Plans) through Tcode PA30.
    dump descript is as below
    An exception occurred that was not caught.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_HRPA_VIOLATED_POSTCOND
    Date and Time          11.03.2010 07:06:26
    What happened?
        The exception 'CX_HRPA_VIOLATED_POSTCONDITION' was raised, but it was not
         caught anywhere along
        the call hierarchy.
        Since exceptions represent error situations and this error was not
        adequately responded to, the running ABAP program
         'CL_HRPA_SAPUP50R_ADAPTER======CP' has to be
        terminated.
    thanks
    shahid

    Search OSS Notes for that.

  • How does the GR processing time affect the scheduling of the process order & the latest start date in the operation.

    Hi
    Can anyone explain  how does the GR processing time affect the scheduling of the process order & the latest start date in the operation overview.

    Hi
    GR processing time means number of workdays required after receiving the material in storage.
    Check this link:GR Processing time
    Regards,
    Anupam Sharma

  • Defaulting a date field in the table

    Hi Experts,
    I need to default a date field(DATBI) in a table to 12/31/9999. Since the date is system specific i cannot hardcode it as 12/31/9999 in the events.
    For eg . in our quality system date is maintained as 12.31.9999.
    Please let me know how i can implement this.
    Regards,
    Anjali

    In my table say ZXXXX i have a field DATBI.  My requirement is to default this field's value to 12/31/9999 while maintaining the table.
    Since date field is system specific. For eg , in our Dev system Date format is 12/31/9999. where as in quality it is 12.31.9999, I cannot hardcode it as 12/31/9999.
    I need to default the value for field DATBI irrespective of the system.

Maybe you are looking for

  • Load Order in a mapping

    any one has done a SINGLE MAPPING WITH multiple SOURCE TO multiple target like      source a TO target a      source b TO target b      source c TO target c in an order, which is first a should be feeded, THEN b and so ON... we have load order in Par

  • Create a Distribution Certificate as a p.12 file in Keychain Access not working?

    I need to create a Distribution Certificate as a p.12 file. I downloaded my ios_distribution.cer file from iOS Provisioning Portal/Certificates/Distribution/Download but this file will not install on my Keychain Access Certificates. Once installed I

  • How do I start Firefox with Evernote installed without deleting setting?

    I installed Evernote, but not installed Firefox add-on, I mean web-clipper. After that, I couldn't launch Firefox. I searched in the web about this issue, and I created a new profile, then Firefox started successfully by using the new profile. But I

  • Can I sync to a Macbook pro

    Good Day I had and old Palm III that I used to use with my Dell. Now I am thinking about getting the Z22.  Can I sync with my old Dell, then add the software to the Mac and sync from there? thank you  Post relates to: Palm Z22 This question was solve

  • Examples with Nokia PC Connectivity SDK 3.0 not wo...

    Windows XP SP2 PC Suite 6.70.22 Connection Method = cable Mobile Phone = 6100 Error Message: Run-time error '-2147467259(800004005)': Automation error Unspecified error I'm currently looking at the example code that comes with PC Connectivity SDK 3.0