LSMW doubts
I want to upload two materials using LSMW batch input recording for MM01 transaction.
1.One material with Basic view, Accounting, Purchasing, MRP1,MRP2,MRP3,MRP4 views
2.second Material with Basic view, Accounting, Purchasing and no MRP views.
My doubt is how to create a flat file for the above views, becoz if i include values for the "MRP View fields" for first material
then what to maintain against the same fields for the second material?
How to record the MM01 transaction,do i need to record for all the views?
Cheers
>
harireddy wrote:
> I want to upload two materials using LSMW batch input recording for MM01 transaction.
> 1.One material with Basic view, Accounting, Purchasing, MRP1,MRP2,MRP3,MRP4 views
> 2.second Material with Basic view, Accounting, Purchasing and no MRP views.
> My doubt is how to create a flat file for the above views, becoz if i include values for the "MRP View fields" for first material
> then what to maintain against the same fields for the second material?
>
just enter nothing as MRP data for the second material.
you can react in the field mapping how you then continue with this info.
LSMW is flexible, it can work with almost any kind of source and content.
you could for example have for each view a seperate source file.
or you have everything together in one file
and if together in one file, then you could have all data for one material in one line leaving the fields empty that are not applicable for this material
or you have data for each view in an extra line per view beneath each other.
this is just because you sometimes may not be able to control how a source should look like.
if you can control how the source should look like, then define it in a way that is convinient for your style of usage in LSMW.
I personally like to have seperate files per view.
but even this does not need to be prepared by the users. They can give it in one Excel file with several tabs, I can save it to individual text files myself.
Just one thing I would like to repeat, do not do any recording for material master load, recording is static, but material master is dynamic with views and fields. Use SAP given import methods in LSMW. there is a method for standard batch input, for IDOC and for BAPI. Plenty options, but recording is certainly the worst you can choose for materials.
Similar Messages
-
Hi Friends!
1) Could u pls tell me when to use BDC & When to use LSMW I am a technical Person i want to load data using LSMW Then when to do that? apart from doent need programming effort.
2) My Second Doubt is From LSMW, Suppose i am doing lsmw in development system can i transport the lSMW to Production & upload data to prod server just like BDC
or
I ve to do lSMW in production System to upload data in prod server
Since I am saving i am nor getting development class & transport req, that why.
Could u pls help me to solve my issue.
Thanks
Rahul.<b>BDC</b> is for loading <b>master data</b> and <b>LSMW</b> for <b>transaction data</b>
BDC
BDC is basically for customized applications.
In bdc we have to give mapping concept explicitly.
It basically uses recording.
BDC is used by technical consultants , who do coding.
Coding can be done flexibly to customize applications.
LSMW
In lsmw mapping is take care by sap.
lsmw is basically for standard sap application.
LSMW offers different techniques for migrating data say : Direct input , Batch input recording , BAPI , IDOC
LSMW is basically designed for Functional consultants who do no coding .
Coding cannot be done flexibily as BDC.
<b>Yes</b> you can <b>transport</b> in <b>LSMW</b>! There is an <b>import export option</b> in <b>extras</b> of <b>LSMW initial screen</b>.
refer
for LSMW:
www.sap-img.com/sap-data-migration.htm
www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
www.erpgenie.com/sap/saptech/lsmw.htm
help.sap.com/bp_blv1500/BL_US/html/dataconv_lsmw.htm
help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/content.htm
For BDC:
http://myweb.dal.ca/hchinni/sap/bdc_home.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sapdevelopment.co.uk/bdc/bdchome.htm
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
regards,
srinivas
<b>*reward for useful answers*</b> -
LSMW doubt regarding createing projectid,subprojectid and object id
Dear Freinds,
iam doing lsmw for two objects (infotype 0014& infotype 0015) i have one doubt
a) when i am creating proect id i have given as ZHR_PA30
b) subproject id as zsub_pa30
c) object id zobj_pa30
ihave taken the second radio button option Batch input recording , however iam able to one infotype 0014 and however when i have
to do for 0015 i have to create again new object id or i can use same zobj_pa30. IF i have to use same object id so how i can change the batchinput recording...new name because
it is already having ZPA0014 how can i give for 0015 infotype please let me know.
regards
syamlaFor info type 14 do like this...
a) project ZHR_PA30
b) subproject id as zsub_pa30
c) object id zobj_pa30_0014
recording -- ZPA0014
For infotype 15 do like this..
a) project ZHR_PA30
b) subproject id as zsub_pa30
c) object id zobj_pa30_0015
recording -- ZPA0015 -
hi experts,
I am new for LSMW, i know the first 2 method, How to use BAPI in lsmw,( For example creation of BOM).
Point will be sure.
thanks,
Regards,
GowriA standard test report is attached to BAPI CREATEFROMDAT2, as shown in transaction SXDA/Goto/DX-Program library/Sales order/CreateFromDat2 (Its name is SD_CREATE_TEST_DATA). You can use it as follows:
Run SXDA/Goto/DX- tools/
object type = BUS2032
Program type = bapi
program = CREATEFROMDAT2
file type = physical
file name = <give a name here, say order.txt>
Select From test program pushbutton and the test report is ran and downloads already existing orders to your file name. You can display it or even change it. -
Hi everybody .
I am using idoc with LSMW for uploading the data . I am going step by step all is working and displaying well but when i go for the step "START IDOC GENERATION " it is giving me an error like
<b>'066_BUS_TRANS_QUOTATION.lsmw.conv' File Has Not Been Accepted for Processing</b>
Plz help me and suggest the possiblew way to resolve this
Thanks with regards
Points will be awardedHi Gaurav,
I got the same problem with another IDOC. Could you please help me in solving this issue.
Regards,
Rusidar. -
Hi all,
I doveloped the LSMW using recording method for transaction MM41. when i created the batch input session
as many batch input folders(sessions) are creating as many as transactions(Records).
Ex. three sessions are created for three records.
I want only one batch input session for all Records,
How can I fix this plz help me.
Regards,
Suresh.check step of Creation of Batch session option in LSMW.
regards
Prabhu -
HI,
Experts I have following doubts in LSMW.
1. Before uploading into the database, if at all we need to perform some convertion say UNITED STATES or U.S.A into US. Can this be done in LSMW.
2. After writing an LSMW for a transaction how would the user run this application, ie should he do all the 12 or 14 steps on the screen of LSMW.
3. Can LSMW be run on transactions where there are lot of popups and table controle applications.
Kindly help,
Thanks in advance,
Ram.go se93,
give a tcode z* and clikc on create button.
give text and select last radio button ...transaction with parameters(parameter transaction)
enter..
give as 'LSMW' at the default values for transaction and check on skip initial screen.
go last ...there u can able to default values...
under 'name of screen field ' and 'value'
give the foll. screen field names under name of screen field.
/SAPDMC/LSSCREEN-PROJECT -- ur project name
/SAPDMC/LSSCREEN-SUBPROJ --ur sub proj name
/SAPDMC/LSSCREEN-OBJECT -- ur obj. name -
Hi experts,
We have a requirements where the LSMW for infotype 22 should be run for a PERNR only if IT-0001 and IT-0002 are maintained. How to do this?
Remember the requirement is only for LSMW and not a BDC.Hi,
You can put your ABAP code to validate at different levels such as:
__BEGIN_OF_PROCESSING__
__BEGIN_OF_TRANSACTION__
__END_OF_TRANSACTION__
__END_OF_PROCESSING__
To enable this, in the Field Mapping step of LSMW, choose "Extras" -> "Display Variant" & tick all the check boxes. After this step you see the above processing points. Double click on the Processing point to get the ABAP editor & put your validation as per reqmt.
Hope this helps.
Best Regards, Murugesh -
hi
how to handle table control in lsmw
urgent plzHi Kiran,
LSMW will have a Indicator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.
check that single charecter field, it that is X that means the header record is processed, and do the items.
and, this is another way, try this out also
YOu can do this in "Define Source Structures" step,
the HEADER is defined first,
then the DETAIL below the HEADER.
add the fields to the structures.
Both should have some common key field
Please take care that the name of the common field is the same.
Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would.
Check the threads -
Re: Table control in LSMW
Re: how can we handle table control in LSMW
Re: Table control in LSMW
how can we handle table control in LSMW
Re: UGRENT !!! Filling a table control through LSMW
Reward Points if helpful
Thanks
Seshu -
Hi Experts,
Pls. let me clarify,
1 - I did changes to existing_LSMW and saved. Now, I wanna to Transport it to QA, so, Where shuld I activate this LSMW? or Its NOT necessory to activate, bfor Transporting?
2 - In this LSMW, some data is declaring in Global_Data! If suppose, I started a new LSMW project, Where can I see this option? I mean, Navigation to declare my data in <i><b>Global_Data</b></i>?
3 - At some nodes, am getting the message "- default settings r changed"! Wht does it mean?
4 - I wanna to convert flat file external DATE to internal date format, Can I go for FM DATE_CONVERT_INTERNAL, if so, Wht is the function of <i><b>Convert_Date</b></i>(like Global_Data) with in LSMW?
5 - Which is safe for date conversion either FM or shuld i go with Formatting options?
thanq.
Message was edited by:
Srikhar
Message was edited by:
Srikharthanq.
<i>At some nodes, am getting the message "- default settings r changed"! Wht does it mean?</i>
yes, I made some changes in ABAP code, of that corresponding node. But, in SAP point of view, R they(just ABAP code!) r Default changes?
<i>I wanna to convert flat file external DATE to internal date format, Can I go for FM DATE_CONVERT_INTERNAL, if so, Wht is the function of Convert_Date(like Global_Data) with in LSMW?</i>
So, u mean, just SAP suggeting to abapers, those names, like global_data, convert_data, for using FORM names in step 6 ?
thanq.
Message was edited by:
Srikhar
Message was edited by:
Srikhar -
Hi Abapers,
I have complete data of MARA, LFA1 and some other tables which are imported from one SAP system.
Now I have to upload into the respective tables in another System by using LSMW. This is not like master data upload, for example transaction like MM01. Just data of a particular table should be uploaded in the same table in another system using LSMW.
Is it possible?
Regards
Sundar. SHi,
If you upload the values directly in the table without validating, it will cause serious data inconsistencies which is very difficult to correct.
Use transaction codes or through Standard Batch/Direct Input method to upload the values through LSMW
If not, Basis can do a copy of the data from the source system.
Regards,
Yogesh -
hai friends,
in lsmw Batch input method do we need to record..?
plz reply urguently..?satish,
These are the steps to be followed while doing a Batch Input Recording.
LSMW STEPS (Batch Input Recording)
1. Maintain Attributes:
Here you have to choose the second option and you can do the recording how this should work. Then assign the same to the Batch Input Recording name.
2. Maintain Source structure:
Create a structure name
3. Maintain Source field:
Create a structure like the Input File
eg:
Name - LIFNR
Description - Account number or Vendor Number
4. Maintain structure relations:
This will link the structure to the input file.
5. Maintain field mapping and conversion rules:
You can choose the Auto Filed Mapping under Extras Menu. Yopu can also do coding, depending upon the code you have written or assignment you have done the values will get picked up from the file and get processed.
6. Maintain field mapping and conversion rules:
If you have any fixed values you can define here.
7. Specify files:
Specify the input file path and type.
8. Assign files:
This will assign ur file to the Input file
9. Read Data:
This will read ur data from teh file.
10. Dispaly Read Data:
You can see the uploaded data
11. Convert Data
This will convert the data to the corresponding format for processing
12. Display Converted data:
13. Create batch input session
Here this will create a batch input session for processing
14. Run Batch Input session:
By clicking on the session and process (Back ground or Display Errors)
Refer the Below Links
http://www.sapbrain.com/TOOLS/LSMW/SAP_LSMW_steps_introduction.html
/people/hema.rao/blog/2006/09/14/lsmw--step-by-step
http://help.sap.com/bp_blv1500/BL_US/documentation/LSMW_EN_US.doc
http://esnips.com/doc/8e732760-5548-44cc-a0bb-5982c9424f17/lsmw_sp.ppt
http://esnips.com/doc/f55fef40-fb82-4e89-9000-88316699c323/Data-Transfer-Using-LSMW.zip
http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt
http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI.ppt
http://esnips.com/doc/7582d072-6663-4388-803b-4b2b94d7f85e/LSMW.pdf
http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
Don't forget to reward if useful.... -
Hi,
Please tell me in what scenarios shall we go for LSMW with Batch Input Recording and in what scenerios shall we go for Direct Input Method in LSMW? Urgent.
Regards,
MDHi,
This one is the most complete document for the same
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
http://service.sap.com/lsmw.
http://****************/Tutorials/LSMW/LSMWMainPage.htm
Here is a step by step guide on LSMW
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
http://myweb.dal.ca/hchinni/sap/lsmw_home.htm
http://www.sap-img.com/sap-data-migration.htm
http://www.sapgenie.com/saptech/lsmw.htm
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
http://www.sap.info/public/INT/int/glossary/int/glossaryletter/Word-17643ed1d6d658821_glossary/L#Word-17643ed1d6d658821_glossary
LSMW IDOCs
check these threads..
http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
Lsmw
LSMW with TABLE CONTROL
Refer the links -
lsmw table control
Re: Table control in LSMW
Table control in LSMW
Table Control in LSMW
Re: Table Control in LSMW
just refer to the link below
http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g
Reward Points if found helpfull..
Cheers,
Chandra Sekhar. -
LSMW only apply for recordings with standard transaction or also for create recordings with Z transactions?
I have a Z transaction to lapse contracts do you believe that I could create a LSMW recording using this Z transaction I mean if i should generate the LSMW differently than I used to do with standard transactions.
Thanks
Edited by: Csaba Szommer on Feb 19, 2012 8:30 AMLSMW should work for ZTcodes also. You can do a simulation in tcode SHDB, record and the click on process (do some experimentation, you will understand).
-
Use of global variables like g_cnt_transactions_transferred in the LSMW
Hi SapAll.
when i had a look at the some of the LSMW's whic use IDOC as the object of uploading data into SAP from external Files i have found in the coding under the step "Maintain Field Mapping and Conversion Rules" that they use some of the global variables like below
.if p_trfcpt = yes or sy-saprl >= '46A'.
EDI_DC40-DOCNUM = g_cnt_transactions_transferred + 1.
endif.
.EDI_DC40-CIMTYP = g_cimtyp.
.EDI_DC40-MESTYP = g_mestyp.
.EDI_DC40-MESCOD = g_mescod.
.if p_filept = yes.
EDI_DC40-SNDPOR = g_fileport.
elseif p_trfcpt = yes.
EDI_DC40-SNDPOR = g_trfcport.
endif.
my doubt is where i can find these variables 'g_cnt_transactions_transferred ','g_cimtyp','g_mescod','g_fileport','g_trfcport' in the LSMW and what is the use of the variable 'g_cnt_transactions_transferred ' in the LSMW.
I have treid to find out the above listed variables looking in step 'Maintain Field Mapping and Conversion Rules' under global variabels list and the other lists also but i couldnt found.
can any one help me in this ?
regards.
Seetha.Hi Seetha,
In the LSMW Workbench go to the option user menu. And check the option display conversion program.
Now when you execute with the radio button on dislplay conversion program, you ll see the code that got generated in the background while you built your LSMW.
The global variables that you have mentioned are bound to be there in this program generated in the background..
You can put a break point here and see for yourself what the value of these global variables are at runtime.
File port, TRFC port , no. of transactions executed by one run of the LMSW Idoc program , message type are some of the fields that you have asked for .
Regards,
Arun
Maybe you are looking for
-
Won't power on, but power light blinks.. eh?
Howdy all, I was just on my machine, just turned it on and was getting ready to launch a game, when it locked up. So I reboot... Nothing. Try again... nothing. Unplug the PSU, plug it back in, hit the power button... nothing but a blinking power l
-
Get the startup chime, caps lock light comes on, and then the process stops and the machine shuts off. Any ideas? I've replaced the hard drive (thought that maybe the drive had died) but get the same results on startup (dies soon after the chime). I'
-
HT1491 how do i access my itunes wish list from iPad or iPhone?
I cannot figure out how to access my wish list in iTunes on iPad. Is this feature not available on mobile devices?
-
Travel Pass covering data use on an aircraft
I've just returned from a multi-country trip through Europe. Bought a Zone 2 Travel Pass for $300 to cover this. As I entered each new country, I got a message from Telstra warning me of potential for higher charges (detailed for the specific country
-
Why are my icloud apps not updating?
Whether or not my iCloud LISTS or CALENDARS update across all of my app devices they are supposed to is a hit or miss deal. Sometimes they do quickly, sometimes it takes forever, sometimes not at all. Why??