LSMW of infotype 0006 of PA30.

Hi friends,
Can anyone suggest me how to upload data through LSMW of infotype 0006 of PA30.
i am new to abap, so can some one send me the whole procedureor send the whole code required for this.
Thanxs and Regards.
hitesh kumar

make use of this FM
HR_INFOTYPE_OPERATION
and see its documentation.
Regards
Peram

Similar Messages

  • PA30 - Infotype 0006 (Region field)

    Hi:
    Recently we applied couple of service packs in our system as we were behind on the packs. After that, we noticed that for country India, region/state field is required in infotype 0006 (for country India). It was optional before. I am trying to find out where we can change this field to optional as we have interface maintaining the HR master which does not bring the region field for india. Any suggestions on how to make it optional?
    Thanks.
    Rahul

    Did you try "Change Screen Modifications" in the IMG?
    Change View "infotype Screen Control": Overview
    Table is T588M.
    Check module pool MP000600 and feature P0006.
    Be sure to test that new functionality has not been introduced that requires the region.
    Hope that helps with your particular issue.
    Thanks, Chantel

  • Infotype 0006

    HI All,
    A) I need to create new entries to infotype 0006 ( address Data) .
    What would be a better approach
    1)  BADI
    2) Use FM
    3) Is there some other  way??
    B) Also if there exists a record I need to modify few fields
    How to do this ?

    Hi,
    To change data in an infotype as part of a custom development I would recommend using FM HR_INFOTYPE_OPERATION. It will handle modification or delimiting a current record and creating a new one (depending on the time constraint configured for the infotype and sub type combo)
    BADI would be for adding logic to perform another task during the save / display of the data (as would the user exits)
    PA30 is for maintaining the data as a user
    PM01 would be used to customise the infotype
    Cheers
    Phil

  • BAPI to update enhanced Infotype 0006

    Hi,
       I have enhanced the standard infotype 0006 to add a new field zzrelation. I wanto to update values for this field using a BAPI.
       Is there a standard BAPI which has extension tables, for updating this enhanced 0006 infotype. So that I can pass the value of the custom field through the extension tables.
    Thanks in advance

    Hi Mukul,
    Use HR_INFOTYPE_OPERATION FM. The example is for info type 2006, replace it with 0006, also fill the table p0006 properly else it will give problem. You may use HR_READ_INFOTYPE to fill p0006.
    DATA:          p2006              TYPE p2006,
             gs_return          TYPE bapireturn1.
                             MOVE-CORRESPONDING <ABWKONTI_PTO> TO p2006.
                             CALL FUNCTION 'HR_INFOTYPE_OPERATION'
                                 EXPORTING
                                      INFTY            = '2006'
                                      NUMBER           = pernr-pernr
                                      SUBTYPE          = '94'
                                    OBJECTID         =
                                    LOCKINDICATOR    =
                                      VALIDITYEND      = p2006-endda
                                      VALIDITYBEGIN    = p2006-begda
                                    RECORDNUMBER     =
                                      RECORD           = p2006
                                      OPERATION        = 'MOD'
                                    TCLAS            = 'A'
                                    DIALOG_MODE      = '0'
                                    NOCOMMIT         =
                                    VIEW_IDENTIFIER  =
                                    SECONDARY_RECORD =
                                 IMPORTING
                                      RETURN           = gs_return
                                    KEY              =
    Br/Manas

  • History of the Infotypes deleted through PA30.

    Hi FOlks,
    Is it possible to see the history of the Infotypes deleted through PA30.
    Eg: In IT2001 sick leave applied on 20.01.2009 being deleted though PA30. After this deletion, would we be able to see who has deleted and what record has been deleted???
    If u2018yesu2019 wht is the tcode to see that???
    Rgds,
    Sekar.

    Hi,
    As mentioned by Archana,
    SE38 > RPUAUD00 > execute > Give PERNR in personnel number field > give IT2001in infotype field > select long term documents > Excecute > Double click on particualr recors > the you can see old value and new value. There is column named action. From that column you can see whether particular record is created or updated or deleted....

  • How to update infotype 0006

    Hello,
    I want to update infotype 0006.
    I tried the things in following way using 'HR_INFOTYPE_OPERATION' function.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          INFTY                       = '0006'
          NUMBER                   =  PERNR
          SUBTYPE                  =  '1'
          VALIDITYEND           = IT_PA0006-ENDDA
          VALIDITYBEGIN        = IT_PA0006-BEGDA
          RECORD                   = ls_p0006
          OPERATION              = 'CHANGE'
         TCLAS                      = 'A'
          nocommit      = ''
          dialog_mode   = '0'
        IMPORTING
          RETURN                   = RETURN.
    Function was executed successfully but there was no updation in the record.
    Thanks in advance.

    ****Data declaration
    Return Table for ENQUEUE - DEQUEUE messages
    DATA: zreturn TYPE bapireturn1,
          user TYPE sy-uname.
    DATA: wa_0001 TYPE p0001.
    ****Lock the pernr for editing
              CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
                EXPORTING
                  number       = pernr
                IMPORTING
                  return       = zreturn
                  locking_user = user.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
                  EXPORTING
                    infty                  = '9009'
                    number                 = wa_0001-pernr
                   validityend            = wa_0001-endda
                   validitybegin          = wa_0001-begda
                    record                 = wa_0001
                    operation              = 'MOD'                  "It can be 'INS' for insert or 'DEL' for delete
                 IMPORTING
                   return                 = zreturn
    *******Unlock the Pernr
                CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
                  EXPORTING
                    number = pernr
                  IMPORTING
                    return = zreturn.
    Hope this will help you.
    Regards,
    Aniruddha

  • Change time constraint of Infotype 0006 subtype 1 and subtype 2

    Hi
    Can anyone tell me how to change the TC of infotype 0006 subtype 1 and subtype 2.
    Currently I tried to change the TC in table V_T582A but its giving me an error : "Text maintenance not permitted as infotype part of Data Sharing (T582G)  "
    Can anyone please advise.
    Currently the TC is T
    I want to change it to 2.

    hi ,
    you can use SE38 to create a report like :
    to change the time constraint for IT0006 +subty 1 + 2
    REPORT  ZTEST.
    tables: t591a.
    data: wt_tc type table of t591a.
    select * from t591a into table wt_tc where infty = '0006' AND
                                                 ( subty = '1' OR
                                                  subty = '2').
    if sy-subrc = 0.
    loop at wt_tc into t591a.
    t591a-zeitb = 'x'. "new TC that you need
    modify table t591a from t591a.
    endloop.
    endif.
    regards

  • Time constraint of Infotype 0006 subtype 1 and 2

    Hi All,
    Currently the TC of infotype 0006 subtype 1 is 1.
    I have changed it to 2, so that the gaps are there but no overlapping.
    However, when I go in SAP and create a new record, its delimiting the previous record. But if I click on change button, its overwriting the original record instead of delimiting it.
    Please advise what can be done regarding the same.

    So that means, whenever an employee updates his address from the front end, the create address standard BAPI should be fired to update the data in R/3.
    This will delimit the previous record, since I have maintained TC as 2 for subtype 1 and 2.
    Please correct me if I am wrong.

  • HRMD_ABA, Infotype 0006

    Hi,
    I am trying to distribute HR organisational structure to a different system (ECC 5.0).
    I have selected the HRMD_ABA infotypes 0000, 0001, 0002, 0006 (sub type 1) as filters in the distribution model.
    I have seen that the employees assigned to one Organisation have the infotype 0006 maintained, so I selected that Organisation in transaction PFAL with evaluation path as O-S-P.
    The Idocs are generated but they do not have the infotype 0006 assigned to them, due to which the Org structure is not replicated in ECC system though the IDocs are posted successfully.
    Can anybody help me in this. This is urgent and any help from you would be highly appreciated and rewarded.
    Warm regards,
    Sidhu.

    Ted,
    I have access to read IT 0006, and I have created IDocs using the organisation containing this particular employee through PFAL transaction.
    I have used the evaluation path as O-S-P, and have created IDocs, the Idocs was created. It had employees in this Idoc too, but it had segments IT000, 0001, 0002 populated but not IT0006.
    I have used my used to view IT0006 and also to create IDocs(as versus to ALEUSER id).
    Please suggest what else needs to be done.
    Thank you in advance,
    Sidhu.

  • Add ifnotype field to an Infotype Screen Control for Infotype 0006

    How do I add an infotype field to an Infotype Screen Control for Infotype 0006. We need to add an additional Field for mobile phones. I have lloked in screen control (V_T588M) with no joy.
    Edited by: Henry Manana on Sep 1, 2010 12:11 PM
    Edited by: Henry Manana on Sep 1, 2010 12:12 PM

    You may copy your current screen into a new screen (e.g. 2099) for MP000600 and add the 2 fields into the element list as well as the screen layout of screen 2099. Then set an appropriate Modification Group 3 to these 2 fields in T588M detail screen for screen 2099. Configure feature P0006 and table T588M to set screen 2099 for molga 16.

  • Enhancement in infotype 0006

    Hello,
    How to add custom address fields (Building and Apt No) to Infotype 0006. Could you give me the approach and sequence steps to accomplish this task.
    Regards
    RM

    Hi Ratnakar,
    To create custom fields in standard infotype 0006,
    Go to PM01 T-code.
    Go to enhance infotype tab.
    Enter your infotype number 0006 and choose "ALL" on the right of infotype's input box,instead of "CREATE" at bottom.
    This will lead you to the CI include structure creation.
    Here enter the fields that you want to add to your infotype and save and activate it.
    Chhosing "ALL" instead of "CREATE" all the components one by one will reduce the complexity and labour of your work.
    Chhosing "ALL" creates all the modules of the Module Pool program itself and appends the CI include in the table PA0006 itself.
    Thats It!!
    Regards,
    Tejas.

  • Cannot lock the infotype 0006.

    Dear All,
            I have to lock the employee infotype 0006.When I do so,I get error message as "Lock/key change not permitted(time constraint 1).
            It seems there should be a transaction or table where time constraint can be changed or should have some other solution.
            Please let me on the solution for which I will be grateful.
    With thanks and regards,
    S.Suresh

    Sikinder I belive you can't controll autharizations at the screen level.
    Even basis people can't do it they can controll it at screen level. They can do it at Tcod level
    Hi Suresh
    But they shld not worry about the changes in SAP becuase every body having user and changes will be tracked by user ID always
    But i will give some alternative idea it may be useful for you
    Create a dynamic action on IT0006 which throw a mail to the administrator. Based on that administration will get notice that and tract it
    Best Regards

  • Recruitment - Infotype 0006 Address

    Dear All,
    In the PB30 When creating Infotype 0006 Address Subtype 03 Home Address system is taking default values of permanent Address subtype 01. This is happening only with subtype 03 that too in QAS & PRD.
    Can any one tell what could be the reason.
    Thanks,
    Ravi

    Please check the dynamic action configuration.  (T588Z).  Also perform table comparision with other systems in the landscape,
    If you do not want the defaults, you can deactivate the table entries by putting *.  Also please check whether there is any user exit development.
    Hope this helps
    Sunil

  • Short dump while changing the end date of infotype 0167 through PA30

    Hi all,
    I am getting short dump while changing the end date of infotype 0167(Health Plans) through Tcode PA30.
    dump descript is as below
    An exception occurred that was not caught.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_HRPA_VIOLATED_POSTCOND
    Date and Time          11.03.2010 07:06:26
    What happened?
        The exception 'CX_HRPA_VIOLATED_POSTCONDITION' was raised, but it was not
         caught anywhere along
        the call hierarchy.
        Since exceptions represent error situations and this error was not
        adequately responded to, the running ABAP program
         'CL_HRPA_SAPUP50R_ADAPTER======CP' has to be
        terminated.
    thanks
    shahid

    Search OSS Notes for that.

  • LSMW 2001 infotype delete Recording

    Hi,
    I want to write a LSMW for deleting all the record IT2001 for any Subtype entering begda and enda in the period.
    For Eg: if i select subtype as 0300 in date 01-01-2001 to 01-01-2003 and 10 records are present, then it should delete all 10.
    Kindly advice me that how should, I go abt the recording and what all i should default other than perner, subtype, begda, enda.

    Hi,
    In PA71 Tcode screen, enter the Infotype, subtype and the period from and to and execute.
    The next screen provides the list of all 2001 records for the period and the subtype.
    If you want to delete all the entries, select all and delete all option available in the task bar.
    Also, if there is a set of personnel numbers IT2001 records to be deleted, as creating a file for LSMW, the same file can be used to be uploaded into the PA71 screen and select all and delete all.
    It is a simple process which can be executed by an end user too and there is no LSMW recordings required.

Maybe you are looking for