Attaching employees with department?

I need to build the form according to following conditions if HR schema,
on the upper level i need one filed that is for department filed in an LOV, where one department can be selected,
and after that we have one tabular form in which we have list of employees, now these employees are not attached to any department. I also have created an check box against every record of employee, now i want to attach multiple employees to that selected department with the help of that check box. I mean that if i check the check box of any employee then that employee should get attached to that department from LOV.
I hope i explaind in a way the forum ppl can understand what i want to create, now I am new to oracle forms pleaze if i can get help that how will i proceed developing this form.
Thanks
Naveed

I think an easier option would be to two base table blocks; one based on the DEPARTMENTS table and one based on the EMPLOYEES table. Make the DEPARTMENTS block read only so users can't make changes to the DEPARTMENTS table. Code your form so users have to choose a department before they can display unassigned employees.
Add a non-base table Check Box item as RK suggested to the EMPLOYEES table. In the EMPLOYEES block, when a user clicks the checkbox write code in the When-Checkbox-Changed (WCC) trigger write code to assign the current employee record the selected department_id from the DEPARTMENTS table. If the user unchecks the checkbox, simply assign NULL to the department_ID of the current employee record. This eliminates the need to loop records in a Save Button code and makes the code simply:
BEGIN
   COMMIT_FORM;
END;Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • Attach employee photo to KMContent

    We would like to attach employee photo to KMContent for storage via ESS/MSS or R3. Is there any document on how to do it ?
    Thanks.
    Edward Tso

    Hi Subhash,
    I can use OAC0 to link with SAP Content Server. But I don't know how to link withh KM Content. Pls advise.
    Thanks.
    Edward Tso

  • How to create two employees with same name as supplier record?

    Dear all,
    We need to create a supplier record for an employee so that we can issue invoice for pretty cash payment. If there are 2 employees with same name, how can we create supplier records for these 2 employees? The system does not allow duplicate supplier name.
    Please advise.
    Regards,
    HY

    Hello,
    In R12 it is possible to create 2 employee with same name but different employee number.
    And also possible to create these 2 employees as suppliers in Payables.
    HTH,
    Vik

  • Hiring new employee with HR_MAINTAIN_MASTERDATA

    Hi,
    I am trying to hire new employee with HR_MAINTAIN_MASTERDATA. For now, I only gives the mandatory values of the infotype 0002 in proposed_values and parameters to the FM.
    CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
         EXPORTING
           pernr                    = no_emp_int
           massn                    = '01'
           actio                    = 'INS'
           tclas                    = 'A'
           begda                    = sy-datum
           endda                    = '99991231'
    *       OBJPS                    =
    *       SEQNR                    =
    *       SPRPS                    =
    *       SUBTY                    =
           werks                    = '1000'
           persg                    = '1'
           persk                    = 'D9'
    *       PLANS                    =
           dialog_mode              = '1'
    *       LUW_MODE                 = '1'
           no_existence_check       = 'X'
    *       NO_ENQUEUE               = ' '
          IMPORTING
            return                   = return
    *       RETURN1                  =
    *       HR_RETURN                =
          TABLES
            proposed_values          = it_prop_val
    *       MODIFIED_KEYS            =
    When it is executed, it gives me the error:
    'No data available for A 00007787 0003' where 00007787 is the employee number. My guess is that 0003 is for the Payroll status (0003) infotype. I thought it would be automatically created with the FM.
    When I change the dialog_mode parameter to '0', no error appears but, the employee data isn't saved i.e. I cannot access it with PA30 or PA40. It says 'Personnal number not yet assigned'.
    So, I'd like to know how to save data correctly and why dialog_mode '1' or '2' failed everytime.
    Thanks a lot for your answers, points will be awarded as it fits my needs!

    Patrick
    My guess is that this FM HR_MAINTAIN_MASTERDATA will not create all 4 infotypes (0, 1, 2 and 3 as I think all those 4 are mandatory for every employee). I would say that you need to specify data for each infotype separately. You can in fact create all those 4 infotypes in separate calls of FM. I was doing this some time ago (with calling FM 4 times) but I was using different FM - HR_INFOTYPE_OPERATION.
    The obligatory fields for each infotype depends on the setting in you system so you need to find this out by your-self.
    As per infotype 0003 do not forget to set properly field VIEKN - see feature IVWID otherwise maintenance of created employee may not be possible.
    One last thing - you may try to use IDOC HRMD_A for employee creation. This way is much faster than using FM's. But be careful no data check/validation is done when you pass an IDOc to application (which maybe an advantage in your situation).
    Andrzej

  • How to open a pdf file and then attach it with images

    I am new to Indesign Server.
    I'm currently working on a pdf.
    I have a white blank pdf template.
    that I want to attach/glue it with images.
    How to open a pdf file and then attach it with images.
    Please, help me.
    Thanks.

    First step would be to make yourself familiar with InDesign desktop version.
    Whatever you intend to achieve, do it there manually. (see regular app docs or forums)
    Then try to automate your steps with scripting (see scripting docs or forum)
    If you can do it with a script in the desktop version, that script will likely also run in ID Server. (see server forum).
    If you can specify missing features not achievable thru scripting or manual use, reconsider to write a plugin (this forum).
    A seasoned C++ programmer will need a few months to learn the basics, wade thru tons of documentation etc. Alternatively consider to hire a consultant to do the development work for you.
    Dirk

  • How to create an employee with a specific effective_start_date with api?

    Hello,
    I'm trying to create an employee through the hr_employee_api.create_employee (R12 Apps)
    In Forms, if we want create it in a different date than sysdate, we use the "Alter effective date" screen... what this does is to copy into global.g_session_date variable the value we set.. and I suppose that this date is what api takes as sysdate to create an employee with desired effective_start_date.
    But.. how to set it through Plsql procedure that call to create_employee api? p_per_effective_start_date is an out parameter... But after following the code through internal apis.. I didn't get to find where is that value set...
    Any ideas?
    If no one is passed, it's set to sysdate.. but what we want is to set this date to one specific...
    Thanks,

    Hi again,
    sorry for a "quick" conclusion...
    Although the session date wwill be set inserting in fnd_sessions.. the effective_start_date returned ..continues with the value of hire_date.
    I've checked the screen behavior and it inserts directly into PER_ALL_PEOPLE_F (when we have a "normal" employee, not CWK) through per_people11_pkg.insert_row1 procedure.
    So.. is there anyway with create_employee api to create an employee (CORRECTION p_datetrack_update_mode) with hire_date different from p_effective_start_date??
    Interesting issue...
    Regards.

  • My gmail crashes when I add attachment same with facebook, what can I do to fix this?

    my gmail crashes when I add attachment same with facebook, what can I do to fix this?

    That is not an Apple or OS X issue, I'd suggest contacting the modem manufacturer to see what the issue might be.

  • Slow attachment upload with Exchange Web Services (Outlook 2011 for Mac?)

    We're experiencing slow attachment upload with Exchange Web Services versus MAPI, OWA, and Outlook Anywhere.  I'm not totally certain that it is Exchange Web Services or specifically Outlook 2011 for Mac.  I attempted to test with the Mac Mail
    App, but it makes it difficult to tell when the attachment has been uploaded and the file has been sent.  Here's what we're seeing (10mb file):
    MAPI / RPC/HTTPS / OWA: 10-15 seconds upload time
    Exchange Web Services (Outlook 2011 for Mac): 60-90 seconds upload time
    Thoughts? Any idea why we would see such a drastic difference in attachment upload time?  Any way to prove definitively that it is Exchange Web Services vs. Outlook 2011 for Mac?  We've tried it from multiple locations with multiple different machines,
    and although the upload times vary (some locations have more bandwidth etc) the ratios remain similar.

     
    Hi ,
    Does all the user occurred the issue ?
    If only special user, I recommend you do the following steps and test:
    1.Remove and re-add the email account and check if this helps to resolve the issue.
    To remove and add the email accounts:
    Open Outlook > GO to Tools > Accounts > Click on "Minus" symbol to remove and "Plus" to add an Email account.
    2.Creating a new user profile:
    http://support.microsoft.com/kb/2439218/
    3. If the issue persists, rebuild the data base and check the results:
    http://support.microsoft.com/kb/2360509
    You can also post it on Office for MAC forum  to get special support about the difference between Outlook and Outlook for MAC.
    http://www.microsoft.com/mac/support
    Wendy Liu
    TechNet Community Support

  • How to attach file with an email in travel and expenses

    Hi Experts,
    I am new to sap cloud application studio.
    We have requirement that need to attach any type of files in the mail,
    I have gone through this : How to send an email with attachments in SAP Cloud Application Studio
    But compilation error at import AP.FO.ACTIVITY.GLOBAL., so not able to work with that lines of code.
    I am using these lines of code to send email.
    EMailUtilities.SendEMail(lang, bcc, cc, toAddress, htmlContent, from name, subject);
    So am not able to getting how to attach file with this code.
    Please help me regarding this.
    Thanks & Regards,
    Preethi Ande

    Hi Preethi,
         I am trying to send mail from custom BO in Travel on Demand System.I am getting  compilation error.please look into the attached screenshot for the code.
    Please assist me on this,                                Thanks in advance
    regards,
    Sendhilazhagan

  • Trying to get a employee with DI SERVER

    Hi experts,
    I'm using the DI Server and I need update a employee, for that, I need to get a specific employee and then modify him, but when I use the GetByKey method, it always returns "no record found". My code is the next one:
    SBODI_Server.Node DISnode = new SBODI_Server.Node();
    string sSOAPans = null;
    XmlDocument xmlDoc = new XmlDocument();
    string sCmd = <?xml version=""1.0"" encoding=""UTF-16""?><env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">
    + "<env:Header><SessionID>" + SessionID + "</SessionID></env:Header>"
    + @"<env:Body><dis:GetByKey xmlns:dis=""http://www.sap.com/SBO/DIS"">"
    + "<Object>oEmployeesInfo</Object><EmployeeID>" + empID + "</EmployeeID></dis:GetByKey></env:Body></env:Envelope>";
    sSOAPans = DISnode.Interact(sCmd);
    xmlDoc.LoadXml(sSOAPans);
    I just have one employee in the data base, with empID = 1. I tried to view all employees with the next code:
    string sCmd = <?xml version=""1.0"" encoding=""UTF-16""?><env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">
    + "<env:Header><SessionID>" + SessionID + "</SessionID></env:Header>"
    + @"<env:Body><dis:GetObjectKeyBySingleValue xmlns:dis=""http://www.sap.com/SBO/DIS"">"
    + "<ObjNum>oEmployeesInfo</ObjNum><PropName>Religion</PropName><Value>--</Value><Condition>bqc_NotEqual</Condition>"
    + "</dis:GetObjectKeyBySingleValue></env:Body></env:Envelope>";
    And the EmployeeID 1 appears.
    What am I doing wrong?
    Regards,
    Pedro

    Hi Maik,
    I tried your code
    <?xml version=""1.0"" encoding=""UTF-16""?><env:Envelope xmlns:env=""http://schemas.xmlsoap.org/soap/envelope/"">
    <env:Header><SessionID>" + SessionID + "</SessionID></env:Header>
    <env:Body><dis:GetByKey xmlns:dis=""http://www.sap.com/SBO/DIS"">
    <Object>oEmployeesInfo</Object><EmployeeID>1</EmployeeID></dis:GetByKey></env:Body></env:Envelope>
    But  I have the same response:
    <?xml version="1.0" ?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
         <env:Body>
              <env:Fault>
                   <env:Code>
                        <env:Value>env:Receiver</env:Value>
                        <env:Subcode>
                             <env:Value>-2052</env:Value>
                        </env:Subcode>
                   </env:Code>
                   <env:Reason>
                        <env:Text xml:lang="en">No record found</env:Text>
                   </env:Reason>
                   <env:Detail>
                        <EmployeeID>1</EmployeeID>
                        <Object>171</Object>
                        <Command>GetByKey</Command>
                         <SessionID>6B3C6A86-2F4B-4810-99DC-C0CCAAEECAC9</SessionID>
                   </env:Detail>
               </env:Fault>
         </env:Body>
    </env:Envelope>
    The second message of original post returns this list:
    <?xml version="1.0" ?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
         <env:Body>
              <GetObjectKeyBySingleValueResponse xmlns="http://www.sap.com/SBO/DIS">
                   <BOM>
                        <BO>
                             <AdmInfo>
                                  <Object>oRecordset</Object>
                             </AdmInfo>
                             <EmployeesInfo>
                                  <row>
                                       <EmployeeID>1</EmployeeID>
                                  </row>
                             </EmployeesInfo>
                        </BO>
                   </BOM>
              </GetObjectKeyBySingleValueResponse>
         </env:Body>
    </env:Envelope>
    I'm using SAPBO 9 PL10 HF1.
    Regards,
    Pedro

  • New employee with wrong hiring date - how to change?

    Hi,
    I've entered a new employee with a wrong hiring date and I don't know how to change it. Some employee date are easily changeable not the hiring date!?

    Hi Marko.
    Go to t-code PA30, enter the personnel number of the employee whom you have hired.
    At the top in the menu bar, select "UTILITIES" - "Change entry/leaving date".
    It will take you to the screen - "Change Actions" - Change " Start date".
    This will correct the hiring date of the employee.
    Reward points, if helpful.
    Regards,
    Reema

  • Report - employees with photo/no photo

    Hi Friends
    We have uploaded  only some employees photo, and want to take a report  the employees with photo/no photo, is there any std report available for this purpose (I didnu2019t find), if no, how can we take this report
    please advise
    Regards
    Kiran

    Kiran,
    please try this
    Report of the employees with no photo
    Hope it helps
    No Worries
    KG

  • Creating Employee with Foreign currency

    HI HR gurus
    Our company code currency is INR and till now employees were paid in INR. Now we got new requirement that is , we have to create some new employees with currency SGD (Singapore dollar) . with this we want to generate all MIS in SGD only .Posting can happen in INR after converting as per exchange rate.
    Kindly let me know the possibilities and alternatives.
    Thanks in advance
    Sneha

    Created another company code

  • Does Hotmail have an attachment size limit? When i attach something with more than 3mb in the mail it isn't send. It gives a resize option.

    Does Hotmail have an attachment size limit? When i attach something with more than 3mb in the mail it isn't send. It gives a resize option.

    Hi. Txs. The problem is that in my pc the limit size is 25mb. But in my ipad the mail only sends files under 3mb.

  • ESS - Own data dumps. Only for employees with PERSG "L"

    Some employees are getting a "Serious error" in own data in ESS. 
    I get runtime error OBJECTS_OBJREF_NOT_ASSIGNED_NO in  function FUNCTION hrxss_per_cleanup.  The error  is mentioned several times in the forum:
    Done several analysis, and found the following:
    I registered 3 identical employees with different PERSG/PERSK:
    1.  1/01
    2.  L/66
    3.  V/01
    I connected my portal user to the 3 different employees and found:
    1. Works fine
    2. Dumps
    3. Works fine
    So now my theoriy is that somehow the value "L" is misinterpreted by the system.
    Can anyone tell me if this can be the case, and if so, if it is a product issue? 
    I don't know where to look for the error (esp. since I am not a Java person)
    Any help appreciated
    Kirsten

    The problem was that the person belonged to a payroll area where there was no admin.record.  (Payroll not run for this employee).  This causes Own Data to fail, as it is checking the status of admin record - probably to decide eg. when bank can be updated.

Maybe you are looking for