cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to delimit Infotype 0017.

former_member217316
Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi Harsh

Infotypes will delimit using the Time-Constraints.In HR using the Time-Constraints,we can delimit any of the Infotypes.

Regards,

Sreeram

former_member217316
Contributor
0 Kudos

Hi Sreeram

Thanks for your response. Please provide a sample code for delimiting Infotype 0017 using time constraint.

Regards

Harsh

Former Member
0 Kudos

Hi,

Please try FM HR_INFOTYPE_OPERATION.

Regards,

Dilek

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Harsh,

You can delimit infotype 17 for a set of employees using BDC also.

regards,

Brinda

Former Member
0 Kudos

Hi,

As Sreeram said, Delimitiation is based on time Constraint Concept.

IT0017 is of Time Constraint 2.

means, Only one record may be available at one time, but time gaps are permitted.

So, could you please be clear about how your records will be maintained.

If you want to make only one record at a time and no gaps are allowed, we can simply change the Time Constraint of the Infoptype as per your needs and this will serve your Purpose.

Hope you got my point.

regards,

Satya.

former_member217316
Contributor
0 Kudos

Hi Satya

My requirement is such that i want to deactivate the travel privilidges of that particular person. He should not be able to create a travel request/expense report on the portal ones he's deactivated. For eg: As of now the Infotype 0017 exists from 01.01.2005 to 31.12.9999. I need to change it to exist from 01.01.2005 to 23.07.2009. So that he can create the request/expnse report for today but tomorrow he is not.

I hope i am clear with my requirement.

Provide me with a sample code.

Regards

Harsh

Note: We are not using the BDC for creating/modifying the records.

Former Member
0 Kudos

Hi Harsh,

As i have mentioned in my previous post. If you want to delimit the infotype 17 for a set of employees, you can use BDC.

If you want i can give you the steps to do the same. IT is simple and this method what i would be suggesting can be done even by the functional constultants.

You can also take the help of an abaper to do the same.

I have done this earlier. Do let me know if you want the procedure to run BDC.

Regards,

Brinda

Former Member
0 Kudos

Hi Harsh,

check this out

http://saphruser.com/sap-hr-reports/

try this.

regards,

Brinda

Edited by: BrindaL on Jul 24, 2009 7:47 AM

Former Member
0 Kudos

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.