Custom infotype with subtypes

Hi Experts,
I have a requirement to create a custom infotype with subtypes. I have maintained all the fields + 'zzsubty' field (to store subtype no. - of type subty) in PSnnnn and also maintained infotype characteristics and Technical attributes (all the standard steps). But, I want only some of the fields to be displayed depending on the subtype entered. By using the current method, I see all the fields I created in the structure irrespective of the subtype. So, is there anything else that I need to work on to make sure that only the fields I want to be displayed will be visible depending on the subtype? If I need to work on the module pool, could you please be descriptive as I am new to it.
Thanks
Sri

Hello,
Try using the user -exit EXIT_SAPFP50M_001 for ur requirement.
Cheers,
Manoj.

Similar Messages

  • Creating / updating Custom infotype with different screen

    Hi All,
    I have created custom infotype having different screen for different subtype(1,2).
    From Subtype 1, indotype is automatically updated as it is a standard program. But for subtype 2 i am using HR_INFOTYPE_OPERATION for updating the record which is ending with error, as employee which i am trying to update is already locked by me only through PA30. So this function module ends with Complex error. Please suggest how to update the infotype with subtype 2.
    Thanking you..
    Best regards
    Akshay

    Hi All,
    I have created custom infotype having different screen for different subtype(1,2).
    From Subtype 1, indotype is automatically updated as it is a standard program. But for subtype 2 i am using HR_INFOTYPE_OPERATION for updating the record which is ending with error, as employee which i am trying to update is already locked by me only through PA30. So this function module ends with Complex error. Please suggest how to update the infotype with subtype 2.
    Thanking you..
    Best regards
    Akshay

  • Custom infotype with table

    Hi Guyz,
    i have to create a custom infotype with a table in it.i have created the PS structure (PM01)with fields a,b,c,d,e. i gave the infotype charac, techn attr, activated the PA table and P structure . In the lay out editor i created a table and put the fields a, b and c. i dragged the input/output field on the table and then dragged the text fileds above them. when i check the layout i get the following error in the flow logic.
    Program MP988800 Screen 2000
    The field P9888-ZA is not assigned to a loop. "LOOP............ENDLOOP" must
    appear in "PBO" and "PAI"
    can anyone tell me how and where should i write the code for the table to get activated. Thanks a lot.

    HI Ranjeth,
      i have tried the code you provided. I am getting errors.can you please tell me what IT_TBCTRL_BEHAVIOR and IS_TBCTRL_BEHAVIOR are.
    i am getting the following errors.
    Statement CONTROLS is not defined.
    IS_TBCTRL_BEHAVIOR-CODETXT not defined
    IS_TBCTRL_BEHAVIOR-RATE not defined.
      i have replaced i_bc_tbctrl with the table name which i defined in the layout editor.  i have put your code in the flow logic. check the code below
    CONTROL: options TYPE TABLEVIEW USING SCREEN 2000.
    PROCESS BEFORE OUTPUT.
    LOOP AT IT_TBCTRL_BEHAVIOR
    INTO IS_TBCTRL_BEHAVIOR
    WITH CONTROL options
    CURSOR options-CURRENT_LINE.
    MODULE options_GET_LINES.
    ENDLOOP.
            general infotype-independent operations
      MODULE BEFORE_OUTPUT.
      CALL SUBSCREEN subscreen_empl   INCLUDING empl_prog empl_dynnr.
      CALL SUBSCREEN subscreen_header INCLUDING header_prog header_dynnr.
            infotype specific operations
      MODULE P9111.
      MODULE HIDDEN_DATA.
    PROCESS AFTER INPUT.
    LOOP AT IT_TBCTRL_BEHAVIOR.
    CHAIN.
    FIELD IS_TBCTRL_BEHAVIOR-CODETXT.
    FIELD IS_TBCTRL_BEHAVIOR-RATE.
    MODULE options_MODIFY ON CHAIN-REQUEST.
    ENDCHAIN.
    ENDLOOP.
    process exit commands
      MODULE EXIT AT EXIT-COMMAND.
            processing after input
            check and mark if there was any input: all fields that
            accept input HAVE TO BE listed here

  • Custom Infotype with multiple long text fields

    Hi,
    We have a need to create a custom Infotype (in PA or PD) that will contain more than one long-text area.
    I've searched this forum and found that there are generally two approaches :
    1. use the HR clusters for long-text and setting the ITXEX field in PA
    2. using SAP standard text area (SO10) and functions such as READ_TEXT, SAVE_TEXT, etc.
    The problem with (1) is that it can only store one long-text.  We need to have many.  Please correct me if we can hold more than one long text in the cluster...?
    With regard to (2), I'm just not sure that this is the correct place to store the long text...?
    If I was to adopt option (2), could I just use the key of PA9nnn (ie: PAKEY) as the key/TDNAME for STXH?
    Are there any other methods to store long text?
    As well, is it possible to create a custom Infotype in PD?  Can we use PM01 to create PD infotypes?
    Thanks,
    Raj

    Raj
    Sorry I'm not much help on the two questions you have raised...you have probably already got answers by now anyway..however FYI check out link below for enhancing PD infotypes (use transaction PPCI).
    enhance infotypes

  • Updating custom infotype with FM 'HR_INFOTYPE_OPERATION' dumps

    Hi All,
    While updating a custom infotype 9008 with FM 'HR_INFOTYPE_OPERATION', its giving adump.
    Except.  CX_HRPA_INVALID_PARAMETER.
    I am using DIALOG_MODE as '1'. when I enter a valid field value to that particular field ( mandatory field) on that infotype, it gives dump.
    Can you suggest something which will solve this?
    Thanks.
    Dipti.

    Hi,
    Here is the dump.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_HRPA_INVALID_PARAMETER
    Date and Time          12.11.2008 07:23:32
    Short text
    An exception occurred that was not caught.
    What happened?
    The exception 'CX_HRPA_INVALID_PARAMETER' was raised, but it was not caught
    anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
    'CL_HRPA_RESOLVE_EXCEPTION=====CP' has to be
    terminated.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_HRPA_INVALID_PARAMETER', was not
    caught in
    procedure "RESOLVE_EXCEPTION" "(FORM)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Invalid parameter EXCEPTION, value
    The occurrence of the exception is closely related to the occurrence of
    a previous exception "CX_HRPA_VIOLATED_PRECONDITION", which was raised in the
    program "CL_HRPA_MASTERDATA_FACTORY====CP",
    specifically in line 6 of the (include) program
    "CL_HRPA_MASTERDATA_FACTORY====CM004".
    The cause of the exception was:
    Precondition Violated
    Missing RAISING Clause in Interface
    Program                                 SAPFP50P
    Include                                 FP50PE10
    Row                                     2,152
    Module type                             (FORM)
    Module Name                             RESOLVE_EXCEPTION
    Trigger Location of Exception
    Program                                 CL_HRPA_RESOLVE_EXCEPTION=====CP
    Include                                 CL_HRPA_RESOLVE_EXCEPTION=====CM001
    Row                                     80
    Module type                             (METHOD)
    Module Name                             RESOLVE
    Source Code Extract
    Line
    SourceCde
    50
    message_handler = message_handler.
    51
    return.
    52
    53
    catch cx_sy_move_cast_error.
    54
    endtry.
    55
    END-OF-DEFINITION.
    56
    57
    58
    try_to resolve_missing_infty_data    cx_hrpa_missing_infty_data.
    59
    try_to resolve_missing_authorization cx_hrpa_missing_authorization.
    60
    try_to resolve_invalid_feature       cx_hrpa_invalid_feature.
    61
    try_to resolve_unexpected_message    cx_hrpa_unexpected_message.
    62
    try_to resolve_missing_personid      cx_hrpa_missing_personid.
    63
    try_to resolve_invalid_infotype_db   cx_hrpa_invalid_infotype_db.
    64
    try_to resolve_invalid_customization cx_hrpa_invalid_customization.
    65
    try_to resolve_inconsistent_database cx_hrpa_inconsistent_database.
    66
    67
    68
    Just to ensure the macro can be used nowhere else.
    69
    DEFINE try_to.
    70
    END-OF-DEFINITION.
    71
    72
    If we can not remap we would like to just re-raise the
    73
    exception like below like "RAISE EXCEPTION exception.".
    74
    Unfortunately the kernel will then forget about the
    75
    original source position.
    76
    77
    So this is the fallback strategy. Calling this method
    78
    is only allowed if the exception can be resolved. Since
    79
    this is not the case we indicate a parameter violation.
    >>>>>
    RAISE EXCEPTION TYPE cx_hrpa_invalid_parameter
    81
    EXPORTING
    82
    previous  = exception
    83
    parameter = 'EXCEPTION'.
    84
    85
    ENDMETHOD.
    Regards,
    Dipti.

  • Custom infotype with payslip data

    Hi,
    How to display the fields from custom infotype in HR forms. we have created a infotype P9030 from which I have to display the shift details of employees in payslip.
    How I will bring the custom infotype fields in the display. We are using international payroll run T.code PC00_M99_CEDT.
    Regards,
    Karthik.k

    Can anybody help.?

  • Creation of infotype having Subtype

    Hi ,
          Please tell me link or document regarding  creation of  infotype having subtype .
          i know how  to create simpe infotype . But not created any infotype having subtype.

    Hi
    try this...
    Goto PM01 and enter Infotype: xxxx  eg: 9495
    Make sure that first field component type is SUBTY
    Like:  zzstype   SUBTY      Char      4      Subtype
    Now click on 'ALL' button.
    Creation of Subtype:
    Goto initial scren PM01.
    In menu tool bar,  goto -
    Subtype Characteristics  click on enter.
    Now click on new entries,
    subtype     name
    01             Annual shares
    02             special premium shares
    click on save.
    Note: All subtypes are stored in T591A table
    Now assigning subtypes to infotype.
    now click on 'Technical Attributes' in PM01 screen
    change, select ur custom infotype'xxxx' and click on 'details'   on application tool bar.
    subtype field: zzstype
    stype table: T591A
    stype text table: T591S
    stype const table: T591A
    Now click on 'SAVE'.
    Now check ur infotype with subtype.
    Hope this is helpfull information.
    regards
    Sai

  • Creating custom infotype

    Hi,
    I want to create a custom infotype with the following fields.
    Molga (country grouping)
    Personnel Number
    Subtype
    Language Key
    Comment Line 1
    Comment Line 2
    Comment Line 3
    in this first 4 fields are keys. The user should be able to edit only the rest of the fields.
    Subtypes similar to the infotypes values 0168,0169,0014,0015,0009,0006,0002 should be created.
    While updating and saving the infotypes 0168,0169,0014,0015,0009,0006,0002 the system should prompt this infotype through dynamic action to enable the user to enter comments.
    can anyone give me a step by step approach for creating this infotype?
    Thanks in advance...
    Vijay

    Hi
    Steps to create a HR Infotype:
    1) 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 'Employee Infotype' radio button.
    4) Select the 'PS Structure Infotype'.
    5) Click on Create... A separate table maintenance window appears...
    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 'All' push button. It takes a few moments.
    10) Click on 'Technical Characteristics'. Infotype list screen appears
    11) Click on 'Change'(pencil) button
    12) Select your Infotype and click on 'Detail' (magnifying glass) button
    13) Give 'T591A' as subtype table
    14) Give 'T591S' as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on 'Infotype Characteristics' ... Infotype list screen appears
    18) Click on 'Change' (pencil) button
    19) Click on 'New Entries'
    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 Infotype's 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 requirement...
    25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select 'Layout Editor' and click 'Change'.
    27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Don't forget to 'Activate at every level)
    Subtype Creation :
    Transaction PM01 Goto Subtype Characteristics. Click on Append and then subtype. Enter the name and description of subtype on screen.
    Then goto technical Characteristics and maintain the details of subtype there. I.e name of subtype i.e. component name defined in PSnnnn. Subtype table is T591A.
    Subty.text tab is T591S and time const tab is T591A.
    See:
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
    HR related site:
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    Enhancement of Infotype
    Check the following
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
    Infotype Enhancement overview screen
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
    Regards
    Anji

  • Error while creating a query for my custom infotype

    Hi,
    I have created a custom infotype with fields currency amount and currency field .
    While I am creating a query for it its giving an error
    Message no. AQ_AD_HOC221 Error when generating the report(see long text )
    I tried to execute the standard program RPUMS40CCI but still I am facing same error .
    I have also maintained table T777i for my infotype but still problem exists.
    Please help.
    P

    Hi
    Check in PM01

  • ABAP HR How to create infotype with table control in it like Infotype 0008

    Hi Experts.
    I need help from u guys. My client requirement is to create custom infotype just like 0008 infotype which contain table control to save amount and wage types. I try to create infotype with table control using PM01, but that table control is in display mode only, i almost search every where to create custom infotype with table control but what ever threads in forum all are they unanswered and most of the threads for creating infotype. But i already done with infotype , but my main problem is table control.
    If any one have some suggestion for this please share with me.
    <removed by moderator> i am looking for positive reply.
    Edited by: Thomas Zloch on Aug 30, 2011 12:54 PM

    Hi
    I've created several infotypes with a Table Control and it is always the same story. You have to create a custom Z table to store the Table Control data (if you can have unlimited records), so in the PSXXXX structure you need to add a TABNR field to link the PAXXXX table and the Z one, just like the type table OM infotypes.
    Then in your code you have to control every possible operation, INS, MOD, DEL... and update the Z table accordingly (the standard code won't do that)
    If your TC fields appear in display mode, take a look at the Groups 1 and 3 in your fields, the must be set with the usual values for a PA infotype.
    If you have more questions, just ask,
    Regards

  • Search help on custom infotype

    Hi Experts,
    I create custom infotype with field PLANS and others.
    I have problem on search help (F4) on field PLANS,
    I want to get structural list of position ( like attach file example2.png), not like this in attached file example1.png.
    Could you please help me resolve this problem.
    Thank you, Mija

    Hi Mija,
    The following FM will return you the hierarchical list of any HR Object type that you specify. 
      CALL FUNCTION 'RH_OBJID_REQUEST_46A'
        EXPORTING
          plvar           = '01'
          otype           = 'S'
        IMPORTING
          sel_object      = ls_objec
        EXCEPTIONS
          cancelled       = 1
          wrong_condition = 2
          nothing_found   = 3
          illegal_mode    = 4
          internal_error  = 5
          OTHERS          = 6.
    I use this for 'F4 Help' in the selection screens of my report programs. But, to have it at the table level, you need to create a Search help and attach it to the particular field of the Custom Infotype table.

  • Dynamic tabstrips and table control in custom infotype

    Dear Experts,
    I have a requirement to create a custom infotype using tabstrips and table control. The tabstripes should also be dynamically populated. For example we have infty 8(Basic pay) used table control and 24(Qualifications) for tabstripes.
    Could you please tell me how to do this. Please do the needful ASAP.
    Thanks,
    Chaitanya.
    Moderator message - Please don't just post your requirements and ask the forum to do your work for you...especially ASAP - Thread locked
    Edited by: Rob Burbank on Oct 7, 2009 4:16 PM

    Hi Partha,
    Pls check the threads:
    Best way to store a table control into an infotype
    Re: Custom Infotype with table control - Overview/List  Screen
    Dilek

  • Custom Infotype Description

    Dear Experts,
    I have created custom infotype, with very simple layout which is dropdown list of vendor master (fk03), my problem is i dont know how to add the vendor description after the user select the vendor master. Here is my layout
    Current:
    Infotype 9001
    Vendor Name:       [ Dropdown list which take value from fk03 - i'm using help method in screen painter to do this] 
    Example
    Vendor Name:        1231245553
    Expected:
    infotype 9001
    Vendor Name:        [ Dropdown list which take value from fk03]    Description vendor name
    Example
    Vendor Name:     123145553     United Lamp
    I hope you understand my query, thank you

    In the module pool program created, try adding code to get description when vendor is selected.
    Thanks,
    Aravind

  • Adding Standard Infotype to custom Infotype

    Hi All,
    I got a requirment,pls let me know the procedure to do same....
    I have to create Custom infotype with all fields of the given Standard Infotype ...and the custom fields given by client.........
    pls tell me how to procedd and do the needful.
    Thanks for the same.

    From PM01.
    For more help You may take help from :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0aefeb4-85c9-2910-f0a0-c2ad78148e18

  • Pop up message in custom infotype screen

    Hi Expert,
    I have one custom infotype with field zzdest ( destination airport) which show all destination airport like mumbai,delhi etc.this
    airpot are mainatin in an ztable  ZR_HR_DES. while user selecting destination some name will be wrong like mumbay instead of mumbai  in the custom table at that time it should show the pop up message that please select mumbai instead of mumbay.
    can any one suggest me how to do this.
    Regards,
    Mdaddu

    When user give a text that is not in your table, you may try to fill an internal table with similar text and then use this internal table in a popup select FM like REUSE_ALV_POPUP_TO_SELECT.
    Some way to fill the internal table
    - with leftmost part of the name removing rightmost character until you get some records (remove right most character and add wildcard til select returns some records) (will identify incomplete text or error at rightmost characters)
    - converting erroneous input to a range replacing every character by a wildcard (DO length(str)/replace sy-tabix character by wildcard and append to a range) (identify a single mistake on a character)
    - wait til SAP implements a [Levenshtein distance|http://en.wikipedia.org/wiki/Levenshtein_distance] rule in SQL...
    Remarks: why don't you use an "official" airport code like ICAO or IATA to identify an airport, a text like "Bombay",  "Mumbai", "Sahar" or even "Chhatrapati Shivaji" can refer to the same airport, and many cities have more than one airport (eg. Juhu for small private aircraft)
    Regards,
    Raymond

Maybe you are looking for

  • Hard drive crash, reinstall Photoshop CS2

    I recently had a serious event with my MacBook Pro's hard drive. The Geniuses got it going again, but I'm now having issues with Photoshop (CS2). I need to reinstall the software to fix it, but I've used up my two "licenses" for the software. I can't

  • HT201541 itunes wont update or restore my iphone 5s on my windows 7 pc

    im running windows 7 0n an asus laptop ive got the latest iTunes and im trying to update my iphone 5s

  • To_date function related to location of server

    is to_date function related to the location of the database server? In the where clause I'm using the UPDATE_TIME column with is a timezone with timestamp When I use a simple where clause indicated in item A below, I get a result as if it was item B.

  • Adding Columns in explorer (computer)

    When you open a folder in detailed view under computer (or Word for that fact), you have the ability to add columns like date created. How do you get this column or any new columns to stick?  And how do you get the new column to display in other dire

  • Quantity contract for payer

    Hi, I would be glad to get some advice on my problem. I need to make a quantity contract for the payer so that it then can be released by another customer (Ship to party), who has this particular payer in his partner function as PY. Is this possible?