Skip to Content

Creating a feature

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2008 at 07:22 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 17, 2008 at 01:45 PM

    do u want to modify 40 EPF

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2008 at 02:28 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.