DropdownbyKey for Subtypes

Hi All,
I have a very simple requirement. I have a dropdown which has to show Subtype texts. The Table is T591S. I tried having value table in the domain, search help at Data element level. Nothing worked. I even tried placing this attribute binded to dropdown right below the root context. Only if i hard code the domain values, I am getting values in my dropdown. Can anyone help me out how to use Dropdown by Keys.
Rgrds,
Murali.

Hi Murali,
You can add your own valueset to the context in WDDOINIT.
Here is the coding of a similar example:
  data: l_root_info type ref to if_wd_context_node_info,
        l_node_info type ref to if_wd_context_node_info.
  data: value type WDR_CONTEXT_ATTR_VALUE,
        value_set type WDR_CONTEXT_ATTR_VALUE_LIST.
  data: currencies type table of tcurx.
  field-symbols: <curr> type tcurx.
* define valueset for currency fields
  call method cl_wd_dynamic_tool=>get_table_data
    exporting
      tab_name  = 'SCURX'
      row_count = 0
    importing
      data      = currencies.
  loop at currencies assigning <curr>.
    value-value = <curr>-currkey.
    value-text = <curr>-currkey.
    insert value into table value_set.
  endloop.
*  declare currcode for cuky_defined_node
  l_root_info = wd_context->get_node_info( ).
  l_node_info = l_root_info->get_child_node( 'CUKY_DEFINED' ).
  l_node_info->set_attribute_value_set( name = 'CURRCODE' value_set = value_set ).
Ciao, Regina

Similar Messages

  • INFOTYPE 0034 - Time Constraint for Subtypes Issue

    Experts,
    I have an issue, our organisation maintains many subtypes for infogype 0034, and we want to delimit the previous entry regardless the subtype (same problem as yours) and i am not able to make it work the way we want..
    Example :
    employee joins the organisation and has the subtype '07' - home worker- for Infotype 0034 with following dates :
    Start date : 01.01.2010
    End date : 31.12.9999
    now at a later date, the subtype of infotype changes as '09' - factory worker - for infotype 0034 with following dates :
    Start date : 04.05.2010
    End date : 31.12.9999
    now, as we make an entry for subtype '09' with starting date as 04.05.2010 it should delimit the previous entry and the previous entry should have following dates
    Starte date : 01.01.2010
    End date : 03.05.2010
    i have tried changing TC for IT 0034 in V_T582A to 'T' and TCs for subtypes as '1' in V_T591A as i found response for similar to this issue in one of the threads, but it does not resolve my issue
    so, can experts suggest me what shall i do to make the IT 0034 behave in way that whenever there is a new entry for subtype it delimits the old entry (regardless of subtypes)?
    Response will be highly appreciated
    Thanks
    Jalpa

    Hi,
    Please check the threads.
    Re: Subtype wise record delimit for IT-0034 .
    You can also check the user exit.. EXIT_SAPFP50M_002,LXPADU01.
    Thanks & Regards,
    Sandip Biswas.

  • Search help for subtype selection in Adhoq selcetion screen

    Hi,
    I have requirement for selection screen in adhoq query (SQ01),
    In the selcetion screen i need f4 help for subtype field to selcet the subtypes.
    How can we use F4 help for selecting the subtype in the the Adhoq Selection screen ?
    Please provide the steps to produce F4 help for subtype field to select subtypes in Adhoq generated selection screen.
    Thanks in Advance,
    Siva

    Hi,
    I have requirement for selection screen in adhoq query (SQ01),
    In the selcetion screen i need f4 help for subtype field to selcet the subtypes.
    How can we use F4 help for selecting the subtype in the the Adhoq Selection screen ?
    Please provide the steps to produce F4 help for subtype field to select subtypes in Adhoq generated selection screen.
    Thanks in Advance,
    Siva

  • Search help for subtype

    hi.... wanted to know if there exists a standard search help for subtypes in hr abap..

    Hi bhavani,
    Please find the link below
    [Search Help|Re: HR -Hide additional field for rest of subtypes u0085 open it for 1 subtype ?]
    [Search Help|Search help]
    Hope this will be Help ful
    Thanks
    Kalyan

  • Date of origin for subtype of infotype 15

    Dear Guru
    New wage type is created under infotype 15 = Additional Payments for festival advance while adjusting the subtype system is showing Date of origin is 31-08-2012 for Auguest month deduction instead of Date of origin 31-08-2011...
    where we have to do the setting so system will show date 31.08.2011 instead of 2012.
    I am new for Hr Payroll .Please suggest the same
    Regards
    Vijay

    Hi ,
    Go to transaction PA30, select your employee.
    Give infotype as 0041 in the infotype input box and press F7. Now check if any date types are defined for the date of origin.
    Change it as per you need and save the record.
    NOw create IT0015 record and check.
    Thanks & REgards, SWapnil Mishra

  • How to create new logical function codes for Subtype

    Hi all
      I'm developing an WF that must be started when the user makes any change in a employee position. The problem is that this change can be made by many transactions, I know that it´s possible to do it by PA30/PA40, and today it´s made here using PP01. The Functional Consultant said to me that the better way to map all possible trasactions which made that kind of changes in an employee data is by adding new "Logical Funcion codes" (or Activities) for our specif subinfotypes.
      The table that contains such information is T77FLC. How can I add that new activities for a subinfotype, by a costumizing or just adding new entries in this table?
    Thanks in Advance

    Josie,
    You can configure your own workflow events based on HR objects/infotypes/subtypes/update type/activity type combinations using transaction SWEHR3.  Look at SWEHR2 for the standard events to get some idea of what you need to enter in SWEHR3.
    The relationship between the infotype and the matching business object type is held in SWEHR1.
    Regards,
    Jocelyn

  • Time Constraint for Subtype

    Dear All,
    I have created Customer Infotype 9909 having Five Subtype. Now I have to give Time Constraint to each separate subtype. please guide for the same.
    Regards
    Mangesh

    Dear All,
    My created Infotype 9909 having Five Subtype like 1,2,3,4,5 and I have give Time Constraint i.e. 1,2,3 to each separate Subtype. Like same example you will find for Infotype 0006 of Address. For Infotype 0006 the Time Constraint is "T" but there is separate Time Constraint for each subtype of 0006. You will find it in Table T591A. I am sending the following values of Infotype 0006 with its Subtypes having Filed "ZEITB" which shows different Time Constraint for its Subtypes. So like that I want to maintain separate Time Constraint for each Subtype of created Infotype 9909.
    MANDT     INFTY     SUBTY     ZEITB     OBJRQ     STEXT
    800     6     1     1          Permanent residence
    800     6     2     3          Temporary residence
    800     6     3     2          Home address
    800     6     4     2          Emergency address
    800     6     5     2          Mailing address
    800     6     6     2          Nursing address
    So please let me know the solution.
    Reagrds
    Mangesh

  • Type hierarchy table and alter table for subtypes

    I have objects tables TObjTable and TRefTable
    create type TParent as object (c_name varchar2(30)) not final
    create table TObjTable of TParent
    create type TRef as object (c_code varchar2(30)) not final
    create table TRefTable of TRef
    constraint Pk_Ref primary key (c_code)
    object identifier is primary key
    Then, I create type TChild under TParent
    create type TChild under TParent (c_ref ref TRef)
    The attribure "c_ref" should refer to the object table TRefTable.
    How I can specify foreign key for new column "c_ref" on table
    TObjTable?
    Thanks.

    Assume, that you have new column "c_new" on type t2.
    I think, you can treat values of table t as type t2:
    create index Idx on t p (treat(value(p) as t2).c_new)
    tablespace idx

  • Error : 'No object identification permitted for infotype 0582, subtype LTA'

    Hi Experts,
                   While executing the program 'HINUINFO_UPDATE'
    i am getting an error 'No object identification permitted for infotype 0582, subtype LTA'.
                   After the approval for LTA claim  is done in ESS i have executed the program 'HINUINFO_UPDATE' to update he infotypes 15 and 582. Infotype 15 is getting created but while creating the infotype 582 system gives the above error message.
                 In the detailed error log system gives the following message.
                    "You attempted to access a data record with the object identification 1. However, according to the Customizing settings, object identifications cannot be used for subtype LTA of infotype 0582".
            Can anybody please assist me how to solve this problem. Helpful answers will be rewarded.
    Thanks and Best Regards,
    Sanoj.

    Hi ,
    Did any one find solution for this ? Please reply how to fix this issue.

  • Re: How to create new subtypes for OM  Custom infotype

    Hi Gurus,
    I  facing  problem when creating for Subtypes in  OM , i need create Infotyes with Subtypes in OM.Check below steps how i created
    1. I create Structure in se11. HRI9119
    2. In PPCI , i create infotype 9119
    3.In SM30 , I Maintain table T777i, here i selected my infotype (9119), then i clicked on infotype per object type and assign subtype (9229, 9339) to the my infotype .
    4. After that, in same screen, i selected my infotype and assign TIME CONSTANT to my all subtype and infotypes.
    After this , any think required to maintain , Plz tell me.. i didn't find my subtype in PP01.
    Thanks and Regards ,
    Venkatesh.M

    Hi Venkatesh,
    The new subtype has to be maintained in table V_778U.Also you need to relate the new subtype to object type in table T777Z and miantain the time contraints.
    Please refer following path in IMG for further information
    Personnel Mgt > OM > Basic settings > Data model enhancement
    Hope this helps.
    Regards,
    Malathi V.

  • Getting the data for the infotype 0006 and Subtype 4 in HR ABAP

    Hi All,
       I need to get the data from the info type 0006 and the subtype 4 , only i need to fetch the data in communications . Could you any one tell me best way to fetch that data.
    Thanks,
    SAP SAR.

    Write a select single on PA0006 for the given pernr begin and end dates and for subtype 4 ...
    select single * from PA0006
               where pernr = p_pernr
               and SUBTY = '0004'
               and ENDDA >= s_date-low
               and BEGDA <= s_date-high.

  • Subtype of IT0008 is used for what?

    Hi Experts,
    It suddenly came to me such a question: In what situation should we use subtype of IT0008? Cauze in most cases I just use default subtype 0 -- "Basic contract". How about the others like "Increase basic contract"??
    If I create 2 records of IT0008, oen for subtype "0, one for subtype "1", how will these two records be handled in payroll run?
    Thanks a lot!

    see when employee gets hired u may want to create IT0008 with say subtype '0' for basic pay or something..but then see if in between u want to perform some action on employee say u want to promote him for 2 months say merit increase..in such situation the employee will have the 0 subtype as well as a new subtype merit inc maintained for 2 months..in short he wl get paid more for thse 2 months..,
    payroll will take care of it automatically as diff subtype will have diff wage type for amounts..so both of these wage type will contribute to employees net pay..

  • Is projection work for Infotype which got subtype?

    Is projection work for Infotype which got subtype?
    I use the following statment but there is nothing show in my report.
    PROVIDE stras FROM p0006 BETWEEN pn-begda AND pn-endda
    WHERE P0006-subty = '1'.
    anyone can help?

    anyone can help?
    I'm quite confuse why projection is not work if I put the where clause for subtype.

  • How to simultaneously create IT0128  subtype-02 for using PA70

    Hi,
    I can use the PA70 to create It0128 subtype-01 for multiple employees, but not for subtype-02.
    Appreciate any help asap!!
    Regards,
    Vaughan LO

    Hi
    HR_INFOTYPE_OPERATION -> calls -> HR_MAINTAIN_MASTERDATA -> this Func. Mod. then creates a batch and calls ->
    -> IF DIALOG_MODE EQ '0'.
    ->    CALL DIALOG 'HR_MAINTAIN_MASTER_DATA' USING BDCDATA MODE 'N'
    ->         EXPORTING
    the SY-SUBRC value after this should be zero. But it isn't. Can anybody suggest something. Or have any idea as what could be going wrong ??
    Here is my program by which i am trying to create IT0128 subtype-02:
    REPORT  ZABTWTEST                                 .
    data: it0128 like p0128 occurs 0 with header line.
    data: return like BAPIRETURN1.
    it0128-pernr = '20123001'.
    it0128-subty = '2'.
    it0128-begda = '20090101'.
    it0128-endda = '20090131'.
    it0128-SPRSL = 'EN'.
    it0128-OBJCT = 'HRMESS'.
    it0128-TXTID = 'HR_P'.
    it0128-OBNAM = '<internally assigned name>'.
    append it0128.
    CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
      EXPORTING
        number              = '20123001'
        validitybegin       = '19000101'   .
    loop at it0128.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty                  = '0128'
        number                 = '20123001'
        VALIDITYEND            = it0128-endda
        VALIDITYBEGIN          = it0128-begda
        record                 = it0128
        operation              = 'COP'
        TCLAS                  = 'A'
        NOCOMMIT               = 'X'
      IMPORTING
        RETURN                 = return   .
    endloop.
    CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
      EXPORTING
        number              = '20123001'
        validitybegin       = '19000101'   .
    write return.   .
    Kindly correct me if i am wrong anywhere.
    Regards,
    Abbasi

  • ESS error when Object Identification selected for IT0021 Subtypes

    Hello Friends,
    Our country version is 99 and working for new ESS implementation on ECC 6.0.
    We are getting an error in the table 'V_T7XSSPERSUBTYP' for subtypes of T0021
    Error happens only for those subtypes with time constraint 3 and Object identification selected in table 'v_T591A' (e.g Child)
    We are getting error message 'There is an inconsistency in the usecase maintained for this record' Message no. HRXSS_PER003
    We tried with all the available use cases from A1-B5, all throws same error.
    These subtypes with errors are not getting displayed in ESS Family Member/ Dependent area.
    Please help me to sove the problem.
    Preethi

    Hi Friends,
    This could be simple issue for you, but is very important for our project. I chcked for similar issues in the forum, there was one similar issue but the solution is not clear.
    Kindly Reguest for your valuable suggestion on this.
    Thanks in advance,
    Preethi
    Edited by: preethic on Mar 22, 2010 11:09 AM

Maybe you are looking for