LSMW (creating vendor)

Hi.
I want to create vendors using LSMW with batch input ( transaction XK01 ).
Can I get from LSMW vendor numbers of created vendors?

after running the LSMW program the Seeeion will be created , goto SM35 tcode and select your session and process if any method , after processing the session your name select agagin your session and click log  there you can findout the created vendors....

Similar Messages

  • LSMW create Vendor Contract ME31k

    Hello Guys,
    I have create a LSMW using recording to upload a series of contract with multiple lines.
    I have defined 2 source structure with the respective fields I intent to input values.
    Header, field 1, field 2
    Item, field 1, field 2
    I have also maintained the appropriate structure for 2 different files, where first file has the header data and Item files has the item data.
    I am reading and converting the data correctly but the sequence of my LSMW recording is corrupted. What is the best way to go with the recording for this LSMW. I am struggling to define the multiple items for a contract.
    I do not have BUS2014 and IDOC did not work.
    Thanks

    To create the contract with multiple lines you are required to create two recordings and maintain two different source file.
    First Record is dedicate to create the Contract with a dummy item.
    Create the record for ME31K choose the fields you require to maintain. You are required to input the first line, use a dummy item so you are able to save the contract.
    Second Record is dedicate to add item in the contract.
    Create a record for ME32K it is not require to input the contract number as the record will use last create contract. Remember to call Edit Enter lines to call the last line to input the material ID.
    You are required to map the Header and Item level using identifiers for header and Item
    On the Header you can make the Item a constant of the dummy material.
    You are required to maintain two different source file one for Header and one for Item and then define the source structure.
    If someone have a better way I am happy for advices.

  • Error in the LSMW for vendor master using standard batch/direct input

    I am facing the problem in the LSMW for the Vendor master data. The vendor is initially created for the company code 350 by using LSMW. NOw when I try to uploasd the same vendor using the same LSMW for the company code 450 then I get the error in the Bach input creation as follows:
    Batch Input Interface for Vendors
    FB012                    Session 1 : Special character for 'empty field' is /
    FB007                    Session 1 session name VNDR_CREATE_ was opened
    FB104                    Trans. 2 XK01 : Acct already exists; general area not being processed
    FB125                    ... Data in table BLFA1 cannot be processed
    FB016                    ... Last header record ...
    FB014                    ... BLF00-STYPE 1
    FB014                    ... BLF00-TCODE XK01
    FB014                    ... BLF00-LIFNR 300951
    FB014                    ... BLF00-BUKRS 402
    FB014                    ... BLF00-EKORG /
    FB014                    ... BLF00-KTOKK VEND
    FB017                    ... Last data record ...
    FB014                    ... BLFA1-STYPE 2
    FB014                    ... BLFA1-TBNAM BLFA1
    FB014                    ... BLFA1-ANRED /
    FB014                    ... BLFA1-NAME1 SAVOIE AUTOMATISME DEXIS
    This is because when we use XK01 to create the vendor by using the

    Please check this answered link:
    Re: LSMW for Vendor Master
    LSMW Upload vendor master data
    Edited by: Afshad Irani on May 5, 2010 12:42 PM

  • What Function Module can be used to create vendor master data in SAP R/3?

    Hello -
    I've been trying to find a standard SAP delivered BAPI that can be used to create vendor master records in ECC 6.0. Up to this point I have not been able to do so. With SAP MDM solutions and SRM solutions it seems logical that SAP would deliver a standard BAPI that can be used to create vendor master records in the ERP/R3 environment (similar to the BAPI_MATERIAL_SAVEREPLICA for creating material master data records).
    I have been able to find BAPI_VENDOR_CREATE but this only calls the online transaction and does not offer much additional functionality beyond what transaction code XK02 already offers.
    The next best alternative appears to be IDOC_INPUT_CREDITOR but our preference would be to not use IDOCs for the project we are working on.
    Can anyone offer any insight or personal experience on how vendor master records have been successfully interfaced with SAP R/3? Did you have to use IDOCs or create a custom RFC call? Thanks for the help!
    Rich Wortmann
    << Personal information removed >>
    Edited by: Rob Burbank on May 14, 2009 10:43 AM

    Quite a gap in the BAPI arsenal. I think the options are IDoc, which you don't want, good old program RFBIKR00 (requires flat file for input, can be used via LSMW) or DIY (very complex).
    Thomas

  • LSMW for Vendor Master (t-code XK01)

    Hi guys,
    I'm creating a LSMW for Vendor Master (t-code XK01) using direct input but the following error message appears:
    In the step "Create batch input session", I get the following error:
    FB012 Session 1 : Special character for 'empty field' is /
    FB007 Session 1 session name VENDOR was opened
    FB112 Trans. 1 : No transaction code was transferred
    FB016 ... Last header record ...
    FB014 ... BLF00-STYPE 1
    FB014 ... BLF00-TCODE /
    FB014 ... BLF00-LIFNR DETES998
    FB014 ... BLF00-BUKRS /
    FB014 ... BLF00-EKORG /
    FB014 ... BLF00-KTOKK 0001
    FB013 ....Editing was terminated
    I mapped the TCODE filed using xk01 and the same error still displays; in the first step I select Object 0040, method 0002 and the program is RFBIKR00, is this correct?
    Some of the fields are stored ina different table; How can I mapped this fileds?
    Any you can provide will be great......

    Hi,
    Are you getting this error immediatly or later half?
    1. This could be with same Vendor number which would be existing in the system.
    2. Data inconsistencies.
    What are the flat files that you have is it a single file or more than one?
    Thanks,
    Prashanth

  • LSMW for Vendor master

    Hi All,
    I am trying to use LSMW for Vendor Master upload.
    I have gone through all the steps and it is showing correct data in "Display Read Data".
    Also the data in "Display Converted Data" is correct.
    However when i am running step "Create Batch Input Session" , it is giving following errors:
    (1) Transaction XK01 is not supported
    (2) editing ws terminated.
    Wt could be possible reason for this,I am using standard Batch method for object 0040 and program name RFBIKR00.
    ("Maintain Object Attributes" details).

    hello,
    in the field mapping step, check whether tcode field has been assigned as XK01 properly.
    Reward Points if it is Useful.
    Thanks,
    Manjunath MS

  • Error creating vendor w/ JCo FM VENDOR_INSERT- Missing parameter w/ PERFORM

    Dear all,
    I have followed the following thread and found it very useful as we need to create vendors from an external system in R/3 using the JCo as well. We are doing all the steps specified in previous posts and calling FM VENDOR_INSERT but when I execute the function it returns an exception:
    JCoException: (104) RFC_ERROR_SYSTEM_FAILURE: Missing parameter with PERFORM.
    We have checked and all the needed BAPIs are enabled but we are stuck at this first step. I have tried a variety of things but nothing seems to work. Not sure how I can specify the PERFORM parameter using JCo. Did anyone else fase this issue?
    Here is what some of the relevant Java code looks like:
            JCoFunctionTemplate tmplt1 = repository.getFunctionTemplate("VENDOR_INSERT");
            JCoFunction vfunc = tmplt1.getFunction();       
            JCoParameterList vparams =  vfunc.getImportParameterList();
            JCoStructure jcs= vparams.getStructure("I_LFA1");
            try
                 LocalSupplier s = getSupplier1();
                 jcs.setValue("MANDT", "010");
                 jcs.setValue("NAME1", s.getSupName());
                 jcs.setValue("NAME2", s.getSupName2());
                 jcs.setValue("PSTLZ", s.getSupPostalCode());
                 jcs.setValue("ORT01", s.getSupCity());
                 jcs.setValue("LAND1", s.getIdCountry().getIsocode());
                 jcs.setValue("STRAS", s.getAddress1() +", " + s.getAddress2());
                 jcs.setValue("MCOD1", "test");
                 jcs.setValue("KTOKK", "ZKRE");
                 jcs.setValue("SPRAS", s.getIdmasterSupplier().getIdlanguage().getLocale());
                 jcs.setValue("STCD1", s.getIdmasterSupplier().getTaxId());
                 jcs.setValue("TELF1", s.getTelephone());
                 jcs.setValue("TELFX", s.getFax());
                 execute(vfunc, destination);             
            catch(Exception e)
                System.out.println(e.toString());
                e.printStackTrace();
                return;
          * Method execute will call a function. The Caller of this function has
          * already set all required parameters of the function
         public static void execute(JCoFunction function, JCoDestination dest) {
              try {
                   JCoContext.begin(dest);
                   function.execute(dest);
                   JCoContext.end(dest);
              } catch (JCoException e) {
                   e.printStackTrace();
    Any help from some of view that have succesfully implemented vendor creation using the JCo would be highly appreciated.

    Hi,
    as I just wrote in the previous thread,
    don't use function module VENDOR_INSERT.
    As written before it is an update task FM. And also it do not check any field validity.
    This is the best way to face inconsistencies in the future.
    As you have also noticed, troubles and difficulties will come very soon related to the address management.
    In standard there is NO FM or BAPI to do so.
    The only supported option is via batch-input or idocs. Eventually, LSMW could help
    See [note 384462|https://service.sap.com/sap/support/notes/384462]
    With ECC 2005, a synchronisation class can help a lot. See class VMD_EI_API.
    With ECC 2005 ehp3, you have an eSOA service to create vendor asynchronously. Not all fields are supported.
    In other words, just create a BAPI to transfert your own parameters then either make a batchinput which will call XK01/XK02 in batch, either trigger class VMD_EI_API
    BR
    Alain

  • LSMW for  Vendor Master using Batch Input/Direct

    Hi Folk,
    I'm trying to create a LSMW for  Vendor Master using Batch Input/Direct Input and in the step Create Batch Inout Session a error message appears:
    Trans.     1 XK01: Acct already exists; general area not being processed.
    Can somebody help me with this...........

    Hi,
    Check manually create vendor. Check with recording steps means strucutre creadred while you choose BDC recording option. With same data r u able to create vendor.
    Regards
    Md.MahaboobKhan

  • Conflict in recording and filed mapping in LSMW For vendor balances

    Hi,
    I am trying to create an upload for vendor initial balances upload through f-02. now while creating a simple invoice i have to give input in following fields:
    1) Document date
    2) Document type
    3) Company Code
    4) Posting Date
    5) Posting Key
    6) Account
    7) Amount
    8) Base line date
    9) Posting Key
    10) Account
    11) Amount
    This is the sequence in which following transaction is posted:
    Initial Balance Upload Account      Dr
                                                           Vendor Cr
    Now every thing is fine. after recording the system shows me the exact fields that i gave input during my recording. but when i go for further, in step 5 (Maintain Field Mapping and Conversion Rules) I can not find  fields from step 9 to 11. i further found that this is because the input fields 9 to 11 are exactly same as 5 to 7. this is why system removes them considering them to be a duplication. can anyone help me in this regards and tell me how can we create vendor balance upload through f-02?
    Regards,

    Solved any one facing the same problem can view the solution bellow:
    I was right about system behavior. what system do is it excludes all duplication of fields. to fix this all you have to do is change the names of your fields after recording so that system can consider them to be separate fields.

  • Error while creating vendor bank details using MAINTAIN_BAPI of class VMD_ei_api

    hi, iam using maintain_bapi of class vmd_ei_api for bank details creation at the time of vendor creation. but im getting error: ' Invalid address:bank Country missing'.please suggest
    *    *** Bank details***************************************
        DATA: lt_bankdetails TYPE TABLE OF cvis_ei_cvi_bankdetail,
              ls_bankdetails TYPE cvis_ei_cvi_bankdetail.
        ls_bankdetails-data_key-banks = 'DE'. "Bank Country
        ls_bankdetails-data_key-bankl = 'BEBEDEBB'.     "Bank Key..
        ls_bankdetails-data_key-bankn = '3538174400' ."Bank account number.
        ls_bankdetails-data-bvtyp     = 'USA'.
        ls_bankdetails-data-bkref     = 'BEN'.           "Reference details.
        ls_bankdetails-datax-bvtyp     = 'X'.
        ls_bankdetails-datax-bkref     = 'X'.           "Reference details.
        ls_bankdetails-task            = 'I'.
        ls_bankdetails-data-iban      = 'DE24100200003538174400'.
        ls_bankdetails-datax-iban      = 'X'.
        APPEND  ls_bankdetails TO lt_bankdetails.
    *CLEAR : ls_bankdetails.
    *    ls_bankdetails-datax-iban      = 'X'.
    *   APPEND  ls_bankdetails TO lt_bankdetails.
    *  Inserting bank details,,,,
        ls_bank-bankdetails = lt_bankdetails[].
        ls_bank-current_state = ''.
        ls_vendors-central_data-bankdetail = ls_bank.
    And second question how/which method to use from this class to update bank details latter. Is it possible after creating vendor with mandatory fields and then update bank details?

    Hi Abhijeet,
    please check in transaction FI01, about your data consistencies. You can use this wiki help in terms of Address, it it found any useful facts for you
    Address Checks - Business Address Services (BC-SRV-ADR) - SAP Library

  • Mandatory fields to create vendor and PO

    Hi all,
    I am migrating data from legacy system to ECC and to SRM. I found mandatory fields in ECC and I am not sure what are the mandatory fields for SRM. I need for Vendor creation(Foreign vendors also) and open PO. Please reply.
    Regards,
    Balaji

    Hi
    <b>Use the function module BBP_VENDOR_GET_NON_BAPI to create a vendor directly in SRM.</b>
    <u>Function module - BBP_VENDOR_GET_NON_BAPI</u>
    <u>Program</u> - <b>BBP_VENDOR_GET_DATA</b>
    <u>BAPI</u> - <b>META_BUSINESS_PARTNER_CREATE</b>
    <u>Also look at Function module - BBP_UPDATE_ATTRIBUTES.</u>
    <b><u>Did you created any PO using that "bapi_poec_create"..? Don't forgot to add a commit work in your program.</u></b>
    You will have to develop your own XML mapping to create a PO in SRM.
    You can use BAPI_POEC_CREATE (read SE37 documentation about GUIDs).
    This one also uses internal functions BBP_PD_PO_CREATE, UPDATE & SAVE.
    You don't have to take care of GUIDs. This function will generate them for you. You can pass the PO number as PO header GUID, and PO items as PO item GUIDs. This will make the links as well.
    <u>Please go through this as well -></u>
    Re: Upload PO from XML file in SRM
    Creating a PO with ME_CREATE_PO_ITEM
    Re: Function Module/BAPI to create vendors in PPOMV_BBP
    Re: BBP_PD_PO_CREATE
    Create PO
    <u>Hope this will definitely help. Do let me know.</u>
    Regards
    - Atul

  • Run time error while create Vendor master via MK01

    Dear Experts,
    when i try to create vendor master by MK01.....system throws run time error as below:
    "The exception 'CX_BADI_MULTIPLY_IMPLEMENTED' was raised, but it was not caught
    anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
    'CVI_MAP_TITLE=================CP' has to be
    terminated."
    My current system is ECC 6 along with DBM. Business partner configuration is activated in the current system. I am getting this error after BP configuration. Could you please help me to fix this issue?.......Is it due to configuration or a dump from abap program?
    Regards
    Vetrivelan

    Hii,
       please search sdn before posting the threads.
    check these  links, it may help u............
    Short Dump - CX_BADI_MULTIPLY_IMPLEMENTED - BADI Q1SR1
    Short Dump - CX_BADI_MULTIPLY_IMPLEMENTED - BADI Q1SR1
    CX_BADI_NOT_IMPLEMENTED
    thanks.

  • Creating Vendor Master Records from HR Master Records

    Dear Experts,
    I have been using t-code PRAA to create vendor master records from HR master records.  The client would like to have one vendor number for a group of employees (in this case external contractors all working for the same company).  The system won't allow me to link several PERNR to one LIFNR (i.e. error message).
    Is it, however, possible to do this?
    Thank you.
    Edited by: Philip on Jan 14, 2011 9:58 PM

    Hi ,
    PRAA has one to one relation ship , means it created 1 vendor for 1 employee .
    If you are using PERNR then you cant use one vendor to may PERNR .
    Either create them as individual vendor or else have a manual control system in place where in you will have to create a dummy PERNR and then allocate all the cost to this invidual vendor , if you are paying the check to only 1 contractor for say 100 contract employees you can use this .
    else it is a better mechanism and control to have 1 is to 1 in case of employee to vedor .
    Regards ,
    Dewaang T.

  • Is it possible to create vendors with same name and city in FK01?

    Hi All,
    I need to create vendor through transaction FK01.
    I need to create two vendors:
    1. Name-Abdul, City-Hyderabad, Country-India.
    2. Name-Abdul, City-Hyderabad, Country-Pakistan.
    Is it possible to create in such a way.
    Please help.
    Thanks in advance.

    Hi Gautam,
    yes it's possible, because the key is only LIFNR.
    The address can be as you want.
    regards, Dieter

  • How to get table having successfully created Vendor's Iban number.

    Hi All,
    Iam creating vendor using Maintain_Bapi of class VMD_EI_API. While creating bank deatils for some reason bank iban is not populating (when im checking it in XK03) apart from that other bank details are populating.  So, how can i check after vendor creation that particular vendor ' s IBAN is created or not.
    iam getting input values for vendor bank details i.e IBAN, Bank country key,Bank Key and Bank account from user.
    Is ther any function or bapi to check whther Iban is successfully created or not.
    Or what is the table storing IBAN for a successfully created/populating vendor.

    Hi Bohuslav,
    I check wid everything , the value of IBAN is not coming in  VMDS_EI_MAIN-VENDORS (imporing parameter ). Its blank whether value  IBAN created or not.Apart from IBAN all other bank details like bank country & bank key are fetched.
    Also i think its fetching value from vendor table i.e LFA1. Since this table doesnt have IBAN field so its not showing.Kindly suggest any table from where i could get successfully populated IBAN value for a generated vendor. IS ther ne valid link between TIBAN(general table for IBAN)
    and LfA1.
    Below is code snippet for Get_data method i used.
    * Call the Method for creation of Vendor.
    CALL
    METHOD
    vmd_ei_api=>maintain_bapi
    EXPORTING
    is_master_data = gs_vmds_extern
    IMPORTING
    es_master_data_correct = gs_vmds_succ
    es_message_correct = gs_succ_messages
    es_master_data_defective = gs_vmds_error
    es_message_defective = gs_err_messages.
    IF
    gs_err_messages-is_error IS
    INITIAL
    COMMIT
    WORK
    CLEAR
    : gs_vmds_extern ,ls_vendors,lt_vendors[].
    ls_vendors-header
    -object_instance-lifnr = gv_lifnr.
    ls_vendors-header
    -object_task = 'M'
    APPEND
    ls_vendors TO
    lt_vendors.
    gs_vmds_extern-vendors = lt_vendors[].
    DATA
    : vmds_ei_main TYPE
    vmds_ei_main,
    cvis_message TYPE
    cvis_message,
    ls_lifnr TYPE
    lfa1,
    ls_bank TYPE
    cvis_ei_bankdetail,
    lv_iban TYPE
    iban.
    * *** Bank details***************************************
    DATA
    : lt_bankdetails TYPE
    TABLE
    OF
    cvis_ei_cvi_bankdetail,
    ls_bankdetails TYPE
    cvis_ei_cvi_bankdetail.
    CALL
    METHOD
    vmd_ei_api_extract=>get_data
    EXPORTING
    is_master_data = gs_vmds_extern
    IMPORTING
    es_master_data = vmds_ei_main
    es_error = cvis_message.
    CLEAR
    ls_vendors. REFRESH
    lt_vendors.
    lt_vendors = vmds_ei_main-vendors.
    READ
    TABLE
    lt_vendors INTO
    ls_vendors INDEX
    1
    IF
    sy-subrc = 0
    ls_lifnr-lifnr = ls_vendors-header
    -object_instance-lifnr. "Fetch vendor number.
    lt_bankdetails = ls_vendors-central_data-bankdetail-bankdetails.
    READ
    TABLE
    lt_bankdetails INTO
    ls_bankdetails INDEX
    1
    IF
    sy-subrc = 0
    lv_iban = ls_bankdetails-data
    -iban.
    ENDIF
    ENDIF

Maybe you are looking for