BAPI for New emplyee creation

Hi,
  I am trying to use BAPI:<b>"HR_MAINTAIN_MASTERDATA"</b>
for cretion of new employee.But I am getting the message as follows:
"<b>Personnel Number not yet assigned</b>."
I have tried to give all basic info i.e pa0001 data:Personnel number,Joining Date,End Date,subtype,Personnel area,subarea,employee group,subgroup,Title,First name,lastname,date of birth .I have tried by giving other infotype information(such as address details,communication,city,postal code) in addition to above.But same message is appearing.So please if anybody knows mail me.
Thanks and Regards,
Ganga.

Yes, you can. I've done it and it work.
In fact I had no problems creating an employee with this module so it's kind of hard to tell where the mistake can be.
You should definitely put in PROPOSED_VALUES all the required fields form IT 0000, IT 0001, IT0002.
I don't remember switching NO_EXISTENCE_CHECK

Similar Messages

  • IDOC/BAPI for Production order creation from Legacy system

    Hi all
    We are using an interface to create Production orders from legacy to SAP. Would you recommend an IDOC or a BAPI to create Production orders. If IDOC or BAPI then could you please mention which one?
    thanks a bunch

    Hi John,
    For your purposes, please use BAPI for production order creation from legacy system. There is no standard inbound IDoc available to use. SAP has an IDoc for outbound interface only (message type LOIPRO).
    If there is an inbound IDoc available, I would recommend to use an IDoc.
    IDoc technology has excellent error handling and will allow you to reprocess an error (if any).
    BAPI is also good approach to use and fast in term of  processing.
    For BAPI approach, you can use BAPI BAPI_PRODORD_CREATE.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Can u tell me any predefined BAPI for change and creation of Material

    Hi,
        Can anybody tell me  predefined BAPI for change and creation of Materialmasterand Pricing?
    Thanks & regards,
    Gopianne.

    you can use the BAPI to BAPI_MATERIAL_SAVEDATA create as well as to change material master.
    When changing material master data, you need enter only the material
    number.
    In the header data, you must select at least one view for which data is
    to be created. Depending on the view selected, you must maintain other
    required parameters. If you do not enter values for all of the required
    parameters, the method is ended with an error message.
    The corresponding fields in the tables (such as CLIENTDATA) must first
    be supplied with data by the calling program. An indicator must also be
    set for each of these fields so that the data is written to the database
    by the method. This requires the calling program to supply the
    corresponding field with the indicator in a checkbox table (for example,
    CLIENTDATAX). Checkbox tables exist for tables that do not contain any
    language-dependent texts (MAKT, MLTX), International Article Numbers
    (MEAN), or tax classifications (MLAN). Several data records for a
    material can be created in these tables.
    regards
    vivek
    reward points if it helps

  • BAPI for Outbound Delivery Creation with reference to Sales Order

    Dear all,
    I'm on R/3 4.6B platform and to develop an RFC for outbound Delivery creation instead of using the standard VL01N transaction.
    I've review BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N thread which suggest BAPI_DELIVERYPROCESSING_EXEC .
    However, in 4.6B, that function module doesn't exist. Appreciate any suggestion and or workaround.
    Thanks.
    Steven
    Edited by: Steven Khoo on Mar 25, 2010 7:13 AM
    Edited by: Steven Khoo on Mar 25, 2010 7:14 AM

    Not required anymore

  • BAPI for Service order creation

    Hi ,
    Please tell me if any Bapi for service order creation  , T-code : IW31
    regards,
    Prakash

    Hi Prakash,
    Have a look on the following BAPIs:
    BAPI_ISUSMORDER_CREATEMULTIPLE - Create Service Orders
    BAPI_ALM_CONF_CREATE - Create confirmation for maintenance/service order
    WTY04_CREATE_SERVICE_ORDER - Create Service order via function module.
    Hope this will help.
    Regards,
    Nitin.

  • Is there any Bapi for Physical Sample creation

    Hi Folks,
    Is there any Bapi for physical sample creation. My scenario is like this I have the data in the table (material, plant, batch, type,vendor, vendorbatch ). For each material i have to create a  physical sample......
    Any ideas or suggestions would be appreciated..
    thanks
    chaithanya.

    HI Chaitanya,
    You can use : BAPI_BATCH_CREATE
    it has import paramaters like Material, Plant , batch , Batch Attributes ( Vendor No, Vendor Batch etc)... I guess this is what you are looking for.
    Regards,
    -Venkat.

  • Please Tell  me the Standard Bapi for Purchase Order Creation

    Hi,
      Please tell me the standard BApi for the PO creation. How to excute the standard Bapi. Please help me.
    Regrads
    Mohan

    Hi Mohan,
    Use this BAPI BAPI_PO_CREATE1.
    Check this post, you have program aswell
    https://forums.sdn.sap.com/click.jspa?searchID=7294168&messageID=1172796
    Regards,
    Satish

  • Requirements to go for new TableSpace Creation ?

    Hi All,
    It is a more databse question than SAP,
    What are requirements to go for new Tablespace creation ?
    OR
    Why do we need to create new Tablespace evethough, we have around 7 default tspaces there.
    Eg : In my case TSpace PSAPVERTEX  created; vertex is US tax tool.
    I dont think database stores the application specific data in particular TSpace  like  vertex application -
    PSAPVETEX
    Please reply to me soon
    RK

    Hello Ramakrishna,
    >> Why do we need to create new Tablespace evethough, we have around 7 default tspaces there.
    That is not correct. You have one default tablespace on database level or one default tablespace for different users (user settings)... but you can never have more than one default tablespace.
    SAP creates more tablespaces to seperate the data and to structure it... but the definition, which object is stored in which tablespace is specified in the create statement of the object.
    So if objects are for the vertex application.. the create statement includes the vertex tablespace PSAPVERTEX.. if not the objects are created in the default tablespace for the user.
    Regards
    Stefan

  • BAPI for delivery doc creation required

    Hi All,
    I need to develop a program wherein I need to create a sales order, delivery order, PGI(post goods issue) and invoice.......I have identified the bapi for sales order creation as bapi_sales_order_create..
    I request u to kindly help with the others....lemme know the relevant bapis for the others...

    Hi,
    Chk the FM's given below..Hope this will help you...
    BAPI For Delivery Order
    BAPI_DELIVERYPROCESSING_EXEC
    BAPI to post a Goods issue
    BAPI_OUTB_DELIVERY_CONFIRM_DEC "inbound Delivery
    Filling HEADEWR_DATA-DELIV_NUMB, HEADER_CONTROL-DELIV_NUMB, DELIVERY with the delivery number and HEADER_CONTROL-POST_GI_FLG with 'X' does the job.
    BAPI_OUTB_DELIVERY_CONFIRM_DEC " outboung Delivery
    Reward Points if helpful.
    Regards,
    Harini.S

  • FM or BAPI for Transfer Order creation in eWM

    Hello ALL,
    Please provide any FM or BAPI for Transfer Order creation in eWM. i know how to create transfer order in ERP.I tried to find out a FM or BAPI in SCM eWM but failes to get one.
    Kindly help.
    BR,
    Anil..

    Hi,
    Try using FM WS_LM_TRANSFER_ORDER_CREATE.
    I hope this is available in ur system
    Thanks

  • Replacing the bapi with the new bapi for purchase order creation

    Hi,
       In the customised code call is there for the bapi function module  'BAPII_PO_CREATE'.
       Iam trying to replace the call with the code that calls function module 'BAPI_PO_CREATE1'.
       Please help me about what changes I needed to do in the code . As there is much mismatch in the import and export parameters
    and tables in both the function modules.
       Thanks in advance.
    Edited by: anwar.indya on Mar 25, 2011 2:18 PM
    Edited by: anwar.indya on Mar 25, 2011 2:19 PM

    Hi,
    As per  u r requirement
    you can use  : BAPI =>    BAPI_PO_CREATE  with suitable Document  Type ( Stock trasnfert : STO )
    IF  u want to auto po must be created after each delivry in this case you need to use BADI
    'MB_MIGO_BADI; In This BAPI  There is method : POST_DOCUMENT
    In this method u can write code for Auto PO Creation by using BAPI .
    Hope This will Resolve u r query.
    Thanks and Regads
    Santosh

  • CRM E-Commerce BOB Web shop - Duplicate check for New Customer Creation

    Hi,
    In CRM E-Commerce BOB Web shop we have a requirement wherein new customer creation should go through a duplicate check. Only unique customers should be created as BP in backend GUI, in case a customer already exists with the same credentials, BP should not be created and user should get a message that the customer already exist in the system.
    Currently the system is not preventing me from creating new customers with same credentials.
    In case anybody has worked on the similar requirement or has any idea about the same, Kindly help.
    Regards, Vipul
    Edited by: vipul_kumar02 on Jun 21, 2011 4:20 PM

    Hi,
    Any pointers for function module used for creation of a new BP for a new customer request in BOB Web shop?
    Is it same as B2C Web shop?

  • BAPI for automatic Pr creation witth multiple files from excel sheet

    I have written a programm  for automatic PR creation  with the help of bapi , where its picks data from excel sheet and makes PR .It is picking excel files from one folder(Files) for PR creation and moving to another folder(Files sucess).
    now the problem is if Folder (Files) contains one excel sheet ,PR is created fine , but if the Folder(Files) have multiple excel sheet ,its is creating 1st PR right, but next PR's contains all the line item of 1st PR , 2nd PR and so on .can anyone suggest me where is the problem in codes.
    types : begin of x_file ,
            key1(10),
            pur_grp(4),
            maktx(40),
            plant(4) ,
            req(10),
            s_qty(13),
            wbs(24),
            gl(10),
            trackno(10),
            supl(4),
            deladd(255).
    types : end of x_file .
      data : str5 type char10.
      data : mm type char2.
      data : yyyy type char4.
      data : dd type char2.
      data : str9 type char10.
      data : str6 type char10.
      data : month type char2.
      data : year type char4.
      year = sy-datum+0(4).
      month = sy-datum+4(2).
      dd = sy-datum+6(2).
      yyyy = sy-datum+0(4).
      mm = sy-datum+4(2).
      dd = sy-datum+6(2).
      clear str6 .
      clear str5.
      concatenate  dd'.' month '.' year into str5 .
      concatenate  yyyy mm dd into str6 .
    DATA : file type rlgrap-filename .
    data : it_file type table of x_file .
    data : wa_file type x_file .
    data : it_header type table of x_file .
    data : wa_header type x_file .
    *&  Internal Table For Define Row and Coloum Postion
    data: col_start type i value 1 ,
          row_start type i value 2,
          col_end type i value 256 ,
          row_end type i value 65000 .
    *&  Internal Table For Retrieve  Data From Excel
    *data: excel_bdcdata like kcde_cells occurs 0 with header line.
    *data: excel_bdcdata1 like kcde_cells occurs 0 with header line.
    data: excel_bdcdata like ALSMEX_TABLINE occurs 0 with header line.
    data: excel_bdcdata1 like ALSMEX_TABLINE occurs 0 with header line.
    data: it_index type i.
    DATA : IT_INDEX1 TYPE I.
    *&  Define Field Symbol
    field-symbols: <fs> .
    data :   bdcdata like bdcdata    occurs 0 with header line.
    data :   messtab like bdcmsgcoll occurs 0 with header line.
    data : req_items type table of bapiebanc .
    data : wa_req_items type bapiebanc .
    data : req_acc_asg type table of bapiebkn.
    data : wa_req_acc_asg type bapiebkn.
    DATA : RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE .
    *data : return type table of     bapireturn.
    *data : wa_return type bapireturn .
    data : number type ebeln .
    *****************************MOVE FILES******************************
    data : xsource type string .
    data : xdestin type string .
    data : destin1 type string .
    data : destin2 type string .
    DATA : DEST1 TYPE STRING.
    DATA : DEST11 TYPE STRING.
    DATA : DEST2 TYPE STRING.
    DATA : DEST22 TYPE STRING.
    data : sou_dir_name like SALFILE-LONGNAME.
    data : tar_dir_name like SALFILE-LONGNAME.
    data : tar_dir_name1 like SALFILE-LONGNAME.
    data : sou_filename like EDI_PATH-PTHNAM .
    data : tar_filename like EDI_PATH-PTHNAM .
    data : filename1  type string .
    data : tar_filename1 like EDI_PATH-PTHNAM .
    data : file_itab like SALFLDIR occurs 0 with header line.
    data : wa_file_itab like SALFLDIR.
    data : file_count type i .
    data : dir_count type i.
    data : dir_table like sdokpath occurs 0 with header line.
    data : file_table like SDOKPATH occurs 0 with header line.
    data : wa_file_table like sdokpath.
    data : strr type string ,
           str1 type string ,
           str2 type string ,
           str3 type string .
    DATA : PA_VAL TYPE CHAR1.
    sou_dir_name = 'D:\barcodes\files\'.
    tar_dir_name = 'D:\barcodes\files-success\'.
        "success folder.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        DIRECTORY  = sou_dir_name
        FILTER     = '.'
      IMPORTING
        FILE_COUNT = file_count
        DIR_COUNT  = dir_count
      TABLES
        FILE_TABLE = file_table
        DIR_TABLE  = dir_table
      EXCEPTIONS
        CNTL_ERROR = 1
        OTHERS     = 2.
    IF SY-SUBRC <> 0.
    ENDIF.
    loop at file_table into wa_file_table.
    clear  :  strr , str1 , str2 , str3 .
      strr = wa_file_table-PATHNAME .
      concatenate sou_dir_name strr into str1 .
      concatenate tar_dir_name strr into str2 . " success
      concatenate tar_dir_name1 strr into str3 .         " failed
    FILE = STR1 .
    *start-of-selection.
    *&  Function For Retrieve Data From Excel
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        filename                      = FILE
        i_begin_col                   = col_start
        i_begin_row                   = row_start
        i_end_col                     = col_end
        i_end_row                     = row_end
      tables
        intern                        = excel_bdcdata
    EXCEPTIONS
       INCONSISTENT_PARAMETERS       = 1
       UPLOAD_OLE                    = 2
       OTHERS                        = 3.
      IF sy-subrc NE 0.
    WRITE : / 'File Error'.
    EXIT.
    ENDIF.
      loop at excel_bdcdata.
        translate excel_bdcdata to upper case .
        move excel_bdcdata-col to it_index.
        assign component it_index of  structure  wa_file to <fs> .
        move excel_bdcdata-value to <fs>.
        at end of row.
          append wa_file to it_file .
            clear wa_file.
        endat.
      endloop.
    sort it_file by key1. "pur_grp maktx plant  .
    it_header[] = it_file[].
    delete adjacent duplicates from it_header comparing key1 pur_grp maktx
    plant .
    data : h_item(5) type n .
    data : h_pack(10) type n .
    data : line_no(5) type n .
    data : ln_no(5) type n .
    loop at it_header into wa_header .
    ln_no = 1.
    h_item = h_item + 10.
    h_pack = h_pack + 1.
    wa_req_items-preq_item = h_item .
    wa_req_items-doc_type = 'BOM'.
    wa_req_items-pur_group = wa_header-pur_grp .
    wa_req_items-MATERIAL = wa_header-maktx .
    wa_req_items-plant = wa_header-plant .
    wa_req_items-pckg_no =  h_pack .
    wa_req_items-deliv_date = str6 .
    wa_req_items-item_cat = '0'.
    wa_req_items-acctasscat = 'P'.
    *wa_req_items-distrib = '2' .
    **wa_req_items-gr_ind = 'X'.
    wa_req_items-ir_ind = '2'.
    wa_req_items-purch_org = 'TISL' .
    wa_req_items-QUANTITY =  wa_header-s_qty.
    wa_req_items-PREQ_NAME =  wa_header-req.
    wa_req_items-SUPPL_PLNT = wa_header-supl.
    wa_req_items-trackingno = wa_header-trackno.
    append wa_req_items to req_items .
    clear wa_req_items.
    wa_req_acc_asg-preq_item = h_item .
    wa_req_acc_asg-g_l_acct = wa_file-gl .
    WA_req_acc_asg-wbs_elem  = wa_header-wbs .
    append wa_req_acc_asg to req_acc_asg .
    clear wa_req_acc_asg.
    h_pack = h_pack + 1  .
    endloop.
    clear ln_no .
    ***BREAK-POINT.
    *& BAPI FUNCTION
    call function 'BAPI_REQUISITION_CREATE'
    importing
       number                               = number
      tables
        requisition_items                   = req_items
       requisition_account_assignment       = req_acc_asg
       return                               = return .

    Can someone please give me sol........

  • BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N

    Hi Everybody,
           We are in ECC 5.0 version.
           I want to create a enhancement for Outbound Delivery Creation with reference to a Sales Order.
           Is any BAPI available for this ?
           Any input on this will be very much helpfull.
           Please suggest any BAPI available for this, or should I go for BDC using VL01N or VL04 ?
           Thanks in advance.
    regards,
    Nagarajan.J

    Hi Nagarajan,
    The BAPI BAPI_DELIVERYPROCESSING_EXEC meets your requirement. You can create delivery with reference to sales order.
    The below is the sample code...
      data:lt_request      like bapideliciousrequest
                                    occurs 0 with header line,
           lt_createditems like bapideliciouscreateditems
                                    occurs 0 with header line,
           lt_return       like bapiret2
                                    occurs 0 with header line.
        lt_request-document_type      = 'A'.
        lt_request-document_numb      = vbeln.
        lt_request-document_item      = posnr.
      lt_request-material           = matnr.
      lt_request-plant              = werks.
      lt_request-stge_loc           = lgort.
      lt_request-quantity_base__uom = base_uom_qty.
      lt_request-delivery_date      = sy-datum.
      append lt_request.
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
      EXPORTING
        DELIVERY_EXTEND       =
        TECHN_CONTROL         =
        tables
          request               = lt_request
          createditems          = lt_createditems
          return                = lt_return.
      loop at lt_return where type = 'A'
                          or  type = 'E'.
        exit.
      endloop.
      if sy-subrc <> 0.
    Use the BAPI for Commit
        call function 'BAPI_TRANSACTION_COMMIT'
             exporting
                  wait = 'H'.
      endif.
    Thanks
    Ramakrishna

  • BAPI for Production Order creation ?

    Hi Experts,
    I am new to PP module and as per my requirement I have to:
    1. Create Production order in ECC 6.0
        After searching BAPI explorer, SDN and other sites I could see that there is no BAPI for Create Production order.
        In one of the link I could find FM CLOI_CHANGES_UPL_31 used to create Production order in SAP.
    Is there any BAPI to create ??
    Can anyone let mw know right FM or BAPI to create Production order with an example.
    2. And I have to:
    Delete Production order
    which BAPI is used for deletion of Prd Ord
    BAPI_PRODORD_SET_DEL_INDICATOR or BAPI_PRODORD_SET_DELETION_FLAG
    For Confirm Production order - in ECC 6.0 Let mw know the BAPI for this ..
    Really helpful if you answer my queries...
    Thanks
    Uday

    Hi udaya,
    use the BAPI 'BAPI_PRODORD_CREATE'
    The following BAPIs are available confirmation of production orders:
        Entry
            Time ticket
            ProdOrdConfirmation.CreateTimeTicketMultiple
            BAPI_PRODORDCONF_CREATE_TT
            Time event
            ProdOrdConfirmation.CreateAtHeaderLevelMultiple
            BAPI_PRODORDCONF_CREATE_HDR
            Order confirmation
            ProdOrdConfirmation.CreateAtHeaderLevelMultiple
            BAPI_PRODORDCONF_CREATE_HDR
            Activity confirmation
            ProdOrdConfirmation.CreateActConfMultiple
            BAPI_PRODORDCONF_CREATE_ACT
        Defaults
            Time ticket
            ProdOrdConfirmation.GetTimeTicketProposal
            BAPI_PRODORDCONF_GET_TT_PROP
            Time event
            ProdOrdConfirmation.GetTimeEventProposal
            BAPI_PRODORDCONF_GET_TE_PROP
            Order confirmation
            ProdOrdConfirmation.GetAtHeaderLevelProposal
            BAPI_PRODORDCONF_GET_HDR_PROP
        Cancelling confirmations
        ProdOrdConfirmation.Cancel
        BAPI_PRODORDCONF_CANCEL
        List of confirmations
        ProdOrdConfirmation.GetList
        BAPI_PRODORDCONF_GETLIST
        Detail data for confirmations
        ProdOrdConfirmation.GetDetail
        BAPI_PRODORDCONF_GETDETAIL
        Existence check
        ProdOrdConfirmation.ExistenceCheck
        BAPI_PRODORDCONF_EXIST_CHK
    Regards,
    Ravi

Maybe you are looking for

  • External hard drive and SD card won't auto mount

    I am using MBP with retina on Yosemite. MacBook Pro (Retina, 15-inch, Late 2013). On Maverick, all my external drives used to auto mount. The same was true just after Yosemite was installed. Lately, only my Time Machine hard drive auto mounts and oth

  • Problem with adobe CC 2014 unstable in print mode

    I installed the "new and wonderful" Adobe Photoshop 2014.2 I am running win 7 on one computer and Win 8.1 on the other. BOTH computers shut down when I try to print almost any file I created with Adobe Photoshop CC and earlier. I have "re-set" the pr

  • Servlets and Folders in Tomcat 4.1

    I have Tomcat 4.1 running and try to launch my Servlet, it is only 1 .class file. (Win NT 4) Have put it in <Tomcat dir>\Webapps\Root\Web-inf\classes The web.xml in Web-inf look like this: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app

  • Problem with Alpha Channel

    The top level track on my project contains an alpha channel. However, being the top level track the tracks below it are invisible. I have read the "Compositing, alpha channels, and adjusting clip opacity" page. It tells me that I "can choose how to i

  • Upgrading from WebUtil 1.0.2 to 1.0.5

    I've already installed WebUtil 1.0.2 Beta. Are there any instructions for upgrading to 1.0.5 Production? Or do I basically just re-install it? Sandy