Custom infotype and validations

Hello All,
I am maintaining a custom infotype 9990 for my client, the infotype stores information about stock options and equity plans. Now I have added a field. The requirement is that when user enters the field or even when tries to change it , either using direct entries in SE11 or even through PA30, then I need to make sure that the value is greater than another field in another table. Doubts raised are
1. Do i need a badi or user exit.
2. Whatever I need where do i need to implement it, i mean in particular function module and at wat fcode and wat program?
Spare me if the requirement is too vague. Please ask for specifications if needed.
thanks and regards,
Reena

1) go to SE80 and ur module poolprogram for Infotype 9990 say it is - MP999000.
2) go to ur screen of infotype say 2000
3) in the PAI of the screen u will find the below code just below the" Module Exit at Exit command" -
CHAIN.
    FIELD P9343-BEGDA.
    FIELD P9343-ENDDA.
    FIELD P9343-SALARY.
    FIELD P9343-DNAME.
    FIELD P9343-HDATE.
    FIELD P9343-PLANS Module Check_field.
    FIELD P9343-ORG.
    FIELD P9343-DOB.
    FIELD P9343-NAME.
    MODULE INPUT_STATUS ON CHAIN-REQUEST.
  ENDCHAIN.
4) in above code say for field PLANS i need to check that it shud be greater than field ORG.so  i have written a module for field PLans named as 'Check_field'.
5) code of that module  -
*&      Module  Check_field  INPUT
      text
module Check_field input.
if P9343-PLANS LT P9343-ORG.
MESSAGE E000(000) WITH 'Position can not be smaller than org unit number'.
endif.
endmodule.                 " Check_field  INPUT

Similar Messages

  • Create Custom Infotype and handle Modification/Updation

    Hi All,
    I need to create a custom infotype and handle few checks while creating/updating the existing one.
    I have gone through the existing threads and have figured out the creation part.
    Could anyone tell me where i need to code the checks while creating/updating.
    I tried editing the PBO/PAI of the Module pool program, but as its standard, is asking for access key. Do we need to code this in any userexit or implement BADI.
    For example,
    a) i need to check that only one instance of the infotype should be valid for an  
        employee at a time
    b) This infotype should be created for only Employees and not contingent workers.
    c) Few fields on the body section needs to be updated/modified.
    Thanks and Regards
    Manish.

    You can use the IN_UPDATE or AFTER_INPUT Methods of the BAdI HRPAD00INFTY to perform your validations.
    Arya

  • How we create custom infotype and how to configure with its subtypes.

    hai abap-hr gurus,
    how to create custom infotype and how to configure with its subtypes. when i am creating infotypes i am not getting how to configure subtypes.
    plz help me for this with an example code.
    thanks..
    kiran kumar

    Hi Kiran,
        Please fallow the below steps to create the custom infotype. If you have any quires let me know.
    For Creation of Infotype first Go to Transaction PM01, Enter the custom Infotype number which you want to create, it should be a 4 digit number and have to start with 9xxx.
    then select the `Employee Infotype' radio button
    after that select the `PS Structure Infotype'
    then click on Create… A separate table maintenance window appears
    then Create a PS structure with all the fields you want on the infotype
    Save and Activate the PS structure
    now Go back to the initial screen of PM01
    Click on `All' push button. It takes a few moments
    Click on `Technical Characteristics’. Infotype list screen appears
    Click on `Change'(pencil) button
    Now select your Infotype and click on `Detail' (magnifying glass) button
    Give `T591A' as subtype table & also Give `T591S' as subtype txt tab
    Give your subtype field as subtype field & Save and come back to PM01 initial screen
    Click on `Infotype Characteristics' … Infotype list screen appears
    Click on `Change' (pencil) button & on New Entries
    and then Enter your Infotype number and short text Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference
    to fill yours). Now save ur entries
    Now the Infotype is created and ready to use.
    If you want to change the layout of the Infotype as per your
    requirement…
    In the PM01 initial screen…Select `Screen' radio button and give
    2000 as the screen name, then click on edit.
    In the next screen.. Select `Layout Editor' and click `Change'.
    Screen default layout appears…here you can design/modify the
    screen..change the attributes of the fields..etc.
    Save and activate. (Don't forget to `Activate at every level)
    Regards,
    Ramakrishna kotha.

  • Custom Infotypes and Change History

    HR Gurus,
    I am being told that with custom infotypes, we can not track change history.
    THe scenario I have is that I need to be ableto capture Address Changes (Address Line 1, Address Line 2, City, State and Zip) and send a Delta for the changed address.
    In my unique situation, I have been told that if Address Line 2 is deleted, than the change histiry can not capture the fact that it was deleted and all change history regarding its prior existnace will be deleted if the Address Line2 is removed.
    I am not entirely sure=, but I wanted to ask you guys anyway if I woukd be able to track Change history.
    -Feroz

    Hi Feroz,
    Do not believe everything you hear.  You can view changed and deleted information from custom infotypes and fields. 
    First, I am not sure why you need a custom infotype for addresses when IT0006 is available to you.  You can more easily create a custom subtype if the supplied ones do not meet your needs.
    But for any PA infotype including custom infotypes, you can use the Logged Changes to infotype Data report (RPUAUD00).  You have to set up the infotype to be logged in the IMG:  Personnel Management --> Personnel Administration --> Tools --> Revision --> Set Up Change Document.  In the first section, you list the infotypes you want to track changes for including your custom infotype.  In the second step you list the fields you want to track.  "*" means any change to any field.  And in the third step you indicate whether the information is kept as a long term or short term document. 
    When you run the report, you can enter the infotype and period you want and the first list will be all changes to that infotype.  Select one to view the details and you will see each field listed with the original data and the new data.  If a field is deleted, it will appear blank in the new area, but you can still see the old entry in the previous data column. 
    Also, if an individual deletes a entry in an infotype by using Copy and enters in a new start date, the old record will be delimited, but still be available for viewing.  Also, every infotype records who made changes and the date of the change. 
    Paul

  • How to add fields in custom infotype and update its screens

    Hi Experts
        I want to enhance a custom infotype ( Add some new fields, and add special function on its screen). This custom infotype is created in previous release.   is there any way to add fields in infotype? and let system automatcailly modify corresponding screens to add new fields

    Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
    3) Select the u2018Employee Infotypeu2019 radio button.
    4) Select the u2018PS Structure Infotypeu2019.
    5) Click on Createu2026 A separate table maintenance window appearsu2026
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on u2018Allu2019 push button. It takes a few moments.
    10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
    11) Click on u2018Changeu2019(pencil) button
    12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
    13) Give u2018T591Au2019 as subtype table
    14) Give u2018T591Su2019 as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
    18) Click on u2018Changeu2019 (pencil) button
    19) Click on u2018New Entriesu2019
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirementu2026
    25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
    27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Donu2019t forget to u2018Activate at every level
    i think u have to select CI_INCLUDE while enhanceing the Standrad Infotype

  • Custom Infotyp and LSO

    Hi @all,
    i've got a serious problem here. The task is to Implement a custom Infotyp called TrainingTarget/goal,
    this IT is supposed to show up when you enter TA lso_psv2/or lso_pvct when you create a new Infotyp.
    I build the Infotyp via pm01 and customized it in spro. I can see my Infotyp but i can't do aything with it, so i guess i am missing a link somewhere. Has anyone experience with that kind of situation or some tutorials regarding LSO and Infotypes?
    Sorry for my poor explanation of the problem, if there are any missunderstandings please askme and i try to explaine it better.
    Thanks in advance
    Mathias

    Ok got the b******

  • Module pool F4-Help problem for a field in custom Infotype(HR).

    Dear Gurus,
    I have created a custom Infotype and fields are like
    P9015-NAM01.
    P9015-NAM02.
    P9015-NAM03.
    all are fields for name.
    I want F4 help for these fields with values same as  Family Members-First name  given in 21 Infotype .
    for all 3 fields same f4 help values.
    But when i see in the screen for first field the values are populating as selected but for second field the selected value is not picking..
    DATA: BEGIN OF it_val1 OCCURS 7,
        nam01 LIKE p9015-nam01,
        rel01 LIKE p9015-rel01,
       END OF it_val1.
      SELECT *  FROM t591s INTO TABLE it_t591s WHERE
         sprsl = 'EN' AND
         infty = '0021'.
    *SUBTY
    *STEXT
      SELECT * FROM pa0021 INTO wa_21 WHERE pernr = p9015-pernr .
        READ TABLE it_t591s WITH KEY subty = wa_21-famsa.
        it_val1-rel01 = it_t591s-stext.
       CONCATENATE wa_21-favor wa_21-fanam INTO it_val-nname SEPARATED BY space.
        it_val1-nam01 = wa_21-favor.
        APPEND it_val1.
        CLEAR : it_val1, it_t591s.
      ENDSELECT.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
        DDIC_STRUCTURE         = ' '
          retfield               = 'NAM01'
        PVALKEY                = ' '
         dynpprog               = sy-cprog
         dynpnr                 = sy-dynnr
        dynprofield            = 'P9015-NAM01'
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
         value_org              = 'S'
         multiple_choice        = ' '
         display                = 'F'
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
        TABLES
          value_tab              = it_val1[]
         field_tab              = t_fields[]
         return_tab             = t_return[]
         DYNPFLD_MAPPING        = t_DYNPFLD_MAPPING
      EXCEPTIONS
        PARAMETER_ERROR        = 1
        NO_VALUES_FOUND        = 2
        OTHERS                 = 3
    In the same way i am calling for P9015-NAM02. & P9015-NAM03.
    Is there any wrong in calling this FM...kindly help.....

    Write the FM inside,
    at selection-screen on value-request for <nam1>.
    It seems that you are calling the funtion module for only first field. Repeat it for other two fields also-
    at selection-screen on value-request for <nam2>
    call FM.
    at selection-screen on value-request for <nam3>
    call FM.
    Sumit

  • Custom Infotype length limitation

    Hi,
    I have a requirement to create a custom infotype in ECC 6.0 with a table control which can have a maximum of 50 line items. Something similar to basic pay infotype and PA0008. While going through the SAP documentation I found the below statement .
    "A new infotype is limited to a maximum of 1000 positions. This restriction is due of the length of structure PRELP, which is used as a container during infotype processing."
    This is available at
    http://help.sap.com/saphelp_erp60/helpdata/en/60/d8d8c7576311d189270000e8322f96/frameset.htm
    In our implementation, each record of standard table PA0008 could go upto 1200 characters with a maximum of 40 line items in the table control. We never used more than 5 line items and never had any problem.
    Since the custom table control can have upto 50 line items, each record of my custom table pa9xxxx could go upto 4000 characters and I'm concerned that if this is going to be an issue. Any suggestions in this regard please ?
    Thanks for your time,
    Kumar.

    Hi Venkata
    Please see notes 563145 and 1168062 for help
    Please also be aware that custom infotypes and the effects of changing structures are the customers responsibility
    Best wishes
    Stuart

  • Customer Infotype modifiction problem

    Hi all,
    I have created a Customer Infotype using TCode PM01. It works fine.I am able to enter data using transaction PA30 and choosing my customer infotype and clicking create. Everything is fine till here.
    Now I modified its structure and added some fields, and put those fields in the screen, and declared them in my module pool of the infotype as well. I activated the infotype. its fine.
    Now when I try to make some entries in my customer infotype using PA30, the fields which were present before are ok - I am abl;e to enter data in them.But the fields I  added later in my infotype are all GREYED and I am not able to put data in those fields. Please suggest what to do.
    Thanks
    Ribhu

    Hi Ribhu,
    Please try the below suggestion.
    If you had added 3 new fields,
    <b> zzamount.
    zzyear.
    zzinterest.</b>
    You will have to write similiar code in the PAI module
    of the screen you modified.
        process function code: ALL fields that appear on the
         screen HAVE TO BE listed here (including output-only fields)
    *-Customer specific fields in Infotype "9123"
    <b>  CHAIN.
        FIELD p9123-zzamount.
        FIELD p9123-zzyear.
        FIELD p9123-zzinterest.
        MODULE input_status ON CHAIN-REQUEST.
      ENDCHAIN.</b>
    Thanks,
    AbyJacob
    ========

  • Updation problem in custom infotypes.

    HI ALL,
    I have created two custom infotypes, and the process is that one infotype updates the other infotype.
    When i open the first infotype by pa30 and then open the second and changes some value which update the first infotype table. now when i go to first info type it shows the old value. untill i exit pa30 and start again then it shows the updated values. what is the solution for this.
    Thanks.

    Hi abap sap,
      It is becasue of PAI and PBO module itterations.
    Go to the custom related program created with that infotype and insert your logic to clear the field contents.
    Reward if useful!

  • Delimit custom infotype.

    Hi All,
    I have created a custom infotype and it  has time constraint 3.
    Now i wat to delimit the records from infotype.
    I have used FM HR_INFOTYPE_OERATION using operation 'LIS9'. But it doesn't work for me.
    Can anybdy please let me how can i do this.
    Thanks

    Hi,
    First lock the employee number before callin HR_INFOTYPE_operation using function module BAPI_EMPLOYEE_ENQUEUE
    then call HR_INFOTYPE_OPERATION
    after that unlock the employee using function module BAPI_EMPLOYEE_DEQUEUE
    and also try to pass all exporting parameters to FM HR_INFOTYPE_OPERATION
    Regards
    Krishna

  • HR Custom InfoTypes problem when added to custom Infoset Report for PA

    Hi, I am having an issue with the adhoc query /SAPQUERY/HR_ADM. I added the custom infotypes 9* I created to this standard infoset by using SQ02 and adding these by going into the menu path Edit--> Change InfoType selection. I regenerated this object and attached to a transport. The query runs fine in the DEV system where I made the change...I can choose fields for output or selection from the standard infotypes and custom infotypes as expected. I migrated this transport to the test system and now when I try to do the same thing I get an error when I try to click on any object in my custom infotype and some of the standard infotype. I tried regenerating and resending to the test system and still have the same issue. This is the error in the dump:
        79 * create work area                                                
        80   create data data_wa like line of data_table.                    
        81   assign data_wa->* to <data_wa>.                                 
        82   assign component fcat_wa-fieldname OF STRUCTURE <data_wa>       
        83     to <field>.                                                   
        84                                                                   
        85   loop at t_fcat into fcat_wa.                                    
        86     field_filled = 'X'.                                           
        87     assign component fcat_wa-fieldname OF STRUCTURE <data_wa>     
        88     to <field>.                                                   
        89     if sy-subrc <> 0.                                             
    >>>>>       raise internal_error.                                       
    It appears the TEXT488 is the value in the fcat_wa-fieldname and I do not see this in the data_wa.
    Does anyone know how to fix this problem or what I might try or look at to see what the difference is between the DEV system (where it works ok) the the Test system where it is giving me an error?
    Thanks in advance for any help you can provide.
    Laurie

    After further investigation I found the problem to this was in the generation of the objects. Even though I generated before attaching to a transport  and all looked ok, there is some sort of bug causing it to not generate properly so I had to sign on to each environment and generate the object in SQ02 including in Production. After I did this the custom infotypes were accessible in the Infoset.

  • OM CUSTOM INFOTYPE INTAKE

    HI, sap experts ,
    i have created 9000-object om  infoytype  and while entering po13 tocode  i have given the custom infotype and selected 9000 infotype ...and it is giving the message specify the object ID ..
    Plese let me know..
    Regards,
    prasad

    Hi Prasad,
       Did you maintained T777I - Table in SM30 while creating the infotype???
    if you not please follow the below link and check the same with yours...
    http://****************/Tutorials/HRABAP/OMinfotype/Create.htm
    Hope it solves...
    Rgds,
    Vijay SR

  • Adding new fields in Custom Infotype

    Hi,
    I need to change some fields of Custom Infotype. But project is already gone live for 1 country. will making changes to infotype affect for existing live country?
    Safe side....We are thinking Adding new fields in Custom Infotype. & displaying corresponding fields for countries in another tab
    & hiding the old tab.
    Please let me know procedure for  Adding new fields in Custom Infotype for displaying in new tab.
    Edited by: Sachin Thigale on Aug 23, 2010 7:04 PM
    Edited by: Sachin Thigale on Aug 23, 2010 7:05 PM

    Please search. Lot of Threads on this.
    Follow these steps.
    Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
    3) Select the u2018Employee Infotypeu2019 radio button.
    4) Select the u2018PS Structure Infotypeu2019.
    5) Click on Createu2026 A separate table maintenance window appearsu2026
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on u2018Allu2019 push button. It takes a few moments.
    10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
    11) Click on u2018Changeu2019(pencil) button
    12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
    13) Give u2018T591Au2019 as subtype table
    14) Give u2018T591Su2019 as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
    18) Click on u2018Changeu2019 (pencil) button
    19) Click on u2018New Entriesu2019
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirementu2026
    25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
    27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Donu2019t forget to u2018Activate at every level
    i think u have to select CI_INCLUDE while enhanceing the Standrad Infotype
    The above details are from the following link
    Re: How to add fields in custom infotype and update its screens

  • Custom Infotype - to display the description  in query ouput!!

    I have created a Custom Infotype  and when I run a Infoset Query against the custom infoset, the field is getting displayed but not the description.
    For Ex
    ADP Infotype Company Code A11 - America
                           Company Code A12 - Africa
                                                    A13 - Russion,
    My issue is, when i run the query, the three letter code (A111, A12) is getting displayed but not the descripton itself.
    Can some one please let me know how to display the description in the output when we nun the infoset Query.
    Thanks for your assiance!!

    Hi,
    Have u given proper Data element and Domain to the field?
    Generate the Query again.
    Manoj

Maybe you are looking for

  • SFTP Adapter Error

    Hi All,          I am sending file from file server to SFTP file server.  The error that I receive in receiver SFTP adapter is : <b>Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.sap.aii.af.ra.cci.XIDeliveryE

  • Issue with SOAP Header

    Hi All, I am beginner in SOA . Please excuse me if my phrasing is not quite right . Please do let me know if you require additional information to answer this question Jdev : 11.1.1.3.0 UseCase : Trying to learn SOA . In this regard, I created a SOA

  • Can't edit plant field creating a contract refering a requisition

    Hi all, During the creation of a new Contract (ME31K) refering to a existing Purchasing requisition, I'm not able to modify the plant because the fiels status in only display. In the customizing the status of the field is optional. There is a user ex

  • Information about UK payroll in ABAP HR

    1)Can anyone share some information about UK payroll in ABAP HR especially INCLUDES that need to be used while getting payroll results from clusters. 2)Interface programs in ABAP-HR.

  • Help! I can't run the JavaHouse Demo! Why?

    Windows 2000+JSDK1.3+Java3d1.3beta1 The Error Message is: C:\JAVA3D\DEMO\JavaHouse>java -classpath .; -jar JavaHouse.jar *** ERROR: Canvas3D constructed with a null GraphicsConfiguration *** This will cause a NullPointerException in a subsequent rele