cancel
Showing results for 
Search instead for 
Did you mean: 

provide...endprovide

Former Member
0 Kudos
83

hi experts,

I'm starting to learning hr programming. Upon reading the help on sap and the samples, how will I apply the provide...endprovide that gets only the intervals?

It would be appreciated if you could me an hr example where I could use this syntax:

PROVIDE { FIELDS {*|{compi}}

FROM itabj INTO waj VALID flagj

BOUNDS intlim1j AND intlim2j

[WHERE log_expj] }

BETWEEN extlim1 AND extlim2

[INCLUDING GAPS].

Thank you!

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I think you can use rp_provide_from_last & rp_provide_from_last

The sample code is as given below:

<b>rp_provide_from_last p0000 space pn-begda pn-endda.</b>

[Where space is the subtype]

Former Member
0 Kudos

Hi,

Just one more thing.

Please note that PROVIDE-ENDPROVIDE holds good only for Time Constraints 1 and 2.

For Time Constraint 3 LOOP-ENDLOOP needs to be used.

Regards,

Jaisish

former_member188770
Active Participant
0 Kudos

Hi,

If u r using LDB then u use the Get pernr event.This will populate the data in the internal structure of infotype.

Below is the example for provide end provide .

PROVIDE tax_cd

sub_cd

loc_cd

title_cd FROM p9006 BETWEEN

payroll-evp-fpbeg AND

payroll-evp-fpend.

wi_empdata-tax_cd = p9006-tax_cd.

wi_empdata-sub_cd = p9006-sub_cd.

wi_empdata-loc_cd = p9006-loc_cd.

wi_empdata-til_cd = p9006-title_cd.

ENDPROVIDE.

Here the data is present in p9006...I am picking up the fields i want to read like tax_cd..

the records are read between intervals payroll-evp-fpbeg AND payroll-evp-fpend which r the time intervals.

Hope this helps.

Thanks,

Poonam.

Former Member
0 Kudos

SAP help files provide good examples.

Check out <a href="http://help.sap.com">http://help.sap.com</a>