Application Development and Automation 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: 
Read only

ABAP HR

Former Member
0 Likes
941

Hi Experts,

Is there any way that I can extract data from infotypes using macros but no selction screen. Please send me sample code if you have.

Thank you.

Regards,

Admir.

Ponits will be rewarded.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
921

Hi,

Do you not want a selection screen, but still want to use the GET PERNR functionality. i.e. logical database PNP?

If you do then you can manipulate the selection screen options using the report category found in the editor under: GOTO -> ATTRIBUTES In the logical database put in a PNP and then you will get another button when you return to the attributes screen that says report category. In there you can manipulate the standard HR selection screen and switch off as many of these as you need.

If you don't want to use PNP then define a report as normal but use function modules to read the infotypes. The other guys have mentioned which ones are useful already.

Regards

Wayne

Ps remember to reward those who helped with points

Hi Experts,

Is there any way that I can extract data from infotypes using macros but no selction screen. Please send me sample code if you have.

Thank you.

Regards,

Admir.

Ponits will be rewarded.

7 REPLIES 7
Read only

Former Member
0 Likes
921

Hi Admir,

You can make use of the fm RH_READ_INFTY.

Regards,

Ravi

Read only

suresh_datti
Active Contributor
0 Likes
921

You don't want to use the LDB or Selection screen?

Then ,you can use the function call HR_READ_INFOTYPE to read employee Master Data.

~Suresh

Read only

0 Likes
921

Hi Suresh,

I dont want to use selection screen.

Thank you.

Admir.

Read only

0 Likes
921

Hi,

Just use this include in your report -DBPNPCOM

This will enable you to use macos without going throught LDB and the LDB screen.

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
922

Hi,

Do you not want a selection screen, but still want to use the GET PERNR functionality. i.e. logical database PNP?

If you do then you can manipulate the selection screen options using the report category found in the editor under: GOTO -> ATTRIBUTES In the logical database put in a PNP and then you will get another button when you return to the attributes screen that says report category. In there you can manipulate the standard HR selection screen and switch off as many of these as you need.

If you don't want to use PNP then define a report as normal but use function modules to read the infotypes. The other guys have mentioned which ones are useful already.

Regards

Wayne

Ps remember to reward those who helped with points

Read only

Sougata
Active Contributor
0 Likes
921

You can also use macro RP-READ-INFOTYPE...pass the parameters personnel no., infotype no., infotype table, begin date & end date from your calling program.

Regards.

Read only

Former Member
0 Likes
921

Use report category '_____000' which suppresses standard selection screen provided by Logical database