HRMD_A07

Hi,
I have a requirement to transfer data from legacy system to ECC system. Lets say for example I would like to migrate Info type 16 (Contracts) data. Can I use HRMD_A07 basic type for this purpose. If yes, Can any one tell me what are the segments i need to populate and give some examples for the same. Any help would be much appreciated. Very urgent.
Thanks,
Vivek.T

Hi
use the fun module
HR_INFOTYPE_OPERATION
reward if useful
regards
Anji

Similar Messages

  • HRMD_A07 Idoc to MDM using PI

    Hi Team,
    We had a scenario where the HR Idoc (HRMD_A07) data is getting integrated to MDM 7.1 using PI 7.1
    For example 1 Pernr is having Multiple status like Active, InActive , retire etc.., so we are getting Infotype 000 & 001 multiple times.
    So how do we need to Map to target where target has only 1 structure.
    Source Structure
    <EPLOGI>
      <E1P1TYP>
          <IT0000>
                <PERNR>
                <BEGDA>
                <ENDDA>
          </IT0000>
          <IT0001>
                <PERNR>
                <BEGDA>
                <ENDDA>
                <BUKRS>
                <PERSG>
          </IT0001>
          <IT0002>
                <PERNR>
                <BEGDA>
                <ENDDA>
                <ENAME>
                <ANRED>
          </IT002>
         <IT1000> </IT1000>
    </EPLOGI>
    Target Structure to MDM
    <Record>
    <EmpNo>
    <Status>
    <Last_Name>
    <First_Name>
    </Record>
    Here when we execute 2 perner's (10004300, 10004435) IDOC is getting created we are getting source structure as follows
    <EPLOGI>
      <E1P1TYP>
          <IT0000>
                <PERNR>10004435</PERNR>
                <BEGDA>
                <ENDDA>
                <STAT2>3</STAT2>
               </IT0000>
          <IT0001>
                <PERNR>10004435</PERNR>
                <BEGDA>
                <ENDDA>
                <BUKRS>1030</BUKRS>
                <PERSG>10</PERSG>
          </IT0001>
          <IT0002>
                <PERNR>
                <BEGDA>
                <ENDDA>
                <ENAME>xxx</ENAME>
                <ANRED>1</ANRED>
          </IT002>
         <IT1000> </IT1000>
    </EPLOGI>
    <EPLOGI>
      <E1P1TYP>
          <IT0000>
                <PERNR>10004300</PERNR>
                <BEGDA>
                <ENDDA>
                <STAT2>2</STAT2>
               </IT0000>
               <IT0000>
                <PERNR>10004300 </PERNR>
                <BEGDA>
                <ENDDA>
                <STAT2>3</STAT2>
               </IT0000>
          <IT0001>
                <PERNR>10004300 </PERNR>
                <BEGDA>
                <ENDDA>
                <BUKRS>1030</BUKRS>
                <PERSG>10</PERSG>
          </IT0001>
          <IT0001>
                <PERNR>10004300 </PERNR>
                <BEGDA>
                <ENDDA>
                <BUKRS>1030</BUKRS>
                <PERSG>12</PERSG>
          </IT0001>
          <IT0002>
                <PERNR>
                <BEGDA>
                <ENDDA>
                <ENAME>yyy</ENAME>
                <ANRED>2</ANRED>
          </IT002>
         <IT1000> </IT1000>
    </EPLOGI>
    The Output target Structure should be as follows...
    <Record>
    <EmpNo>10004435</EmpNo>
    <Status>3</Status>
    <Last_Name>xxx</Last_Name>
    <First_Name>
    </Record>
    <Record>
    <EmpNo>10004300</EmpNo>
    <Status>2</Status>
    <Last_Name>yyy</Last_Name>
    <First_Name>
    </Record>
    <Record>
    <EmpNo>10004300</EmpNo>
    <Status>3</Status>
    <Last_Name>yyy</Last_Name>
    <First_Name>
    </Record>
    I had done an message Mapping as follows.
    IT0001  ==>  Record
    PERNR  ==>  Empno
    STAT2  ==>  Status
    ENAME ==>  Last_Name
    As per the mapping I m getting Output Structure as follows
    <Record>
    <EmpNo>10004435</EmpNo>
    <Status>3</Status>
    <Last_Name>xxx</Last_Name>
    <First_Name>
    </Record>
    <Record>
    <EmpNo>10004300</EmpNo>
    <Status>2</Status>
    <Last_Name>yyy</Last_Name>
    <First_Name>
    </Record>
    <Record>
    <EmpNo>10004300</EmpNo>
    <Status>3</Status>
    <Last_Name>
    <First_Name>
    </Record> 
    There are some values missing in target for the Record <EmpNo>10004300</EmpNo> since the Infotype IT0002 is not repeated. Some Infotypes are not getting repeated, so the values are not getting mapped to target like Last_Name, First_Name etc...
    but how do we solve it by using message mapping, Can we use any Java UDF or XSLT Mapping for this issue.
    the problem in brief is some infotypes in source is getting multiple times and some are getting only 1 time.
    Please suggest.
    Thanks in Advance,
    Sriram

    Hi Raj,
    The Mapping is working fine for a single Employee details, In the above target you can see the output correct for
    <Empno>10004435</Empno>
    If an Employee has multiple status then we are getting multiple Values of same infotype(Segments) like 2 IT000 & IT001, but for some infotype in the same IDOC we are not getting Infotype IT002, so for that record we are not getting the values in output.
    For Example if an Employee has only Active status then that Employee will have only 1 action so he will only have 1 IT000,IT001 etc.. then for that record we will get the output correct.
    For this Input
    <EPLOGI>
    <E1P1TYP>
    <IT0000>
    <PERNR>10004435</PERNR>
    <BEGDA>
    <ENDDA>
    <STAT2>3</STAT2>
    </IT0000>
    <IT0001>
    <PERNR>10004435</PERNR>
    <BEGDA>
    <ENDDA>
    <BUKRS>1030</BUKRS>
    <PERSG>10</PERSG>
    </IT0001>
    <IT0002>
    <PERNR>
    <BEGDA>
    <ENDDA>
    <ENAME>xxx</ENAME>
    <ANRED>1</ANRED>
    </IT002>
    <IT1000> </IT1000>
    </EPLOGI>
    The Output is as follows which is correct.
    <Record>
    <EmpNo>10004435</EmpNo>
    <Status>3</Status>
    <Last_Name>xxx</Last_Name>
    <First_Name>
    </Record>
    If an Employee has status Active and Withdrawn status then he will have 2 actions and so he will have 2 IT000, IT001 segments. For this Example see the input structure
    <EPLOGI>
    <E1P1TYP>
    <IT0000>
    <PERNR>10004300</PERNR>
    <BEGDA>
    <ENDDA>
    <STAT2>2</STAT2>
    </IT0000>
    <IT0000>
    <PERNR>10004300 </PERNR>
    <BEGDA>
    <ENDDA>
    <STAT2>3</STAT2>
    </IT0000>
    <IT0001>
    <PERNR>10004300 </PERNR>
    <BEGDA>
    <ENDDA>
    <BUKRS>1030</BUKRS>
    <PERSG>10</PERSG>
    </IT0001>
    <IT0001>
    <PERNR>10004300 </PERNR>
    <BEGDA>
    <ENDDA>
    <BUKRS>1030</BUKRS>
    <PERSG>12</PERSG>
    </IT0001>
    <IT0002>
    <PERNR>
    <BEGDA>
    <ENDDA>
    <ENAME>yyy</ENAME>
    <ANRED>2</ANRED>
    </IT002>
    <IT1000> </IT1000>
    </EPLOGI>
    See the Output of this above input
    <Record>
    <EmpNo>10004300</EmpNo>
    <Status>2</Status>
    <Last_Name>yyy</Last_Name>
    <First_Name>
    </Record>
    <Record>
    <EmpNo>10004300</EmpNo>
    <Status>3</Status>
    </Last_Name>
    </First_Name>
    </Record>
    The First Segments are getting mapped correctly to Output. but the second segments are only not getting mapped since some values in Infotype or segment IT002 are missing, Means the Output till this record is correct
    <Record>
    <EmpNo>10004300</EmpNo>
    <Status>2</Status>
    <Last_Name>yyy</Last_Name>
    <First_Name>
    </Record> 
    But the second record for the same employee is missing.
    <Record>
    <EmpNo>10004300</EmpNo>
    <Status>3</Status>
    </Last_Name>
    </First_Name>
    </Record>
    in the above output we are missing </Last_Name>,</First_Name> etc where according to business it should be
    <Record>
    <EmpNo>10004300</EmpNo>
    <Status>3</Status>
    <Last_Name>yyy</Last_Name>
    <First_Name>
    </Record>
    as per business we need to use the previous IT002 data of the same employee in previous action.
    How can we get the previous action details in message mapping.
    Thanks in Advance,
    Sriram

  • HRMD_A07 stauts is 53 data is not posted

    Hi
    I need to update the info types 0000 and 0001 for this Iam using idoc type HRMD_A07,Message type HRMD_A and inbound process code is HRMD.
    Idoc status is showing 53 and data is not posting into SAP.Can you please help me out of this...
    Thanks and regards
    Praveen Kumar Sathu

    Hi,
    >when I pass plvar 01 ,otype P,objid pernr and opera 1 ,
    >it give error You do not have authorization to maintain users in the central system
    After that call transaction SU53. That shows you what authorization you don't have.
    I guess it is PLOG with objecttype CP what the system is missing.
    >and if I change otype to S
    >idoc is successfull but doesnt post data
    It makes no sense to send object S with an objectid for object P.
    Regards
    Bernd

  • IDoc extension for HRMD_A07 - Error message B1-070

    I am trying to create a custom extension to HRMD_A07 to capture some additional data added to infotype 0001.  I have gone through the WE31, WE30, WE82, SM30 transactions to create the extension but when I try to test with PFAL I am getting the message B1-070.
    Internal error: Program read table idoc_structure, command
    data_select_for_block, argument ZHR_SEG
    The extractor appears to be trying to fill in the original HRMD_A07 basic type and the HRMD_A07 with the extension.
    Any hints?
    Thanks,  Rob.

    Dear Rob,
    Although your post's date is old but I would share my knowledge for whom has the same issue.
    Last day I had the same problem and could not find any solution on internet so I had to trace the code. Fortunately I managed to fix the problem My colleagues had extended an IDOC by a segment but after that the segment was deleted so I was getting an error in ALE.
    Issue comes "DATA_SELECT_FOR_BLOCK" method which is using I_DOC_DATA table that fills in PFAL transaction. thru running PFAL IDOC data reads from table T777D.
    Go into and find the related record and clear it
    By the way after that I found http://scn.sap.com/thread/3322338 useful
    Cheers,
    Omid

  • IDOC structure for HRMD_A07

    Dear All,
    We want to create IDOC HRMD_A07 through SAP PI in ECC to create employee.
    Please guide how we can get the output structure like
    e1plogi
    e1pityp
    e1p0000
    e1pityp
    e1p0001
    e1pityp
    e1p0002
    Whereas the standard IDOC structure is like as follows:
    e1plogi
    e1pityp
    e1p0000
    e1p0001
    e1p0002
    Reg,
    NJ

    Well, u can still create IDoc with the required structure. Thre is a test tool (tcode WE19) where u can create and populte the segments as u want for testing. Use the 'Create' button and place it in proper hierarchy.

  • IDoc HRMD_A.HRMD_A07 mapping

    Hi,
    I am doing a File to Idoc mapping using HRMD_A.HRMD_A07 Idoc, I see the Idoc segments as  E1P0001,E1P0002,E1P0003......I see the same fields(personal no, start date,end date etc) repeating in all the above segments.I would like to know which segment I need to use for mapping.
    Thanks

    you might have received the Functional specs or the mapping sheet in which you will have the details of which info type to be filled and sent as an idoc to sap.
    to know segment wise details in case your file structure doesn't have detailed info,  run Tcode We60 -> give the basic type
    HRMD_A07 and read documentation for each info type segment .
    or  download this PDF
    http://help.sap.com/printdocu/core/print46b/en/data/en/pdf/HRINF.pdf
    other useful tcode from sap point of view .
    Pa30 , pa 40 and in se11-> give info type line pa0001 ,pa 0002 etc and check the details of each info type and fields req.
    if a custom info type is there then i think it will have name something like Pa9XXX.
    Best Regards,
    Srinivas

  • IDOC HRMD_A07 delimit of records

    In ECC 6.0, we are using HRMD_A07 Idoc to update infotype 0169 using update data received from a third party application. In XI,
    We are creating the Idoc with Update Code "U" with E1PLOGI, E1PITYP and E1P0169 segments.
    E1P0169 has the data for the latest record.
    When the IDOC is posted the new record is created but it does not delimit the previous record. Which should happen because the infotype 0169 is time constrain '2'.
    Is there a piece of config that controls this?
    Experts please advise.
    Regards,
    Jilly

    For this I have got a solution as in the E1PLOGI segment there is a field 'PROOF'. If I select is i.e. have its value as 'X' then the records are getting delimited.
    SAP in its note 134085 says that the PROOF flag should remain empty and then there is no refernce about the PROOF flag. So what i still want to know is has anybody tried using it and has faced any issue using the PROOF field byt keeping it selected.
    Thanks,
    Jilly

  • Enhanced Infotype (IT0002) field in HRMD_A07 IDoc

    Hi All,
    I have enhanced SAP standard infotype 0002 (via PM01) to include one new field(NWFLD1). The infotype functions perfectly well with the new field(NWFLD1).
    I would now like to see this new field in the IDoc that is generated via change pointers. At present the IDoc (HRMD_A07) does not reflect the new field.
    [I guess I'd need to incorporate this new field in an IDoc segment and then assign this new segment in the Tech. attributes for IT0002 and maybe also use some BADI/UserExit to transfer the values].
    What steps do I need to take to achieve this?
    Many Thanks in Advance.
    Sanjay
    PS: I have no problems with custom infotypes which work almost 'out of the box' when I create a new IDoc Segment and specify that as the 1st IDoc segment in the Tech. attributes for the custom IDoc via PM01.

    Hello Sanjay,
    I have a similar issue as of yours.
    I had to add 2 custom fields to the standard IT0002.
    I have created a new segment and attached to the extension and maitained the same in T777D.
    But as of now no data is getting populated for that new segment.
    I guess I also have to do some develoment but not sure where and how?
    Thanks in advance for the answer.
    Naveen.

  • HRMD_A07 - IDOC

    Hi
    We have configured IDOC with mesage type HRMD_A ( basic type HRMD_A07) to pull data from SAP HR using change pointers . Idoc is trigerring without any error. Plogi quali switch is active. Qualification is getting created through tcode ooqa and is assigned to emp using tcode pa30 in IT0024.
    Now whenever 1 qualification is assigned to an employee, the idoc captures all the qualification assigned to teh emp. For e.g if emp # 1 has 3 qualifications already assigned ot it. if i assign 1 more qualification, total no. of qualifications for the emp is 4. It is expected that the idoc should only capture teh newly inserted qualification. But IDOC is capturing all the four qualifications assigned to it.
    Is there any way to capture only the assigned qualification. I do not want all the 4 qualifications in IDOC, i just need the newly assigned qualification
    Regards

    I think this is due to nature of change pointers in HR. Actually each change pointer do not show a key of a particular infotype record, instead it registers just infotype/subtype begda-endda. Then, when gathering information for an Idoc, SAP standard function reads all the records valid for the infotype/subtype begda-endda in a change pointer. So, if you added IT0024 at some date it will gather all IT0024 records valid for the same period.

  • HRMD_A07 idoc inbound

    Hello,
    I'm going to be using HRMD_A07 to load data into SAP.  Do I need a separate idoc for each infotype I want to insert/change?  From what I tested it looks like this is true.
    When I look at the idoc documentation it lists only one E1PITYP segment and then all the infotype segments, E1P0000, E1P0001, E1P0002, etc. 
    When I create the idoc in that format it does not load.
    Do I have to create individual idocs for each E1P0000, E1P0001, etc segment for one employee?
    Such as:
    idoc 1 for employee 123
    E1PLOGI
    E1PITYP
    E1P0000
    idoc 2 for employee 123
    E1PLOGI
    EI1PITYP
    E1P0001
    Thanks!
    Cathy

    I dont think that is the case. We have HRMD_A06 idocs comming in and we have one idoc for each employee with all the infotypes.
    E1PLOGI
        |
        E1PITYP
        |    |
        |   E1P0000
        E1PITYP
        |    |
        |   E1P0001
        E1PITYP
        |    |
        |   E1P0002.

  • HRMD_A07 Idoc to update InfoType 0014 does not delimit existing PA0014 rec

    In ECC 6.0, we are using HRMD_A07 Idoc to update infotype 0014 using update data received from a third party application. In XI, I am creating the Idoc with Update Code "U" with E1PLOGI, E1PITYP and E1P0014 segments. E1P0014 holds the data for the latest record.
    If I directly pass the Idoc thru ALE layer, It creates records for the new date range on E1P0014 segment, but does not delimit the previous record by changing its end date. This results in two records in PA0014 with end date of 12/31/9999 - which is wrong.
    I also tried using a wrapper FM to create additional segments in the Idoc representing the existing record in PA0014, with the end date being delimited to incoming record's beg. date minus 1.
    This also results in just creating two additional records in PA0014 corresponding to the two segments in Idoc while existing record in PA0014 stays intact resulting in two records with end date 12/31/9999.
    I also experimented with setting the lock indicator (PA0014-SPRPS) but that also does not result in delimiting the existing record.
    Am I missing something? Is there a piece of config that controls this?
    Regards,
    The time constraint on 0014 is "2"

    Hi Jon and Ashish,
    I too am facing the same issue that the new IDOC is not delimiting the previous record.
    Can you explain how did u get over you issue.
    I'm maintaining the same dates in E1PITYP and in E1P0014.
    Thanks,
    Jilly

  • Inbound IDOC basic type HRMD_A07: Why no validation available?

    I am using a standard inbound IDOC basic type HRMD_A07 to update employee master data (IT0000 & IT0001). However, i found out that this IDOC just directly updates to the infotypes without any validation. For example, i provide an invalid company code (BUKRS) and personnel area (WERKS), the IDOC still updates into database without any proper validation.  
    Filled the following fields in the IDOC segments:
    E1PLOGI
    plvar=01, otype=P, objid=00000001, opera=I
    E1PITYP
    plvar=01, otype=P, objid=00000001, infty=0000, begda=20120101, endda=99991231
    E1P0000
    pernr=00000001, infty=0000, endda=99991231, begda=20120101, massn=01, massg=01, stat1=3, stat2=3
    E1PITYP
    plvar=01, otype=P, objid=00000001, infty=0001, begda=20120101, endda=99991231
    E1P0001
    pernr=00000001, infty=0001, endda=99991231, begda=20120101, bukrs=XXXX, werks=XXXX, persg=1, persk=EC, abkrs=99, plans=00000111, otype=S
    Please help me out in case I am missing something. Thanks.

    Additional Info:
    In WE21 at the TRFC Port, it is possible to set this Option:
    Send Only Fields of Selected Segment Version
    The segment data of the IDoc is passed to this port with the length matching the segment definition of the release specified in the partner profile.
    But if we are using an reduced message type, all fields of the newest release are in the segement.
    The docu tells that this will be done in function EDI_DOCUMENT_OPEN_FOR_CREATE.
    But it is never called when createing an material IDOC with BD10.
    Bug or feature?
    Kind regards
    Manuel

  • Inbound IDoc(HRMD_A07) problem in delimiting the infotype records

    Hi All,
    I am using Inbound IDoc (HRMD_A07) approach to update infotypes. I found that I am able to create a record in an infotype, but there is a problem in delimiting the infotype.
    Please help me out in case I am missing something.
    Thanks,
    ABAP_DEV

    Hi,
    Did you get this resolved. Even i'm facing this issue. Is it a config or do we have to do something in the IDOC.
    Thanks,
    Jilly

  • Basic type :HRMD_A07  in which table data will be store

    Hi,
    I have the basic type HRMD_A07 .so can any one tell me in which table data will store .
    Thanks in advance.
    Regard

    Hi,
    Check the following link for more information on tables and the flow of information in sd
    <u>http://www.erpgenie.com/sap/abap/tables_sd.htm</u>
    Award points if it adds information.
    Thanks
    Mohan

  • Inbound IDOC:Not able to create OBJID while testing basic type HRMD_A07

    Hi Friends,
    I am trying to test creation of organization data (HRP1000) for inbound idoc via tcode WE19 using basic idoc type HRMD_A07.I am using inbound fm IDOC_INPUT_HRMD.After test data entry,The idoc status is showing as 53 but in the database table HRP1000 objid is blank.It is not creating objid.can any body suggest solution for this.In this case,i want to create objid internally by the system.
    Thanks,
    Rajesh Kumar
    Edited by: rajeshvatsa2005 on Feb 17, 2011 9:03 AM

    Hi Rajanidhi,
    Thank you for following up!
    Perhaps optomizing the choice of forum for the questions could also help somewhat, in addition to following up on them. For example [this one|Forgot username & password; would have enjoyed more knowledgable attention in the NW Admin or Security forum.
    Hope that helps in future,
    Julius

  • Mandatory fields for inbound - idoc  HRMD_A07

    Hi All,
    I need to create an Employee master record in R/3 by triggering an idoc .
    i came to know ,i can use "HRMD_A07" .
    can any one help me giving the mandatory datas to  trigger the HRMD_A07.
    Thanks & Regards,
    Arun

    Hi,
    PA objects exist if infotypes 0000, 0001, and 0003 have been created.
    So fill the segment accordingly, but I am not sure whether you can directly create the employee from Idoc, you may have to take the Idoc option of LSMW.
    Br/Manas

Maybe you are looking for