Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HR-ABAP PCH LDB

Former Member
0 Kudos

Hi all,

I want to get the latest record from 1007 infotype...hw can I do this using macros..??

I had used PNP LDB before...In that v hv RP_PROVIDE_FROM_FRST and

RP_PROVIDE_FROM_LAST to get the first and latest records...Do v hv such macros in PCH..??

And one more doubt can v use Provide...Endprovide when using PCH LDB...???

I had seen Include DBPCHCOM but I **** find ....

Need help on this...

3 REPLIES 3

Former Member
0 Kudos

logical database PCH hasn't some macros . You need a loop to find the last register of the infotype.

1007 is an OM infotype

0 Kudos

Hi,

According to infotype you are using 1xxx...check table HRP1xxx.

here for you need find entry to depending upon object type e.g. P-Person, O-Org Unit..etc

Regards,

Amit R.

shafiq_rehman3
Active Contributor
0 Kudos

There are no such macros in PCH. If you are already using PNP and need info from 1007 then the most popular way is to read tables HRP1007 into an internal table and then read the record using READ statement that matches your criteria.

And, you can use Provide ... End Provide anywhere you want.