BAPI to delimit Infotype 0017.

Hi All
Is there any BAPI to delimit the Infotype 0017? Is yes, please provide me with a sample code of what all values to pass.
I tried searching on the forums but couldn't get it.
Thanks in advance.
Harsh

Hi,
1.Check the time Constraint of infotype 17.
2.You can use Function Module -
    call function 'HR_INFOTYPE_OPERATION'
         exporting
              infty         = '0017'
              number        = employeenumber
              validityend   =   validityend ( delimit date
              validitybegin =  validitybegin
              record        = p0017 (infotype 17 record)
              operation     = 'MOD'
                  tclas         = 'A'
         importing
              return        = ls_return
                key           = lv_emplcommkey.
         exceptions
              others        = 0.
Or operation 'LIS9'
Regards,
Manoj.

Similar Messages

  • Infotype 0017 changes

    Hello All,
    I have one query from Infotype 0017 (Travel management). How to edit or select the indicator Trip Assigned under Employee has trips in Infotype 0017 as my user was able to select this before but now not.
    Please suggest.
    Thanks & Regards,
    Esha

    Hello Esha,
    The report RPRFLDEL reset the status of field 'has trips assigned' IT017. It will be make the field "blank". When you create a trip for a personnel number for the first time it will marked the field 'has trips assigned' in IT0017 automatically.
    To reset this field the report RPRFLDEL is executed.
    Hope the above should help.
    Best Regards,
    Deepak..

  • Infotype 0017 and 0027

    Dear All,
    is there any possibility to charge the travel expenses of the employee to a cost center that doesnu2019t belong to the company code where the employee is engaged? This is the case of an employee that is engaged in one country (e.g. Italy) and work for another company (cross border, e.g Germany).
    Using the infotypes 0017 and 0027 Iu2019m able to assign a CC related to a different company code (and controlling area), but as expecting Iu2019m facing issue when I run the FI accounting programu2026
    Could you provide more details about those infotypes

    Using the infotype 0017 Iu2019m facing a blocking error related to Tax code.
    Seems that  this error is generated due to a check that the system is performing between company code identified to be posted the expenses (coming from infotype 17, in the example Italy) and the company code where the employee is engaged. In fact the tax code is created only for Italy while the company code to be posted is Germany.
    So if there is a way to allow to the system to propose to Italian employee the Germany trip variant, I will skip the error since the Germany expenses will have the correct Tax code.

  • Default values for fields in infotype 0017

    Is there any way to set default values for fields in infotype 0017? Maybe a
    feature? I'm thinking about defaulting values based on pay scale group.
    Thanks before.

    Hi
    You can implement what i suggested in my previous post.
    Or else, you can do what we did in one of our client requirement.
    We created a custom Ztable where we had defined which value of the the employee grouping to be placed for which record.
    We did that on the basis of the company code fields.
    For eg: IF BUKRS = 'TR01'
    then EE Grp Expense Type = '1'.
    ENDIF.
    Similarly for other fields.
    Hope this helps.
    Harsh

  • Need info regarding infotype 0017.

    Dear Experts,
    I am new to Travel Management.
    In infotype 0017, I need information regarding RGrp M/A Statutory, RGrp M/A Enterprise,EE Grp Expense Type and EE Group Travel Mgt fields.
    I verified few config documents of Travel Management but could not understood the applicability of the above fields. Please help me in this regard.
    Points could be awarded accordingly.
    Regards,
    Dolly

    Hi,
    RGrp M/A Statutory->  Identifies a reimbursement group for meals/accommodations for which the same statutory or pay scale trip provisions for meals and accommodations are valid
    A reimbursement group is a grouping of employees for whom the same trip provisions are valid. The reimbursement group is specialized by the trip expense category.
    A reimbursement group for meals/accommodations is a reimbursement group for which the same trip provisions for meals/accommodations are valid.
    The reimbursement group for meals/accommodations is specialized as to whether it is needed to represent statutory/pay scale or enterprise- specific trip provisions.
    Example
    Trip costs levels A, B, C according to German Travel Expense Statutes
    Grouping of employees according to pay scale groups
    RGrp M/A Enterprise-> Identifies a reimbursement group for meals/accommodations for which the same enterprise-specific trip provisions for meals and accommodations are valid
    A reimbursement group is a grouping of employees for whom the same trip provisions are valid. The reimbursement group is specialized by the trip expense category.
    A reimbursement group for meals/accommodations is a reimbursement group for which the same trip provisions for meals/accommodations are valid.
    The reimbursement group for meals/accommodations is specialized as to whether it is needed to represent statutory/pay scale or enterprise- specific trip provisions.
    Example
    Members of the Executive Board
    Managers
    Salaried employees
    Industrial workers
    EE Grp Expense Type -> An employee grouping for trip expense type is a classification of employees for whom these trip expense types are permissible.
    Example
    - Executive Board
    - executive employee
    EE Group Travel Mgt fields-> An employee grouping for Business Trip Management is a classification of employees designed to fulfill the purposes of Business Trip Management.
    Example
    - employee
    - mailman
    - other
    Regards,
    Pramitha.

  • Defaults on Infotype 0017

    Hi
    Can you guys pls help.
    How can i get the follwing fields: company code, Business area, cost center to default in Infotype 0017?
    Thank you in advance.

    Hi
    Write a dynamic action on IT0001, so that it can have the values from Org Assignment IT and can default in IT0017.
    If you have any further queries do let me know
    Hope this will be of help
    Regards,
    Guds

  • Travel Privelege Infotype 0017 - default values

    Dear All,
    Is there any standard features available in Travel Privelege Infotype 0017 to default values in fields,
    RGrp M/A Statutory
    RGrp M/A Enterprise
    EE Grp Expense Type
    Thanks
    Ravi

    Hi SAP HCM,
    The code is pretty standard i guess, but you have to understand that this wont work if you try to maintain the infotype individually. our case before was on hiring process (PA40), the 0017 need to be populated automatically. What do we do is we put dynamic action to infotype 0171 (benefit - because those two infotype are related in our case).
    0171     06   01  P  T1000p=MOLGA='xx' your molga
    0171     06   02  P  PSAVE-BENGR <.> P0171-BENGR    ' To make sure if nothing change on 0171 then dont proceed
    0171     06   03  I   INS, 0017
                        04  W  P0017-ERKLA='1'  ' set RGrp M/A Statutory = 1
    You need to tune the code since i write it only with my memory. You could also use condition, if employee group a then the value is 2 or so. Hope it helps.
    Regards
    Edited by: Hendri Salim on Oct 14, 2011 8:43 AM
    Edited by: Hendri Salim on Oct 14, 2011 8:43 AM

  • Travel Privilege Infotype (0017)

    Dear All,
    On trying to create Travel Privilege Infotype (0017)  I am getting the following error:
    Table V_T702N_A, argument 40 is not fully maintained
    When I checked the table for variant 40, Industry field is blank (there is no value for this).
    How to solve the problem?
    Regards
    Astha

    Hi Astha,
    the field must not be set blank. If you do not use it, you must at least set it to '0'. '0' is not the same as blank.
    Cheers, Lukas

  • Delimit Infotype 0105 Subtype 0001

    Hi All
    I am new to ABAP so need help.
    We need to delimit Infotype 0105 subtype 0001 records.
    I tried vai a number of ways but facing issues in someway or the other.
    When I try to do the same via FM: BAPI_HRMASTER_SAVE_REPL_MULT, it creates a new entry for the same record with end validity day as system date (the old record which has end validity date as 31.12.9999 remains).
    When i try to do the same via FM: BAPI_EMPLCOMM_DELIMIT, it throws an error 'EPG                  009No data stored for 0105 in the selected period' even though the record exists.
    CALL FUNCTION 'BAPI_EMPLCOMM_DELIMIT'
      EXPORTING
        employeenumber       = '00000049'
        subtype              = '0001'
        objectid             = 'P'
        lockindicator        = ''
        validitybegin        = '20100701'
        validityend          = '99991231'
        recordnumber         = '000'
        delimit_date         = '20120219'
    *   NOCOMMIT             =
    IMPORTING
       RETURN               = return.
    *   EMPLCOMMKEY          =
    Not sure how to go about it. I searched the forum which suggested to use Function Modules, but even then the issue isn't getting resolved.
    Please help.
    Martin

    Hi
    Your problem is the parameter OBJECTID It doesn't make sense to pass a 'P'.
    Other than that, you just have to lock and unlock the Personnel Number accordingly.
    Regards
    data: return type BAPIRETURN1.
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
      EXPORTING
        number        = '00000224'
    * IMPORTING
    *   RETURN        =
    CALL FUNCTION 'BAPI_EMPLCOMM_DELIMIT'
      EXPORTING
        employeenumber       = '00000224'
        subtype              = '0001'
        objectid             = ''
        lockindicator        = ''
        validitybegin        = '20070101'
        validityend          = '99991231'
        recordnumber         = '000'
        delimit_date         = '20120219'
    *   NOCOMMIT             =
    IMPORTING
       RETURN               = return.
    *   EMPLCOMMKEY          =
    BREAK-POINT.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
      EXPORTING
        number        = '00000224'
    * IMPORTING
    *   RETURN        =

  • Need to delimit infotype pa2006 record 'HR_INFOTYPE_OPERATION'

    Hi
    I need to delimit infotype record of infotype pa2006  in my own function module.
    start date =  01.01.2009
    delimit date = 01.01.2010
    PA2006
      SELECT * FROM PA2006 INTO IT_PA2006
                    WHERE PERNR EQ PERNR
                      AND ENDDA LE '99991231'.
      ENDSELECT.
      IF SY-SUBRC = '0'.
        WA_TAB1-INFTY = '2006'.
        WA_TAB1-FNAME = 'P2006-PERNR'.
        WA_TAB1-FVAL = IT_PA2006-PERNR.
        APPEND WA_TAB1 TO IT_TAB1.
        WA_TAB1-INFTY = '2006'.
        WA_TAB1-FNAME = 'P2006-BEGDA'.
        WA_TAB1-FVAL = IT_PA2006-BEGDA.
        APPEND WA_TAB1 TO IT_TAB1.
        WA_TAB1-INFTY = '2006'.
        WA_TAB1-FNAME = 'P2006-ENDDA'.
        WA_TAB1-FVAL = IT_PA2006-ENDDA.
        APPEND WA_TAB1 TO IT_TAB1.
        WA_TAB1-INFTY = '2006'.
        WA_TAB1-FNAME = 'P2006-KTART'.
        WA_TAB1-FVAL = IT_PA2006-KTART.
        APPEND WA_TAB1 TO IT_TAB1.
        WA_TAB1-INFTY = '2006'.
        WA_TAB1-FNAME = 'P2006-BEGUZ'.
        WA_TAB1-FVAL = IT_PA2006-BEGUZ.
        APPEND WA_TAB1 TO IT_TAB1.
        WA_TAB1-INFTY = '2006'.
        WA_TAB1-FNAME = 'P2006-ENDUZ'.
        WA_TAB1-FVAL = IT_PA2006-ENDUZ.
        APPEND WA_TAB1 TO IT_TAB1.
        WA_TAB1-INFTY = '2006'.
        WA_TAB1-FNAME = 'P2006-ANZHL'.
        WA_TAB1-FVAL = IT_PA2006-ANZHL.
        APPEND WA_TAB1 TO IT_TAB1.
        WA_TAB1-INFTY = '2006'.
        WA_TAB1-FNAME = 'P2006-DESTA'.
        WA_TAB1-FVAL = IT_PA2006-DESTA.
        APPEND WA_TAB1 TO IT_TAB1.
        WA_TAB1-INFTY = '2006'.
        WA_TAB1-FNAME = 'P2006-DEEND'.
        WA_TAB1-FVAL = IT_PA2006-DEEND.
        APPEND WA_TAB1 TO IT_TAB1.
    ENDIF.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = 2006
        NUMBER                 = PERNR
       SUBTYPE                = IT_PA2006-SUBTY
      OBJECTID               =
      LOCKINDICATOR          =
       VALIDITYEND            = DATE
       VALIDITYBEGIN          = IT_PA2006-BEGDA
      RECORDNUMBER           =
        RECORD                 = IT_TAB1
        OPERATION              = 'MOD'
      TCLAS                  = 'A'
      DIALOG_MODE            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
       RETURN                 = RETURN
      KEY                    =
    Why it is not delimit the infotype record. Let me know if any other way to do the same.

    Hi friend please do this
    "Need to lock the employee before delimiting
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number        = px_infty_key-pernr
    IMPORTING
           return       = px_bapireturn.
    "in the 'HR_INFOTYPE_OPERATION' we need to specify all the details of the infotype what i have mentioned belo
      CHECK px_bapireturn-type NA 'AEX'.
      CLEAR: px_bapireturn.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'       " Updation of Employee Record
        EXPORTING
         infty                  = px_infty_key-infty
         number                 = px_infty_key-pernr
         subtype                = px_infty_key-subty
         objectid               = px_infty_key-objps
         lockindicator          = px_infty_key-sprps
         validityend            = px_infty_key-endda     "just give the date which you want to delimit with
         validitybegin          = px_infty_key-begda
         recordnumber           = px_infty_key-seqnr
         record                 = px_infty_data
         operation              = lc_mod
         tclas                  = 'A'
         dialog_mode            = '0'
         nocommit               = space
       IMPORTING
         return                 = px_bapireturn
         key                    = px_bapikey.
    "Unlock the employee after the operation
      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'       " Unlock the Employee Record
        EXPORTING
          number        = px_infty_key-pernr.
    I think will will solve your problem.
    Just try it and let me know if you have any issues.
    Thanks and Regards,
    Sri Hari Anand Kumar

  • Procedure to Delimit Infotype 1613

    HI,
    I need to delimit infotype 16313 for about 350 positions whcih are assigned to single Worker compensation code. Accept PP02 anyone pleasee let me know hos can i do this in bulk. Is there any fast entry or any programe to delimit WC code entries for all the positions at a time?
    Please help me in this.
    Thanks & Regards,
    Naga

    Hi Naga,
    Try transaction RE_RHGRENZ2.
    Good luck,
    Dilek

  • Delimit Infotype

    Hello All
    I have IT210 which pops up if i do any Action but when new record is created its not delimiting, Time Constraint for this infotype is 2. In previous threads i can see Operation LIS9, will that be  good option or any other way out?
    Thanks
    A.

    Hi Tarangini,
    Your Objective is to delimit the infotype 0167 - Health Plans -
    This would mean that you want to delimit and create a new record with a new dependent coverage option.
    If thats the case, the simple solution would be:
    1. Maintain an Adjustment Reason for Change of Coverage
    2. Once maintained, this should call HRBEN0001 program wherein you can enroll with new Coverages...
    3. Use HRBEN0014, Terminate the PERNR from the Previous Benefit Plans.
    In your case, you will have to do all these at one go.
    You may also want to have a look at this link (Delimiting IT0167 using Dynamic Actions)..
    [Re: Delimit health benefits last day of month using dynamic actions;
    Hope this helps.!!!!
    Good Luck !!!
    Kumarpal Jain.

  • BAPI for updating infotype 0019 - Date Monitoring

    Hi,
    Does anyone know if there a BAPI for creating/updating infotype 0019 - Monitoring of Dates?
    Many thanks,
    Paul

    Hi Paul,
    1. HR_INFOTYPE_OPERATION
       This is the FM (for all infotypes, even 0019)
    2. If u want something like BAPI (RFC Enabled),
       what u can do is that
      create a new Z Fm,
      and call the FM
    HR_INFOTYPE_OPERATION
    in this.
    regards,
    amit m.

  • Bapi for closing infotype 169

    Hi guys,
    I have a requirement in which if an employee transfers, i need to close the current plans(169,165,377) with the transfer date- 1 day and create new plans(169,165,377) with the begin date = tranfer date.
    Is there any bapi to update the current plans with the end date = transfer date - 1 day? please let me know if there is any bapi or even if any other method is also ok.
    also let me know if there is any function module to create the above infotypes.
    Can u201CBAPI_BEN_BUS3029_CREATE_PLANSu201D be used for closing the current plans for all infotype?
    actually wat does the BAPI_BEN_BUS3029_CREATE_PLANS do?
    Thanks.

    Hi ,
    you should search in SDN before you post.
    FM HR_INFOTYPE_OPERATION will be useful for you , check its documentation,or search here for sample programs.
    regards
    Prabhu

  • BAPI for creating infotype p0000?

    Hi everyone,
    Is there any BAPI to create exclusively infotype p0000?
    Thanks!

    hi,
    You can use Fm
    HR_MAINTAIN_MASTERDATA.
    Regards
    Sumit Agarwal

Maybe you are looking for