How to know "pernr" after creation of employee with HR_MAINTAIN_MASTERDATA

Hello,
Anybody any idea how you can know the pernr of the employee you created with HR_MAINTAIN_MASTERDATA?
Problem I am facing:
I create a new employee using HR_MAINTAIN_MASTERDATA.
As I do not have all information required yet, I only  update/insert IT0000.
(otherwise the program asks me to "Fill in all required fields")
Then I want to fill up the other IT with HR_INFOTYPE_OPERATION, but I don't know the number that was created.
Can anybody help me?
Thanks.

Have you checked the exporting parameter from the fm call?
EXPORTING
*"             VALUE(RETURN) LIKE  BAPIRETURN STRUCTURE  BAPIRETURN
*"             VALUE(RETURN1) LIKE  BAPIRETURN1 STRUCTURE  BAPIRETURN1
*"             VALUE(HR_RETURN) LIKE  HRHRMM_MSG STRUCTURE  HRHRMM_MSG

Similar Messages

  • How to know the the list of tables with no rows inside a schema?

    with reference to
    http://www.ss64.com/orad/USER_TABLES.html
    How to know the the list of tables with no rows inside a schema?
    I try this select table_name from user_tables where num_rows=0;
    I can found one table that is empty.
    So what's the query to return list of tables in a schema which has no rows?
    thanks

    You can do that only if your have collected the stats properly. Otherwise its going to show you wrong information.
    Check this out...
    SQL> drop table t
      2  /
    Table dropped.
    SQL> create table t
      2  as
      3  select level no from dual connect by level <=100
      4  /
    Table created.
    SQL> select table_name,num_rows from user_tables where table_name = 'T'
      2  /
    TABLE_NAME                       NUM_ROWS
    T
    SQL> begin
      2      dbms_stats.gather_table_stats(user,'T');
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> select table_name,num_rows from user_tables where table_name = 'T'
      2  /
    TABLE_NAME                       NUM_ROWS
    T                                     100
    SQL>Thanks,
    Karthick.

  • 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 leave Verizon after contract ends - taking with me the phone number?

    My contract is about to end - Nov. 5 - and I want to port the number over to an entirely new phone, which will use Straight Talk.
    Do I let the contract expire, then port the number? Or do I port the number first, then let it expire? It's not clear whatsoever. If I port it before, then I risk an early termination fee (ETF) unless I clear it with them first. I'd rather let it expire, then port the number over, eliminating any risk of ETF. But if I do that, will my number be lost? or is there some kind of grace period when I can still port my old number out?

    Hopefully more people will find this thread Googling around.  My phone transfer was made but my online Verizon account indicated my phone was "Suspended."  Calling customer service was a joke.  Mind you, my question was simple: "Will I owe Verizon any more $"  and "What does suspended mean.  Answers: "yes," and I never got an answer for number two. 
    So, here I am paying 65% more for Verizon and now they're coming after a pre-paid two weeks of service plus another bill cycle....  You can't imagine how many pieces of cranium I had to pull form the ceiling.  Further, the Customer Service Rep was so poorly trained, she didn't know that "paid in full" means "paid in advance."  To her, I was going to pay for 6 weeks of service whether I liked it or not.  She told me it was due to my new provider canceling my account to late in the billing cycle.  Which made no sense to anyone who's been through this process before.  As long as it's switched within a current month, there is no new invoice for the upcoming bill cycle.  So, I did the math of the situation, realized the CS Rep was wrong, questioned her logic, and then asked for a supervisor.  The other thing that was weird, CS would not give me an explanation in writing other than snail mail!  She couldn't email and was not authorized to give written data to customers.  Who the H#ll uses snail mail anymore?    I was told it would be 45 minutes before I could speak with a supervisor and they'd call me.....  Still waiting!  Almost Two hours later!  Tells you how many mad customers Verizon has or how much they actually care about their customers!
    I finally called my new provider and looked at that account on-line and sure enough, the CS Rep lied to place blame on my new carrier or was clueless of Verizon's non pro-rate policy.  So, I called their CS department again and had someone with a brain at the other end of the line who explained it the way I understood it.  She also told me it was not my new provider!  My comment back was, "That's the way I thought it worked.  You guys do a horrible job training your reps and thanks."  I will not receive another months bill.....  What a joke.  They created all of that aggravation due to their lack of training or dishonest employees.
    My point is this:  The above is the reason I'm leaving Verizon.  For the over priced service, they should be honest, train their Customer Service Reps so we customers do not get angry (they might save a few customers that way), and prorate billing cycles by rounding out to the next week.  The reason I bring this up is I'm saving 65% by switching and, yes, that's a real number...  I had to prepay my first bill.  And, there's no hissing in the connection......  Way better deal!
    >>Edited to comply with the Verizon Wireless Terms of Service <<
    Message was edited by: Verizon Moderator

  • How do I synchronize a table of employees with and employee update form?

    WHAT i AM TRYING TO DO:
    Create a page with two areas. The top will contain a sortable, filterable list of employees. The bottom of the page will contain all of the details on a selected employee.
    WHAT I HAVE DONE:
    1. Created a DEPT_EMPLOYEES view with just some basic department and employee information.
    2. Created Entities and View Objects based on the DEPT_EMPLOYEES view and the EMPLOYEES table.
    3. Created a View Link between the DeptEmpROView (source) and EmployeesUView (destination)
    3. Created a page with a panel splitter an dropped the DeptEmpROView in the top as and ADF Table.
    4. Dropped the EmployeeUView on the bottom part of the pages as and ADF Form.
    WHAT HAPPENS.
    1. When I open the page the list of employees is displayed on top, and the first employee is displayed below.
    2. When I click on another row in the table the form below does not change. I had expected it to.
    3. If I right-click on a row in the table and select "reload" from the options the page is re-drawn and the bottom form is populated with the data that matches the row I clicked on.
    WHAT I WANTED
    When you click on an entry, to have the bottom part of the page refreshed to match the selected entry.
    QUESTIONS:
    1. I thought I had followed all of the steps to prepare a master-detail setup. Do this not work with a table as the master? Or did I miss a step? Or am I using components in a way they were not intended?
    2. When I look at the ViewLink I see in the Destination that the where clause :Bind_EmployeeId = EMPLOYEE_ID will be appended to the query. I would then guess that :Bind_EmployeeId is not set when I click on a row. Is there a way to make that happen?
    3. I notice in the af:table documentation there is an org.apache.myfaces.trinidad.event.SelectionEvent defined. Can I somehow intercept this and set the bind variable then? If so, how to I tell the form to refresh?
    5. Another clue. When I run the page I get some warnings. One is "Reference selectedRow not found" . Double clicking on that gets me to a line selectedRowKeys="#{bindings.DeptEmployeesROView2.collectionModel.selectedRow}"
    6. Another warning message "Reference makeCurrent not found" gets me to selectionListener="#{bindings.DeptEmployeesROView2.collectionModel.makeCurrent}"
    It sure seems like these last two must have something to do with it.
    Any clues would be appreciated.
    Edited by: rrp on Jan 3, 2011 12:47 PM

    Shay,
    Thanks for pointing me to that tutorial. The synchronization is now working.
    For anyone else that might find this discussion:
    To make it work I selected the af:paneFormLayout that held the EmployeeUView.
    In the properties there is a PartialTriggers property in the Behavior section.
    I highlighted this property and selected the Edit option.
    This allowed me to navigate the component tree and pick the table holding the DeptEmpROView.
    That was it. Now clicking on the table changes the details displayed in the form.
    There are questions, but they are more followon:
    1. The tutorial surrounded the "list table" with a panelCollection. I did not do that. I don't know why or why not to use the panelCollection.
    2. The tutorial made a point of setting the ColumnSelection attribute to single for the List table. I did not find this changed the behavior in any way and was wondering why.
    3. The tutorial also made a point of changing the ContextMenuSelect for the list table to "clickToEdit".
    3a. I did not see how this changed the behavior
    3b. Why "clickToEdit" on a read-only table?

  • How do I get after effects to render with my GPU?

    Yea, really noob question, but I can't figure it out!
    Spent literally HOURS trying to find how to do this..  Use my GTX 670 to render instad of CPU.  Can't figure it out.  I finally (I think) figured out where to change the setting to raytraced rendering, but it still REFUSES to use it.  I can't work like this!  Countless hours to render a 4 min video with an i7?  I am checking with a  hardware monitor, and my GPU isn't getting used.
    I don't have the time (or inclination) to watch hours and hours of tutorial videos.  I am the type of person that uses templates and modifies them to my needs/desires, so pointing me to a "generic" after effect tutorial website will do no good.
    Now, I only mention this to show that I don't come running for help every time I have a small problem, and refuse to try and find the answer myself.  I have myself learned how to edit text, make it appear and disappear.  Slow down and speed up an entire composition and much much more all by using google.  But I obviously can't get the wording right with google because I can't find a solution.

    You cannot enforce GPU raytracing if your card is not supported and that is that. If adding the card to the raytracer_supported_cards.txt file and updating the graphics driver doesn't do it, then nothing will. You are using dead technology, anyway.
    Mylenium

  • How to know if an installation was made with Lync Standard/Enterprise or with "Multitenant Hosting Pack"?

    Hi everyone!
    I have 2 Lync Server Setups. In 1st setup I have deployed "Lync Server 2013 Multitenant Hosting Pack" and in 2nd setup I have deployed "Lync Server 2013 Standard Edition". Both Setups
    are isolated and have their independent SQL servers and ADs. Now the problem is I am unable to get the edition of Lync Server through powershell.
    When I run Get-CsServerVersion command, it returns same output on both setups.
    #For Lync Hosting Pack
    PS C:\Users\administrator> Get-CsServerVersion
    Microsoft Lync Server 2013 (5.0.8308.0): Volume license key installed.
    #For Lync Standard
    PS C:\Users\administrator> Get-CsServerVersion
    Microsoft Lync Server 2013 (5.0.8308.0): Volume license key installed.
    What can be the way to determine the edition of Lync Server through Powershell or .NET?
    Thanks in advance.
    Rizwan Ahmed. Software Engineer - Microsoft Lync | Exchange | SharePoint | Blackberry Enterprise Server | .NET

    Hi,
    So far, I don’t know how to identify with Lync Powsershell or .NET as well.
    However, you can identify from Lync Server Control Panel. For Lync Server Multitenant Hosting Pack, it is incompatible with Lync Server Control Panel, this means you should use the Lync Server Control Panel only in read-only mode. For example, enabled
    users are not displayed in the User section of the Lync Server Control Panel. So you can identify with the way of enabling users on Lync Server Control Panel, Lync Server Standard/Enterprise Edition will show the users on Lync Server Control Panel.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How to know the size of the string with out using the length() method

    i want to find the lenght of the
    String s="Sudha";
    with out using the lenght() method.

    Not true (I mean the part about "The only String
    call"). But if it had been true, I might haveagreed
    with this:
    Assuming one uses the 'exception' approach thenwhat
    method other than charAt() is needed?I probably misunderstood your post, I thought you
    meant that the only alternative to length() would be
    charAt() and catching the exception.There are many ways and if the teacher had said find 5 ways of finding the length of a String then I would have fealt happier because it would have meant the student would have to read and study the whole of the String API.
    I like
    int length = (s+"sabre").lastIndexOf("sabre");

  • How to send birthday wish mail to Employees on daily basis

    Hi ,
    How to send birthday wish mail to employee with greeting card as background image in Mail Content area.
    Is there any Standard program available in SAP.
    _Requirement:_
        Normal , Birthday Wish mail can be done through function module SO_NEW_DOCUMENT_SEND_API1.
        How to write program for getting , Greeting card as background image in Mail Content area.
        Is there solution in SAP .
    Regards
      Surendar

    Hi,
    Check this for embedding image in your email : Using CL_BCS to send email from ABAP
    And this about image as background and other related stuff : http://www.reachcustomersonline.com/2010/01/23/09.27.00/#faqs
    Best regards,
    Guillaume

  • How to know through back end employee position in Requisition approval

    Hi all,
    I have one Employee_id ,how to know this employee has a authority to approve the requisition through back end. what is the link between
    per_all_people_f and PO_POSITION_CONTROLS_all.
    Thanks

    hi
    I have one small doubut, what is the differnce in the PO_Requisiiton_headers_all Table Have PREPARER_ID and PO_action_history table Have Empolyee_id and also in po_action_history have created by .what is the main differnce between thease three PREPARER_ID,empolyee_id and created_by .
    Ex :- select created_by,last_updated_by,PREPARER_ID,creation_date,last_update_date
    from apps.po_requisition_headers_all where requisition_header_id=6731548
    O:P- created by last_updated_by prepaper_id creation_date last_update_date
    1216 83867 72208 5/26/2009 8:48:59 AM 5/26/2009 12:41:19 PM
    select created_by,last_updated_by,employee_id,action_code,creation_date,last_update_date
    from apps.po_action_history where object_id=6731548 order by sequence_num
    CREATED_BY, LAST_UPDATED_BY, EMPLOYEE_ID, ACTION_CODE, CREATION_DATE, LAST_UPDATE_DATE
    1216, 1216, 72208, IMPORT, 5/26/2009 8:48:59 AM, 5/26/2009 8:49:27 AM
    1216, 1216, 72208, SUBMIT, 5/26/2009 8:55:41 AM, 5/26/2009 8:55:41 AM
    1216, 1216, 72208, RESERVE, 5/26/2009 8:55:41 AM, 5/26/2009 8:55:42 AM
    1216, 1216, 72208, FORWARD, 5/26/2009 8:55:42 AM, 5/26/2009 8:55:43 AM
    1216, 83867, 72208, APPROVE, 5/26/2009 8:55:43 AM, 5/26/2009 12:41:13 PM
    My Mian Problem is why same employee forward him self to approve the requisiiton.
    but his last updated_by is different.
    I am not Understanding the functionality of this .
    Thanks

  • How to trigger an SMS after creation of Activity / Interaction Record

    Dear Experts,
    Our Client requirement is to trigger an SMS immediately after creation of an Interaction Record. I want to define an Action for this.
    But what processing type should I use for SMS, (like Method Call, Smart Forms Mail / Fax / Print and Workflow). We are using an external service provider domain to send SMS to our customers. It has been configured in SCOT.
    But from CRM configuration front there is no specific processing type for SMS. then how system reads telephone number from the BP master.
    Kindly help me to resolve the issue, your suggestions will be highly appreciated.
    Best regards
    Raghu ram

    Raghu,
    In your case you could copy a "print" action method class and create a z-version.  Then modify the print action method so that the smartform output triggers a call to your output type.
    Or you could just code a new method that creates a new BCS send request using the CL_BCS document and your output type.
    It just depends on how whether you want to use smartforms to build the message or build it in some other method.
    Take care,
    Stephen

  • I have lost all my notes data after restore. Anyone know how to retrieve notes after restore?

    I have lost all my notes data after restore. Anyone know how to retrieve notes after restore?
    I havent' took any backup of my notes in icloud. The moment I enter the password after restore my notes will be empty. The only option to get notes back is that after restore skip entering icloud password. But any time I enter icloud password anywhere again my notes will be empty. I have huge data saved in my notes. Apple need to look into this issues very seriously. This is the 5th time I restoring my iphone today just to get my note back.

    I have the issue with losing all my notes and I don't even know why.  I can't remember changing any email account info.  What happened to them?
    Ipad 3rd io7
    Please Help!
    Thank you,
    S.

  • How to know if a file has been updated in iCloud after modification?

    How to know if a file has been updated in iCloud after modification?
    I work on various app including Keynote on my Mac Pro. And after modification, i close file and I wait.
    When I see no more Internet traffic. I assume that keynote has uploaded all the works I have done into iCloud.
    But when I open the same file on my iPad on the way to work. I do not see the file updated.
    I assume that I did not wait long enough.
    I wished I had a way to enforce the updated file to upload and way to get confirmation that it has been completed.
    In windows I simply push the sync button.
    But for iCloud I do not yet see anything like that.
    Please help.

    you would be better served asking this in the iCloud discussion, where users are more knowledgeable about iCloud. Replies on iOS and iCloud issues are usually unanswered here because of our lack of knowledge.

  • How to know when the PRICE AFTER DISCOUNT changed and get the value

    Hi,
    Everything I do to see if a value changed in the grid works except for PRICE AFTER DISCOUNT
    which seems to be inaccessible.
    Any idea how to know when exactly this value changed and do actions accordinly ?
    Also I always get 0.00 if I try to get the value of it
    This works to get in the condition of a vlaue changing but I always get 0.00 as the value of the column
    if (pVal.ItemUID == "38" && pVal.ColUID == COL_DISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
        try
            SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
            SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_DISCOUNT).Cells.Item(pVal.Row).Specific;
            SBO_Application.MessageBox("Discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
        catch (Exception ex)
            SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");
    And this do not even get into the condition even tought I SEE the column PRICE AFTER DISCOUNT:
    if (pVal.ItemUID == "38" && pVal.ColUID == COL_PRICEAFTERDISCOUNT.ToString() && pVal.EventType == BoEventTypes.et_VALIDATE && pVal.ItemChanged == true && pVal.ActionSuccess == true)
        try
            SAPbouiCOM.Matrix Matrix = (SAPbouiCOM.Matrix)SBO_Application.Forms.ActiveForm.Items.Item("38").Specific;
            SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.Columns.Item(COL_PRICEAFTERDISCOUNT).Cells.Item(pVal.Row).Specific;
            SBO_Application.MessageBox("Price after discount changed for : " + Editor.Value + "...", 1, "Ok", "", "");
         catch (Exception ex)
             SBO_Application.MessageBox(ex.Message, 1, "Ok", "", "");

    just idea, maybe it will works
    Create one udf in row level and set there FS based on changes on price after discount and fill value what is in price after discount. Then the validation make on this field instead of standard SAP field.

  • How to know weather Vendor ID  has been created for a Particular employee

    HI Experts,
    We have got ticket from  emploee pertaining to  his Vendor Id.
    How we can check weather the vendor Id has been created for him.
    What is the transaction code we use to check this.
    Thanks in advance.
    Sairam.

    Hi,
    For this you need to go for coustom only..
    Before the following should be identify.
    1. Personnel number should be assign in vendor master single field only because in vendor master there are five fields can mapp with personnel number.
    2. For vendor creation of employee should have different vendor group in Vedor master
    3. vender nuber range must be same as Employee number range.
    Based on above conditions you can create coustom report.

Maybe you are looking for