on 2006 Oct 11 1:44 AM
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!
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SAP help files provide good examples.
Check out <a href="http://help.sap.com">http://help.sap.com</a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.