BAPI to upload HR mater data

Hi,
We have a requirement to upload employee addresses from an excel file to table PA0006. We are using the standard BAPI , BAPI_ADDRESSEMP_CREATE for this purpose. All mandatory fields like PERNR,BEGDA,ENDDA and SUBTY are being passed to this BAPI.Also we have used appropriate function modules to enqueue and dequeue the PERNR. However we get a message 'Make an entry in all required fields'. Can somebody tell us what we might be missing out on?
Thanks in advance!
Regards,
Nejuma Iqbal

Hi,
This sample code is from SDN.
REPORT ztest MESSAGE-ID 00.
DATA: BEGIN OF return_int OCCURS 0.
        INCLUDE STRUCTURE bapireturn1.
DATA: END   OF return_int.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
  EXPORTING
    number = '48'.
CALL FUNCTION 'BAPI_ADDRESSEMP_CREATE'
  EXPORTING
    employeenumber = '48'
    validitybegin  = '20061231'
    validityend    = '99991231'
    addresstype    = '2'
    coname         = 'USA'
    city           = 'Atlanta'
  TABLES
    return         = return_int.
LOOP AT return_int.
ENDLOOP.
IF whatever.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
  EXPORTING
    number = '48'.
Kindly reward points by clicking the star on the left of reply,if it helps.

Similar Messages

  • BAPI to upload Person Assignment data under network activity

    Hello All!
    Can anybody tell me the appropriate BAPI that can upload the data of Person Assignment tab under network activity of Project System(TCode:cj20n)? I.E. data like Split Person Date Time Work Un and others data.
    Thanks in advance.
    Regards.
    Sarbajit

    Hi Majumdar,
    you can find it by running transaction ST05 against CJ20N.
    try bapi-
    BAPI_PROJECT_MAINTAIN
    Regards,
    NaPPy

  • Standard program / bdc / bapi to upload customer data.

    hi experts,
        i need standard program/bdc/lsmw/bapi to upload customer  amster data .

    Hi,
    Please check this links on how to use direct input program RFBIDE00.
    http://www.sapbrain.com/TOOLS/LSMW/SAP_LSMW_steps_introduction.html
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    Regards,
    Ferry Lianto

  • Reg BAPI: "'BAPI_BASICPAY_CREATE" uploading to infotype P0008

    The following BAPI to upload the salary data to info type PA0008( BASIC PAY).
    This bapi is expects the table type amount with 4 decimals.
    Please let us know  any other bapi to upload the data to infotype 0008 or how to work with existing bapi. Sothat amount would be with 2 decimals raterthan 4 decimals.
    CALL FUNCTION 'BAPI_BASICPAY_CREATE'
          EXPORTING
            EMPLOYEENUMBER             = IT_PA0008-PERNR
            SUBTYPE                    = IT_PA0008-SUBTY
            VALIDITYBEGIN              = IT_PA0008-BEGDA
            VALIDITYEND                = IT_PA0008-ENDDA
            PAYSCALETYPE               = IT_PA0008-TRFAR
            PAYSCALEAREA               = IT_PA0008-TRFGB
            PAYSCALEGROUP              = IT_PA0008-TRFGR
            PAYSCALELEVEL              = IT_PA0008-TRFST
      NEXTINCREASE               =
      LOCALALLOWLEVEL            =
      PARTNERSHIP                =
      CURRENCY                   =
      COMPARISONPAYSCLTYPE       =
      COMPARISONPAYSCLAREA       =
      COMPARISONPAYSCLGRP        =
      COMPARISONPAYSCLLVL        =
      COMPNEXTINCREASE           =
            CAPACITYUTILLEVEL          = IT_PA0008-BSGRD
            HOURSWORKEDPERPERIOD       = IT_PA0008-DIVGV
      ANNUALSALARY               =
      CASEGROUPCATALOG           =
      CASEGROUP                  =
            CURRENCYANNUALSALARY       = IT_PA0008-ANCUR
      REASON                     =
      NOCOMMIT                   =
    IMPORTING
        RETURN                     = IT_BAPIRETURN1
       EMPLOYEENUMBER             = V_PERNR
      SUBTYPE                    =
      OBJECTID                   =
      LOCKINDICATOR              =
      VALIDITYBEGIN              =
      VALIDITYEND                =
      RECORDNUMBER               =
         TABLES
          <b> WAGETYPES                  = IT_WAGE</b>
    tHANKS
    Badari
    Help would be highly appreciable!

    PL note that HR_INFOTYPE_OPERATION is not RFC enabled.. you will have to wrap it around with a custom RFC in order to use it in palce of the above BAPI..
    ~Suresh

  • Uploading the Master data From SCAT

    Hi Experts ,
                        Can any one explain how to upload the mater data by using SCAT(In Step Wise).

    SCAT (CATT)

  • Upload Property Master Data through LSMW

    I am using the following BAPI to upload the Property Data through LSMW.
    Business Object: BUS1502   
    Method: CREATE
    Message Type: BUS1502_CREATE
    Basic Type: BUS1502_CREATE03
    There are two issues which needs to be addressed and hope that this forum can help me out.
    1. In this BAPI, i dont see the field mapping for Company Code and Business Entity, both mandatory fields for creating a Property record.
    2. Skipping the first step, i reached the step "Start IDoc Generation" in LSMW and get the following error.
    EDI: Table passed to EDI_SEGMENTS_ADD_BLOCK is empty.
    Anyone encountered these issues? Suggestions to resolve these issues?
    Hamdan

    Hello Hamdan,
    First of all, good decision to use BAPI + LSMW it is the best way to load DATA specifically in REFX. Here's answer to your questions.
    1. Pass Company code, BE, other header level fields in E1BUS1502_CREATE structure. This is the main Header structure of the Baisc type you are using. Create source structure with these fields and mapp it to the BAPI fields and you are all set.
    2. Check the EDI_DC40 element, or other structures if you are passing values. SAP/System will fill/populate these values on its own, do not pass any values example in fields DOCNUM, CREDAT, etc.
    Good luck,
    Jag

  • Need BAPI for upload the special ledger data (GB01)

    Hi Guys,
    I have to upload the GB01 data from excel to sap.
    Is there any BAPI for this app
    plez Help me
    thanks

    hi
    use function modules JV_GB01_DIRECT_INPUT and JV_GB01_DOCUMENT_POST
    hope this helps you
    Regards
    Aakash

  • Bapi to upload data  for hrp1001

    Hi is there any standard Bapi to upload data in 1001.
    I know it can be done by lsmw or BDC ..but i wanted to aout any bapi

    Hi pratyush,
    Try using FM RH_INSERT_INFTY.
    Before RH_INSERT_INFTY, call function RH_PM_ENQUEUE, after RH_INSERT_INFTY, call function RH_PM_DEQUEUE.
    Regards,
    Dilek

  • Interface Using BAPI for Uploading shipment datas

    Can any1 send me the example code for Inbound Interface using BAPI for Uploading shipment datas.please kindly send me the programs which u using with BAPI

    Hi
    Except hiring (or new joinee) for all other actions you can use below Function Module.
    HR_INFOTYPE_OPERATION.
    ~~~Ganesh Kumar K.

  • Problem in uploading material master data using BAPI?

    Hi all,
    I am using BAPI_MATERIAL_SAVEDATA to upload materail master data. Here i have to pass moving average price values in two currenices(using account_view and valuationdata in BAPI). But i found only one field for  moving average price i.e moving_pr in valuationdata.
    Please help me on how to upload the moving average price in two currencies?
    Thanks,
    Aravind.

    Hi
    There is function module BAPI_MATERIAL_SAVEREPLICA where
    VALUATIONDATA parameter is in the tables tab.
    But I didn't test it. Try, may be it works as you need.

  • BAPI to Upload Sold to Party on Project Definition in Data Migration

    Hello All,
    I want to migrate around 900 project definitions from legacy system to SAP
    I have activated partner determination procedure for our project profile and also want to upload Sold-to-party (customer number) on project fefinition
    I am using BAPI "BAPI_PROJECTDEF_CREATE" to upload project definitions where I could not find field for Sold-to-party
    Is there any other BAPI for project defnition which can upload this field or otherwise how to upload this particular data
    Request you to kindly provide your valuable inputs
    Thanks in advance
    BR / Mayur

    Hi Mayur,
    You can make use of the CNEX0006 PS customer specific fields project definition and add Customer Number (Sold to Party) as a field. Then use the BAPI_PROJECTDEF_CREATE and update the customer number accordingly at Proj. Defn level.
    Mark this answer as helpful, if it helps answering your question. Wait for other expert comments as well.
    Regards
    Varun Rudrabhatla

  • Doubt in uploading purchase order data using BDC

    Hi friends,
    how to upload purchase order data.
    1) In both BDC and BAPI which one is preferable?
    2) for suppose if it is through BDC,  how to use? what are the transactions that we can use(SHDB, ME21N,ME21)?
    3) To execute the job in background, is it possible for both call transaction and session method.
    Thanks in advance
    Sreenivas k

    It really depends on the number of records you have. Still for a set of 5,000 records my answer to your questions will be:
    1) In both BDC and BAPI which one is preferable?  - <b>Go with BDC</b>
    2) for suppose if it is through BDC, how to use? what are the transactions that we can use(SHDB, ME21N,ME21)? - <b>Yes, its SHDB for recording, SE38 for abap program and ME21 for PO. Avoid SAP Enjoy transactions for recording as you may end up having problems wiht it.</b>
    3) To execute the job in background, is it possible for both call transaction and session method. - <b>If you use call transaction method then you have to schedule the job to run in background or simply run it through F9 instead of F8. In case of session method you can chose to process the session in background. However  I would suggest you go with BDC Session method for this.</b>
    - Guru
    Reward points for helpful answers

  • Uploading TAX Classification data in material master

    Hi,
    I have to upload tax classification data in material master for countries DE,IT,FR,ES,CH and GB.
    I have used BAPI_MATERIAL_SAVEDATA and passing values to table TAXCLASSIFICATIONS.
    But bapi is uploading tax classification only for country DE.
    When I am creating through MM02 its getting updated.
    Can anybody tell me what is the problem ?

    Hi Ganga,
    Yes I am passing different countries to table .
    LOOP AT IT_STAX into WA_STAX.
           wa_taxclassifications-depcountry = wa_stax-aland.
            wa_taxclassifications-tax_type_1 = wa_tstl-tatyp.
            wa_taxclassifications-taxclass_1 = wa_stax-taxm1.
            wa_taxclassifications-tax_ind    = wa_stax-taxim.
            APPEND wa_taxclassifications TO it_taxclassifications.
    ENDLOOP.
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
          EXPORTING
            headdata           = wa_headdata
          TABLES
            taxclassifications = it_taxclassifications
            returnmessages     = it_return[].

  • Upload vendor master data long texts to CRM

    Hi
    I do have the same problem of this thread:
    [CRM Middleware - R3 to CRM - Long Text transfer |CRM Middleware - R3 to CRM - Long Text transfer]
    Does anyone know how to upload long texts of Vendor master data to Business Partner mater data?
    Thanks in advance for any help
    Pierluigi

    By learning the basics of BDC recording and the use of GUI_UPLOAD

  • Using BAPI to upload Equipment Master (IE01)

    Hi,
    Can any one help to do below object...that i need for resume.
    Pls provide me compelete details with code or else give me guidelines  in detail to carrayout.....
    i should be thankful to you....
    •Using BAPI to upload Equipment Master (IE01). Fields that are uploaded are Equipment category, valid to date, Equip. Description, object type, Acquisition value, Acquisition date, Maintenance Plan, plan section, catalog profile. Input file is accessed from application server. Error log file is created at application server.
    with regards
    bheem

    If this is a onetime load, you can use LSMW to do this.
    Object 0400.  Must easier than writing a report from scratch.
    Albert

Maybe you are looking for