How to Add data in HR infotype 2011 through ABAP

Hi All,
Can any one please give me an idea about how to insert time record in Infotype 2011 through ABAP. I cannot use the front end recording (SHDB) as it locks the person's master data. I need to Add the record through ABAP Query. I have inserted record in Table TEven and it works fine but then there is a conflict of sequence number field and system does not allow to change the data in infotype 2011 and gives error message.
Thanks

Hi amit
       even i have same requirement i tried with the same code but i'm getting error No data stored for infotype 2011 in the period.
code:
   CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number        = wa_modify-pernr
       IMPORTING
         RETURN        = return
      clear return.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty                  = p_infty
          number                 = wa_modify-pernr
*         SUBTYPE                =
*         OBJECTID               =
*         LOCKINDICATOR          =
*         VALIDITYEND            = wa_modify-ldate
*         VALIDITYBEGIN          =
*         RECORDNUMBER           =
          record                 = wa_modify
          operation              = 'MOD'
         TCLAS                   = 'A'
         DIALOG_MODE             = '0'
*         NOCOMMIT               =
*         VIEW_IDENTIFIER        =
*         SECONDARY_RECORD       =
       IMPORTING
         RETURN                 = return
*         KEY                    =
      CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
        EXPORTING
          number        = wa_modify-pernr
*       IMPORTING
*         RETURN        =

Similar Messages

  • IDOC :: how to send data from Custom Infotype in SAP HR to third party

    Hi,
    I have created one custom Infotype by number 9020. How to send data from this infotype to third party system and also change pointers need to trigger for this infotype.
    Please help me in doing it.
    I am using one Custom Message type ZTALENT and Custom Idoc Type ZTALENT.
                                                                                    ZTALENT                        Talent Management                                                                               
    5  E1PLOGI                        Header for an HR Object (Master Data or Organizational Data)                                                                               
    5  E1PITYP                        HR: Transported Infotypes and Subtypes for an Object                                                                               
    ZPUSER                         User base Data File                                          
                    ZPERSON                        Personal Information File Segment                            
                    ZPOST                          Position File                                                
                    ZOPE                           Overall Performance                                          
                    ZPWORK                         Outside Work Experience                                      
                    ZPEDUC                         Education Details of Employee                                
                    E1P0000                        HR: HR Master Record Infotype 0000 (Actions)                 
                    E1P0001                        HR: HR Master Record Infotype 0001 (Org. Assignment)         
                    E1P0002                        HR: HR Master Record Infotype 0002 (Personal Data)           
                    E1P0016                        HR Master Record: Infotype 0016 (Contract Elements)          
                    E1P0022                        HR Master Record: Infotype 0022 (Education)                  
                    E1P0023                        HR Master Record: Infotype 0023 (Other/Previous Employers)   
                    E1P0041                        HR Master Record: Infotype 0041 (Date Specifications)        
                    E1P0105                        HR: HR Master Record Infotype 0105 (Communications)       
                   ZE1P9020
                    ZPLANG                         Language Details                                             
                    ZACTION                        Actions Changes            
    Regards,
    Krishna

    Hello Shankar,
             Technically TEMSE files are read by calling the following 3 function modules in sequence,
                  1) RSTS_OPEN_RLC or RP_TS_OPEN: open the temse object
                  2) RSTS_READ : read the object
                  3) RSTS_CLOSE: close the object
    Regards,
    Rajesh

  • How to add date with month after convert number to month?

    How to add date with month after convert number to month?
    Month Date Result
    24 21/11/09 24*(21/11/09)
    I want to add both the column and result should be 21/11/11
    Thanks
    Nihar

    Hmm,
    Because, you are using YYYY for '09'.
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(to_date('10/01/09','DD/MM/RRRR'),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(TO
    10/01/2009
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(to_date('10/01/09','DD/MM/YYYY'),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(TO
    10/01/0009Or with Add_months
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(add_months(to_date('10/01/09','DD/MM/YYYY'),36),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(AD
    10/01/0012
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(add_months(to_date('10/01/09','DD/MM/RRRR'),36),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(AD
    10/01/2012-Arun

  • How to add new operand in installation facts through FMs

    Hi,
    Please guide me for the following query:
    How to add new operands in installation facts through Function Module?
    Please guide me with any function module through which i can acheive the above requirement.
    Thanks and Regards

    Hi,
    Thanks for your reply please.
    Through the BAPI which you have specified i have not been able to add any new operand in the installation facts.
    Please guide me with the parameters which are required to be passed to create a new operand entry in the installation facts.
    Please guide.
    Thanks and Regards
    Edited by: MP Vashishth on Aug 11, 2011 1:43 PM

  • How to pass data between two internal sessions using ABAP memory?

    Hi,
    How to pass data between two internal sessions using ABAP memory?
    It would be fine if you could explain with an example.
    And also let me clear about the data passing between two main sessions and two external sessions with specific examples.
    Thanks.

    Hi ,
      check the example.
    Reading Data Objects from Memory
    To read data objects from ABAP memory into an ABAP program, use the following statement:
    Syntax
    IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.
    This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO <g i > option, the data object <f i > in memory is assigned to the data object in the program with the same name. If you do use the option, the data object <f i > is read from memory into the field <g i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    You do not have to read all of the objects stored under a particular name <key>. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name <key>, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name <key>, SY-SUBRC is always 0, regardless of whether it contained the data object <f i >. If the cluster does not contain the data object <f i >, the target field remains unchanged.
    In this statement, the system does not check whether the structure of the object in memory is compatible with the structure into which you are reading it. The data is transported bit by bit. If the structures are incompatible, the data in the target field may be incorrect.
    PROGRAM SAPMZTS1.
    DATA TEXT1(10) VALUE 'Exporting'.
    DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
    DO 5 TIMES.
      ITAB-BOOKID = 100 + SY-INDEX.
      APPEND ITAB.
    ENDDO.
    EXPORT TEXT1
           TEXT2 FROM 'Literal'
      TO MEMORY ID 'text'.
    EXPORT ITAB
      TO MEMORY ID 'table'.
    SUBMIT SAPMZTS2 AND RETURN.
    SUBMIT SAPMZTS3.
    The first part of this program is the same as the example in the section Saving Data Objects in Memory. In the example, the programs SAPMZTS1 and SAPMZTS2 are called using SUBMIT. You can create and maintain the programs called using the SUBMIT statement by double-clicking their names in the statement. For further information about the SUBMIT statement, refer to Calling Executable Programs (Reports)
    Example for SAPMZTS2:
    PROGRAM SAPMZTS2.
    DATA: TEXT1(10),
          TEXT3 LIKE TEXT1 VALUE 'Initial'.
    IMPORT TEXT3 FROM MEMORY ID 'text'.
    WRITE: / SY-SUBRC, TEXT3.
    IMPORT TEXT2 TO TEXT1 FROM MEMORY ID 'text'.
    WRITE: / SY-SUBRC, TEXT1.
    Example for SAPMZTS3:
    PROGRAM SAPMZTS3.
    DATA JTAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
    IMPORT ITAB TO JTAB FROM MEMORY ID 'table'.
    LOOP AT JTAB.
      WRITE / JTAB-BOOKID.
    ENDLOOP.
    The output is displayed on two successive screens. It looks like this:
    and
    The program SAPMZTS2 attempts to read a data object TEXT3 from the data cluster "text", which does not exist. TEXT3 therefore remains unchanged. The existing data object TEXT2 is placed in TEXT1. In both cases, SY-SUBRC is 0, since the cluster "text" contains data.
    The program SAPMZTS3 reads the internal table ITAB from the cluster "table" into the internal table JTAB. Both tables have the same structure, namely that of the ABAP Dictionary table SBOOK.
    Pls. reward if useful.....

  • How to add payment methods in infotype Bank Details

    Hi to all, could someone help me in this question: i want to add payment methods in infotype 9..how i can to that?
    i have clue that is going to this view: V_T042ZL and also i dont know what options i have to choose...can anyone help me??
    regards
    Mário

    Hello Mio,
    Please try the below IMG node.
    PERSONAL MANAGEMENT---> Personal Administration >Personal Data-> Bank details--->Define payment methods.
    This will make it a bit simpler.
    But you are at the right place.
    Best Regards.
    Karan.

  • How to add data in a file

    hi,
    I have written following code.I have a file. i want to add data in this file.
    When i add data then data is added but i donnot get the previous data. What`s the problem of my code? Is there anyone can help me? how i will add data with the previous data? Please help me.
    String username=request.getParameter("UserName");
    String userage=request.getParameter("UserAge");
    String address=request.getParameter("UserAddress");
    String sex=request.getParameter("sex");
    FileWriter f = new FileWriter("d:\\download_dreamweaver\\Project_3\\WebContent\\SaveData.txt");
    f.append(username);
    f.close(); ith regards
    bina

    Looks like you're creating a new file (which overwrites the old one) every time. You need to open the file first and then append to it.

  • How to add date in XSLT?

    All,
    soa version: 11.1.1.4
    There is a requirement for me to add date to the current date in XSLT.  I searched in 'Data functions', there I couldn't find any pre-defined functions.  How do I achieve it in XSLT?  Any help is appreciated.
    thanks
    sen

    Hi Sen,
    You can do this using the below:
    <xsl:value-of select="xp20:add-dayTimeDuration-to-dateTime(xp20:current-dateTime(),'P1D')"/>
    You can change the P1D based on the number of days you want to add.
    For example 3 days = P3D
    Thanks,
    Deepak.

  • How to add data in xml file

    Hi ALL
    I want to add new fields on seeded EBS page to store their values in hr_api_transaction table whoch contain information of other fields on that page which are seeded
    but that table has one column which stores xml file and that xml file has all information about that page's fields
    how can I store my custom fields values in that xml file ?

    Hi,
    As Andy said,  add data to an xml file is overwriting, if you mean append data to xml file, please look this article:
    http://codesamplez.com/programming/linq-to-xml-tutorial, Since this issue is more related to ASP.net, you could also ask this issue in asp.net forum:
    http://forums.asp.net/
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to add data into JTable

    How can I add data into JTable, for instance ("Mike", "Gooler", 21).

    How can I add data into JTable, for instance ("Mike",
    "Gooler", 21).You will have very good results if you segregate out the table model as a seperate user class and provide a method to add a row there. In fact, if you use the table to reflect a database table you can add the row inplace using the existing cursor. I believe it's TableExample2 in the jdk\demo\jfc\TableExamples that has a very good example of this.
    Walt

  • How to add data

    hi everyone ! i have created a view object based on 2 entities objects (EMP and Departaments of hr schema)
    but i have also modified the sql query of the view in this way :
    SELECT Employees.EMPLOYEE_ID,
    Employees.FIRST_NAME,
    Employees.LAST_NAME,
    Employees.DEPARTMENT_ID,
    Departments.DEPARTMENT_NAME,
    Departments.DEPARTMENT_ID AS DEPARTMENT_ID1
    FROM EMPLOYEES Employees ,DEPARTMENTS Departments
    where Employees.DEPARTMENT_ID(+) = Departments.DEPARTMENT_ID
    and i have created a tables based on this view object..... in this table are shown those empl. that doesnt have departaments.... what i want to do is how can i add data to those rows wich doesnt have employess but have departaments???
    Thanks in advance :)

    Hi,
    I think you can resolve that problem using EL expression condition, try the following in your table:
    <af:table ...>
    <af:column headerText="#{bindings.EmployeeDepartment.labels.FirstName}"
    binding="#{backing_EmployeeDepartment.column2}" id="column2">
    <af:outputText value="#{row.FirstName!=null? row.FirstName: 'No Emp Found'}"
    binding="#{backing_EmpDept.outputText2}"
    id="outputText2"/>
    </af:column>
    </af:table>
    Regards,
    Ahmad Esbita

  • How to add data in related issue field in issue tracking list sharepoint 2013

    Hi,
    I'm using out of box Issue Tracking List. In Related Issue I want to add some data like :- Business, Technical, HR, Contractor etc in right side so user can select one of them add it. Not sure how to add these data in Related Issue column. Please advice.

    Related Issues is a lookup column to the same list which is Issue Tracking List. so you can add new items where title is Business, Technical, HR, Contractor etc then you will get those under related issues.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How to add data in IT 184 through portal.

    Hi Experts,
    I want to add data in IT 184 .
    I am adding the project description of an employee in this IT type.
    I will provide the link on portal to add the data in this infotype by it is not possible for me to update the data.
    Please guide me.
    Thanks in Advance.
    Ashish

    Hi,
    Are you implementing it in Singapore.
    I think this Infotype is specific for Singapore.
    Check in Table T582L.
    Please reward points.
    Regards
    Venu

  • Script task how to add date value

    hi
    i have following code i am trying to add date into script task
     Public Overrides Sub CreateNewOutputRows()
            Dim vars As IDTSVariables100
            Dim vars1 As IDTSVariable100
            Dim recordCount As Integer
            Dim rdate As Date
            ' Dim recount As Integer
            '  Dim rcount As Integer = 0
            'Get the record count
            Me.VariableDispenser.LockOneForRead("RecordCount", vars)
            recordCount = CType(vars("RecordCount").Value, Integer)
            ' rdate = CType(vars("CurentDate").Value, Date)
            vars.Unlock()
            Me.VariableDispenser.LockOneForRead("CurrentDate", vars)
            rdate = CType(vars("CurrrentDate").Value, Date)
            ' rdate = CType(vars("CurentDate").Value, Date)
            vars.Unlock()
            'Me.VariableDispenser.LockOneForRead("rcount", vars)
            'rcount = CType(vars("rcount").Value, Integer)
            'vars.Unlock()
            '  rcount = rcount + 1
            'Output one row with record count
            Output0Buffer.AddRow()
            Output0Buffer.FooterRow = String.Format("ABC" & recordCount & rdate)
            Output0Buffer.SetEndOfRowset()
    in SSIS i have declare CurrentDate in datetime and i need to use it here , but i am getting error.
    how to append its value to       Output0Buffer.FooterRow = String.Format("ABC" & recordCount & rdate)
    its in vb ,i dotn know anything about VB ,please help me.
    i havent put anything in  readonly,readwrite in script task.ecordCount is working but i did same  for rdate and its not working

    how to get that value in yyyymmddhhmmss format in ssis.
    whats expression i need to use.
    also how to give single  space here between recordcount and variables.rdate
    Output0Buffer.FooterRow = String.Format("ABC" & recordCount & Variables.rdate)

  • [SOLVED] How to add data toOutputStream ?

    <p>
    I have following code in managed bean:
    </p>
    <p>
    <font face="courier new,courier" size="2" color="#0000ff">OutputStream out = response.getOutputStream();
    response.setHeader("Content-Disposition", "attachment;filename=\"test.xml\"");
    response.setContentType("application/xml");</font>
    </p>
    <p>
    <font face="courier new,courier" size="2" color="#0000ff">........</font>
    </p>
    <p>
    <font face="courier new,courier" size="2" color="#0000ff">out.flush();
    out.close();
    ctx.responseComplete();</font>
    </p>
    <p>
    How can I add data (i get it from iterator) to OutputStream to send user xml file. ?
    </p>
    <p>
    Kuba
    </p>

    <p>
    Hi Steve,
    </p>
    <p>
    I found solution, I mean this:
    </p>
    <p>
    <font face="courier new,courier" size="2" color="#0000ff">ExternalContext ectx = ctx.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    OutputStream out = response.getOutputStream();
    response.setHeader(&quot;Content-Disposition&quot;, &quot;attachment;filename=\&quot;test.xfdf\&quot;&quot;);
    response.setContentType(&quot;vnd.adobe.xfdf&quot;);
        PrintWriter pw = new PrintWriter(out);
        pw.println(&quot;<font color="#ff0000"><em>ANY DATA HERE</em></font>&quot;);
        pw.close();
    out.flush();
    out.close();
    ctx.responseComplete();</font>
    </p>
    <p>
    Kuba
    </p>

Maybe you are looking for

  • HELP!! Updated iTunes and now it won't work

    I just updated itunes & quicktime. I can't open itunes, it tells me that I need to have quicktime 7.0.3. which I do. It tells me to reinstall which I've done 3 times. Help!!! Thank you!

  • UDF Using Dynamic Configuration for Counter Reset

    Hi All, In an Idoc to file scenario we want to have counter option at the end of the file.we are using NFS so that we wil not face any problem of counter reset on a j2ee restart But when the counter turns 999999 it has to be reset to 0000001 So we ar

  • 8330 Can't receive email from ISP

    I have tried and tried to set up email to receive from my own domain mail server. I even took the phone to Sprint and they tried but we can't make it read incoming messages. Sending works fine. I think I've tracked it down to the fact that the email

  • Safari preview problem

    My pages preview fine in Firefox, Opera and Chrome, as well as "Live View." But when I preview them in Safari, there is no spacing between the paragraphs. All the type looks like one big paragraph. Also, my photos in Safari do not float right (per my

  • How to remove the redundant input English (United States) in the Language Control Panel on Windows 8?

    I have English (Australia) and English (United States) in the same order installed in the Language panel. I try to remove the redundant English (United States).  I click Options to open it.  I found the option Remove for the Input method is dimmed ou