cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a feature

former_member399211
Participant
0 Kudos

Dear Experts,

I need to create a feature for Infotype 0587. I know I have to assign a proper structure like PME04 to my feature. I also know how to copy a standard feature to a new feature. My questions are:

1. When the feature returns a value, it gets defaulted in the screen field of the infotype. How does the system relate to the particular field? In other words, how does a feature decide upon the field where the value has to be returned? In my case how do I define that the return value is defaulted in PA0587-EEPFN.

2. If I need to do the above, do I need to create a new structure for my feature because I was not able to find out any structure related to IT0587.

Regards,

AXE

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

There is a Function module to read feature you created. Call this feature in the PBO user exit for IT0587. Then it wll default the screen value in the fled.

Steps and Sample Code:

1. Create Feature ZXXXX in transaction PE03.

2. Go to SE38. Give the program name ZXPADU01. You can do this if the user exit is already active. Otherwise you have go to CMOD -> Create a project -> Associate EXIT_SAPFP50M_001 --> and activate it. You need to make chages in the associated include ZXPADU01.

case innnn-infty.

when '0587'.

  • populate corresponding values to pme04 structure and pass it to below function module.

call function 'HR_FEATURE_BACKFIELD'

exporting

feature = 'ZXXXX' " Feture Name

struc_content = pme04

importing

back = p_status

exceptions

dummy = 1

error_operation = 2

no_backvalue = 3

feature_not_generated = 4

invalid_sign_in_funid = 5

field_in_report_tab_in_pe03 = 6

others = 7.

if sy-subrc = 0.

IP0587-EEPFN = P_STATUS.

endif.

You will have the ip0587 like p0587 in the data declarations of TOP include.

3. This will default the feature return value to the screen fiels.

Please let me know if you need additional information.

Former Member
0 Kudos

Hello AXE,

As I know,

1. The feature value is defaulted into a particular field of a infotype programatically. Means the feature is read in the PBO of the infotype screen, and the return value is assigned to the relevant field. There is no config table to this. I dont know of any other way of doing this.

2. There is a structure related to IT 0587 PMEPN, which is used for feature 40EPF. You can always create your own structure if any of the available structure dont fit your requirement.

Regards,

Rajesh

Sonal_J
Participant
0 Kudos

Hello Rajesh Kathare,

You have mentioned that if the current feature structure does not meet our requirement than we can change the structure.

how can v do that.

For example, i am using feature COVER but its structure PME68 doesnot contain the begining and end date of the absence.

I want begining and end date of leave in the structure because my client requirement is absence scheme will change according to the date of absence day.

than please let me know how can we change our structure.

Thanks

sikindar_a
Active Contributor
0 Kudos

do u want to modify 40 EPF

former_member399211
Participant
0 Kudos

Dear Sikindar,

Thanks for a prompt reply. But I need to default some value in the field PA0587-EEPFN. Please suggest as to how I can modify the same so that the return value goes to the said field. For example, 40EPF is defaulting the values for PF Trust ID and Pension Trust ID.

Thanks & regards,

AXE

sikindar_a
Active Contributor
0 Kudos

PF is statutory one

can u tell ur client requirement wht shd be the out put to the client