2007 May 16 8:30 PM
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.
2007 May 17 2:05 AM
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.
2007 May 16 8:34 PM
Hi Admir,
You can make use of the fm RH_READ_INFTY.
Regards,
Ravi
2007 May 16 8:38 PM
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
2007 May 16 10:04 PM
Hi Suresh,
I dont want to use selection screen.
Thank you.
Admir.
2007 May 17 4:55 AM
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.
2007 May 17 2:05 AM
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
2007 May 17 4:50 AM
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.
2007 May 17 5:00 AM
Use report category '_____000' which suppresses standard selection screen provided by Logical database
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |