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

Similar Messages

  • 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

  • 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.

  • 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.

  • Bapi for updating data

    I am using a bapi for getting data into infotype BAPI_EMPLOYEE_GETDATA.
    Is there any BAPI for updating data ?
    regards
    Balaji

    these links might be useful...
    http://help.sap.com/saphelp_nw70/helpdata/EN/44/b78765378b56a5e10000000a1553f6/content.htm

  • BAPI to maintain HR Infotype 0491

    Is there a BAPI that will create/update HR Infotype 0491 - Payroll Outsourcing?   I can't seem to find any Infotype related BAPI's in transaction "BAPI".

    No there isn't, but there is a class CL_HRPA_INFOTYPE_0491 which has the methods you need.

  • How can I Update an infotype

    Hallo all,
    i have just upload a Kapro document from SAP Content repository and hang it up in a record, and i want update that record (infotype) , can anybody show me how to update an infotype,
    kind regards
    Jimy
    Edited by: jimkim on Nov 16, 2009 11:49 AM

    Hi,
    thanx for your replay,
    yes its a dicnamic infotype, but after uploading tha data, i have used some methods to hang the document in a personnal file.
    thanx a lot

  • SAP HCM P&F - Update an infotype field which is NOT passed from Form

    Dear Experts,
    I have a requirement to update the Infotype with the entries in the HCM form (input by Employee in ESS) upon Manager's approval in MSS.
    We are achieving this functionality using HCM P&F (FPM) with an Workflow associated.  In this Workflow Standard Task (TS17900108) is used to Save the form data into the Database.
    But there is one field (APPROVED_DATE) in the Infotype whose value is not from the FORM but should be updated in the Infotype.
    Please help me with your inputs.
    Regards,
    Shankar

    Dear Christopher,
    I am extremely thankful to you for all the replies.  But, unfortunately, we are messed up with this requirement and we couldn't achieve it.
    In this regard, could you please give us the step-by-step procedure to achieve this functionality?
    Requirement in brief again:
    We have designed Overtime HCM form (FPM) using which employee requests for the Overtime.  This form is sent for the Manager for approval.  We have achieved this functionality.  With the Manager Approval, the database is also updated perfectly.
    Then we have added one more field in the infotype to track the Approved Date.  This field is to be updated along with the other fields (sent from FORM) upon the approval of the manager.
    And now though the other fields are updated correctly into the infotype, the approved date is not updated.
    Thanks a ton in advance for your guidance as this is very critical and urgent requirement for us.
    Regards,
    Shankar.

  • Enhance Infotypes for P.A. and O.M.

    How to enhance Infotypes for P.A. and O.M.
    Please help me.
    Thanks in advance.
    vamsi.

    Hi VAmsi,
    Use PM01 Trns to enhance..
    <a href="http://www.sapdevelopment.co.uk/hr/hr_infotypes2.htm">Infotype enhancement- Step by step</a>
    Rgds,
    Jothi.P
    *reward if useful.

  • Enhance infotype 2003

    I want to enhance infotype 2003.
    I'm going through PPCI transaction, i've created structure CI_2003 with a new field.
    I've created modulpool ZP200300, and i've inserted a new entry in table T582C.
    But when i check the infotype via PA30 my new field is not shown,
    Any ideas???

    Unfortunately you cannot enhance the Time Infotypes.. pl take a look at this
    Re: Add new field to 2001 infotype

  • BAPI to update a single characteristic in IE02

    Hi,
          I am trying to update a single characteristic in IE02.I am able to do that with the BAPI "BAPI_OBJCL_CHANGE",but this BAPI is updating only 1 characteristic and is initializing all the remaining characteristcs.
          Any pointers on this is highly appreciable.
    Navin

    Hi,
    the documentation of the bapi says:
    Caution
    This BAPI only changes the parameters of an existing assignment (or creates a whole new assignment), but it does not delete the assignment to a class and replace it with an assignment to another class. If you want to reassign an object, the old assignments must be read with BAPI_OBJCL_GETCLASSES and deleted with BAPI_OBJCL_DELETE, then the new assignments must be created with BAPI_OBJCL_CREATE.
    The information transferred by this BAPI replaces all old information. An empty field means "delete entry!", not "no change".
    This BAPI does not change the database. To change the database, call BAPI BapiService.TransactionCommit afterwards.
    You can only use this BAPI for objects that are not classes!
    This BAPI only processes assigned values for classification - not for configuration
    so i guess you have to pass all information you do not want to lose.
    i´ve  found this as well:
    http://www.sapfans.com/forums/viewtopic.php?t=125320
    Best regards.
    Edited by: Pablo Casamayor on Jan 2, 2009 7:08 PM

  • BAPI for updating Maintain Duration in Transportation and Delivery scheduling

    Hi all,
    Iam looking for a BAPI to update the Duration Times in Transportation and Delivery scheduling. I reluctant to use recording on SM30 Table maintenance T code and use it in LSMW. Is there a BAPI or Standard i/p Program to load these details. I have more than 200000 records to input.
    A list of all BAPI's in Transportation Management module would be great as well.
    Regards,
    Avi

    Hi,
    @praveen: I tried the solution provided by you and it worked for me in this context. But it seems this BADI gets triggered every time the delivery is getting saved. So for my test purposes, I'm triggering this BADI in a program, but in actual scenario, the BADI would be called on every sy-ucomm = 'SICH_T' i.e. SAVE. hence, I can't separate my piece of code using this condition.
    I'm trying to call my FM(update module in collective run mode) inside this BADI in backgrnd task as a separate unit but this doesn't seem to work.
    Any more suggestions?
    Thanks
    Ashish

  • BAPI to Update the OA/PO with the new partners from vendor masters

    Hello All,
    We got a requirement to update the Contract or purchase order with new partners from vendor  master.
    In brief the partner information of a  PO when created with reference to a contract  will be reflected from the contract but not from Vendor Master partners .So when the vendor master got changed after the creation of the Contract the partner information in the PO is not in synchronous with Vendor Master partnes.
    Hence please help us with any BAPI to update the PO partners with Vendor masters .
    Regards
    Kalyani

    MAP2e_lfa1_to_bapivendor_04
    MAP2e_lfa1_to_bapivendor_05
    will be helpful

  • Need name of a function module or BAPI to update the Tax Classification val

    Hi Guru's
    Need name of a function module or BAPI to update the Tax Classification value for Material master.
    Thanks in advance.

    Hi
    U can try to use BAPI_MATERIAL_SAVEREPLICA
    Max

  • FM'S or BAPI to update the condition records in VB22 transaction

    Hi,
    I need your help in getting the FM'S or BAPI to update the condition records in sales deal.
    The transaction is VB22.
    If you can send me a smaple code it will be really helpful.
    Regards,
    Sasi

    Check this:
    http://www.sapnet.ru/viewtopic.php?p=1644
    Bapi for VK11 & VK12
    Reddy

Maybe you are looking for

  • I want to keep the Apple TV and my computer separate

    I have movies I just want to dump onto the APPLE TV drive and delete from my computer to save hard disk space. I was told I could just drag content to the apple tv... I don't really care about synching - though I would like to share the library on th

  • Can i connect apple thunderbolt display to an windows base pc

    is it possible to connect thuynderbolt display to windows base pc throu dvi or hdmi???

  • Dodging the wipe order.

    How can I download pics from my iTouch to a PC, Sd-card, anything w/o connecting to the internet? (If I connect to the internet, then my erroneously issued 'wipe' command will take effect; the pics were not backed up onto my iTunes acct apparently).

  • Set up separate online account

    I bought a phone under my daughter's account using her employee discount. She already has a phone, but I (we) would like to set up my phone on a different online account instead of being combined. I would like separate billing. Is this possible? Even

  • Why is my mouse making noise through my speakers?

    Just got a new mac mini. I hooked it up to my M audio firewire 1814 sound card, and I'm getting noise through the speakers every time I move the mouse, every time an application is loading, every time a web page is loading. I presume it's some kind o