KFF segment in FF

HI,
I am using below codes in a FF.
ALIAS GROUP_KF_NATIONALITY_GROUP AS Emp_Country (Nationality_Group is the segment name in people group kff)
DEFAULT FOR Emp_Country is 'IND'
But, while verifying the FF, I am getting an error msg that "GROUP_KF_NATIONALITY_GROUP" is not global or DB items. How could I resolve this?
Pl. note, the above codes perfectly working in 11.5.9 instance. But, not working in R12 instance.
Thanks in advance.

Hi,
Segment of a group is not available as database item.
ASSIGNMENT_GROUP is available as database item.
You will get whole concatenated value in this column.
You dervie your value using instr and substr function.
I hope that answers your question.
Regards,
Ashish Shah

Similar Messages

  • How to retrive KFF segment values in each row of VO?

    Hi,
    I need to retrve Special Information Type values in HR screen.
    There is a table based on the VO and on of the column is a flex (KFF) linked ot the same VO.
    How can i retrieve the KFF segments values from each row of the table (or VO row).
    The VO contains the ID_FLEX_NUM only.
    Specific issue details:
    It is an HR screen
    page : PersonSIT Page
    Region : SpecialInformationType(Table)
    VO : SpecialInformationDetailsVO
    flex id="HrSitKeyFlex" flexName="PEA" flexFieldAppShortName="PER" user:akAttributeCode="HR_PERSON_SIT_FLEX"
    Any information is of great help
    Thanks,
    Kamath..

    Vo Query is
    SELECT /*+ ORDERED */pac.analysis_criteria_id,
    ppa.analysis_criteria_id old_analysis_criteria_id,
    ppa.person_analysis_id,
    ppa.object_version_number,
    ppa.id_flex_num,
    ppa.business_group_id,
    ppa.person_id,
    ppa.date_from,
    ppa.date_to,
    'DB_ROW' status,
    ppa.date_from old_date_from,
    ppa.date_to old_date_to,
    ppa.attribute1,
    ppa.attribute2,
    ppa.attribute3,
    ppa.attribute4,
    ppa.attribute5,
    ppa.attribute6,
    ppa.attribute7,
    ppa.attribute8,
    ppa.attribute9,
    ppa.attribute10,
    ppa.attribute11,
    ppa.attribute12,
    ppa.attribute13,
    ppa.attribute14,
    ppa.attribute15,
    ppa.attribute16,
    ppa.attribute17,
    ppa.attribute18,
    ppa.attribute19,
    ppa.attribute20,
    ppa.attribute_category
    FROM per_person_analyses ppa,
    per_analysis_criteria pac
    WHERE ppa.business_group_id = :1
    AND ppa.person_id = :2
    AND ppa.id_flex_num = :3
    AND pac.analysis_criteria_id = ppa.analysis_criteria_id
    The values from log file for a single row is as below
    i = 0
    row.getAnalysisCriteriaId()=68198
    row.getAttribute1()=null
    row.getAttribute10()=null
    row.getAttribute11()=null
    row.getAttribute12()=null
    row.getAttribute13()=null
    row.getAttribute14()=null
    row.getAttribute15()=null
    row.getAttribute16()=null
    row.getAttribute17()=null
    row.getAttribute18()=null
    row.getAttribute19()=null
    row.getAttribute20()=null
    row.getAttribute2()=null
    row.getAttribute3()=null
    row.getAttribute4()=null
    row.getAttribute5()=null
    row.getAttribute6()=null
    row.getAttribute7()=null
    row.getAttribute8()=null
    row.getAttribute9()=null
    row.getAttributeCategory()=null
    row.getBusinessGroupId()=83
    row.getDateFrom()=2009-10-01 03:32:38.0
    row.getDateTo()=null
    row.getIdFlexNum()=50454
    row.getPersonAnalysisId()=null
    row.getObjectVersionNumber()=null
    row.getOldAnalysisCriteriaId()=null
    row.getOldDateTo()=null
    row.getOldDateTo1()=null
    row.getPersonId()=46788
    row.getSelectFlag()=Y
    row.getStatus()=NEW_ROW
    Here, row.getIdFlexNum()=50454 is the id_flex_num- KFF structure code which has 4 segments.
    I need to get the value for the VaueSet of Segment1
    The segment values are displayed in the OAF page but i did not get how did std oracle code fetch it
    Thanks,
    kamath

  • Default KFF segment value using Forms Personalization

    Hi All,
    Is there any way to default the KFF segment value based on other field value thru forms personalization?
    Thanks,

    Gareth,
    Sorry for taking so long to respond. I was on vacation last week. Your suggestion was exactly what I wanted. The '=' made all the difference. I tried it with the INITIAL_VALUE also and both work. Thanks a lot!
    Thu

  • How to validate the KFF segments on detail page

    Hello ALL,
    I have a requirement where I need to filter only the segments for KFF basis on the Country at Master level. This form is not going to run from any country specific responsibility. So, while user will enter I need to display only those segments which are related to that country. For example: my KFF has the first segment as organization so I need to display only those organizations which are comes under that country.
    Kindly help on this.
    Thanks,
    Sandy

    Hello Gurus,
    Kindly help on this.
    Many thanks in advance.
    Thanks,
    Sandy

  • How to update People Group KFF Segments in Assignment Form

    Hi Gurus,
    Please help me on how to update people group KFF individual segments on assignment form.
    Please provide sample code/reference.
    Thanks,
    Raghava.

    Hi Vignesh,
    I have tried the api using below code. But im getting the error like below:
    ORA-20001: FLEX-VALUE DOES NOT EXIST: N, VALUE, Teachers, N, SEGMENT, PENSION_SCHEME_ESCH, N, VALUESET, GEN_PENS_SCHEME_LOOKUP
    ORA-06512: at "APPS.HR_ASSIGNMENT_API", line 16616
    ORA-06512: at line 22
    Code:
    DECLARE
    l_people_group_id number;
    l_special_ceiling_step_id number;
    l_ovn number;
    l_soft_coding_keyflex_id number;
    l_group_name varchar2(9000);
    l_effective_start_date date;
    l_effective_end_date date;
    l_org_now_no_manager_warning boolean;
    l_other_manager_warning boolean;
    l_spp_delete_warning boolean;
    l_entries_changed_warning varchar2(9000);
    l_tax_district_changed_warning boolean;
    l_concatenated_segments varchar2(9000);
    l_gsp_post_process_warning varchar2(9000);
    BEGIN
    l_ovn:=11;
    --l_people_group_id:=966;
    l_soft_coding_keyflex_id:=null;
    l_special_ceiling_step_id:=null;
    hr_assignment_api.update_emp_asg_criteria
    (p_effective_date =>TO_DATE('08-SEP-2012')
    ,p_datetrack_update_mode =>'CORRECTION'
    ,p_validate =>FALSE
    ,p_assignment_id =>37325
    --,p_segment1 =>'Local Government Conditions (Green book)'
    --,p_segment2 =>'R'
    ,p_segment3 =>'None'
    ,p_object_version_number =>l_ovn
    ,p_special_ceiling_step_id =>l_special_ceiling_step_id
    ,p_people_group_id =>l_people_group_id
    ,p_soft_coding_keyflex_id =>l_soft_coding_keyflex_id
    ,p_group_name =>l_group_name
    ,p_effective_start_date =>l_effective_start_date
    ,p_effective_end_date =>l_effective_end_date
    ,p_org_now_no_manager_warning =>l_org_now_no_manager_warning
    ,p_other_manager_warning =>l_other_manager_warning
    ,p_spp_delete_warning =>l_spp_delete_warning
    ,p_entries_changed_warning =>l_entries_changed_warning
    ,p_tax_district_changed_warning =>l_tax_district_changed_warning
    ,p_concatenated_segments =>l_concatenated_segments
    ,p_gsp_post_process_warning =>l_gsp_post_process_warning
    END;
    Commit;
    Please help me on how to update the individual segment.
    Thanks
    Raghava

  • How to default the KFF segment values based on other field's value

    Hi,
    I would need to reset the 5th segment value of "Liability Account" field on R12 Supplier Page under "Accounting" link.
    Condition: And it has to be based on some other value like "GLOBAL CONTEXT VALUE and TaxPayer ID Type" under "Organization" link.
    Right now; as per the seeded page it defaults the Liability Account to "BL-130-0000-2110-0000-0000" under accounting link; I need to change this default value to "BL-130-0000-2110-2641-0000" based on above condition.
    I have tried using the below code:
    OAKeyFlexBean oakeyflexbean = (OAKeyFlexBean)oawebbean.findIndexedChildRecursive("LiabilityFlex");
    oakeyflexbean.setText()
    But this one does not work.
    Can anyone suggest me some option to acheive this requirement.
    Thanks
    Edited by: 880860 on May 21, 2012 2:23 PM

    Hi everyone,
    Any thoughts? any help is appreciated...
    Thanks

  • Changing Segment Name

    Hi all,
    what is the impact of changing a KFF segment name?
    thanks in advance,

    In my opinion there shouldn't be much of an issue if you change the segment name. The possible issues that I foresee are:
    1. If there is a self service personalization on this KFF which refers to this segment name, it might go for a toss. For example, there would be an issue if you have personalized the page to display only 3 out of 5 segments defined for the KFF and the list of displayed segments includes the segment that you are modifying. This is because to personalize the KFF you enter the names of the segments to be displayed.
    2. And of course, if there is any custom code which refers to the segment names you'll have to update that too.
    However, I am a little curious to know why you need to change the name of the segment because in most cases it should suffice to change the Window prompt only.
    Regards,
    Manish Kataria

  • Custom.pll in KFF

    Hi Gurus,
    I have a requirement to do a customization in a KFF segment. I think it is possible to do it in custom.pll.
    But for this, I need to know
    How can I find the form name for a KFF?
    e.g. Bank KFF in Payment Method form.
    Please let me know ASAP.
    Thanks,
    Naresh

    Please post this question here: OA Framework
    This forum is for bespoke Forms applications.

  • WebADI questions about KFF.

    Hi,
    I have developed WebADI, where I have included KFF (Personal Analysis Flexfield) column. I have two questions:
    1. Why I must to fill all KFF segment fields? In KFF segment configuration form is given that only one segment field is required.
    2. When I made upload for WebADI, I became such error: “Unable to perform column validation”. And for every KFF segment column appear Help text: “Cause: No validation rule available for column &COLUMN_NAME”.
    Thank you!

    Okey, maybe I asked question not very correctly. For one KFF Segment structure is configured (enabled) three segments, but only for one segment is configured that it is required. But in WebADI I must fill all three segment fields! If I am not filled all field, on Upload I get such error: “Enter value for flexfield segment”
    Message was edited by:
    user622528

  • 2 SEGMENTS ITEM NAME FORMAT을 1 SEGMENT ITEM NAME FORMAT로 변경 방법

    제품 : MFG_INV
    작성날짜 : 2005-05-06
    2 SEGMENTS ITEM NAME FORMAT을 1 SEGMENT ITEM NAME FORMAT로 변경 방법
    =====================================================================
    PURPOSE
    System Items Key Flexfield setup시 2 segments item name format을 이용하
    였으나 이 후 business 변경에 따라 item name format이 변경되는 경우가
    발생한다. 이런 경우 이 note를 참조하여 item name segment를 변경할 수
    있다.
    Problem Description
    Inventory item name은 아래의 procedures에 따라 2 segment value에서 1
    segment value로 변경될 수 있다.
    1. Segment1에 prefix를 더하여 value를 변경하고, segment2를 null 시킨다.
    using a sql script:
    (example)
    update mtl_system_items_b
    set segment1 = concat(segment1,'.&suffix'),
    segment2 = null
    where segment2 = '&seg2value';
    2. System items KFF segment definition에서 segment2를 delete하고 KFF를
    recompile 한다.
    Workaround
    Solution Description
    이 접근방법은 development로부터 확인받은 것이다.
    1. Open Item Interface process는 item names update는 지원하지 않으므로
    update script는 item name을 변경하기 위해 이용될 수 있다.
    이 script를 이용하기 전에 아래의 내용을 확정한다.
    -. Updating the segment1 with concat(segment1,',&suffix')
    Client는 새로운 value가 segment1과 연관된 valueset을 만족시키는지
    확인할 필요가 있다.
    -. Segment2가 null이 되어도 문제가 없는지 확인해야 한다.
    Item KFF definition에서 segment2가 현재 'Required'로 setting되어
    있는지 점검한다.
    2. mtl_system_items_b table에서 item 값을 update 한 후 systen item KFF
    definition에서 segment2를 delete 후 KFF를 recompile 한다.
    위 모든 변경 사항은 먼저 TEST instance에서 test 해야 한다.
    TEST instance에서 성공적으로 test 된 후에야 TEST instance와 동일한 다른
    instance에 적용할 수 있다.
    Reference Documents
    Note 282045.1

    The Cost_of_sales_account & Sales_account as defined in the MTL_PARAMETERS are different from those in MTL_SYSTEM_ITEMS_B for the corresponding item. The values for these accounts in the interface tables are same as that in the MTL_SYSTEM_ITEMS_B table and hence not same as those defined in MTL_PARAMETERS.
    Actually we have a Custom trigger on the MTL_SYSTEM_ITEMS_B table which updates these accounts, once the item is created in the Master Organization.
    To verify this issue, I updated the accounts on the MTL_SYSTEM_ITEMS_INTERFACE table to match with that of MTL_PARAMETERS. Ran the 'Item Import', now those records are processed.
    Does this means that, the Interface is validating the cost_of_sales_account & sales_account to match with that of the 'Organization' ??.
    But we never had this issue in 11i. Is this a part of R12??

  • KFF default value

    Hi,
    I am trying to set a default value for one of the KFF segment which depend on the fnd_profile.value('PER_PERSON_ID')..
    the default type is a SQL statement.
    after saving my work and compiling it, when i checked the result, there was nothing affected in the segment modified..
    I am 100% sure that the SQL is correct, i even tried to select a constant value from dual and it was not there!!!
    when i create a value set for this segment to be with a table validation type, and i put the query there it works fine!!!
    but since it is a value set, even if my query retrieve one value, i always require to select it from the list to be shown..
    apparently, for some reason the default value of the segment it self is not working, is there any reason behind that??
    how to fix that?
    thanks a lot & appreciate your help

    Hello Gaurav,
    If I understood correctly, Your requirement is to update People Group segments based on employee category.
    Basically you need to update people group values based on employee category before insert into assignment table.
    You can acheive this using Dynamic Trigger on Assignment Table.
    you need to change the new.people_group_id along with other segment values in this trigger logic.
    Following articles will help you steps on how to create dyanamic triggers.
    http://oracle.anilpassi.com/dynamic-triggers-in-hrms-payroll-demo.html
    http://apps2fusion.com/apps/oracle-hrms/oracle-hr/204-triggers-in-oracle-hrms-and-payroll
    Regards,
    Saurabh

  • How to default Key flex field value in oaf

    Hello All,
    I've a requirement where I need to default KFF segment values the moment page is loaded and from then on user can select different segment values. Normal KFF is working fine on my page but I am not able to default the values.
    Please help me as I am stuck at this point.
    Thanks,
    PV

    Hi,
    right click on the page and check view source, get the id of the bean. i know it is not a stright solution, but it works

  • POXPOEPO.fmb

    Hi,
    I want to change the LOV query of the cateogry field in the PO Line section of the Purchase Orders form. I need t orestrict the LOV items.
    I downloaded the fmb file from the au_top. What other files do I need to download in order to run the form in Form Builder without any modifications to it?
    Thanks.

    So, what you are suggesting is that--
    1. Enable the security as Hierarchical (or non-hierarchical ???) Security, for the valueset that's linked for the KFF - PO Item Category.
    2. Enable the 'Security Enabled' for the KFF segment under validation.
    3. define a security rule that has limited values filled in and assign it to the PO responsibility.
    My scenario is , when the PO is opened, it should limit the LOV of the cateogry field. Ideally, this should be linked to PO Item category structure of the Inventory: Item Categories KFF. But unfortunately, the category LOV is currently linked to the Inventory item category Structure of the same KFF. So, now, I can't go back and assign the Default Item Category FF to the Purchasing Functional area.
    Would your recommendation still be viable? In that case, I should be doing the same steps for the valueset in the currently linked structure of the KFF...correct?
    thanks.

  • Validation on People Group Key Flexfield

    Hi all,
    I have a People Group Key flexfield (KFF) defined with 7 Segments, and I want to make 1 of the Segments (SEGMENT7) Read-Only for a specific set of Responsibilities.
    I have tried creating a Form Personalization for this, but I don't believe you can achieve this using forms personalizations (because you can only reference the entire flexfield as a whole, and not individual segments).
    I have also tried using the Custom Library, and referencing FND_KEY_FLEX.UPDATE_DEFINITION to apply this validation, but I have not been able to get this to work either.
    Finally, I have tried creating a security group and attaching it to the Value Set / KFF Segment but this doesn't quite give me what I need, as this only lets you Include/Exclude specific values and not make the segment Read-Only.
    Does anyone know how to apply this validation to a People Group KFF Segment?
    Thanks in advance,
    Jon

    If nothing else works , you can write a before-update d/b trigger on the underlying table that compares :old.segment7 with :new.segment7 and raises failure if the values differ for the user's logged in responsibility.

  • API To set PayLocation in HRMS

    Hi All,
    I am new to HRMS..
    can anybody tell me the api to set PAYLOCATION value for an assignment??
    Thanks,
    Raghava.

    Hi VB,
    I tried with following code... API executes successfully...
    per_all_assignments_f table populated with last_updated_date.
    But PAY_PEOPLE_GROUPS not got updated where i want to update the People group KFF segment.
    DECLARE
    l_datetrack_update_mod VARCHAR2 (30) := 'CORRECTION';
    l_effective_date DATE := SYSDATE;
    l_assignment_id NUMBER := 8277;
    l_grade_id NUMBER := 877;
    l_position_id NUMBER := 66887;
    l_job_id NUMBER := 174;
    l_payroll_id NUMBER := 64;
    l_location_id NUMBER := 889;
    l_organization_id NUMBER := 8795;
    l_pay_basis_id NUMBER := 64;
    l_segment2 VARCHAR2 (10) := 'H';
    l_old_obj_ver_number NUMBER := 33;
    l_special_ceiling_step_id NUMBER;
    l_people_group_id NUMBER := 128;
    l_soft_coding_keyflex_id NUMBER;
    l_group_name VARCHAR2 (100);
    l_effective_start_date DATE;
    l_effective_end_date DATE;
    l_org_now_no_manager_warning BOOLEAN;
    l_other_manager_warning BOOLEAN;
    l_spp_delete_warning BOOLEAN;
    l_entries_changed VARCHAR2 (100);
    l_tax_district_changed_warning BOOLEAN;
    l_concatenated_segments VARCHAR2 (100);
    l_gsp_post_process_warning VARCHAR2 (100);
    l_validate BOOLEAN := FALSE;
    BEGIN
    hr_assignment_api.update_emp_asg_criteria
    (p_effective_date => l_effective_date,
    p_validate => l_validate,
    p_datetrack_update_mode => l_datetrack_update_mod,
    p_assignment_id => l_assignment_id,
    p_called_from_mass_update => NULL,
    p_grade_id => l_grade_id,
    p_position_id => l_position_id,
    p_job_id => l_job_id,
    p_payroll_id => l_payroll_id,
    p_location_id => l_location_id,
    p_organization_id => l_organization_id,
    p_pay_basis_id => l_pay_basis_id
    --,p_segment1 => l_segment1
    p_segment2 => l_segment2
    --,p_segment3 => l_segment3
    p_employment_category => NULL,
    p_concat_segments => NULL,
    p_contract_id => NULL,
    p_establishment_id => NULL,
    p_scl_segment1 => NULL,
    p_grade_ladder_pgm_id => NULL,
    p_supervisor_assignment_id => NULL,
    p_object_version_number => l_old_obj_ver_number,
    p_special_ceiling_step_id => l_special_ceiling_step_id,
    p_people_group_id => l_people_group_id,
    p_soft_coding_keyflex_id => l_soft_coding_keyflex_id,
    p_group_name => l_group_name,
    p_effective_start_date => l_effective_start_date,
    p_effective_end_date => l_effective_end_date,
    p_org_now_no_manager_warning => l_org_now_no_manager_warning,
    p_other_manager_warning => l_other_manager_warning,
    p_spp_delete_warning => l_spp_delete_warning,
    p_entries_changed_warning => l_entries_changed,
    p_tax_district_changed_warning => l_tax_district_changed_warning,
    p_concatenated_segments => l_concatenated_segments,
    p_gsp_post_process_warning => l_gsp_post_process_warning
    END;
    Please Help
    Thanks
    Raghav

Maybe you are looking for