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

Add new button/function to pf-status on module pool

luis_lopez_gomez
Explorer
0 Likes
1,186

Hi all,

My customer wants to add a new button by programming to the standard pf-status in a HR infotype. It's not an ALV neither a report. Is'a a module pool and I would like to avoid duplicate the standard gui-status just for this case.

Any help is apreciated,

Regards,

Luis

Hi all,

My customer wants to add a new button by programming to the standard pf-status in a HR infotype. It's not an ALV neither a report. Is'a a module pool and I would like to avoid duplicate the standard gui-status just for this case.

Any help is apreciated,

Regards,

Luis

2 REPLIES 2
Read only

Former Member
0 Likes
749

In order to add additional functionality and checks to the PBo & PAI of HR infotypes you need to implement enhancement 'PBAS0001' using CMOD . Once you have done this you need to go to the function modules EXIT_SAPFP50M_001 & EXIT_SAPFP50M_002 and create the includes within them i.e. ZXPADU01 and ZXPADU02. You can now enhance the functionality of HR infotype PBO and PAI by simply adding code to these includes. See example below:

HR Infotype User exits

Include ZXPADU01 for the PBO module

Incldue ZXPADU02 for the PAI module

*Example code.

CASE innnn-infty. "Infotype?

WHEN '0001'. "infotype 0001

  • Processing code

WHEN '0008'. "infotype 0008

  • Processing code.

  • etc.

WHEN OTHERS.

ENDCASE.

Read only

Former Member
0 Likes
749

Hi,

Double click on PF-status and give the required name in application toolbar. Double click on name and mention the details like the function code and fn text and reuired button and click on continue.