HR_INFOTYPE_OPERATION for upadting info type 0106 as secondary record

hi,
I am using this FM for updating info type 0021 and 0106 as secondary record, info type 0021 got created and also 0106 got created.
however individual fields in 0106 like perid, stras, ort01 are not updated, only record with key got created.
any clues how to use this FM
Thanks,
Kranthi.

Problem resovled, however i am not sure this FM actually creates, in reality it should create.
below is the code i am using for the above scenario.
data:  g_masterdata_bl    type ref to if_hrpa_masterdata_bl,
          msg_handler          type ref to cl_hrpa_message_list,
          ls_p0021                type p0021,
          ls_0106                  type p0106,
          g_container            type ref to if_hrpa_infty_container,
          g_container_nnnn  type ref to cl_hrpa_infotype_container,
          update_mode        type hrpad_update_mode,
          g_is_ok                  type boole_d,
          lt_tab                     type hrpad_infty_container_tab,
          ls_pref                    type pref.
ls_p0021-pernr  = '00000578'.
ls_p0021-subty  = '1'.
ls_p0021-infty   = '0021'.
ls_p0021-begda = sy-datum.
ls_p0021-endda = '99991231'.
ls_p0021-famsa  =  '1'.
ls_p0021-fanam = 'first name'.
ls_p0021-favor  = 'first name agaiin'.
ls_p0021-fasex  = '1'.
ls_p0021-fgbdt  = '19770101'.
ls_p0021-grpvl = 'ABCD'.
ls_0106-pernr    = '00000578'.
ls_0106-subty    = '1'.
ls_0106-infty     = '0106'.
ls_0106-begda   = sy-datum.
ls_0106-endda   =  '99991231'.
ls_0106-perid    = '114463323'.
call method cl_hrpa_masterdata_bl=>get_instance
  importing
    masterdata_bl = g_masterdata_bl.
create object msg_handler.
call method g_masterdata_bl->get_infty_container
  exporting
    tclas           = 'A'
    pskey           = ls_p0021-pskey
    message_handler = msg_handler
  importing
    container       = g_container.
* Insert info type records
g_container_nnnn ?= g_container.
g_container           ?= g_container_nnnn->modify_data(
  primary_record    =  ls_p0021
  secondary_record = ls_0106
  pref = ls_pref
try.
    call method g_masterdata_bl->insert
      exporting
        message_handler = msg_handler
        update_mode     = update_mode
      importing
        is_ok           = g_is_ok
      changing
        container       = g_container.
  catch cx_hrpa_violated_assertion.
    g_is_ok = space.
endtry.
try.
    call method g_masterdata_bl->flush
      exporting
        no_commit = space.
  catch cx_hrpa_violated_assertion.
endtry.

Similar Messages

  • Workflow for HR Info Type 41

    Hello,
    I got a requirement where a workflow has to triggred when there is any changes made to the HR Info Type 41 via PA30.
    In PA30 transaction code under Info Type 41(Date Specifications) if I enter Date Type as U6 & U7 with dates then an email has to go to a list of people. There is already a workflow developed for the same but I do not know how do I find out which worklfow it is triggering and how do I change it.
    Thanks & Regards,
    Nagaraj Kalbavi

    First, I would suggest you to go through the Business Objects concepts to have a clear idea of where and how they are used.
    To test the BO, enter the ZXXXX in SWO1 and click on "Test".
    Click on the "Instance" where the input will be the Key field number.. and execute. The runtime values (Attributes) will be displayed.. You can execute the appropriate method (you can debug as well by going into the program and keeping breakpoint) and then executing the method..
    Go in display mode, and find out what are the keyfields, attributes, methods and events... If you can read more on Business objects, you will find out the definitions and uses of each of these...
    Go to each method(probably would be custom method in your case which should start with Z or Y) and click on program to see whats the code written in that method..
    Regards,
    PR.
    Edited by: PR on Jun 1, 2009 3:35 PM

  • Authorization for new info types added in PA61

    Gurus ,
    Our HR team have added new info types in transaction PA61 namely ,
    Organizational assignment (0001) , Pesonal data (0002) , Address(0006) , Family(0021), education (0022), date specifications(0041) , communication(0105) , passport no (9001) , license(9003) , physical details(9008) ..
    The problem once after adding it in the t-code (Without changing anything in the authorization object) the users will able to access some of the info types . HOw this could be possible ?
    They want the users only to see the details in pa61 . we should not allow user to copy/edit/delete in pa61 .
    but my problems are ,
    1.I have added all the above info types with authorization level 'R' , but still when they click edit it is working 
    2.when users try to see the educational details through  infotype 'eduction'  it's showing the error as 'NO authorization to maintain education xx exists ' .but i have added the user name in transaction OOSB to profile ALL
    If i give su53 it's shoeing the object S_WFAR_OBJ , but i am not sure how is this object useful  ...
    Gurus help me in solving

    FYI: I deleted your duplicate post.
    SU53 (the last failed auth check only) in HR (complex checks) is not very usefull.
    Check which authority you have in P_PERNR?

  • Table T588M for info type screen display:

    Hi Experts
    I have deleted relevant entry in in table T588M for an info type still the system shows some screen. where from does that screen come. Can anybody help..?

    As i understand, there is a screen element that you want to get it disabled but is not available in the table v_t588m. Is that right???
    If YES, the screen element/ field of your screen, for example 3000 of it0817, can be disabled from the screen layout also.
    Go to SE80 -> select the module pool mp081700 as your program -> select screen 3000 -> Click on the 'layout' in the application toolbar -> select the element and delete or change the properties, might be display properties in your case.
    Hope this helps.
    Cheers,
    LG

  • FM  to insert info type 0008 for indirect evalutaion

    Hi,
    can i use hr info type operation FM, for inserting info type 0008 because annual salary is indirectly evaluted?
    is there any other FM which does this calculation and insert info type 0008.
    Thanks,
    Kranthi.

    BAPI_BASICPAY_CREATE can be used to upload data into IT-8, where we have indirect valuated wagetypes
    Raghu

  • BADI for Info type 24(skills)

    Hi,
    I want BADI or exit for info type 24, i need to restrict the skills to two and primary skill can have 4 proficiencies(primary, primary basic and so on) and secondary skill can have 4 proficiencies(secondary, secondary basic and so on). If the user selects two skills as primary, i need to display error message.
    can any worked this type of requirements.
    Thanks
    Rajavardhana Reddy

    Hi rajavardahana,
    1. HRPAD00INFTY
       is in PBAS package only.
    2.  use the method AFTER_INPUT
       to do validations.
    3. use the parameter
       OLD_INNNN
       to fetch the details of the
       infoteyp data which has been entered.
    4. use this kind of logic ,
       to get the required data.
    data : IP587 like P0587.
    *Error Messages for particular selection.
    case INNNN-INFTY.
      when '0587'.
        call method CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
          EXPORTING
            PRELP = OLD_INNNN
          IMPORTING
            PNNNN = IP587.
    regards,
    amit m.

  • REPORT FOR INFO TYPE 586

    Hi All
    I am trying to create a report for INFO TYPE 586  in HR ABAP,where  in a table apporx 30 investment codes , proposed investment and actual amount are apperaring .
    Now My problem is,  I do not want to use IF .... ENDIF statment. Is there any other way to write the code .
    Please Help.
    Thanks in advance.

    Hi,
    In this situation you can use field-symbols and/or a internal table. Like this:
    tables: pa0586.
    field-symbols: <ff1> type any,
                   <ff2> type any,
                   <ff3> type any.
    data: w_campo1(30),
          w_campo2(30),
          w_campo3(30),
    data: w_nx(2) type n.
    data: begin of i_myitc occurs,
            itc like pa0586-itc01,
            dsc(30),
          end of i_myitc.
    * fixed selection or may be from a z table
    i_myitc-itc = '01'. i_myitc-dsc = 'AAAAA'. append i_myitc.
    i_myitc-itc = '02'. i_myitc-dsc = 'BBBBB'. append i_myitc.
    i_myitc-itc = '03'. i_myitc-dsc = 'CCCCC'. append i_myitc.
    select single * from pa0586.
    do 30 times.
       w_nx = sy-index.
       concatenate 'PA0586-ITC' w_nx into w_campo1.
       concatenate 'PA0586-PIN' w_nx into w_campo2.
       concatenate 'PA0586-AIN' w_nx into w_campo3.
       assign (w_campo1) to <ff1>.
       assign (w_campo2) to <ff2>.
       assign (w_campo3) to <ff3>.
       read table i_myitc with key itc = <ff1>.
       write: / <ff1>, <ff2>, <ff3>, i_myitc-dsc.
    enddo.
    Best regards,
    Leandro Mengue

  • How to use Purch. Info Record, for different Valuation Types ?

    Hi All,
    While doing Split Valuation,
    I have created three valuation types - say,  M1,M2,M3. for material M.
    Now, I want to create Info record for material M and Vendor V1.
    when i go to me11, system is allowing me to create info record for M and V1 once only,
    in Purchasing Organization View, I'm getting the Valuation type field,
    but can't entering 3 prices for 3 valuation types,
    such as in Material Master.
    Can any one help me regarding this....
    Thanks,
    Anand.

    if u create po with info update indicator then u can use your valuatiion type in po for whihc there is no ifo recrod existing then system willl createt one
    but actually the price will get stored in the price oder history not exactly in the pir

  • Document type for Purchasing Info Records

    I want to know where do we define the document type( IL, IN ) for Purchasing Info Records in Customizing(SPRO).
    Are these standards or can we define new document types?

    Hi
    There are 4 categories of info records.
    Standard
    Subcontract
    Consignment
    Pipeline
    There are two types of Info records maintenance:
    1) Cross-plant (where you can maintain your info record at the purchasing organization level); or
    2) Plant specific (where the specific plant must be maintained).
    Besides, there are two document types of info records being <b>hardcoded</b> in SAP -
    1) Purchasing Info Record for stock materials (Document Type IL); and
    2) Purchasing Info Record for Material Group (Document Type IN).
    regards
    Srinivas

  • Info Type 41  has insert  problem with HR_INFOTYPE_OPERATION

    Hi all,
    This is strange problem we found in production.
    We are using PCR form for termination form portal. When user terminated we want insert into the info type 41 with new dates with the   field’s z4, z5.
    When we executed our updated function module, which is only inserting only Z4 not for Z5.
    When we tested in QA system we are able to insert two values Z4 and Z5 with current date for certain Pernrs.but one pernr we observed same thing like in production its inserting Z4 only. For all the employee has 4 values (z1,z2,z3,zs) before inserting new values z4,z5
    what could be the problem? we check the code not found any clue.
    Is there any thing specific to pernr while inserting , if it is not the case why its inserting one value Z4 not second one Z5 some employees and both the values some employees.
    very urgent please give your valuable suggestions
    Thanks in advance
    Gopal

    Hi Manoj
    The retrun code 0. no errors found
    and old record is
    24.10.2007                Z1
    09.01.2007     Z2     
    09.01.2007     Z3     
    09.01.2007     ZS
    Now the new record has one more entry
    Z4
    But Z5 is not inserting
    thanks
    Gopal

  • HRMD_ABA change pointer trigger not work for info type changes

    Hi,
      In change pointer for message type HRMD_ABA Certain changes to HR records like adding activity types to infotype 315, changing dates to infotype 0001, 0105 and 315 and adding/changing/deleting are not woking through change pointers.
    We are are replicating those changes through RHALEINI program, so can anyone let me know how to customize in case of adding this info types to trigger automatically through change pointers.
    Thanks,
    Marai

    Hi,
       Then check for change document created or not, if created then use SWEC  to  link it

  • Archive Employee for Info type 0008

    Hi Experts.
    I have a requirement liek, i need to archive the personal number for info type 008.
    We have an Object PA_LDOC. The write program is RPAR3W00.
    I need to modify the write program, which should accept the data from flat file to create the record and archive the created record for Info type 008.
    Please let me know how can i go a head, since i dont have parameters for personal number and infotype in the selection screen.
    Thanks,
    Sriram.

    Hi Srini,
    Thanks for your prompt reply.
    I have one question.
    Can i use RPAR3W00 to archive personal number for info type 0008, If yes where can i give infotype(0008).
    and where can i pass basic pay details.
    Please suggest me on the same.
    Thanks,
    Sriram.

  • No read authorization for info type 2001/0402 for pers. no. 00000018 betwee

    Hi,
    Mangers try to approve the leave request iam getting below error.
    No read authorization for info type 2001/0402 for pers. no. 00000018 between 04.05.2010 and 04.05.2010.
    how can i resolve this issue.Pls help me
    Please advice
    Regards
    SATYA

    Hi Satya,
    Check the authorizations for the user in mentioned infotypes, you can help you with SU53 and ST01 (using auth trace) transactions.
    Regards

  • Enabling a customer info type for fast entry

    I would like to enable a customer info type, info type in the 9000 range, for fast entry. Your assistance in this regard will be greatly appreciated.

    Hi Mark
    Thanks for your help in this forum, as always.
    I was able to add the new contact type to the table from SM30 but as mentioned in my original question, the contacts created using this new contact type is not editable. When a business user opens the work item at a later day and wishes to update the contact, the change button is not appearing against these contacts. We can see the change button against every other item which were created using the SAP delivered options.
    I was wondering if there is any other table where we can maintain an entry to make this editable.

  • HT204088 my apps will not download because it asks for security info and whenever i type it in it never validates

    my apps will not download because it asks for security info and whenever i type it in it never validates. Can anyone help me?

    Hi..
    Perhaps a security code issue >  iTunes Store: My credit card's security code or zip code does not match my bank's records

Maybe you are looking for