Mass entry with LSMW record or using MI04 manuelly
Hi,
We have to ask some important guestion.
WE create an LSMW record instead of MI04 manully.But we have questions ,LSMW record cause any problem at backyard.
For ex:MI04 writes 5 tables,LSMW record writes to 1 table..
They certainly cheat you if they need 7 days for this LSMW development. (What do you pay, I do it in one day.)
But they probably offer more than just the development: like functional and technical documentation , reconcilation reports, maybe the entire process from creating inventory docs to posting of differences. Testing, training, knowledge transfer, go-live support.
LSMW does not do direct table entries (with a few exceptions, which are still SAP given) , LSMW only executes recorded transactions or SAP given import methods (BAPI, IDOC) which are save and you dont need to care about the tables yourself.
Similar Messages
-
Is it possible LSMW recording method using multiple structures
Hi,
can any body tell me, is it possible LSMW recording method using multiple structures
i,e using Header details one flat file structure and Item details another flat file structuresHi,
Check this link..
LSMW multiple structure migration -
Error Useing with LSMW recording Maintenace Plan Schesule period update
Hi Experts,
I have one quary i am using Lsmw recording methode to update schedule period of around 4000 ,aintenamce plans, i created Lsmw but it is reading when i want batch input session Overview time i get following message. please help me
"LEAVE TO TRANSACTION" 1 is not allowed in batch input
Message no. 00352
Diagnosis
The specified system functionality cannot be used in batch input mode.
Procedure
Change your application so that it can be used in batch input mode.
Thanks and Regards,
RajHi,
It seems thereis a problem with the recording.
Please try to create a fresh trecording and the excel file which you are using check it also.
regards
Amit Parkhi -
Problem with Multiple record creation using BAPI BAPI_PRICES_CONDITION
Hi,
I am working on IS Media Sales And Distribution wherein i am using BAPI BAPI_PRICES_CONDITION for condition record creation in TCODE JC9B. I am able to create one record using this BAPI for one sales promotion but having problem while creation of multiple records for the same sales promotion wherein my internal table have multiple records. It gives me error that data in BAPICONDIT is missing.
I am aatching followig code for reference
BAPI have field of varkey which i am filling as combination of sales org. + distn channel + sales promotion + delivery type
In this varkey delivery type is changing for sales promotion Can be said that one sales promotion can have multiple delivery type .
Am i giving the correct varkey for each itration of internal table ?
I am attaching code for reference.
Here loop it_cond contain one promotion and multiple delivery type.
sales org distn ch promotion delivery
0100 01 zsalesprom 03
0100 01 zsalesprom z3
LOOP AT it_cond INTO wa_cond.
Get next condition number
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'KONH'
QUANTITY = '1'
SUBOBJECT = ' '
TOYEAR = '0000'
IGNORE_BUFFER = ' '
IMPORTING
number = number
QUANTITY =
RETURNCODE =
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Here i am concacating varkey for each new delivery
CLEAR : l_min,l_length,l_var.
CONCATENATE wa_cond-vkorg wa_cond-vtweg wa_cond-wrbakt INTO l_var.
l_length = STRLEN( l_var ).
IF l_var+14(2) IS INITIAL.
WRITE wa_cond-lifart TO L_VAR+14.
l_length = STRLEN( l_var ).
ENDIF.
W_LINE = W_LINE + 1.
*First table in BAPI
wa_bapicondct-operation = '009'.
wa_bapicondct-cond_usage = 'A'.
wa_bapicondct-table_no = '506'.
wa_bapicondct-applicatio = 'J0'.
wa_bapicondct-cond_type = 'RATE'.
wa_bapicondct-varkey = l_var.
wa_bapicondct-valid_to = wa_cond-datbi.
wa_bapicondct-valid_from = wa_cond-datab.
wa_bapicondct-cond_no = number. "
APPEND wa_bapicondct TO it_bapicondct.
*Second table in BAPI
wa_bapicondhd-operation = '009'.
wa_bapicondhd-cond_no = number.
wa_bapicondhd-cond_usage = 'A'.
wa_bapicondhd-table_no = '506'.
wa_bapicondhd-created_by = sy-uname.
wa_bapicondhd-creat_date = sy-datum.
wa_bapicondhd-applicatio = 'J0'.
wa_bapicondhd-cond_type = 'RATE'.
wa_bapicondhd-varkey = l_var.
wa_bapicondhd-valid_from = wa_cond-datab.
wa_bapicondhd-valid_to = wa_cond-datbi.
APPEND wa_bapicondhd TO it_bapicondhd.
*Third table in BAPI
wa_bapicondit-operation = '009'.
wa_bapicondit-cond_no = number.
wa_bapicondit-cond_count = wa_cond-cond_count.
wa_bapicondit-applicatio = 'J0'.
wa_bapicondit-cond_type = 'RATE'.
wa_bapicondit-calctypcon = 'C'.
wa_bapicondit-scaletype = 'A'.
wa_bapicondit-cond_value = wa_cond-kbetr.
wa_bapicondit-condcurr = wa_cond-konwa.
wa_bapicondit-promotion = wa_cond-wrbakt.
APPEND wa_bapicondit TO it_bapicondit.
*Fourth table in BAPI
wa_bapicondqs-operation = '009'.
wa_bapicondqs-cond_no = number.
wa_bapicondqs-cond_count = wa_cond-cond_count.
wa_bapicondqs-currency = wa_cond-kbetr.
wa_bapicondqs-condcurr = wa_cond-konwa.
wa_bapicondqs-cond_unit = 'EA'.
wa_bapicondqs-LINE_NO = W_LINE."'0001'.
APPEND wa_bapicondqs TO it_bapicondqs.
*Fifth table in BAPI
wa_bapicondvs-operation = '009'.
wa_bapicondvs-cond_no = number.
wa_bapicondvs-cond_count = wa_cond-cond_count.
wa_bapicondvs-currenckey = wa_cond-konwa.
wa_bapicondvs-currenciso = wa_cond-konwa.
wa_bapicondvs-currency = wa_cond-kbetr.
wa_bapicondvs-condcurr = wa_cond-konwa.
wa_bapicondvs-curren_iso = wa_cond-konwa.
wa_bapicondvs-LINE_NO = W_LINE."'0001'.
APPEND wa_bapicondvs TO it_bapicondvs.
CALL FUNCTION 'BAPI_PRICES_CONDITIONS'
EXPORTING
PI_INITIALMODE = ' '
PI_BLOCKNUMBER =
TABLES
ti_bapicondct = it_bapicondct
ti_bapicondhd = it_bapicondhd
ti_bapicondit = it_bapicondit
ti_bapicondqs = it_bapicondqs
ti_bapicondvs = it_bapicondvs
to_bapiret2 = it_bapiret2
to_bapiknumhs = it_bapiknumhs
to_mem_initial = it_cnd_mem_initial
EXCEPTIONS
update_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
RETURN =
CLEAR : wa_bapicondct,wa_bapicondhd,wa_bapicondvs,wa_bapicondqs.
CLEAR : wa_bapicondit.
ENDLOOP.
ENDIF.
ENDIF.
Kindly Suggest.
Thanks
ParagSolved By myself
There is problem while passing data to internal table for item level -
Error while uploading Product master with LSMW Idoc method using XIF
Hi Madhura,
Please check it out the length of material field and maintain the guid for the product , check it out the atatus maintained to maintain the product i.e insert(I) or Update(U).
Regards,
Naveen
Edited by: Naveen Kumar on Jul 7, 2009 4:35 PMHello,
I could identify the error. It was due to incorrect UOM. Problem resolved.
Thanks,
Madhura -
JDBC MS Access--- cannot extract entry with null value with data type Meta
I'm trying to extract a data entry with null value by using JDBC. The database is MS Access.
The question is how to extract null entry with data type memo? The following code works when the label has data type Text, but it throws sqlException when the data type is memo.
Any advice will be appreciated! thanks!
Following are the table description and JDBC code:
test table has the following attributes:
Field name Data Type
name Text
label Memo
table contents:
name label
me null
you gates
Code:
String query = "SELECT name, label FROM test where name like 'me' ";
ResultSet rs = stmt.executeQuery(query);
while (rs.next())
String name = rs.getString("name");
rs.getString("val");
String label = rs.getString("label");
System.out.println("\t"+name+"\t"+label);
catch (SQLException ex)
System.out.println(ex.getSQLState());
System.out.println(ex.getErrorCode());
System.out.println("in sqlexception");
output:
C:\Temp\SEFormExtractor>java DBTest
yet SELECT name, label FROM test
null
0
in sqlexceptionThe question is how to extract null entry with data type memo?Okay, what you need to do is this:
if (rs.getString("val") == null)
// do something
}This way, when it's a null value, you can check it first, and then handle it how you want, rather than getting an exception. -
Flat File with multiple record types (OWB 10.2.0.2)
Hi!
I`m using OWB 10.2.0.2 and I`m trying to load a flat file with multiple record types, using SQL LOADER.
In the flat file editor in the Record tab, I`ve set the type values and the corresponding record names like this:
Type Value Record Name
======== ===========
T TRAILER
0 DETAILS
1 DETAILS
2 DETAILS
When using this flat file in a mapping to load the data in a staging table, the generated code looks like this:
INTO TABLE TRAILER
TRUNCATE
REENABLE DISABLED_CONSTRAINTS
WHEN (1:1) = 'T'
INTO TABLE DETAILS
APPEND
REENABLE DISABLED_CONSTRAINTS
WHEN (1:1) = '0,1,2'
The above clause (WHEN (1:1) = '0,1,2') is wrong as I expect one "INTO TABLE..." clause for each record type.
Could this be a bug or am I doing something wrong?
Thanks a lot for your help,
YorgosWe`re using two target tables, one for the trailer record and the other for the details records.
We are facing this problem from the moment we upgraded from OWB 10.1 to OWB 10.2.0.2, so we think it must be something with the way the sql loader code is generated in the new version.
As our data sources are mainly flat files coming from mainframes, this is a huge problem for us. We even asked an expert in DW from Oracle to help us on this, but still haven`t found a solution.
Is there any workaround for this or should we forget sql loader and go with an external tables + custom PL/SQL code solution?
Your help is greatly appreciated Jean-Pierre.
Regards,
Yorgos -
Extended Purchase Info Record using with LSMW
HI guru's,
How to extend purchase infor record using with LSMW programm.. what is the T.Code and important fields.
regards
JKHi,
You will need to create an LSMW programme for this, the source fields will be as below
LIFNR Account Number of the Vendor
MATNR Material Number
EKORG Purchasing Organization
WERKS Plant
MAHN1 Number of days for first reminder/urging letter (expediter)
MAHN2 Number of days for second reminder/urging letter (expediter)
MAHN3 Number of days for third reminder/urging letter (expediter)
APLFZ Planned delivery time in days
UNTTO Underdelivery tolerance limit
EKGRP Purchasing group
NORBM Standard purchase order quantity
MWSKZ Tax on Sales/Purchases Code
NETPR Net price in purchasing info record
WAERS Currency Key
LTEX1_02 Long Text
LTEX2-02 Long Text
LTEX3-02 Long Text
LTEX4-02 Long Text
LTEX5-02 Long Text
LTEX6-02 Long Text
LTEX7-02 Long Text
Regards
Merwyn -
Mass Deletion Of Purchase Requisitions Without Using LSMW
Hi,
We would like to delete huge volume of PR generated through MRP. Deleting PR will be a frequent activity in our business scenario. Since the person responsible for MRP is not very much conversant with LSMW, we want to avoid using LSMW.
I tried with MEMASSQR. But 'deletion indicator' field is not available in the field list.
Is there any method through which I can carry out mass deletion of PR?Hi,
I've tryed this from Manish Kumar Agarwal :
Go to SM30 enter the table MASSFLDLST
then create the new entry object type = BUS2105
Table name = EBAN Field:- "EBAKZ" (Purchase requisition closed)
Then run MEMASSRQ and select this field and then PRs after tnat on next page you will get option like film:- carry out mass changes go ahead with it.
But strangelly, it doesnt appear in the memassrq... any idea? -
LSMW recording with XK02 to enter Bank details after the current bank data
Hi
I am using LSMW with Recording method to populate the Bank details of XK02. Here i need to get the number of Bank details using LFBK table because user need to enter the loaded Bank data as a new line each time. Please let me know in which place can i enter this Select statement to get the number of records and how can get this in LSMW.
Please let me know this.
Basani.Hi Friend,
The table control can be handle by the index recording, you need to record it with the index number in the braces with the record counter.
If you want to enter multiple entries into table control you need to go with report approach. you can't handle it in the LSMW.
Better to go with any BAPI or IDOC approach for the same.
the dummy recording for table control is as follows for your reference:-
*Second Screen
PERFORM z_bdc_dynpro USING 'SAPMV10A' '0200'.
PERFORM z_bdc_field USING 'BDC_CURSOR'
'MV10A-MATNR(01)'.
PERFORM z_bdc_field USING 'BDC_OKCODE'
'/00'.
First Material number
PERFORM z_bdc_field USING 'MV10A-MATNR(01)' <-------This is the table control index and the counter needs to be handle in report itself.
wa_cmir-matnr.
PERFORM z_bdc_dynpro USING 'SAPMV10A' '0200'.
PERFORM z_bdc_field USING 'BDC_CURSOR'
'MAAPV-ARKTX(01)'.
PERFORM z_bdc_field USING 'BDC_OKCODE'
'=SELE'.
Customer material
PERFORM z_bdc_field USING 'MV10A-KDMAT(01)'
wa_cmir-kdmat.
PERFORM z_bdc_dynpro USING 'SAPMV10A' '0300'.
PERFORM z_bdc_field USING 'BDC_CURSOR'
'MV10A-VWPOS'.
PERFORM z_bdc_field USING 'BDC_OKCODE'
'BACK'.
Regards;
Dhirendra -
LSMW Recording with multiple lines
I am creating a recording in LSMW for VA02 - Change Sales Order. My source file contains several lines from the same sales order, the sales order number is maintained in one of the columns. The order originates from an IDOC LSMW I will run ahead of the recording. When running batch input the recording only seem to apply to one line.
Is there any way to make the recording take the rows and item number into consideration and give me input for all line items?
/ErikA recording is static, if you record maintenance of 1 line, you get only one line per order.
If you record 2 lines then you get only 2 lines, and in case you have only 1 line in the source you even get a problem in loading.
For a flexible requirement you cannot use a static recording.
Use the SAP given methods to be flexible.
They provided a direct input, Object 0090 Method 0000 program RVINVB10
and there is also a IDoc with message type SALESORDER_CREATEFROMDAT2
and a BAPI BUS2032 -
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 .
-
How to upload data for me01 using lsmw recording method
*dear expert please tell me the complete procedure for how to upload data in me01 transaction using lsmw recording method.
Moderator Message: Duplicate post locked.
Edited by: Vinod Kumar on May 8, 2011 7:56 PMHi,
To be honest I don't understand your question. When You execute LSMW and create project, then all steps are shown in a very clear way with good description. With which one you have problems?
Best regards
Marcin Cholewczuk -
LSMW FOR UPLOADING INFO RECORD-ME11 USING RECODING METHOD
Hi Guys,
I am uploading inforecords using LSMW recording method.
While recording I entered net price and other things properly.
When I am running the lsmw, net price filed becoming gray(Non editable) filed and system shows error as "it is not an input filed". But if i try to execute the t-code sepeartely this filed is in editable mode.
Please let me know what is the priblem.
Thanks
DhanuHi Dhanu,
there is the easiest method to do that you can follow the Direct input method the object for info record id 0060 and program is RM06IBI0,
With this method you will not get any problems. it is SAP recommended method.
Bhima -
Hi,
I am trying to change the item data on BOM's using Tcode CS02. I was thinking of using LSMW. Has anyone ever used LSMW with multiple line selections, and if so, how did you perform this process, i.e. did you use recording or some other method with LSMW.
Thank you,
Vicki SmithHI Viccki,
You can do the LSMW recording for BOM.
Only you need to take care while preparing a file.Just now i have done recording for Material BOM with two components.Following are the fields which you need to capture in your file.
MATNR Material Number
WERKS Plant
STLAN BOM Usage
DATUV Valid-From Date
BMENG Base quantity
STLST BOM status
EXSTL BOM group
IDNRK_01 BOM component 1st
IDNRK_02 BOM component 2nd
MENGE_01 Component quantity 1st
MENGE_02 Component quantity 2nd
POSTP_01 Item Category (Bill of Material)
POSTP_02 Item Category (Bill of Material)
POSNR BOM Item Number
IDNRK BOM component
MENGE Component quantity
MEINS Component unit of measure
SANKA Indicator for Relevancy to Costing
Regards,
Manish
Maybe you are looking for
-
Itunes 10.5.2 wont open
I downloaded itunes 10.5.2 last week and it opened immediately upon downloading it. Since then i cannot get it to open. I have clicked on the desktop shortcut, i have clicked on the icon in start menu and I have tried attaching my ipod to get it to o
-
Can we rename a column name of a table in sql? if can what is the syntax?
-
I'm trying to install Photoshop CS4 on my new laptop and it won't run. I get the message: Photoshop cant run because MSCVP80.dll is missing. I have updated the windows Visual basic file plus updated Google KIC, but to no avail. By the way, Before try
-
Navigating to a view on click of a button in Webclient
Hi Gurus, I am trying to navigate to a view from one view by clicking on a button. What is the coding to be done in do_handle_event and what is the navigation link to be provided in the customized run-time repository. Any help would be appreciated an
-
Hi group, I am trying to relink "FND" utilities using adrelink.sh command as follow (Windows Installation): sh adrelink.sh force=y "fnd ADCONV.exe" Next error is showed: adrelink: Unable to determine RDBMS version adrelink is exiting with status 1 gn