Error while updating assignment of Contingent resource

Hi,
I am getting the below error while updating Assignment of contingent resource using the Standard API.
ORA-20001: HR_7949_ASG_DIF_SYSTEM_TYPE: N, SYSTYPE, ACTIVE_CWKCode for updating the record is -
Declare
Cursor c_emp_mig
Is
Select person_id, supervisor_person_id, code_comb_id, sob,  assignment_id, assignment_number From  customContingentTable;
  x_person_id number;
x_validate BOOLEAN := FALSE;
x_supervisor_id number;
x_default_code_comb_id number;
x_set_of_books_id number;
x_assignment_id number;
x_assignment_number varchar2(20);
x_manager_flag char(1):='N';
x_comment_id number;
x_concatenated_segments varchar2(80);
x_no_managers_warning boolean ;
x_cagr_concatenated_segments VARCHAR2(80);
x_soft_coding_keyflex_id NUMBER; --- IN OUT
x_other_manager_warning boolean;
x_object_version_number NUMBER;
x_cagr_grade_def_id  NUMBER;
x_effective_date DATE :='01-OCT-2011'; --cut off date from which the assignment will be effective
x_effective_start_date DATE  :='01-OCT-2011';--cut off date from which the assignment will be effective
x_effective_end_date   DATE;
x_hourly_salaried_warning boolean;
x_org_now_no_manager_warning boolean;
x_error_code varchar2(240);
x_error_desc varchar2(2000);
Begin
   Open c_emp_mig;
   Loop
   Fetch c_emp_mig Into x_person_id, x_supervisor_id, x_default_code_comb_id, x_set_of_books_id, x_assignment_id, x_assignment_number;
   Exit when c_emp_mig%NOTFOUND;
    x_object_version_number:=1;
    hr_assignment_api.update_cwk_asg(
     p_validate => x_validate
     ,p_effective_date => x_effective_date
     ,p_datetrack_update_mode => 'UPDATE'
     ,p_assignment_id => x_assignment_id
     ,p_assignment_status_type_id => 1
     ,p_assignment_number =>x_assignment_number
     ,p_object_version_number => x_object_version_number
     ,p_default_code_comb_id => x_default_code_comb_id
     ,p_set_of_books_id => x_set_of_books_id
     ,p_supervisor_id=>x_supervisor_id
     ,p_manager_flag=>x_manager_flag
     ,p_concatenated_segments => x_concatenated_segments
     ,p_soft_coding_keyflex_id => x_soft_coding_keyflex_id
     ,p_comment_id => x_comment_id
     ,p_effective_start_date => x_effective_start_date
     ,p_effective_end_date => x_effective_end_date
     ,p_no_managers_warning => x_no_managers_warning
     ,p_other_manager_warning => x_other_manager_warning
     ,p_hourly_salaried_warning=>x_hourly_salaried_warning 
     ,p_org_now_no_manager_warning=>x_org_now_no_manager_warning
      End Loop;
   Exception When Others Then
         x_error_code:=SQLCODE;
         x_error_desc:=SQLERRM;
        insert into emp_mig_error(error_code, error_desc) values(x_error_code, x_error_desc);  
     Close c_emp_mig;
  End;   Am I missing something here? I searched in metalink, there is no mention of this error. Can anyone help?
Regds,
ARS

The relevant parameter to identify an individual will be p_assignment_id.
You will need a query to obtain the relevant assignment_id from the given CWK number on the person row
Edited to add : whilst you are about it, you'll need to obtain the assignment object_version_number as well - that will be needed for the p_object_version_number parameter
Edited by: clive_t on 05-Apr-2012 16:10

Similar Messages

  • Error while updating my WP

    Hi, I have got an error while updating my WP on lumia 800? the error code is 80070002. how to resole

    @RoukailaRedouane
    Similar issue raised here with referral to resource below:http://answers.microsoft.com/en-us/winphone/forum/wp7-sync/error-80070002-occurred-when-checking-upd...
    More information can be found here:http://support.microsoft.com/kb/910336/en-us
    Happy to have helped forum with a Support Ratio = 42.5

  • Error While updating Process form data Using Scheduler

    Hi All,
    I am trying to update Process form data (ex : lastname) using a scheduled task Code. I am getting Error while updating Field.
    Code :
    HashMap<String, String> map = new HashMap<String, String>();
    map.put("UD_EBS_PF_LASTNAME", "lastname");
    formintf.setProcessFormData(instancekey, map);  //I AM GETTING AT THIS LINE
    Saying
    Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl_1036_WLStub.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
        at $Proxy2.setProcessFormDatax(Unknown Source)
        at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.setProcessFormData(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.security.Security.runAs(Security.java:41)
        at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
        at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
        at $Proxy3.setProcessFormData(Unknown Source)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.execute(AssignRandomPasswordToAllUsersSchedulerTest.java:182)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.main(AssignRandomPasswordToAllUsersSchedulerTest.java:63)
    Caused by: Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:761)
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:426)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    Is that possible there was the field ZDATE in your form interface/ context and now it is not? I guess some source has changed so the field in the form (binding to the not existing field) cannot be processed. Otto

  • RFC_ERROR_SYSTEM_FAILURE error while  updating the sick leave in MSS

    Hi Guru ,
    We are  getting  RFC_ERROR_SYSTEM_FAILURE error while updating the Sick leave for team member from portal .
    Please tell how to resolve this .
    Dump part :
    Runtime Errors         MESSAGE_TYPE_X
    Error analysis
        Short text of error message:
        System error
        Long text of error message:
        Technical information about the message:
        Message class....... "HRTIM00BUFMSG"
        Number.............. 001
        Variable 1.......... " "
        Variable 2.......... " "
        Variable 3.......... " "
        Variable 4.......... " "
    Information on where terminated
        Termination occurred in the ABAP program "SAPLHRTIM00_TMWBUFFER" - in
         "INITIALIZE".
        The main program was "SAPMSSY1 ".
        In the source code you have the termination point in line 55
        of the (Include) program "LHRTIM00_TMWBUFFERCB5".

    When an RFC fails from the portal to an SAP Backend, probably ECC 6.0 in your case, there are a few options that I use to troubleshoot:
          1. Ensure that all your jco's are set up ok, passwords, ect. JCOs do not appear to be the problem here
          2. Have an ABAP programmer review where the RFC is failing on the Backend System
          3. Set up an External Breakpoint in the backend RFC. Step to do this:
                   a. Get the Backend UserID of a test portal user that is having this issue.
                   b. Ensure that test user has "Debug Display" access in the Backend System
                   c. Log into the Backend system, go to SE 37 and display your RFC
                   d. Go to Utilities --> Settings --> Debugging in the top menu and add the Test User ID to the "Users" field.
                   e. Set an external breakpoint any where you want in the RFC.
                   f. Run the Leave request as the test user.
                   g. a new SAP GUI screen will popup once it hits the breakpoint. The portal browser will stay frozen until you step thru the ABAP program.
      Option 3 may sound like alot at first if you never used it, but if you are responsible for troubleshooting portal issues like this one, it is a skill you must have. You can also have an ABAP resource responsible for external debugging when you come accross issues like these. It helps you see exactly what data is being passed in from the portal and what is happening to cause the error.
    Regards,
    Tom

  • Error while updating a plan

    Hi,
    I have encountered an error while updating a plan. While i update the uplan , the grid gets filled but it throws a message stating
    "Maximum Number of Result Blocks has been reached"
    Maximum number of Result Blocks has been reached.
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0xD4]
    Error while processing the data for the step 'Grid'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Maximum number of Result Blocks has been reached.
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0xD4]
    Error while processing the data for the step 'Grid'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Update of Plan "deposittest created 7/19/2007 5:11:50 PM" failed.
    [Oracle BAM Enterprise Link error code:  PlanMgr -- 0x1, PlanMgr -- 0xD5]
    The data updation stops after the row count 49900.
    Please help to resolve this error .
    Thanks in advance.
    Regards,
    Lathika

    Hi,
    in BAM-Administrator you should rraise Parameter "MaxResultBlocks".
    BAM originaly is al licensed Software from Group1 named "Sagent Data Flow".
    This may help searching the web.
    Greetz,
    GOI

  • Error while updating to iOS 6.1.2

    Error while updating software to iOS 6.1.2

    what is the error? if you want help you need to provide some details.

  • Error While updating info in the People Form-Additional Personla Details

    Hi All,
    Iam getting an Error While updating information in the People Form,Additional Personla Details DFF.
    Error Like:
    APP-PER-289974:There has been an error Processing this person,The error encountered is 'ORA-20001:HZ_STNC_SQL_EXCEP:N,PROC.sync_Person,N,ERROR.ORA-25153:Temporary Tablespace is empty ,N,POO,1265890',which occured in procedure  per_htrca_merge_tca_person at step10.
    Please contact your support represntative.
    Thanks -
    Sowmya

    Thanks you,
    By this Note id:395136.1
    Iam unable to find this Set profile 'HZ: Generate Events for DQM Real-Time Synchronization' to No
    with this Note id:278422.1
    We are unable to find this proifle option : HZ: Data Sharing and Security Enabled profile
    we are using applications 11i.
    please help to find this Profile option.
    But with this note id:ID 395136.1
    This is Working.
    Query for HZ: DQM Synchronization Method profile. Set the value to Disable.
    But iam facing proble while uploding data to DFF ,Error--SQL exception occurred during PL/SQL upload.
    Thanks for the Support-
    Sowmya.
    Edited by: user13419037 on Aug 11, 2011 11:53 PM
    Edited by: user13419037 on Aug 12, 2011 12:03 AM
    Edited by: user13419037 on Aug 12, 2011 3:45 AM

  • Error while updating the content in workflow

    Hi,
    I'm getting an error while updating the content in workflow thru the checkout option. i.e. contributor checks in the content - reviewer rejects the content - then contributor checks out and modifies the content as per the reviewer's remarks and while checking in the following error occurs
    Content Server Request Failed
    Unable to check in content item 'HO000128' for workflow. Unable to execute service method 'checkInUpdateRevByID'. (System Error: Runtime error: java.lang.NullPointerException
    at intradoc.server.DocServiceHandler.checkInRevByID(DocServiceHandler.java:248)
    at intradoc.server.DocServiceHandler.checkInUpdateRevByID(DocServiceHandler.java:240)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:617)
    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:293)
    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
    at intradoc.server.Service.doCodeEx(Service.java:490)
    at intradoc.server.Service.doCode(Service.java:472)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1360)
    at intradoc.server.Service.doAction(Service.java:452)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1201)
    at intradoc.server.Service.doActions(Service.java:447)
    at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1071)
    at intradoc.server.Service.executeSubServiceCode(Service.java:3497)
    at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:942)
    at intradoc.server.Service.executeServiceEx(Service.java:3492)
    at intradoc.server.Service.executeService(Service.java:3476)
    at intradoc.server.DocServiceHandler.determineWorkflowCheckin(DocServiceHandler.java:3833)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:617)
    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:293)
    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
    at intradoc.server.Service.doCodeEx(Service.java:490)
    at intradoc.server.Service.doCode(Service.java:472)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1360)
    at intradoc.server.Service.doAction(Service.java:452)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1201)
    at intradoc.server.Service.doActions(Service.java:447)
    at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1071)
    at intradoc.server.Service.executeSubServiceCode(Service.java:3497)
    at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:942)
    at intradoc.server.Service.executeServiceEx(Service.java:3492)
    at intradoc.server.Service.executeService(Service.java:3476)
    at intradoc.server.Service.doSubService(Service.java:3465)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:617)
    at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:279)
    at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:264)
    at intradoc.server.Service.doCodeEx(Service.java:507)
    at intradoc.server.Service.doCode(Service.java:472)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1360)
    at intradoc.server.Service.doAction(Service.java:452)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1201)
    at intradoc.server.Service.doActions(Service.java:447)
    at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1121)
    at intradoc.server.Service.executeActions(Service.java:433)
    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:635)
    at intradoc.server.Service.doRequest(Service.java:1707)
    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:359)
    at intradoc.server.IdcServerThread.run(IdcServerThread.java:197))
    Please help to resolve.
    Thanks in advance
    Prasad

    I also get error while updating the content in workflow thru the checkout option as reviewer. i.e. contributor checks in the content - then reviewer either updates the metadata or checks out and modifies the content and while checking in the following error occurs
    Content Server Request Failed
    Unable to update the content item information for 'HO000128'.
    The content ID must be specified.
    Please help to resolve.
    Thanks in advance
    Prasad

  • Error while updating phone button template in CUCM 8.6

    Experts,
    I'm getting following error while updating phone button template in CUCM 8.6;
    Update failed. java.sql.SQLException: System catalog (sysprocbody) corrupted.
    Please check the screen shot attached here with.
    What could be the reason?
    Thanks
    Vivek

    I'm not a Cisco employee, so I can't do anything with your backup.!
    You need to take a backup as a precaution (You should have been doing this anyway) Then you need to call Cisco TAC to get the underlying problem fixed. CalManager is a locked-down environment, and only TAC can get the low-level access needed to fix database problems.
    GTG

  • Error while updating decimal places in general settings

    Hii All
             I have got an error while updating Decimal places in General Settings
    Cannot update while another user is connected to the company i have checked, there is no other user logged in, i could add other settings but the problem is only with Decimal Places
    Note : there are no postings yet, a fresh database for a new client
             what could be the possible reason
                                                                 thanks
                                                                         RIYAZ

    Hiii All
          As a forum rule, i have initially gone through with the existing threads and then i was force to post a thread,
              would be helpfull if there is any other way..
                                                Thanks
                                                         RIYAZ

  • Error while updating patch level 11 of HR

    Dear All,
    I am getting following error while updating HR patch level 11.
    Phase OBJECTS_LOCKED_?: Objects Locked in Requests
    Request      Names of Locked Transport Objects
    MRDK900089   LIMU REPS H99_POST_PAYMENT
                 LIMU REPS RPCIPE00
    MRDK900542   R3TR FORM HR_IN_TAXF16000Y
    the above request is in other client, and it is a local request, which is not getting transported; i mean it does not allow to transport. give the following error.
    Object messages: R3TR CINS 01200615322 0000824666
    Transport objects from package PCPO to target MRP only
    Object messages: R3TR NOTE 0000970953
    Transport objects from package PCPO to target MRP only
    Object messages: LIMU METH CL_HRPAY99_POSTING_LOG DATA_TOP_FILL_TEXT
    Transport objects from package PCPO to target MRP only
    Object messages: LIMU METH CL_HRPAY99_POSTING_LOG PUT_PERNR_INFO
    Transport objects from package PCPO to target MRP only
    Object messages: LIMU REPS H99_POST_PAYMENT
    Transport objects from package PCPO to target MRP only
    Please help me how to rectify.
    Thanks n regards
    Bhaskar

    Hello Bhaskar,
    is the transport already approved?
    If not approve it and try it again. (also it is a local one)
    If not check the objects and unlock them manually the following way:
    SE03 => Unlock Objects (Expert Tool)
    But if you approve your transport... the objects should be unlocked.
    Regards
    Stefan

  • Error while updating data from PSA to ODS

    Hi Sap Gurus,
    I am facing the error while updating data from PSA to ODS in BI 7.0
    The exact error message is:
    The argument 'TBD' cannot be interpreted as a number
    The error was triggered at the following point in the program:
    GP44QSI5RV9ZA5X0NX0YMTP1FRJ 5212
    Please suggest how to proceed on this issue.
    Points will be awarded.

    Hi ,
    Try to simulate the process.That can give you exact error location.
    It seems like while updating few records may be no in the format of the field in which it is updated.
    Regards
    Rahul Bindroo

  • Error while updating account dim

    I get the below error while updating the Outline Account Dim.This error occurs only when updating account dim. It does not happen with other dimensions. So it doesn't seem to be the connection being down. If we recycle the analytics server. But we are not able to find out the actual cause for this issue.
    Error message:
    Cannot build dimension. Analytic Server Error(1042017): Network error: The client or server timed out waiting to receive data using TCP/IP. Check network connections. Increase the NetRetryCount and/or NetDelay values in the ESSBASE.CFG file. Update this file on both client and server. Restart the client and try again
    Additional information
    Account is defined as dense dimesion with 1800 level 0 members. We are updating this using rules file.
    Potential Number of Data Blocks     :     27762609853440
    Number of Existing Data Blocks     :     2625360
    Index Cache: 40960
    Data cache : 20480
    I appreciate any help in resolving this issue

    There is probably something in your dim build source file that Essbase doesn't like and isn't giving you a good error message. Did this dim build work in the past and you recently added something to it?
    Try excluding certain columns like member properties and data storage just to see if you can get the members to load. Then slowly bring back in the other columns to see if you find the one that has the problem. Similarly try keeping all the columns but just try loading one record and see if it succeeds, this will help you start to narrow down if it is a load rule or source issue. Other option is to create a new load rule, perhaps there is something wrong with the one you are using.
    Unfortunately there is no magic bullet here, you just have to work through small samples to try and isolate what the problem is.

  • Error while updating DocumentDefinition AIP-11052:Writing following objects

    Hi All,
    I am getting this error while updating ecs in Document Definition. I was able to do it properly on the same environment a few weeks back but now its throwing an error:
    Error -: AIP-11052: Writing following objects: Document Definition failed due to following constraint violation: DOCUMENTDEFINITION. CAN NOT UPDATE UNVERSIONABLE OBJECT IN A VALIDATED CONFIGURATION
    I read in some of the OTN forums that this may be an environment issue. So i restarted the B2B server as suggested but the error seems to still exist.
    Kindly reply how to proceed. Its little critical.
    Thanks in advance.

    Make sure there is no agreement in deployed/validated state which is using this document definition. Retire and purge all existing configurations which are using this doc def and make sure there is no agreement in validated state. If there is an agreement in validated state and then change/just update anything in agreement and save it to bring it back into draft state.
    Regards,
    Anuj

  • Error while updating?

    I got this error while updating....
    http://i54.photobucket.com/albums/g109/Bonesone4/Picture1-7.png
    luckily I have all my music and movies backed up already on an external drive...but does anyone have any ideas why this might have happened?
    Bones

    I got this error while updating....
    http://i54.photobucket.com/albums/g109/Bonesone4/Picture1-7.png
    luckily I have all my music and movies backed up already on an external drive...but does anyone have any ideas why this might have happened?
    Bones

Maybe you are looking for