LSMW Direct Input Custom Program
Hi All,
I have been trying to set up a custom (Z Program) for direct input method for LSMW. So far I have dicovered that it can be achieved by modifing SXDA0-3 tables.
Has anyone achieved this successfully? Any example (even the simplest one) or step by step help would be highly appreciated.
Regards,
~Mark
Yes, it does appear that this table contains the data which gives the structures names of the structures used in direct input programs.
Documentation for LSMW is limited, but here are some links.
http://www.erpgenie.com/sap/saptech/lsmw.htm
http://www.sap-img.com/sap-data-migration.htm
http://www.ficoexpertonline.com/downloads/0703.doc
http://help.sap.com/saphelp_nw2004s/helpdata/en/ad/2d54a41d7011d2b42e006094b944c8/frameset.htm
REgards,
RIch Heilman
Message was edited by:
Rich Heilman
Similar Messages
-
Fields mobile no, house no is not there LSMW direct input customer master
Hi All,
In LSMW direct input method for customer master(RFBIDE00) fields mobile number, house number is not available. But field street(STRAS) is available there is no field like house number .
How to proceed futher. please let me know the suggestion . It's is urgent.
Regards,
Karthik.1) read documentation to rfbide00 with se38
2) if you want to use the new adress-fields from table adrc you must use bapi or bdc to xd01
A. -
LSMW - Direct Input - Sales order - item texts
Hi Gurus,
To transfert all orders from old system to new SAP system, I make this with LSMW and program RVINVB10.
The creation of header and item of orders is good but I have a problem with item texts.
In LSMW, I have create one structure et I have affected this to the struct BTEXHKOM and BTEXLKOM.
In BTEXHKOM, the field LAISO = 'FR' and TDID='ZM03' (Id of customer text).
In BTEXLKOM, the field TXTPARAGRAPH='/' and TXLINE='BLABLABLABLA' (no more 72 char).
In actions 'Read Data' and 'Convert Data', I see this two structs. But after execution of Direct Input program, I don't see text in my item of sales order.
I think I miss something.
Can you help me ???
Thanks a lot
Laurent GuilloteauHi Laurent Guilloteau,
I am facing a similar issue.
We are trying to upload sales order data using LSMW Standard Batch/Direct input using program name RVINVB10 and program type D. We are not able to upload item text but we are not having any problem in uploading remaining data.
the details we are passing to BTEXHKOM structure are......
BTEXHKOM-OLDNR = IHEADER-OLDORD_NO.
BTEXHKOM-LAISO = 'EN'.
BTEXHKOM-TDID = 'Z009'.
and the for structure BTEXLKOM
BTEXLKOM-OLDNR = IHEADER-OLDORD_NO.
BTEXLKOM-TXPARGRAPH = '/'.
CONCATENATE LITEM-DEPTID LITEM-DEPTNAME
INTO BTEXLKOM-TXLINE SEPARATED BY ' '.
we have three input source structures.
IHEADER Header structure
LITEM Line item structure ( Material data )
IPARTN Partners structure
The structure relationships are
BTEXHKOM <<< IHEADER.
BTEXLKOM <<< IHEADER.
Please let me know if I am doing some thing wrong or some thing else need to be done.
Thanks,
Chindam. -
Net Price Calculation Error in LSMW(Direct Input)
Hi,
i am using LSMW-Direct Input method for Creating Purchase Order .i am facing Problem like Quantity Conversion error in Net Price Calculation.
Any one please help me out.
Regards,
Shobha HenryBest practice would be to use BAPI/ALE method instead of direct input but if you've already done with the mapping etc. try putting a break point in the generated LSMW program where the net price is calculated and transferred to SAP field and then run it to see in the debugger what's going on. I reckon its possibly a type compatibility error.
Hope this helps,
Cheers,
Sougata. -
LSMW(Direct Input) Material master issues
Hi,
I have few issues on Material master-LSMW(Direct Input-RMDATIND) data upload(creating materials).
1. Can i upload excel sheet for uploading data! What option i have to choose in 'specify files' for this!
2. I am using fields MBRSH, MTART, MAKTX, MEINS, BISMT, MATKL, MAGRV for mapping.
But when i tried to upload in last step-start direct input program with Lock Mode-'N' it is giving error as
'Plant data does not exist'. Because this is for 'Basic Data' i though no need to input plant.
3. MATNR field is not needed for creation right as it is auto generated!
4. I have to do seperate object for this project for 'Sales organization data' & Plant Data is there any checks needed for the same!
Can anybody give solutions for the above!
Thanks in advance.
Thanks,
Deep.1. Now i am trying to process 4 records it is creating 3 records.
It is always skipping 1st record in flat file.
Any check required!
2. Also i want to write a output file(log file) to my presentation/application server with all material no's created & material descriptions. Where can i do the same!
3. Can anybody tell me how to upload using excel sheet.
Thanks,
Deep.
Edited by: Deep on May 14, 2009 3:21 PM -
How do i check the log for LSMW direct Input
Also When i run the LSMW program the LAST STEP has Start Direct Input
What all step do i need to select to make the program run Automatically
Now i tried doing that but had to press Enter key until the load was Over
Thankyou
Shhi,
use option extended log (e.g. in rfbibl00) and after run goto sm37 - Job-log
A. -
LSMW - Direct Input - Sales order - item text
Hi,
I'm having a problem similar to the problem posted by Laurent Guilloteau on 2/3/2006 titled:
LSMW - Direct Input - Sales order - item texts
While this thread shows the issue as being answered, I'm not clear on what action to take.
I'm using an LSMW with program RVINVB10 to load sales orders to SAP.
I'm successfully loading the orders, including header level text, however the item text is not showing on the order.
I have source structures defined as follows:
Source Structures
REC1 VBAK - Header
REC4 VBPA - Order Partners
REC6 BTEXHKOM - Header Text Header
REC7 BTEXLKOM - Header Text Lines
REC2 VBAP - Order Items
REC8 BTEXHKOM - Item Text Header
REC9 BTEXLKOM - Item Text Lines
REC3 VBEP - Order Schedule Lines
In actions 'Read Data' and 'Convert Data', I see text for the two text structures, at the header and item level. But after execution of Direct Input program, I don't see text in at the item level of the sales order, however I do see text at the header level.
Does anyone have any insight on what's causing the item level text not to show on the order?
Best regards,
StuartHi all,
Many thanks for the suggestions. One of our expert developers got involved and provided the solution.
In order to have item level text populate, the VBAP-PSTYV (the sales document item category) field also needs to be populated. The VBAP-PSTYV field value is dependent on the sales document type. (Or, at least it is for the configuartion set up in my example) The sales document type is VBAK-AUART.
Stuart -
LSMW - DIrect Input Method --PO
HI All,
I am using LSMW Direct input method to upload Purchase orders.But my probelm is i am using Two files for header and items. In my case i have to upload so many Purchase orders with multiple item data at a time.
Example.
Header file
H1 ......
H2 .......
H3 ......
H4 ......
Item File
I1 ....
I1 ....
I2 ....
I2 ....
I3 ....
I3 ....
I3....
I4....
But my question is How the program will identify Which items are related to particular Header.
Please help me on this.
What will be the identification for header and item.
Thanks in advance,
Bhanu P R Gattu.I usually use a single file for both header and item:
When you specify your source file, contents must be "Data for Multiple Source Structures (Seq. File)", and header record must precede item(s) record(s):
H1
I1-1
H2
I2-1
I2-2...
Regards,
Guillermo. -
LSMW direct input method - Equipment BOM
Hi Experts,
We have already written program for equipment BOM master in LSMW direct input method. I do not know about this direct input method.
Here they have maintained 2 source structures and relavant source fields. one for BOM header and other for BOM items. The first field they maintained is LINK in both the source fields. I really do not know what that field is all about. I checked in step specify files and found that they have previously mentioned two files, one for BOM header and other for BOM items. but when I tried to save in this step it gives me error that " No logical path specified". Can anybody tell me what is this error is all about.Please heip me to get out of this problem.
Thanks and best regards,
PraveenHi praveen,
LSMW does not accept two files.
In the step create source strcture
crte one structure with BOM header like with ZBOM_H.
Under that create another structure for item ZBOM_I.
ZBOM_H
ZBOM_I like this structure will will be.
In the step source fields.
crate onne variable with indicatoe header.While creating the variable we have field 'identify field content ' field in pop up screen 'H'.
assign all header files under identifier 'H'.
then under ZBOM_I create identifier with 'I'.
Assign all the item fields to this.
then map the fields.
In the file should be H header fields.
I item fields.
I
I.
Then Header .It should be like this.
in saptechnical u will get the examples go though them once.
Thanks -
LSMW - Direct Input- RMDATIND- Converted data is different.
Hi Experts,
I am working on LSMW - Direct Input- by std. program RMDATIND for material Update,
When I display converted data, its different than data that I see in display read data step,
Each time in step display converted data,one perticular record is displayed.. Even though
I change input data.
I like to know why converted data shown is wrong?
thanks & regards
AshishHi thomas,
thanks for your help....
i created 2 materials in file, i.e. with material no. xxxxx2 & material no.xxxxx 3.
Or even if i created record in iput file with other materila no.
At each end every time I can see only one converted data record eith Material no. Value = xxxxx1.
thanks & regards
Ashish -
hi experts....
i have uploaded using the standard program rmdatind for material masters..now
i wanna schedule background job for the lsmw direct input method....using the transaction bmv0...but it shows me a screen for jobs..i am new to this part..please guide me step by step....hi,
follow this procedure ..
in the 12th step.. select the path which it displays i.e.. /interface......lsmw.conv
go to rmdatind pgm .. select the physical file.. give this path
and create a variant
in the 13th step.. select the transaction bmvo.
it takes you to other screen.. press f8.
then click on define job.. click on new entries..
enter job name,pgm name, variant,username
save it and come back to screen where u click on define job
now click on start new job
press f4 for the field target system for job.. click on continue button
then click on start job.. a pop up comes .. press continue button(enter)
click on start job..
enter output device lp01.. click on tick button
again pop up comes.. click on tick button
now u can select whether ur job want to be executed immediate or periodic..or later..
in case immediate click on immediate.. and save
then click on update option until u get exact status of the job
regards
satya sreekanth -
LSMW Direct Input Method - Change Documents
Hello experts,
Could anyone please tell me how to enable the change documents(not just runtime) for LSMW direct Input method? There is also one option "Change Documents" in the last step of the process, will this write into any table that I see the changes later If I run the last step with selected this option? If yes, What are the application (customer master data, vendor master data, material master data, etc) specific tables?
Is there anyway that I could populate this method changes into the CDHDR & CHPOS tables?
SAP documenation on this:
To enter the data into the *corresponding database tables directly*, the system calls a number of function modules that execute any necessary checks. In case of errors, the direct input technique provides a restart mechanism
http://help.sap.com/erp2005_ehp_04/helpdata/EN/fa/097174543b11d1898e0000e8322d00/content.htm
Since this tool writing data into database tables directly skips the CDHDR & CDPOS recording..
Is there any other possible way for the complete change logs (change pointers???)? ( Or only table logging?)
Please share your experience on this.
Thanks,
HimadamaNo response received..
-
Issue in LSMW(Direct Input) for FB01 with (RFBIBL00)
Hi All,
I am developing a LSMW-Direct input method for TCode-FB01 using program RFBIBL00.
I am using one file as input file. I have below fields in the file.
STYPE
BLART
BUKRS
BLDAT
BUDAT
MONAT
WAERS
KURSF
XBLNR
BKTXT
XMWST
NEWBS
NEWKO
NEWUM
WRBTR
KOSTL
PROJK
AUFNR
PRCTR
SEGMEN
MWSKZ
WMWST
ZFBDT
ZUONR
SGTXT
My Data is as below: (Single record) 1 - Header data, 2-Item data
1 SA 1123 01062009 01062009 6 USD Test1 Testing
2 40 100005 10 Test Test
2 50 100005 10 Test Test
After 'Converted data' step it is displaying 7 rows instead of 3 rows for BGR00, BBKPF, BBSEG.
Is there any condition(logic) i need to write to make it to 3 rows.
All the data displayed above is for single record.
Because of this issue i am not able to create document through FB01.
How to solve this issue!
Thanks,
Deep.you need to pass 2 strctures like below
1 is header and 1 is item
here INDENT is link between 2 files
in your case 1 record: BGR00,
1 record : BBKPF
2 records: BBSEG
its only 4 records, i think you file contains space for 3 more record you check that.
and also in the last step you have option for creating the batch input method, create BI and run in foreground ....
YFIC_HEADER Header
INDENT C(010) Identifier
BLDAT C(008) Document Date
BLART C(002) Document Type
BUKRS C(004) Company Code
BUDAT C(008) Posting Date
MONAT C(002) Posting Period
WAERS C(005) Currency
KURSF C(009) Exchange rate
BELNR C(010) Document Number
WWERT C(008) Translation Date
XBLNR C(016) Reference
BVORG C(016) Cross-co. code no.
BKTXT C(025) Document Header Text
PARGB C(004) Trading part.BA
XMWST C(001) Calculate Tax
LDGRP C(004) Ledger Group
YFIC_ITEM Item Data
INDENT C(010) Identifier
NEWBS C(002) Posting Key
NEWKO C(017) Account
NEWUM C(001) Special G/L ind.
NEWBW C(003) Transact. type
WRBTR C(015) Amount
MWSKZ C(002) Tax Code
XSKRL C(001) W/o cash disc.
KOSTL C(010) Cost Center
AUFNR C(012) Order
GSBER C(004) Business Area
PRCTR C(010) Profit Center
RASSC C(006) Trading Partner
FKBER C(004) Functional Area -
Hi All,
I m facing a problem in LSMW - direct input for XD01Transaction (Create Customer).
while testing the file from Application server using BATCH INPUT SESSION. At the end, my Session fails and it shows an error in the log "Function code cannot be selected" and under that line 1 more comment is there - "Transaction Error".
please help me in this issue.
Edited by: Rahul Gautam on Sep 17, 2008 1:53 PM
Edited by: Rahul Gautam on Sep 17, 2008 2:25 PMHi
I found the Solution
Thanks -
Upload sales text for material master using LSMW direct input method
Hello Experts,
I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file
Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTH .
/SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file
Legacy Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File
ZLONG_TEXT Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
Step 10 -> Display converted data
1 /SAPDMC/LTXTH 1MVKE MATERIAL1 0001E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench
Project: ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty.
Please help me with the same.
Regards,
Ranjith NHello Experts, I was trying to upload sales text for a material master using LSMW direct input method.
I followed the following steps for the same
Tab dlimited Text file format
MATNR LONGTEXT LINE
MATERIAL1 LONGTEXT FOR MATERIAL MATERIAL1 1 *************************************************************************************************************
Step1 -> Maintain object attributes
Object -> 0001
Method-> 0001
Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
Program type -> D
Step2 -> Maintain Source Structure
Source structure -> LONG_TEXT Source structure for long text
Step 3-> Maintain souce file Source Fields
ZLONG_TEXT Source structure for long text
MATNR C(018) MATNR
LTEXT C(132) LTEXT
Step 4-> Maintain structure relationship
Structure Relations
/SAPDMC/LTXTH Long Texts: Header <<<< ZLONG_TEXT Source structure for long text
Select Target Structure
/SAPDMC/LTXTH . /SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
Select Target Structure /SAPDMC/LTXTL .
Step 5-> Maintain Field mapping and conversion rules
Here i have assigned constan rules to couple of them like
/SAPDMC/LTXTH Long Texts: Header
Fields
OBJECT Texts: Application Object
Rule : Constant
Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
NAME Name
Source: ZLONG_TEXT-MATNR (MATNR)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
ID Text ID
Rule : Constant
Code: /SAPDMC/LTXTH-ID = '0001'.
SPRAS Language Key
Rule : Constant
Code: /SAPDMC/LTXTH-SPRAS = 'E'.
/SAPDMC/LTXTL Long Texts: Row
Fields
TEXTFORMAT Tag column
Rule : Constant
Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
TEXTLINE Text Line
Source: ZLONG_TEXT-LTEXT (LTEXT)
Rule : Transfer (MOVE)
Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
Step6 -> Specify file Legacy
Data On the PC (Frontend)
Data D:\Sales_Longtext.txt
Step7 -> Assign File ZLONG_TEXT
Source structure for long text
Data D:\Sales_Longtext.txt
Step8 -> Read data
Output result
Source Structure Read Written Not Written
ZLONG_TEXT 1 1 0
Transactions Read 1
Records Read: 1
Transactions Written: 1
Records Written: 1
Step 8 -> Display read data
Field Name Field Text Field Value
MATNR MATNR MATERIA1
LTEXT LTEXT SALES TEXT FOR Material MATERIAL1
Step 9 -> Convert data
File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Transactions Read: 1
Records Read: 1
Transactions Written: 1
Records Written: 2
tep 10 -> Display converted data
1 /SAPDMC/LTXTH 1 MVKE MATERIAL1 0001 E
2 /SAPDMC/LTXTL 2/ SALES TEXT FOR Material MATERIAL1
Step 11 -> Start direct input program
Output result for the same
Legacy System Migration Workbench Project:
ZNRD_PRJ1 ORH
Subproject: ZNRD_SUBPRJ2 Upload long text
Object: ZNRD_LTEXT Long text tru direct input
File : ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
Long Texts in Total: 1
Successfully Transferred Long Texts: 1
Non-Transferred Long Texts: 0
Now when i check the material master sales view -> sales text it is empty. Please help me with the same.
Regards,
Ranjith N
Maybe you are looking for
-
Can't import music to new iTunes
I had a lot of lost music since I upgraded iTunes to 10.1.2 I booted into my backup HD where I had iTunes 10.1.1 and all music played. Went into the Home area into Music/iTunes and copied all music to 4 DVD's Went back into my MAIN HD where I have iT
-
Hello My subca certificate was about to expire so I renewed it with the same key and since then my wireless will not connect. I get the following error from NPS: Network Policy Server denied access to a user. Contact the Network Policy Server adminis
-
Modifying value in external xml file
Hi, I've been searching around for some time and haven't been able to find the solution to what I think should be a simple problem. I have an xml file that I need to change the value of an item from False to True. The structure of the file is: <data>
-
Final Cut Pro Book which takes FCP to the "Next Level"
I am reasonably new to FCP. I have read the book Final Cut Pro: Visual QuickPro Guide by Lisa Brenneis from cover to cover. Let me say that I am no expert, far far from it! but I would like to have a book that takes FCP to the next step. A book that
-
Crstal Reports XI - Crosstab Report - Displaying Dates (Cashflow)
Hello I was wondering if any one would be able to help me with an issue I'm having. I need to create a cashflow report at the moment I'm trying with a crosstab report (this may be the problem)!! I need it to display in the following way. (you may no