LSMW Read Data behaving differently in production and in ECC
Hi All,
I have writte a LSMW for CJ12 longtext and it is working fine in development but in production it giving error message at 13th step as BDC_INSERT, Transaction code .. is invalid and when i try to simulate the issue i found that in Read Data step i found the difference as transactions read in development are 399 where as the transactions read in production are 267 for the same file.And i debugged the Display Read program and observed that the read program used GUI_UPLOAD to read the data from the text file.and there itself the GUI_UPLOAD internal table contains 399 in development and 267 in production.I tried to simulate why this is happening but coldn't figure out.Can any one help me why this has happened.And we are using ECC6 with EHP4 in development and EHP3 in production and it has to upgrade to EHP4.
if you are really certain about the source file (I doupt too) then there are only 2 more possibilities
a) your LSMW object is different (transport it again from developement to production, only so you can be sure that LSMW object and source will be the same)
b) a real SAP error because of different release levels. Open a ticket at SAP to get help.
Similar Messages
-
1-Why Reports format behaves different in Excel and browser(if desformat=html or pdf)?
2-I made three queries Q1,Q2 & Q3 and linked them with proper field links but suppose Q3 returns no records for some Q1&Q2 records & when the report runs for delimited options it reflects only those records as output for which all the queries return records(if Q3 returns no record then the related records from queries Q1,Q2 don't reflect) while the output in desformat=html or pdf is ok..
can you please resolve my problems
( I have installed patch 5a in my report server machine)
Thanks & Regds.
Suneel
nullWhat do you mean by "different"? (In our
experience, Oracle html output has too many
columns, which are not visible in the
browser but are obvious in Excel.)
We build our own html programmatically, so
that Excel matches the browser more closely.
-- Allan Plumb -
Most common BW data load errors in production and how to solve them ..
Hi All,
Most common BW data load errors in production and how to solve them ..
Any doc on it ,if so plz send it across to this id [email protected]
Thanks in advance.
Rgrds
shobahi
1) RFC connection lost.
2) Invalid characters while loading.
3) ALEREMOTE user is locked.
4) Lower case letters not allowed.
5) While loading the data i am getting messeage that 'Record
the field mentioned in the errror message is not mapped to any infoboject in the transfer rule.
6) object locked.
7) "Non-updated Idocs found in Source System".
8) While loading master data, one of the datapackage has a red light error message:
Master data/text of characteristic 'so and so' already deleted .
9) extraction job aborted in r3
10) request couldnt be activated because theres another request in the psa with a smaller sid
11) repeat of last delta not possible
12) datasource not replicated
13) datasource/transfer structure not active ´
14) Idoc Or Trfc Error
15. ODS Activation Error -
Read data from MDM For Lookup and Flat table using MDM ABAP API
Hi,
I have requriment to read data from MDM from FLAT and Lookup table using MDM ABAP API. My design is like this ,
I have one ITEMS (Main table in MDM) and inside that i have one Lookup flat table ITEM_TYPE , my requriment is to read Item number and its related Item type.
From ABAP.
Please help if any body has any idea.
Regards,
ShyamHI Guys,
I found my solution by myself. Below is the solution , hope this will help others:-
Retrieve data from MDM using MDM ABAP API.
Step- 1. Create structure in SAP with the same name as that of MDM field code for MDM Main table.
Step-2. Create another structure in SAP having all lookup fields of MDM , fieldname in ECC must be same as that of MDM field
code.
Step-3.Create structure in SAP for individual lookup field(Single Field only) with the same name as MDM Field code.
Step-4.
DATA: IT_QUERY TYPE STANDARD TABLE OF MDM_QUERY, "MDM_QUERY_TABLE,
WA_QUERY TYPE MDM_QUERY,
WA_CDT_TEXT TYPE MDM_CDT_TEXT,
IT_RESULT_SET_KEY TYPE MDM_SEARCH_RESULT_TABLE,
WA_RESULT_SET_KEY TYPE MDM_SEARCH_RESULT,
WA_STRING TYPE STRING.
DATA:<Internal table> TYPE STANDARD TABLE OF <SAP Str Having all LOOKup Fields>
DATA: :<Internal table>TYPE STANDARD TABLE OF <SAP Str one LOOKup field>,
<Workarea> LIKE LINE OF :<Internal table>.
*PASS LOGICAL OBJECT NAME.
V_LOG_OBJECT_NAME = 'Logical object name defined in Customization'.
Define logon language, country & region for server
WA_LANGUAGE-LANGUAGE = 'eng'.
WA_LANGUAGE-COUNTRY = 'US'.
WA_LANGUAGE-REGION = 'USA'.
TRY.
CREATE OBJECT LR_API
EXPORTING
IV_LOG_OBJECT_NAME = V_LOG_OBJECT_NAME.
ENDTRY.
CONNECT to repository. Apply particular logon language info
CALL METHOD LR_API->MO_ACCESSOR->CONNECT
EXPORTING
IS_REPOSITORY_LANGUAGE = WA_LANGUAGE.
*NOW PASS ITEM NO AND GET KEY FROM MDM.
CLEAR WA_QUERY.
WA_QUERY-PARAMETER_CODE = <MDM FIELD CODE>. "Field code
WA_QUERY-OPERATOR = 'EQ'. "Contains
WA_QUERY-DIMENSION_TYPE = 1. "Field search
WA_QUERY-CONSTRAINT_TYPE = 8. "Text search
WA_STRING = <Field Value>.
GET REFERENCE OF WA_STRING INTO WA_QUERY-VALUE_LOW.
APPEND WA_QUERY TO IT_QUERY.
CLEAR WA_QUERY.
*PASS ITEM NUMBER AND GET RELATED KEY FROM MDM.
TRY.
CALL METHOD LR_API->MO_CORE_SERVICE->QUERY
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Main Table>
IT_QUERY = IT_QUERY
IMPORTING
ET_RESULT_SET = IT_RESULT_SET_KEY.
CATCH CX_MDM_COMMUNICATION_FAILURE .
CATCH CX_MDM_KERNEL .
CATCH CX_MDM_NOT_SUPPORTED .
CATCH CX_MDM_USAGE_ERROR .
CATCH CX_MDM_PROVIDER .
CATCH CX_MDM_SERVER_RC_CODE .
ENDTRY.
Pass record id into keys.
LOOP AT IT_RESULT_SET_KEY INTO WA_RESULT_SET_KEY.
WA_KEYS = WA_RESULT_SET_KEY-RECORD_IDS.
ENDLOOP.
WA_RESULT_SET_DEFINITION-FIELD_NAME = <Look field name>.
APPEND WA_RESULT_SET_DEFINITION TO IT_RESULT_SET_DEFINITION.
CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Main Table>
IT_RESULT_SET_DEFINITION = IT_RESULT_SET_DEFINITION
IT_KEYS = WA_KEYS
IMPORTING
ET_RESULT_SET = IT_RESULT_SET.
LOOP AT IT_RESULT_SET INTO
WA_RESULT_SET.
*PASS KEYS INTO MAIN TABLE TO GET Structure for FALT or Look up Table
TRY.
CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Main Table>
IT_KEYS = WA_KEYS
IMPORTING
ET_DDIC_STRUCTURE =<SAP Strct having all Look up fileds of MDM>
ENDTRY.
LOOP AT <SAP Strct having all Look up fileds of MDM> INTO <Work area>.
CLEAR WA_KEYS.
APPEND <Work area>-field name TO WA_KEYS.
CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Lookup table name>
IT_KEYS = WA_KEYS
IMPORTING
ET_DDIC_STRUCTURE = <Single Structure in SAP For Lookup field>.
READ TABLE <Single Structure in SAP For Lookup field>. INTO <Work Area> INDEX 1.
Here you can get the value of realted lookup fields associated with main table data.
ENDLOOP.
ENDLOOP.
LR_API->MO_ACCESSOR->DISCONNECT( ).
Edited by: Shyam Babu Sah on Nov 24, 2009 4:52 AM -
Ugrent help. User exit- Read data from BW BPS layout and write to ODS
Hi,
I am new to BW BPS and have a req. where i need to read data from BPS layout (EXCEL) and write it to ODS.
Is there any function module or user exit which read data from excel layout and upload it to ODS. Or can any one help me out how can i write a code for this.
It is urgent and i need your help.
Appreciate any kind of input.
Thanks
MamathaDear Mamatha,
read following documents. i hope it will work for you.
[http://www.geocities.com/cynarad/reference_for_bps_programming.pdf]
[Accessing BW Master Data in BPS Functions using ABAP ( Exit Function )|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3dcc423-0b01-0010-4382-aa3e0784b61e]
Regards,
Malik
Give me points if its helpful for you. -
Read statement - behaving diffrently in development and prodution
Dear friend,
LOOP AT IT_DATA INTO WA_DATA.
READ TABLE IT_BKPF INTO WA_BKPF---------------------------------------------------------------
WITH KEY BUKRS = WA_DATA-BUKRS
GJAHR = WA_DATA-GJAHR
BELNR = WA_DATA-BELNR BINARY SEARCH.
IF SY-SUBRC = 0.
WA_DATA-STGRD = WA_BKPF-STGRD.
MODIFY IT_DATA FROM WA_DATA TRANSPORTING STGRD.
ENDIF.
CLEAR : WA_DATA, WA_BKPF.
ENDLOOP.
piece code of my program, the most strange thing it working proper in devlopment ,but not in prodution
where i made big line(-------) in that work area data not coming when the cursor on sy-subrc.
kindly help me out
victor ezaaz
Edited by: Matt on Aug 8, 2011 1:20 PM added tagsHi ,
LOOP AT IT_DATA INTO WA_DATA.
READ TABLE IT_BKPF INTO WA_BKPF---------------------------------------------------------------
WITH KEY BUKRS = WA_DATA-BUKRS
GJAHR = WA_DATA-GJAHR
BELNR = WA_DATA-BELNR BINARY SEARCH.
IF SY-SUBRC = 0.
WA_DATA-STGRD = WA_BKPF-STGRD.
MODIFY IT_DATA FROM WA_DATA TRANSPORTING STGRD.
ENDIF.
CLEAR : WA_DATA, WA_BKPF.
ENDLOOP.
in above code you have used work area WA_DATA . Please check which table you have assigned while creating wa_data whether thay have same no of fields and order in Production and Development .
regards
Deepak. -
How to read data with different XML schemas within the single connection?
I have Oracle 11g database
I access it through jdbc:oracle:thin, version 11.2.0.3, same as xdb.
I have several tables, each has one XMLType column, all schema-based.
There are three different XML schemata registered in the DB
I may need to read the XML data from several tables.
If all the XMLTypes have the same XML schema ,there is no problem,
If the schemata are different, the second read throws BindXMLException.
If I reset the connection between the reads of the XMLType column with different schemata, it works.
The question is: how can I configure the driver, or the connection to be able to read the data with different XML schemata without resetting the connection (which is expensive).
The code to get the XMLType data is textbook implementation:
1 ResultSet resultSet = statement.executeQuery( sql ) ;
2 String result = null ;
3 while(resultSet.next()) {
4 SQLXML sqlxml = resultSet.getSQLXML(1) ;
5 result = sqlxml.getString() ;
6 sqlxml.free();
7 }
8 resultSet.close();
9 return result ;It turns out, that I needed to serialize the XML on the server and read it as Blob. Like this:
1 final Statement statement = connection.createStatement() ;
2 final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ;
3 ResultSet resultSet = statement.executeQuery( sql ) ;
4 String result = null ;
5 while(resultSet.next()) {
6 Blob blob = resultSet.getBlob( 1 );
7 InputStream inputStream = blob.getBinaryStream();
8 result = new Scanner( inputStream ).useDelimiter( "\\A" ).next();
9 inputStream.close();
10 blob.free();
11 }
12 resultSet.close();
13 statement.close();
14
15 System.out.println( result );
16 return result ;
17
Then it works. Still, can't get it work with XMLType in resultset.On the client unwrapping XML blows up when trying to switch to different XML schema. JDBC/XDB problem? -
hi,i m upoladed the data lsmw through. i already Assign the files in lsmw,but when i import the data through Execut- import data for z92.fi, vendor. and when i execut the import data The " Errors, Unable to write to file 'd:\Z92_FI_VENDORS.lsmw.read'
Message no. /SAPDMC/LSMW804
so, if anybody knows then reply very soon.
because its very urgent
Reagrds,
pritesh
9898986357Hi,
I have posted one invoice for vendor which has reconcialtion A/c 28000.
Now i have changed the Reco. A/c in vendor master from 28000 to 28100.
now the problem is that i want to transfer the posted entries ,which was in A/c 28000 (Reco. A/c), to 28100 (Reco. A/c)
So, how can i transfer the same and if any t.code to run then whic is the t.code for the same.
Its very urgent
Regards,
Pritesh -
Hi guys..
I'm currently testing out on LSMW
I'm trying to create new material for transaction MM01.
But when i click on Step 9: Read Data
i get a shortdump
What happened?
The current ABAP program had to be terminated becaus
ABAP processor detected an internal system error.
The current ABAP program "/1CADMC/SAP_LSMW_READ_0000
because the ABAP
processor discovered an invalid system state.
1: SQL error
2: Invalid value in call
3: Screen number in header (field DNUM) and in ID
4: Internal error in the database interface
8: Memory filled (used up)
16: Buffer too small for data
32: Unkown table in call
64: Invalid selection
128: Object with this key exists more than once
Here is my source Fields
Source Fields
MM01SS MM01 Source Structure
MATNR C(018) Material
MBRSH C(001) Industry Sector
MTART C(004) Material Type
MEINS C(003) Base Unit Of Measure
MAKTX C(040) Material Description
Below are links to the field mapping stuff
<a href="http://img93.imageshack.us/img93/4043/1ju0.jpg">Screen shot 1</a>
<a href="http://img167.imageshack.us/img167/3240/2rn4.jpg">Screen shot 2</a>
the dummy.txt is having :
MATNR MBRSH MTART MEINS MAKTX
AC26 I aa BAG xxx1
AC27 I bb BAG xxx2
AC28 I aa BAG xxx3
AC29 I bb BAG xxx4
AC30 I aa BAG xxx5
AC31 I bb BAG xxx6
AC32 I aa BAG xxx7
AC33 I bb BAG xxx8
AC34 I aa BAG xxx9
AC35 I bb BAG xxx10
AC36 I aa BAG xxx11
AC37 I bb BAG xxx12
AC38 I aa BAG xxx13
AC39 I bb BAG xxx14
AC40 I aa BAG xxx15
AC41 I bb BAG xxx16
AC42 I aa BAG xxx17
AC43 I bb BAG xxx18
AC44 I aa BAG xxx19
AC45 I bb BAG xxx20
AC46 I aa BAG xxx21
AC47 I bb BAG xxx22
AC48 I aa BAG xxx23
Did i leave out anything?oh yea, one more thing , the file assigning part
Files
Legacy Data On the PC (Frontend)
Test data C:\Documents and Settings\XXXXXXX\Desktop\dummy.txt
Data for One Source Structure (Table)
Separator Tabulator
Field Names at Start of File
With Record End Indicator (Text File)
Code Page ASCII
Legacy Data On the R/3 server (application server)
Imported Data File for Imported Data (Application Server)
Imported Data TEST_CREATE_MATERIAL.lsmw.read
Converted Data File for Converted Data (Application Server)
Converted Data TEST_CREATE_MATERIAL.lsmw.conv
Wildcard Value Value for Wildcard '*' in File Name -
LSMW - Read Data vs Convert Date for DATES
Hi everybody,
I have a problem with my LSMW for a <b>date field</b>.
In the .txt file it is defined as 01.01.1900.
(I can change it, e.g. make 01011900 but at the end SAP wants to have 01.01.1900 as input)
In the 'Maintain Source Fields' of my LSMW I defined it as a DDMY(010) field.
When 'Reading the Data' you can choose to check Date Value -> YYYYMMDD
When I <u>check</u> it, it gives:
For 'Display Read Data': 19000101
And after 'Convert Data' : 01011900
When I <u>don't check</u> it, it gives:
For 'Display Read Data': 01.01.1900
And after 'Convert Data' : 191.01.0 (?!?)
The fact is that in SAP it needs to be in following format: 01.01.1900 (so DD.MM.YYYY) so none of both solutions is right.
Can anybody tell me how I should configure this LSMW that I can transfer dates properly?
Thank you very much!
Kind Regards,
CarolineHi Caroline,
before doing upload change ur system settings to yyyy.mm.dd (just go to menu bar click on System->user profile->own data in this go for default ) and save it and do log off and log in ,
and then go for source fields and specify the Date field length as 8 char,
and then in mapping step for that particular field write the code as per the below
just change as per ur Target structure and Source structure and field name .
Make sure that in ur input file the Date field is in the format of yyyy.mm.dd
if not as91_ztable-AKTIV is initial.
replace '.' with '' into as91_ztable-AKTIV.
replace '.' with '' into as91_ztable-AKTIV.
condense as91_ztable-AKTIV no-gaps.
BALTD-AKTIV = AS91_ZTABLE-AKTIV.
else.
baltd-aktiv = '/'.
endif.
Thanks
Naveen khan
Message was edited by:
Pattan Naveen -
Error while reading data for Virtual Infoprovider 0TCT_VC11 and 0TCT_VC12
Hi ,
The standard reports based on 0TCT_VC11 and 0TCT_VC12 are working fine in development system. When we moved the following objects to test system ,
0TCT_VC11 - 0TCT_IS11 & 0TCT_DS11
0TCT_VC12 - 0TCT_IS12 & 0TCT_DS12
We are not able to view data either in the MP nor at the report level.We face the following issue
There is still no data source assigned to VirtualProvider 0TCT_VC11
Error reading the data of InfoProvider 0TCT_VC11
Error while reading data; navigation is possible
Can anybody help me on this.
Regards,
Lavanya.Hello Lavanya,
Please activate the direct access for the virtual providers. Also note that it is only possible to use the BI admin cockpit in a myself system.
Please follow the below steps to activate the same:
TX: RSA1 ->Infoproviders-> Business Information-> BI Statistics->select
Virtual provider-> Go to context menu of the virtual cubes-> Activate
Direct Access. ( Eg virtual cube name )
Please also generate the reports by following the below steps:
RSRT -> Query name -> Generate Report.
Regards,
Arvind -
LSMW - Read Data not showing in Converted Data
Hi,
I am using LSMW to load data from a flat file (via recording). I have it working except I have one issue. When I display the data in read data all fields are showing. No errors popup when I select convert data. When I select display converted data the last few fields are missing. Any ideas why or how to fix this?
Any help is appreciated as I do not know how to proceed.
Thanks,
Annette
Edited by: Annette Ameel on Dec 4, 2008 5:37 PMHI Bush,
Currently I am also facing the same problem. In "display read data" it is showing all the field values. No error msg in "convert data". But only 2 fields are displaying in "display converted data". not showing any values in rest of the fields. Kindly suggest me how you fixed this problem -
Can Oracle Portal read data from an access DB and loaded it an Oracle DB?
Hi All.
Does Oracle Portal provides a portlet to read data from an access db so that i can transfer it to my Oracle DB?.
I believe Application Express does that .... Any portlet maybe ...?
Regards, Luis ...!There are portlets that read from a DB to make reports, you can try to create a form portlet so you can make inputs to the database, no buil-in like you wish, has to be done manually.
greetings. -
BAPI_GOODSMVT_CREATE behaving differently in development and quality
My program is behaving correctly in development system -
1. The program is run
2. Changes are made to material in MM02 transaction
3. In the program, a button is executed where I am calling a BAPI_GOODSMVT_CREATE, which returns values correctly, as per the material status (be it error or success)
In the Quality system it behaves incorrectly-
1. The program in run
2. Changes are made to material in MM02 transaction
3. In the program when the button is executed the BAPI_GOODSMVT_CREATE, seems to retain the earlier status. Recent changes to material are not reflected in the return parameter, no matter how many times I try.
4. When I restart the program, the BAPI_GOODSMVT_CREATE shows up the correct return values of the changes made in step 2.
Steps taken -
1. I have compared the versions of the code in both the systems and they are identical.
2. To be sure I once again transported the changes to the quality system, yet the problem remains.
3. I tried with a different data thinking it to be a problem with the data rather than the code, but the problem remains
Edited by: GhoshA on Mar 8, 2012 8:06 AMSo some entry related to MM02 is present in SM13 ?
In the quality system in SM13 -
Update module ID Module name (function) Type Update return code
1 MCB_STATISTICS_UPD_V2 V2 Processed
2 MCEX_UPDATE_03 Collective run Initial
3 AC_DOCUMENT_MM_UPDATE V2 Processed
4 LIEFERUNG_WRITE_DOCUMENT V2 Processed
5 SLIM_CNT_INCREASE_COUNTER V2 Processed
6 MCF_STATISTICS_UPD_V2 V2 Processed
Double clicking every entry gave - ' Status: Not yet updated'
Interestingly, in the Quality system, even after continuous refresh, the record does not get removed. However, the records in the Development system for the same situation, get removed, after four or five times refresh.
In Quality even after I restart the transaction, the records do not get removed from SM13, but again the code works correctly for the newly executed instance.
What is your opinion ? -
Hi Experts,
While Specifying the path to upload legacy data in lsmw, i have mentioned the lan server path directly to read flat file from specified network location.
Say example:
beprod4\em\4_Testing_Phase\05_Object\Upload Files\Master Codes\Master Codes.txt
An error message "File '
beprod4\em\4_Testing_Phase\05_Object\Upload Files\'does not exist or is currently locked" is coming up while reading the data from the specified path.
Can you advice me possible reasons for the error and to resolve it.
Thanks,
Kris.Hi,
In LSMW, steps; After Specify File, Did u assign the file in the next step?
Also check if the file exists in the location and is in the same format(Separators..etc) as specified while in the LSMW step: Specify files.
Regards
Shiva
Maybe you are looking for
-
Assign a value to an ODI or Java variable in a KM
Hi Gurus, I'm developing a new KM and I need to get the name of a dblink by calling an Oracle function. How to store the result of a function in an ODI or Java variable in a KM step ? And if it is in an Java variable, how to use it in this kind of st
-
Hard disk not readable by this computer
I have 2 identical WD2500JS HDD in my Mac Pro. Both worked fine for sometime, but now I'm greeted with an error message every time at boot up and the 2nd drive isn't usable/mountable/readable at all. The drive appears in the Disk Utility as "Media" a
-
Why Can't I get the slideshow to work in iWeb?
I recently created and purchased a photo book successfully. I made a pdf of the book and saved it to iPhoto. I can't get the slideshow to work. Keeps telling me to drag photos somewhere, but they are already posted. If I click I can get to the spot w
-
Yet one more issue to try to figure out. Since I started using my new iMac I have been getting periodic freezing in Safari and the web often seems much slower than it should. This forum has been a particular problem today, often hanging for a good 10
-
i need help i have 2 users in my macbook pro and in the first one i have downloaded a program and when i login in the second user i cant find the program does that mean i have to downloaded the program again in the second user