Vendor creation using LSMW

Hi All,
I m  trying to do vendor creation in LSMW method using RFBIKR00 program,please any one guide me I strucked in 2 Maintain Source Structures after this cursor not moving to next radio button even though I done for next steps final it is not reading the data,pls help me out..
Thanks n regds,
sree.

Hi
Check these links..might prove useful
[http://www.sapdb.info/wp-content/uploads/2008/08/lsmw.pdf|http://www.sapdb.info/wp-content/uploads/2008/08/lsmw.pdf]
Regards
Raj

Similar Messages

  • Need Sample Code for Vendor creation using JAVA API

    Hi,
    I have a scenario like Vendor creation using <b>Java API</b>.
    1.I have Vendors (Main) Table.
    2.I have <b>look up</b> tables like Account Group.
    3.Also <b>Qualifier table</b>(Phone numbers) too.
    Could you please give me the sample code which helps me to create Vendor records using Java API?
    <b>I need Code samples which should cover all of the above scenario.</b>
    <b>Marks will be given for the relevent answers.</b>
    Best Regards
    PK Devaraj

    Hi Devraj,
    I hope the below code might solve all your problem:-
    //Adding Qualified field
    //Creating empty record in Qualifed table 
    //Adding No Qualifiers
    Record qualified_record = RecordFactory.createEmptyRecord(new TableId(<TableId>));
    try {
    qualified_record.setFieldValue(new FieldId(<fieldId of NoQualifier), new StringValue(<StringValue>));//Adding No Qualifier
    catch (IllegalArgumentException e2) {
    // TODO Auto-generated catch block
    e2.printStackTrace();
    catch (MdmValueTypeException e2) {
    // TODO Auto-generated catch block
    e2.printStackTrace();
    //Creating Record in Qualified table
    CreateRecordCommand create_command = new CreateRecordCommand(connections);
    create_command.setSession(sessionId);
    create_command.setRecord(qualified_record);
    try
    create_command.execute();
    catch(Exception e)
    System.out.println(e.toString());
    RecordId record_id = create_command.getRecord().getId();
    //Adding the new record to Qualifed Lookup value and setting the Yes Qualifiers
    QualifiedLookupValue lookup_value = new QualifiedLookupValue();
    int link = lookup_value.createQualifiedLink(new QualifiedLinkValue(record_id));
    //Adding Yes Qualifiers
    lookup_value.setQualifierFieldValue(0 , new FieldId(<FieldID of Yes Qualifier>) , new StringValue(<StringValue>));
    //Now adding LookUP values
    //Fetch the RecordID of the value selected by user using the following function
    public RecordId getRecordID(ConnectionPool connections , String sessionID , String value , String Fieldid , String tableid)
    ResultDefinition rsd = new ResultDefinition(new TableId(tableid));
    rsd.addSelectField(new FieldId(Fieldid));
    StringValue [] val = new StringValue[1];
    val[0] = new StringValue(value);
    RetrieveRecordsByValueCommand val_command = new RetrieveRecordsByValueCommand(connections);
    val_command.setSession(sessionID);
    val_command.setResultDefinition(rsd);
    val_command.setFieldId(new FieldId(Fieldid));
    val_command.setFieldValues(val);
    try
         val_command.execute();
    catch(Exception e)
    RecordResultSet result_set = val_command.getRecords();
    RecordId id = null;
    if(result_set.getCount()>0)
         for(int i = 0 ; i < result_set.getCount() ; i++)
         id = result_set.getRecord(i).getId();     
    return id;
    //Finally creating the record in Main table
    com.sap.mdm.data.Record empty_record = RecordFactory.createEmptyRecord(new TableId("T1"));
    try {
         empty_record.setFieldValue(new FieldId(<FieldId of text field in Main table>),new StringValue(<StringValue>));
         empty_record.setFieldValue(new FieldId(<FieldId of lookup field in Main table>), new LookupValue(<RecordID of the value retrieved using the above getRecordID function>));
    empty_record.setFieldValue(new FieldId(<FieldId of Qualified field in Main table>), new QualifiedLookupValue(<lookup_value>));//QualifiedLookUp  value Retrieved above
    } catch (IllegalArgumentException e1) {
    // TODO Auto-generated catch block
         e1.printStackTrace();
    } catch (MdmValueTypeException e1) {
         // TODO Auto-generated catch block
         e1.printStackTrace();
    //Actually creating the record in Main table
    CreateRecordCommand create_main_command = new CreateRecordCommand(connections);
    create_main_command.setSession(sessionId);
    create_main_command.setRecord(empty_record);
    try
         create_main_command.execute();
    catch(Exception e)
         System.out.println(e.toString());
    Thanks
    Namrata

  • Mass vendor creation through LSMW

    Hi,
    Could you please let me know the mass vendor creation through LSMW also let me know the text file format?
    Regards
    Nama

    Hi Chandrashekar
    It is very easy to create the LSMW structure for the Vendor load, First thing you have to do is to get all the fields that the business wants to be inputed when you are XK01. Than create a LSMW recording and assign the recording to the structure.
    I can guide you with the creation. I do have a PDF for LSMW which will be very helpful for guidance, But how do i share?

  • Vendor creation using bapi

    Hi experts,
    I am new to bapi concept I done vendor creation by using bdc and lsmw and now I want to create by using bapi can anyone send program code for creating so that I can go through it.
    thanks in advance,
    points will be rewarded,
    Srinivas.D

    hi
    I gone to the bapi function module for bapi_vendor_create etc but the problem their is no input parameters or tables so I am little bit of confused if any body has the code plz send me.
    Regards,
    SrinivasD

  • Error in vendor upload using LSMW

    Hi all,
    If I create central vendor manually using XK01, fields for postal code and city in 'street address' are optional. But if I try to upload vendors with LSMW and with central management active, these fields becomes mandatory. Can anyone tell me what will be the reason and how to make those fields optional?
    In account group field status, these fields are optional.
    Thanks in advance,
    Nikhil Ankalikar

    Hi,
    Instead of Standard(Direct Input Method) use, the 2nd Method Batch Input Recording, where you can do recording, so that there will not be any issue.
    Cheers..
    Santosh

  • Sales order creation using LSMW

    Hi All,
    I am creating open sales order (VA01) using LSMW where I am using BAPI: BUS2032 and Method CREATEFROMDAT2.
    I need to pass multiple line items for the same Header data, but the LSMW is creating multiple sales orders with a single line item every time.
    I tried giving "on_change_transfer_record" after Header record but that doesn't work.
    Can anyone suggest any suitable solution for this using BAPI only other than BDC, report program etc.
    Thanks in Advance
    Asif Ali Khan

    Hi Asif Khan,
    Please check this link
    BAPI_SALESORDER_CREATEFROMDAT2 - Sales Order Create
    http://sap-img.com/abap/bapi-salesorder-createfromdat2.htm
    Best regards,
    raam

  • SA Creation using LSMW BAPI BUS2013

    Hi,
    We have requirement for uploading open SA in to ECC and would need your help in LSMW, after analyzing I think best option to upload / create open SA is using BAPI method of LSMW as there is standard BAPI available BUS2013. But I have never used this method before though I am  well aware of recording method of LSMW. Please let me know how to proceed on LSMW using standardd BAPI.
    Step1- Maintain Object Attributes is done -
    BUS2013
    CREATE
    PURSAG_CREATE
    PURSAG_CREATE01
    Step2- Maintain Source Structure -
    Do we need to create 2 different structures here i.e. One for Header and One for item? If yes is it going to be at same level or lower level?
    Also need help for next 4 steps.
    Thanks
    Vihaan

    Hi Jurgen,
    Sorry didn't get you as I got stuck at step 2, please see how I did till now and provide your valuable input:
    Step 2 - Maintain Source Structures
           Created one Headerdata structure - HDATA
                Create one Itemdata structure - IDATA (IDATA is created as lower level of HDATA)
    Step3 - Maintain Source Fields
      Under HDATA:
               IDENTIFIER      C(001)  IDENTIFIER
               LIFNR              C(010) VENDOR
               EVART           C(004) SA DOCTYPE
               EKORG           C(004) PORG
               EKGRP           C(004) PRGP
               KDATE           C(008) Validity End Date
    Under IDATA:
              IDENTIFIER      C(001)  IDENTIFIER
              MATNR           C(018) Material Numer
              KTMNG           C(016) Tar Qty
              NETPR            C(013) Price
              WERKS           C(004) Plant
              LGORT           C(004) Storage location
    Step4 - Maintain structure relations
    Structure Relations
           E1PURSAG_CREATE        Header segment                                               <<<< HDATA SA HEADER DATA
               E1BPMEOUTHEADER        Header Data Outline Agreement                                <<<< HDATA SA HEADER DATA
       E1BPMEOUTITEM          Item Data of Contract                                        <<<< IDATA   SA Item Data
           E1BPMEOUTITEM1         Item Data of Contract                                        <<<< IDATA   SA Item Data
       E1BPMEOUTITEMX         Item Data Change Parameter for Outline Agreement             <<<< IDATA   SA Item Data
       E1BPMEOUTACCOUNT       Account Assignment Data - Outline Agreement                  <<<< IDATA   SA Item Data
    Stpe5 - Maintain filed mapping and Conversion rules
    Have mintained all the filed mapping like plant, material PORG etc.
    Step7 - Specify file - Done
    Step8- Assign file??? Here I am assigning file to HDATA structure only and not able to asign file to IDATA
    Source Structures and Files
           HEADERDATA SA HEADER DATA
                      SA Creation - TEST C:\Users\XME31L.txt
               ITEMDATA SA Item Data
    Here I would like to know how to create file considering above structure, do I need to create a single file with Header and Item fields in that? if Yes, then how to place it on excel - (like first row header column fields, second row - header field values and then in third row Item coloumn fields and 4th row item values)
    OR I need to create two different files one for header fields and one for item fields and then aissgn them to HDATA and IDATA respectively?if Yes, then I am not able to aissgn file to IDATA as it gives error saying "File XME31L.txt can only be assigned to one source structure.
    Please help me here
    Thanks
    Vihaan

  • PO creation using LSMW through batch input method

    Hi, I am new to working with LSMW and i have completed a project for creating purchase orders using the direct data input method. I need to do the same using batch input method, however in the maintain structure relationship step, it is only allowing me to assign one structure to the recording that i have done, however in po creation we need separate (nested) structure for header and line item, could anybody help me past this please?

    Hi Rudra!
    OK, now you just know, why you have only one line, not multiple PO item lines. To get a dynamic number of items, you need a complex program - just like standard direct input.
    If you need a field, which is not part of this program, don't try to write your own program for batch input - it's just to much work before you have a good result.
    You can use Bapi method instead with BAPI_PO_CREATE1. This can handle a lot of fields and there is some documentation available how to fill the Bapi.
    If this looks to complicated in the first moment, think about creation of POs via direct input and a small batch recording to change your additional field(s) afterwards. (You can select EKPO table to generate list of 'wrong' migrated orders for input in LSMW.) Use field 'Item' in the bottom of ME22 to position your desired line in first screen line, just change one PO-line after one other (every time a 'save' -> no problem with different number of lines / PO).
    Regards,
    Christian

  • Sales Order Creation using LSMW IDOC method.. ( Custome Interface)

    Hi ABAP'rs,
                     Please provide me LSMW steps for creating Sales Order using IDOC method.
                            Thanks and Regards,
                                                  Param.

    LSMW-IDOC in General
    LSMW – Step by Step Guide: Legacy System Migration Workbench is an R/3 Based tool for data transfer from legacy to R/3 for one time or periodic transfer.
    Basic technique is Import data from Spreadsheet / Sequential file, convert from source format to target format and import into R/3 database. LSMW not part of standard R/3, if we need this product email [email protected]
    Advantages of LSMW:
    • Most of the functions are within R/3, hence platform independence.
    • Quality and data consistency due to standard import techniques.
    • Data mapping and conversion rules are reusable across projects.
    • A variety of technical possibilities of data conversion.
    • Generation of the conversion program on the basis of defined rules
    • Interface for data in spreadsheet format.
    • Creation of data migration objects on the basis of recorded transactions.
    • Charge-free for SAP customers and partners.
    Working With LSMW:
    Use TCODE LSMW
    Objects of LSMW:
    •Project – ID with max of 10 char to Name the data transfer project.
    • Subproject – Used as further structuring attribute.
    • Object – ID with max of 10 Characters, to name the Business object .
    • Project can have multiple sub projects and subprojects can have multiple objects.
    • Project documentation displays any documentation maintained for individual pop ups and processing steps
    User Guide: Clicking on Enter leads to interactive user guide which displays the Project name, sub project name and object to be created.
    Object type and import techniques:
    • Standard Batch / Direct input.
    • Batch Input Recording
       o If no standard programs available
       o To reduce number of target fields.
       o Only for fixed screen sequence.
    • BAPI
    • IDOC
    o Settings and preparations needed for each project 
    Preparations for IDOC inbound processing:
    • Choose settings -> IDOC inbound processing in LSMW
    • Set up File port for file transfer, create port using WE21.
    • Additionally set up RFC port for submitting data packages directly to function module IDoc_Inbound_Asynchronous, without creating a file during data conversion.
    • Setup partner type (SAP recommended ‘US’) using WE44.
    • Maintain partner number using WE20.
    • Activate IDOC inbound processing.
    • Verify workflow customizing.
    Steps in creating LSMW Project:
    • Maintain attributes – choose the import method.
    • Maintain source structure/s with or without hierarchical relations. (Header, Detail)
    • Maintain source fields for the source structures. Possible field types – C,N,X, date, amount and packed filed with decimal places.
    • Fields can be maintained individually or in table form or copy from other sources using upload from a text file
    • Maintain relationship between source and target structures.
    • Maintain Field mapping and conversion rules
    • For each Target field the following information is displayed:
    o Field description
    o Assigned source fields (if any)
    o Rule type (fixed value, translation etc.)
    o Coding.
    o Some fields are preset by the system & are marked with Default setting.
    • Maintain Fixed values, translations, user defined routines – Here reusable rules can be processed like assigning fixed values, translation definition etc.
    • Specify Files
    o Legacy data location on PC / application server
    o File for read data ( extension .lsm.read)
    o File for converted data (extension .lsm.conv)
    • Assign Files – to defined source structures
    • Read data – Can process all the data or part of data by specifying from / to transaction numbers.
    • Display read data – To verify the input data being read 
    Convert Data – Data conversion happens here, if data conversion program is not up to date, it gets regenerated automatically.
    • Display converted data – To verify the converted data
    Import Data – Based on the object type selected
    • Standard Batch input or Recording
    o Generate Batch input session
    o Run Batch input session
    • Standard Direct input session
    o Direct input program or direct input transaction is called
    BAPI / IDOC Technique:
    • IDOC creation
    o Information packages from the converted data are stored on R/3 Database.
    o system assigns a number to every IDOC.
    o The file of converted data is deleted.
    • IDOC processing
    o IDOCS created are posted to the corresponding application program.
    o Application program checks data and posts in the application database.
    Finally Transport LSMW Projects:
    • R/3 Transport system
    o Extras ->Create change request
    o Change request can be exported/imported using CTS
    • Export Project
    o Select / Deselect part / entire project & export to another R/3 system
    • Import Project
    o Exported mapping / rules can be imported through PC file
    o Existing Project data gets overwritten
    o Prevent overwriting by using
    ‘Import under different name
    • Presetting for Inbound IDOC processing not transportable.
    Reward if useful.
    regards
    santhosh reddy

  • FK01- Vendor created using LSMW (batch input recording)

    Hi,
    I have created an LSMW for Creating vendor. While doing the recording I gave the telephone number 2 TELF2 dield also. But when I upload the vendors, that field is coming blank. Is there any specific reason for that? Appreciate your help.
    Thanks and Regards
    Madhu Vutukuri

    HI,
    Check the fields you have created in 'Source Structure and file you are attaching columns' if it exactly matching then check in 'Maintain Field Mapping and Conversion Rules'.
    Try once and assign points if useful.
    Sarma BH

  • How to maintain inspection type at the time of material creation using LSMW

    Hi All,
    I have a differnet Issue.
    I am using a std. LSMW to create the materials.
    But now using same LSMW i have to maintain Inspection types(ART-RMQAM) for the materials to be created.
    How this can be done.
    This filed is not found in any structures like BGR....to  BMMH8
    Can I create such a structure ??
    Amol

    Some need the hard answer: it is not possible in one go.
    It is an embedded functionality in material master like classification, but it is not stored in a material master table.

  • Sales Order Creation using LSMW-BAPI.

    Hai,
         While executing a 14th step in LSMW-BAPI,the IDOC is generated.While Testing the IDoc the values for the Header segment alone is displayed.The Segment sfor Item is not Displayed.Should there be any link between Header & the ITem.
    Regards,
    Padmam.

    Hi,
    Can u tell me the steps to create a sales order using idoc, i've created a bapi but thats a temprory use. I wanted to created a sales order automatically when a purchase order is saved.
    Please let me know if u can help me, i wanted to do it using idoc
    Regards
    Sanju

  • Vendor creation using RFC

    hi,
    I want to use RFC FM for creating the vendor. So far i have used VENDOR_INSERT, but it doesnt updates ADRC table(I think so) so is there any alternate FM apart from BAPI_VENDOR_CREATE(coz it need data to be filled online).
    Please suggest any FM which satisfies the above need.
    Regards,

    Hi,
    Not sure about a RFC other than BAPI_VENDOR_CREATE..
    can you use batch input program RFBIKR00
    Thanks
    Naren

  • Vendor creation using fm 'Vendor_insert'

    Hi experts,
    I want to create vendor using the FM 'VENDOR_INSERT'. But the problem is I am unable to know what are the required fields to be given in the import structures (ie LFA1,LFB1,LFM1) .
    Could you please suggest the way to run this FM with minimum data?
    Thanks and regards,
    Ramkishore

    hI,
    Why don't you use the Function module BAPI_VENDOR_CREATE to create a Vendor
    Regards
    Sudheer

  • Reg : Routing creation using LSMW

    Hi Experts,
    I am trying to post routing details using the LSMW. when I am creating it manually it is going fine. But in the LSMW it is throwing an error saying 'Group canot be assigned to the material and plant'.
      Could any of you provide me a solution for this.
    Regards,
    Ramkishore.

    If your structure assingment is correct. Then problem is not with the LSMW.
    I think this is due to the test data that you are using it.
    Could you please try to create routing manually by using your full set data, i think you face this error.
    Please check with the functional consultant, he can answer the error.
    Thanks,

Maybe you are looking for

  • I want to print photo's from my I3. They appear to be saved in photo cache but they wont open. Only way seems to be to e-mail to myself, any help?

    I can't print photos taken from my phone. After syncing they appear in a photo cache but wont open and the software from my printer can't do it either. Also tried searching and having Iphone plugged in whilst printing and the printer also can not fin

  • Creating Asset from Requisition???

    I need to know the detailed steps to create a Fixed Asset from Requisition (iProc)? Please give me detailed steps along with configuration needed?

  • IR highlight row error

    Hi, I have two columns in IR - Amount to be paid - Paid amount I would like to highlight rows that have remain amount =0 so I created a Compute column Name Remain Amount = Amount to be paid - Paid amount and created highlight condition where Remain A

  • Files being saved when i don't save them

    I was browinf thought my finder the other day, and found several things (electric bill PDF, etc), that I had viewed, but NOT saved, that were saved to my computer anyway. Wnyone know why this happened? I don't want everything little thing I look at b

  • Sending text messages

    I have a staff of 50 people.  My old phone was only able to send 10 texts at a time so I had to do the same thing 5 times when I wanted to send them all a message.  Is the Tour able to send 50 messages at once, or will I have to send the same message