LSMW for MSC1N Transaction to Create Batch
Hi,
I want to create Multiple batches for Large number of Materials.
Could any body Please suggest me how to write LSMW for MSC1N.
Thanks
Bhuvana
the very first step of LSMW gives you the option to choose the import method.
SAP provides 2 import methods ready for use:
BAPI method:
BUS1001002
SAVEREPLICA
BATMAS
BATMAS03
and IDOC method
BATMAS
BATMAS03
Similar Messages
-
Regading LSMW for VD01 transaction
HI,
This is KSR Saireddy. i am getting the problem in LSMW at the the STEP Create Batch Input Session.i am executing this step,now i am getting the file name as ZIMS_91_ZIMS_91_MIGRT_CUSTOMER.lsmw.conv after excuting it is giving the message that Transaction VD01 not supported can any body please give me answer why VD01 is not supported .Hi Selva,
LSMW is a detailed 15 Step process to transfer Data from Flat file to SAP System.It is fairly simple provided you have some hand holding for the first time with some ABAP team member.
Please go through the details as mentioned in the [thread|http://sapabap.iespana.es/manuales/pdf/lsmw.pdf].We can discuss it in detail once you are through.
Broadly speaking our purpose in LSMW is to do :
RECORDING PROGRAM:A screen by screen recording of a transaction that we intend to use ( for eg.QP01). These screen by screen records are stored and served as a reference later on.
SAMPLE TXT FILE: This recording gives us a txt file with fields that nees to be replaced with upload file in the same format
UPLOAD FILE: Add all information in the file that you need to upload in SAP in separate rows
EXECUTE BDC:The recording program executes screen by screen in same sequence and uploads the data as in the UPLOAD File.
This description is very simplistic view of LSMW based on my exposure. I am sure that there are many more features than just this (like Filtering, Conversion etc.)
Open up a new thread. We can discuss this in further detail if required.
Thanks,
RAVI. -
Lsmw for mb1b transaction.
hello,
is it possible to do lsmw for mb1b transaction.
if possible then how ?
any suggestions please.Hi
you can use the LSMW for the transaction MB1B .
Or
use the program to stock transfer from plant to plant :
REPORT YMBIE096 LINE-SIZE 80.
* Program: YMBIE096
* Author: Sheila Titchener
* Date: Mar 1999
* Purpose: To move stock to new plant
TABLES: MCHB.
* internal table
DATA: BEGIN OF I_MCHB OCCURS 0,
MATNR LIKE MCHB-MATNR,
LGORT LIKE MCHB-LGORT,
CHARG LIKE MCHB-CHARG,
J_2CTRNR LIKE MCHB-J_2CTRNR,
J_2CELNG LIKE MCHB-J_2CELNG,
CLABS LIKE MCHB-CLABS,
END OF I_MCHB.
*-----------------------new code smt nov 98-----------------------------
* batch input tables
DATA BEGIN OF BDCDATA OCCURS 100.
INCLUDE STRUCTURE BDCDATA.
DATA END OF BDCDATA.
DATA BEGIN OF MESSTAB OCCURS 10.
INCLUDE STRUCTURE BDCMSGCOLL.
DATA END OF MESSTAB.
SELECT-OPTIONS S_MATNR FOR MCHB-MATNR.
PARAMETERS: P_DISP AS CHECKBOX.
DATA W_MODE.
DATA W_MESSAGE LIKE MESSAGE.
START-OF-SELECTION.
SELECT MATNR LGORT J_2CELNG CHARG CLABS J_2CTRNR FROM MCHB
INTO CORRESPONDING FIELDS OF TABLE I_MCHB
WHERE MATNR IN S_MATNR
AND WERKS = 'BT'.
END-OF-SELECTION.
LOOP AT I_MCHB.
CHECK I_MCHB-J_2CELNG NE 0.
CHECK I_MCHB-J_2CELNG = I_MCHB-CLABS.
PERFORM MOVE_STOCK.
ENDLOOP.
*& Form MOVE_STOCK
* Call transaction MB1B to transfer stock
FORM MOVE_STOCK.
DATA: W_QTY(10).
WRITE I_MCHB-J_2CELNG TO W_QTY DECIMALS 0.
REFRESH: BDCDATA, MESSTAB.
PERFORM DYNPRO USING:
'X' 'SAPMM07M' '0400',
' ' 'RM07M-BWARTWA' '301',
' ' 'RM07M-WERKS' 'BT',
' ' 'RM07M-LGORT' I_MCHB-LGORT,
' ' 'BDC_OKCODE' '/0',
'X' 'SAPMM07M' '0421',
' ' 'MSEGK-UMWRK' '94',
' ' 'MSEGK-UMLGO' I_MCHB-LGORT,
' ' 'BDC_OKCODE' 'NLE',
*CODING BLOCK
'X' 'SAPLKACB' '0002',
' ' 'BDC_OKCODE' '/0',
'X' 'SAPMM07M' '0421',
' ' 'MSEG-MATNR(1)' I_MCHB-MATNR,
' ' 'MSEG-ERFMG(1)' W_QTY,
' ' 'MSEG-CHARG(1)' I_MCHB-CHARG,
' ' 'BDC_OKCODE' '/0',
*CODING BLOCK
'X' 'SAPLKACB' '0002',
' ' 'BDC_OKCODE' '/0',
*CODING BLOCK
'X' 'SAPLKACB' '0002',
' ' 'BDC_OKCODE' '/0',
* 'X' 'SAPMM07M' '0410',
* ' ' 'BDC_OKCODE' '/0',
*CODING BLOCK
* 'X' 'SAPLKACB' '0002',
* ' ' 'BDC_OKCODE' '/8',
*CODING BLOCK
* 'X' 'SAPLKACB' '0002',
* ' ' 'BDC_OKCODE' '/8',
'X' 'SAPLJ2CW' '0190',
' ' 'J_5C7-UMCHA' I_MCHB-CHARG,
' ' 'BDC_OKCODE' '/7',
'X' 'SAPMM07M' '0421',
' ' 'BDC_OKCODE' '/11',
*CODING BLOCK
'X' 'SAPLKACB' '0002',
' ' 'BDC_OKCODE' '/0'.
IF P_DISP = 'X'.
W_MODE = 'A'.
ELSE.
W_MODE = 'N'.
ENDIF.
CALL TRANSACTION 'MB1B' USING BDCDATA MODE W_MODE UPDATE 'S'
MESSAGES INTO MESSTAB.
WRITE: / I_MCHB-MATNR, I_MCHB-CHARG, I_MCHB-LGORT,
I_MCHB-J_2CTRNR, I_MCHB-J_2CELNG.
IF SY-SUBRC NE 0.
* what to do if there's an error????
LOOP AT MESSTAB.
SY-MSGNO = MESSTAB-MSGNR.
CALL FUNCTION 'WRITE_MESSAGE'
EXPORTING
MSGID = MESSTAB-MSGID
MSGNO = SY-MSGNO
MSGTY = MESSTAB-MSGTYP
MSGV1 = MESSTAB-MSGV1
MSGV2 = MESSTAB-MSGV2
MSGV3 = MESSTAB-MSGV3
MSGV4 = MESSTAB-MSGV4
MSGV5 = MESSTAB-MSGV4
IMPORTING
* error =
MESSG = W_MESSAGE
* msgln =
EXCEPTIONS
OTHERS = 1.
WRITE: / W_MESSAGE.
* message id messtab-msgid type 'I' number messtab-msgnr.
ENDLOOP.
ENDIF.
ENDFORM. " CHANGE_BILLING_TYPE
* FORM DYNPRO - new form smt nov 1998
* > DYNBEGIN
* > NAME
* > VALUE
FORM DYNPRO USING DYNBEGIN NAME VALUE.
IF DYNBEGIN = 'X'.
CLEAR BDCDATA.
MOVE: NAME TO BDCDATA-PROGRAM,
VALUE TO BDCDATA-DYNPRO,
'X' TO BDCDATA-DYNBEGIN.
APPEND BDCDATA.
ELSE.
CLEAR BDCDATA.
MOVE: NAME TO BDCDATA-FNAM,
VALUE TO BDCDATA-FVAL.
APPEND BDCDATA.
ENDIF.
ENDFORM.
Edited by: raj on Jun 5, 2009 7:55 AM -
Hi ,
I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
Thanks & Regards,
sreehari
Moderator Message: Search for available information on the web before posting
Edited by: kishan P on Sep 3, 2010 9:51 AMHi ,
I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
Thanks & Regards,
sreehari
Moderator Message: Search for available information on the web before posting
Edited by: kishan P on Sep 3, 2010 9:51 AM -
LSMW - for Customised Transactions
Hi,
I had read that LSMW is used for SAP Transactions but since we have BDC recording option in LSMW,cant we use LSMW for Custom Transactions ?/
Regards,
Chitwanjit SinghWell, I'll close my query here. I got the answer on internet.
Regards,
Chitwanjit -
How to create LSMW for a transaction having scroll bar
Hi all,
I am trying to create an LSMW for MP)! transaction for Uploading AMPL (Approved Manufacturer Parts list data) data.
For this LSMW is not working fine when i need to upload more number of records. Suggest me some way to solve it out,Also provide me some code samples and process if it can be handled with BDC.
Thanks,
Pavan.you can solve it with bdc:
e.g. a table control contains only 10 entries , you've to program the dynpro-change ( in german "Bildwechsel")
with sth like this:
ERG = BUZEI MOD 10 .
IF ERG = 1.
Dynpro darf nur alle 10 Zeilen prozessiert werden -
PERFORM BDC_DYNPRO USING 'SAPMF10B' '0150'. "ins
ENDIF.
add 1 to buzei.
A. -
LSMW for Asset Creation not creating Transaction
Hi,
I am using standard LSMW for creating Asset into the SAP system and passing transaction code as AS91.
Object: 0160
Method: 0001
Program Name: RAALTD01
Program Type: B
The asset is getting created, but even after passing the Transaction Data (Structure BALTB), with T-Code AS91, it is not creating the transaction record into Asset.
Any solution / work around for this?
Thanks & Regards,
Sandip kamdartry with recording method, i had done this for same tcode and sucessfully completed the job.
-
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 thePlease 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 -
BDC or lsmw for ABT1N Transaction
Hi gurus,
last day i got some problem when i do a lSMW for ABT1n Tran.i am thankful to u if u please help me that how can i do it.please give me a complete document for that trans and also a text file so that i properly update it.
if u do any BDC program for that transaction please give me that program .it's very urgent for me....
Thanks in advance....Hi Steve,
BAPI_HU_CREATE itself creates HU. You can refer the HU number genrated by this BAPI itself. I hope you are calling bapi as below:
CALL FUNCTION 'BAPI_HU_CREATE'
EXPORTING
HEADERPROPOSAL = L_WA_HU_HEAD
IMPORTING
HUHEADER = L_WA_HU_HEADER
HUKEY = L_V_HU_NUMBER
TABLES
ITEMSPROPOSAL = L_I_HU_ITEM
RETURN = I_HU_RETURN
HUITEM = L_I_CREATE_HU.
Here, L_V_HU_NUMBER is the HU generated.
Thanks,
Archana
Edited by: Archana Pawar on Sep 29, 2010 7:47 AM -
LSMW for t-code ABSO (Create Asset Transaction)
Hi All,
I'm new to LSMW.
I get the requirement to create LSMW tool using t-code - ABSO(Create Asset Transaction).
Could anyone provide some idea/ guide how I perform recording while the
- transaction type A and B restrict posting to <u>depreciation area 04</u> only.
Is there any way to verify / do it? Please kindly advise.
Thank you!Hello Little
I know this is a very old thread. I am in a similar situation as you were. We have multiple transaction type, each calling specific depreciation areas only. Thus my input file has, for each asset a Depreciation amount, special depreciation etc, based on the transaction type. When I create the LSMW, it maps the target fields (like NAFAV, NAFAL etc) to only one depreciation area. Thus all the values during running the file are wrong.
Can you tell me how you managed this?
Like you I am also new to LSMW!
Thank you -
LSMW for Object 140 (Class) - Using Batch
Hi All,
I am trying to use LSMW to change status for an already defined class. I am using object 0140 (program RCCLBI01), but when doing the data transfer, it keeps trying to do it as a create class (tcode CL01).
In the source relations for structure BIKLA, I see the tcode field. I changed this default to CL02, however I get an error - that transaction CL02 is not supported by this program.
Pls advise if you have worked on such a scenario before.
It appears to me that the next option is try BAPI/ ALE. Let me know if anyone has tried this earlier, as I am going to give it my first shot now.
Thanks!!
LizHi, You can create a small recording as a second step to change the status of a class.
Hope this helps.
Best Regards, Murugesh -
ORA-00164 Autonomous transaction when creating batch of users
Hi,
I ran the script posted earlier in this forum to create a batch of users, I got some errors, support people told me that is appears to be database errors :
ORA-00164 Autonomous transaction disallowed with distributed transaction.
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL30.WWCTX_SSO", line 669 ORA-06502: PL/SQL: numeric or value error.
We use 8.1.7.2 database, Portal 3.0.9.8.
Anyone having a solution for that problem, I don't want to create 250 users manually.
Thank'si'm getting the same thing, but i'm using hardcoded input,
so i have no dblinks or anything of the sort.
this is my entire exception line:
ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SYS.OWA_UTIL", line 323 ORA-06512: at "SYS.HTP", line 859 ORA-06512: at "SYS.HTP", line 974 ORA-06512: at "SYS.HTP", line 992 ORA-06512: at "SYS.HTP", line 40 ORA-06512: at "PORTAL30_SSO.WWSEC_UI", line 568 ORA-06512: at "PORTAL30_SSO.WWSSO_APP_USER_MGR", line 576 ORA-06512: at line 1
any idea what is causing this? -
Dear all,
For the migration data project , to migrate sales transaction(contract) from our legacy system to SAP in a huge amount, we use LSMW with I doc processing, we upload the data with three steps :
1. first we upload the sold to party, 2.then we upload the ship to party,3.we upload the bill to party.
When im upload the sold to party, the system otomatically generate ship to party and bill to party with the same number BP as sold to party, so when i upload the ship to party, my contract become have two ship to party, and its also happen when i upload the bill to party. We have use the same method 6 month ago to our system and this situation doesn't happen back then(back then the system dosen't otomatically generate ship to party and bill to party with the same number BP as sold to party). Could anyone tell me what could be the problem? Thank you.
Regards
IndahDear Glenn,
I'm doing LSMW in CRM, just for information i already done building relationship for sold to party, bill to party and ship to party, one sold to party may have many ship or bill to party. And the data is really huge so i can't mantain which the main partner for sold to party each time, because they could have different ship to party,do you have another solution??
Thank you
Regards
Indah Puspita
Edited by: Indah Puspita on Jan 7, 2008 8:38 AM -
LSMW for transaction PA30.
Hi Experts,
I want to know the steps to create LSMW for Transaction code PA30 (recording).Please dont send me LSMW for other transactions.....I need the steps only for PA30 transaction. Points will be rewarded.Check this site for LSMW document..
http://www.erpgenie.com/abap/index.htm
Check this link for Step-by-Step Guide for using BAPI in LSMW with screen shots
http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
Check these threads.
Inbound Idoc With LSMW
LSMW Using IDOC
Also check this link too
http://www.abapprogramming.blogspot.com/2007/08/difference-between-conversion-and.html
regards. -
LSMW for transaction code -TRS_SEC_ACC- Securities Accounts
Hi Experts,
I have to create a LSMW for the transaction code TRS_SEC_ACC.please help me to find out any standard method for the above to create the Securities Accounts.
Regards
SwarajI have never worked with the transaction
TRS_SEC_ACC
but F4 search help in Bapi method in LSMW gives me
BUS5200
CREATE
maybe OSS Note 777320 - CMS 3.0: Data migration from CML to CMS
can help you further
Maybe you are looking for
-
Photos in my from my iPhone have the same numbering as photos from my digital camera. They all go into iPhoto fine but when I backup to my ext hard drive it will only save one with the name IMG 1002 and I have two separate images both with that name
-
My Macbook is old enough, where do I buy a replacement battery
My Macbook is old enough, and the battery almost dead. I don't want to buy original battery from Apple store again. But I would like to continue to use the computer for some time. Where to buy a compatible battery? Not Ebay, California online store w
-
HT5661 unlocking phone when slider wont open
My phone was dropped and the touchscreen doesn't respond is there any way to voice unlock it?
-
Data Manager : SQL Update Error
HI Gurus, In Data Manager, we are trying to execute assignment on 900 records at once, assignment working fine when we split it in to 300 inbatch, but it gives assignment execution failed : SQL Update error, while we execute on 900 records in a strea
-
I am experimenting with a JQuery Mobile page in a non-threatening environment: a mobile website for my daughter's softball team. You can see it at www.altman.com/softball -- touch "Practice and game schedule." My issue is with a Google Calendar that