Problem with LSMW ?

Hi all,
i have a dought regarding can we use <b>Batch session</b> and <b>call transaction</b> methods in LSMW ?

Hi,
LSMW does not supports call transaction methods.
It supports only Batch input session, Recording, BAPI & Idoc methods.
Following are the steps to create the LSMW Procedure through Batch Input Session Method.
Using Tcode MM01 -- Maintain the source fields are
1) mara-amtnr  char(18)
2) mara-mbrsh  char(1)
3) mara-mtart  char(4)
4) makt-maktx  char(40)
5) mara-meins  char(3)
the flate file format is like this as follows
MAT991,C,COUP,Srinivas material01,Kg
MAT992,C,COUP,Srinivas material02,Kg
AMT993,C,COUP,Srinivas material03,Kg
MAT994,C,COUP,Srinivas material04,Kg
MAT995,C,COUP,Srinivas material05,Kg
goto Tcode LSMW
give Project Name
     Subproject Name
     object Name
Press Enter -
Press Execute Button
It gives 13 radio-Button Options
do the following 13 steps as follows
1) select radio-Button 1 and execute
   Maintain Object Attributes
select Standard Batch/Direct Input
   give Object -- 0020
       Method -- 0000
   save & Come Back
2) select radio-Button 2 and execute
   Maintain Source Structures
   select the source structure and got to click on create button
   give source structure name & Description
   save & Come Back
3) select radio-Button 3 and execute
   Maintain Source Fields
   select the source structure and click on create button
   give
   first field
        field name    matnr
        Field Label   material Number
        Field Length  18
        Field Type    C
   Second field
        field name    mbrsh
        Field Label   Industrial Sector
        Field Length  1
        Field Type    C
   Third field
        field name    mtart
        Field Label   material type
        Field Length  4
        Field Type    C
   fourth field
        field name    maktx
        Field Label   material description
        Field Length  40
        Field Type    C
   fifth field
        field name    meins
        Field Label   base unit of measurement
        Field Length  3
        Field Type    C
  save & come back
4) select radio-Button 4 and execute
   Maintain Structure Relations
   go to blue lines 
      select first blue line and click on create relationship button
      select Second blue line and click on create relationship button
      select Third blue line and click on create relationship button
  save & come back
5) select radio-Button 5 and execute
   Maintain Field Mapping and Conversion Rules
   Select the Tcode and click on Rule button there you will select constant
   and press continue button
   give Transaction Code : MM01 and press Enter
   after that
   1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter
   2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter
   3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter
   4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter
   5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter
  finally     
  save & come back
6) select radio-Button 6 and execute
   Maintain Fixed Values, Translations, User-Defined Routines
   Create FIXED VALUE Name & Description as MM01
   Create Translations Name & Description as MM01
   Create User-Defined Routines Name & Description as MM01
   after that delete  all the above three just created in the 6th step
   FIXED VALUE --MM01
   Translations --MM01
   User-Defined Routines --MM01
   come back
7) select radio-Button 7 and execute
   Specify Files
   select On the PC (Frontend) -- and click on Create button(f5)
                                  give the path of the file like "c:\material_data.txt"
                                  description : -
                                  separators as select comma radiao- button
   and press enter   save & come back
8) select radio-Button 8 and execute
   Assign Files
   Save & come back
9) select radio-Button 9 and execute
   Read Files
   Execute
   come back
   come back
10) select radio-Button 10 and execute
    Display Imported Data
    Execute and press enter
    come back
    Come back
11) select radio-Button 11 and execute
    Convert Data
    Execute
    come back
    Come back
12) select radio-Button 12 and execute
    Display Converted Data
    Execute & come back
13) select radio-Button 13 and execute
    Start Direct Input Program
   select the Program
   select continue button
go with via physical file
give the lock mode as 'E'
and execute
Regards
Sreeni

Similar Messages

  • Problem with LSMW - G/L Account Centrally for 2 or more Company Codes.

    Hi,
    I have a problem with an LSMW  G/L Account Centrally Master Data.
    I used the Object: 0010   GL A/C Master Record, and the Method: 0001   Hier. structure.
    I can create massives Accounts but I can't create Same Accounts with differents Company Codes.
    Please, somebody can explain me, how create Same Accounts with differents Company Code in masive form with LSMW?
    Thanks and Regards!

    Try this report RFBISA10:  "Copy General Ledger Account Master Data: Send"
    or RFBISA20: "Copy G/L Account Master Data in Target Company Code: Receive"
    Bye.

  • Problem with LSMW infotype 1950 recording

    Hi !
    When I use The LSMW recording facility to play in a PO10 Properties (HR infotype 1950) I get error in the process step when the pgm action to the =UPD command  is to clear all the screens fields (pgm MP195000 screen 2000).
    I see that when LSMW process step is running sets sy-datar to "X" when MP195000 screen 2000 is executing and then a clear step executes
    ....but it do not be the same with manually infotyp input  by the same screens.
    Can some one help me  with this problem?

    Can I import it from the QA Client....there are lot of recording in this project , in which I just want to export/import only one project , how can I do that .

  • Problems with LSMW and TAXKD

    Hello all, first of all I want to state that I'm a total newbie to LSMW
    I'm trying to update our customer master with tax classifications.
    I have 19 rows to be updated with data and the problem is that the window where
    the data should be entered shows only 15 rows so I get the following message: Field KNVI-TAXKD(15) does not exist in the screen SAPMF02D 1350 (the same message for KNVI-TAXKD(16),KNVI-TAXKD(17),KNVI-TAXKD(18),KNVI-TAXKD(19).
    It took me alot of time to realize that the rows that gets updated is the first 15 that is visable in the window. Does anyone know how to get around this?
    BR
    Mats

    hi,
    i have used debmas to extend customer . you can also use this option to create customer. in case your customer is already created and you want to extend it for sales and company code view. use msgfn(message function) as 005 . in case you are creating a customer and all mandatory field values are provided in extract file then you can set value of msgfn as initial(dont map) and then use idoc to populate the data.
    this should solve your problem...
    reward points if found successfull.
    regards
    pragya

  • Hi Problem with LSMW-IDOC message type COND_A(COND_A02)

    hi Experts,
    I am using LSMW-IDOC to create the condition record for transcation code(XK15) when i am executing i am generating successfully idoc i can see the updated vales in TK15 tcode, the data base is getting updated the problem is the scale id is increaminting automatically i should increament the scaleid i am passing the scale id that scale id should be displayed in Tk15 but the scale id is increamenting.......
    its urgent requirement...

    Hi,
    Thanks. But still I don't see values.
    I have a question in chang pointer.
    When I change the values in the table( Segment data ) for IDOCs, an IDOC should be generated
    Other words, When I change any application, an IDOC should be generate.
    What should I do, I think Change pointer is required for this to geneate idoc for change of application/data.
    In BD50 I see the change pointer is active for my custom message type.
    May be I'm  misunderstanding about change pointer.
    can you help me out.
    Venkata

  • Problem with LSMW Mapping

    Hi,
    I am new to SAP. I am facing problem in mapping the Customer master Tax Fields in LSMW. I am uploading customer master records from flat file using LSMW and in KNVI table, I am not able to populate the two tax classification values.I've tried it for one country and was successful. But I am not able to populate for two countries at a time.Any suggestions on this problem?

    Just went thru the program documentation and found this.
    For taxes, only "valid" records may be transferred, that is, BKNVI-ALAND must be the country of the sales organization or one of the plants belonging to it, and BKNVI-TATYP must be allocated to this country via table TSTL. These two fields must be transferred. Furthermore, note that the tax classification BKNVI-TAXKD for the tax type is permitted (table TSKD).
    When transferring tax data using batch input, you should also note that the data is always transferred to the step loop screen 1350 of module pool SAPMF02D. This is also the case if there is only one relevant tax rate (country/tax type/tax classification). In this case, screen 1350 would not apply online and the tax classification would be maintained on screen 0320 (billing document).
    In batch input, however, tax data must never be transferred to screen 0320, otherwise a termination occurs.
    Screen 1350 follows screen 0320 in the process flow. The complete datasets (KNVI-ALAND, KNVI-TATYP and KNVI-TAXKD) are to be transferred in each case. You should consider the tax determination, and in particular the contents of table KNVI before structuring the batch input process online.

  • Problem with LSMW - RFBIBL00 "FI_INVOICES: No terminations have been found"

    Hi experts,
    Hope you can help me.
    I'm trying to load open invoices into SAP from a legacy system using LSMW. I defined all the structures and finished all the step but didn't load any data. I looked at the converted data and everything looks Ok.
    This is the log:
    FB018                    File P2P_GRANITE_VENDORS_FI_INVOICES.lsmw.conv is being checked
    FB012                    Session 1 : Special character for 'empty field' is /
    FB019                    Session 1 session name FI_INVOICES : No terminations have been found
    Following further information about the LSMW:
    Object: 0100
    Method: 0000
    Program: RFBIBL00
    Program Type: D
    Source structures (linked by CNT field)
    INV_HEAD:
    Company Code (BUKRS), Fiscal Year (GJAHR), Document Type (BLART), Posting Date (BUDAT), Document Date (BLDAT), Document Header Text (BKTXT), Reference Document Number (XBLNR), Currency Key (WAERS), Count (CNT)
    INV_ITEM
    Posting Key for the Next Line Item (NEWBS), Account or Matchcode for the Next Line Item (NEWKO), Amount in document currency (WRBTR) , Baseline Date (ZFBDT), Cash Discount Days 1 (ZBD1T), Item Text (SGTXT), Count (CNT)
    Document Type ZC or KR
    Posting Key 31 and 40
    Thanks in advance,
    Mairo.

    It looks everything fine for me.. what is ther exact error message are you getting..
    However also go through my book on LSMW, it may help you.
    http://www.4shared.com/document/wkl5vHpv/LSMW_SATISH.html
    Satish

  • Problem with LSMW for tcode BP

    HI
    I am trying to update some data from flat file to the CRM using lsmw.every step is complted and the batch in put is completed sucess fully but after seeing the BP i cannot find the data

    Hi
    go to settings and idoc In bound processing, have you completed this also?
    Reward if helpful
    Venkat

  • Problems after transfering Cost centers with LSMW

    Hi,
    I have a problem after transfering Cost Centers with LSMW.
    The first Batch input run created all cost centers in one CC Group erroneously - cause they should be placed in different CC groups.
    I changed LSMW settings and made another batch input run - now the Cost centers were created in proper groups. I think that I deleted all CC's created in previous batch input run, but now I am not too sure, because there is a problem...
    Cost centers exist both in their proper groups and in the one group mentioned by me before. So there is such situation that Cost center appears in Standar hierarchy twice at the same time.
    When I delete cost centers - they are removed from their proper groups but the CC entry remains in that one group - all CC are there inactive.
    How can I get rid of them. I tried deleting them - but it's impossible - the system doesn't see them.
    When I run the batch input again - the same cost centers appear in proper groups and at the same time they become active in the one group. The standard hierarchy group is not UNIQE.
    Please advice me how to delete these entries from standard hierachy.
    Best wishes,
    Karol

    Hi,
    Always recommended before loading into live system: upload in test system and check. check again just to make sure all is correct before real load.
    In your case you probably would have been best to do a group change after incorrect upload.
    Do Ambiguity check in stadnard hierarchy to explore all incorrect entries. Depending on your version yo ucan change in that function (ECC6) ore need to run a report. Before running the report check that CC master records have correct entry. The report is RKCORRH1
    Again, try in QA first and run in Test Run
    Good luck
    Hein

  • Problem creating Material Master sales view with LSMW

    Hello experts,
    I have created a LSMW that uses the direct input program RMDATIND to create new material master records. These materials have different material types.
    I require fields from different views like Purchasing, Sales, MRP and accounting, among others. But not all the material types have all the view defined. I will like, if it's possible, use the same LSMW program to upload all the materials.
    The problem that I'm having if once I ran the program, I got the warning message "The data for the maintenance statuses V cannot be transferred", message no. MG161, and even the material is created the sales view is it not. I check all the sales data in my CSV file and looks good.
    I'm also having in some records, the warning message "The data for the maintenance statuses BG cannot be transferred". That indicate problems with the accounting view.
    As an extra information, I'm using the following structures BMM00, BMMH1, BMMH2, BMMH5 and BMMH7.
    Hope you can help me to solve this issue.
    Regards,
    Mairo.

    >
    > I'm also having in some records, the warning message "The data for the maintenance statuses BG cannot be transferred". That indicate problems with the accounting view.
    Each material type has its own set of views, e.g.  a FERT has sales views but no pruchasing view, a ROH has purchasing view but no sales view, a NLAG has no storage views and a UNBW no accounting views.
    This is defined in customizing of attributs of a material type.
    Because of this you have to make sure that you do not transfer sales data for a material type that does not have sales views.
    Which views you actually want to create is defined in field PSTAT. Each character stands for a certain view (defined in table T132)
    re:The data for the maintenance statuses BG cannot be transferred
    Are your matrials split valuated?
    if you want create accoutning data in MBEW table with MBEW-PSTAT having BG status, then you have to make sure that MARA and MARC PSTAT field also has the B and G .

  • LSMW problem with ref tcode FBCJ

    Respected Members,
    i have 1000 and more cash receipts data in flat file and i have to upload it through LSMW but when i m trying to recording through FBCJ in lsmw and finally in transfering data ,getting the error that there is no record in batch input session.
    I m not getting how to solve ,please tell me in detaills at least with one example how to upload cash receipts with lsmw or bdc.
    Thanks a lot.
    If there is any standard program or object is there then also let me know.
    THanks a lot.

    Hi Manish,
    I have seen your query regarding the FBCJ Tcode. Hope you might have come across this issue, right....
    I'm also facing error while developing in both BDC and LSMW.
    Would you mind sending those codes....
    I will be very greatful to you... pls.
    Regards,
    Jacob S.

  • Problems with Import of Business Partner Marketing Attributes

    Hello everyone,
    I've a little problem. We are on CRM 5.0 now and I want to migrate the business partners with marketing attributes in the new system via LSMW. I've therefore wanted to implement the SAP message 609236. But I've problems with creating the function module ZCRM_MKTBP_CRMOU_WRITE 'Write marketing attributes for BP (event)'.
    I copied all the source of the SAP message and I've create the export and changing parameters. But the checking programm tells me that he can not loop over the
    'C_BP_STRUCT'. It 'is not defined as internal table and not in the table parameters'. But if I want to create it as a table parameter (instead of changing parameter), the following error message arrises: "Only table types may be used as the reference type for a table parameter"
    What can I do here? Perhaps anyone of you has already implemented this SAP message.
    Thanks in advance
    Nicole

    Are you moving data from a SAP CRM to a SAP CRM system, or from a legacy system to a SAP CRM system?
    Michael.

  • Problem with selection fields in SAP Quick Viewer

    Hi Friends
    I am using SQVI t-code to develop the SAP queries. I have developed a query using tables KNA1, VBAK and VBAP. Initially I used customer number, customer name, city, document creation data, document type and document number as selection fields. Now I have removed customer name, city, document creation data, document type from selection fields.  I am executing this query through a Function module "RSAQ_REMOTE_QUERY_CALL". While passing the data to selection table, even after deleting the 4 selection fields, still I have to pass the sales document number positioning as 6. Is there any way to solve this and make its position as 2.
    I have gone through the FM "RSAQ_IMPORT_QUERY", there one table parameter O_DBSE will retrieve the values for selection fields are designed for that query, again its tedious process, I have create a customized function module and make the required changes. Instead of using this FM, is there any table which stores the data of the selection fields of a query. I have tried for the table and I failed to find that.
    Please help me in this regards
    Regards
    Praveen

    Hello, I am trying to create LSMW to upload KP06 also, we have been uploading by copying and pasting once we run the iverview layout and then save. The problem is that we can only do this by G/L account. We want to use one file to upload all. Can you give me some tips how you were able to accomplished. I am familiar with LSMW, but tcode KP06 behaves in different ways. Do you use the flexible upload to load the fiel thru LSMW? Can you tell me which fields you touch in KP06 when you were recording?
    Thanks You,

  • RMDATIND uploading problem with external material numbers

    Hi,
    I'm using LSMW direct input program RMDATIND (Object:0020 Method:0000) for creating materials.
    I have a problem with uploading materials which have two types of external material numbers.
    For example one material number is 1111-333 and then we have 10000000. The problem is that direct input won't create materials with number 1111-333 though it's possible to create them manually. It works fine with material 10000000.
    Does anyone know how fix this issue?

    Sweth123 wrote:
    Hi Guys:
    >
    > Clicked check box External number assignment without Check., When I am creating a material (mm01) with only numeric characters it is giving me an eror message saying for this material type Numeric characters are not allowed.
    >
    > i should be able to create a material with external number range and it can be numeric or alpha numeric?
    >
    >
    > Thanks
    > Sweth
    Hi,
    go to the path Define Number Ranges for Each Material Type click on maintain groups & select the materila type & select the mouse on material type & click on maintain after that maintain the number ranges.
    for ex: from 300000000 to 399999999 internal no.range
                from A                to ZZZZZZ     external no.range
    from this u can able to create a material with external number range and it can be numeric or alpha numeric
    Regards
    Raj.

  • Data upload with LSMW in special period

    Dear Experts,
    I encountered an error message saying "Posting period 003 2007 is not open" when i tried to upload data with LSMW in specail period 13 2007.
    The system kept on picking period 03 even i changed it to 13. I changed many times and press enter enter...error.
    Finally i changed the posting date from "31/03/2007" to "31/12/2007", this time entry posted successfuly.
    1.) Can anyone explains to me why I only can post these entries in period 13 2007 with posting date 31.12.2007?
    I2.) Is that possible to post in period 13 2007 with posting date 31.03.2007 because my company's Statutory Audit is April 06 - Mar07 and we prefer to post with posting date 31/03/2007?
    Thanks.
    Jack

    Hi jack,
    Actually you are facing the error in case of postings rather than LSMW.
    Every company has it's fiscal year (accounting year), like April-March.And at the start of every month we have to open the period.
    For any kind of such problems,
    OBY6 - Check the fiscal year
    OX18  - Remove the assignments of plant & company code
    OMSY - Make month as current month ( like sept or octomber)
    OX18 -Make assignment of plant & company code
    OMWD - Give 0001 to plant
    Also for periods opening and closing follow the following:-
    IMG->Financial Accounting->Financial Accouting Global Settings->Document->Posting Periods->Open and close posting periods.
    OB52
    MM posting periods:
    Logistics->Materials management->Material master->Other->Close period
    MMPV (to open current period)
    Logistics->Materials management->Material master->Other->Post to prev.period
    MMRV (shows what is open)
    Also check OB52 for type M
    Thanks & Regards,
    Savita Nevade.

Maybe you are looking for