Error in linking xla tables with gl
Hi ,
We have a requirement in which we have to fetch data from xla tables to post into GL. below is the query i am using to fetch the data, but i am not able to fetch any value from it. Please let me know if i have missed any join condition or there is nything which needs to be added. Client wants to fetch data for 2 tier customers.
SELECT glcc.segment1 company,
glcc.segment2 LOCATION,
glcc.segment3 dept,
glcc.segment4 ACCOUNT,
DECODE(xrra.sequence_number, 1, '101', '103') sub_account,
glcc.segment6 project,
'2 TIER' sub_source,
xla_hd.gl_transfer_status_code posted_flag,
rct.invoice_currency_code currency_code,
xla_hd.ae_header_id ae_header_id, -- TBD
xla_hd.gl_transfer_date posted_date,
xla_ln.ae_line_num line_number, --TBD
xla_ln.last_update_date gl_last_update_date,
xla_ln.accounting_date gl_date,
ROUND (
(NVL (xla_ln.entered_cr, 0) - NVL (xla_ln.entered_dr, 0)),
0)
amount,
ROUND (
(NVL (xla_ln.accounted_cr, 0)
- NVL (xla_ln.accounted_dr, 0)),
0)
acctd_amount,
ROUND (
(NVL (xla_ln.entered_cr, 0) - NVL (xla_ln.entered_dr, 0))
* DECODE (gl.currency_code,
'USD', 1,
gdr.conversion_rate),
0)
acctd_amount_usd,
rctt.name trx_name,
gl.currency_code functional_currency_code
FROM gl_daily_rates gdr,
gl_code_combinations glcc,
apps.xla_distribution_links xla_dl,
apps.xla_ae_lines xla_ln,
apps.xla_ae_headers xla_hd,
apps.ra_cust_trx_types_all rctt,
apps.gl_ledgers gl,
fnd_lookup_values flv,
apps.ra_cust_trx_line_gl_dist_all rctlgd,
apps.ra_customer_trx_all rct,
apps.oe_order_lines_all oola,
apps.ra_customer_trx_lines_all rctla,
xxcfir_revenue_dist_all xrda,
xxcfir_revenue_extract_all xrea,
xxcfir_revenue_rules_all xrra
WHERE 1 = 1 AND xla_ln.last_update_date > p_last_trans_date_i
AND xla_ln.last_update_date <
NVL (TO_DATE (p_as_of_date_i, 'DD-MON-RR') + 2,
TRUNC (SYSDATE) + 1)
AND xla_hd.gl_transfer_date IS NOT NULL
AND glcc.chart_of_accounts_id = gl.chart_of_accounts_id
AND xla_dl.source_distribution_type =
'RA_CUST_TRX_LINE_GL_DIST_ALL'
AND xla_dl.source_distribution_id_num_1 =
rctlgd.cust_trx_line_gl_dist_id
AND xla_dl.ae_header_id = xla_hd.ae_header_id
AND xla_dl.ae_line_num = xla_ln.ae_line_num
AND glcc.chart_of_accounts_id = gl.chart_of_accounts_id
AND glcc.code_combination_id = xla_ln.code_combination_id
AND rctt.cust_trx_type_id = rct.cust_trx_type_id
AND rctlgd.customer_trx_line_id = rctla.customer_trx_line_id
AND rctlgd.code_combination_id = glcc.chart_of_accounts_id
AND xrda.application_id =
(SELECT application_id
FROM fnd_application
WHERE application_short_name = 'XXTWOTIER')
AND xrda.application_id = xla_ln.application_id
AND xrda.transaction_dist_id = xla_ln.attribute1
AND xrda.application_id = xrea.application_id
AND xrda.transaction_id = xrea.transaction_id
AND xrda.dist_type=xrra.dist_type
AND xrda.sequence_number=xrra.sequence_number
AND glcc.segment4 LIKE '4%'
AND glcc.segment4 NOT LIKE '43%'
AND gdr.conversion_date(+) =
NVL (TO_DATE (SYSDATE, 'DD-MON-RR'),
TRUNC (SYSDATE) - 1)
AND gdr.conversion_type(+) = 'Corporate'
AND gdr.from_currency(+) = rct.invoice_currency_code
AND gdr.to_currency(+) = 'USD'
AND xrda.dist_type in (select flv.lookup_code
FROM fnd_lookup_values flv
WHERE flv.lookup_type = 'XXCFIR_2TIER_DIST_TYPE_LOOKUP'
AND NVL (flv.enabled_flag, 'N') = 'Y'
AND language='US'
AND TRUNC (SYSDATE) BETWEEN NVL (
flv.start_date_active,
SYSDATE - 2)
AND NVL (flv.end_date_active,
SYSDATE + 2))
AND OOLA.LINE_ID IN
(SELECT oola.line_id
FROM oe_order_headers_all oha,
oe_order_lines_all oola
WHERE UPPER (oha.sales_channel_code) LIKE 'TWO%TIER%'
AND oha.header_id = oola.header_id);
Please advise.
Message was edited by: user8984055
Not to worry...found the answer in another post. Seems like patches need to applied to the OS.
Similar Messages
-
Table BUT000 error in DDIC - Check table with SE14
Hi Experts,
When I import the sap_all profile to a new SAP BI 7 installation, i get the message
Table BUT000 error in DDIC - Check table with SE14
Is it a serious problem or I can continue using this BI platform?
Regards
ObaydHI,
This is some wat not that much a general problem any way Have a look at the SAP Note 1276895 - Add. info. about Upgrading to SAP Solution Manager 7.0 EHP1 and
SAP Note 1169247 - Enhancements to Solution Manager 7.0 EHP1 upgrade.
thanks,
karthik -
Hi Buddy,
I have some trouble with copy client 000 to 400, Error: Table /1FB/MD___M8001X error in DDIC - Check table with SE14.
TABL /1FB/MD___M8001X was not activated
Check table /1FB/MD___M8001X (MST.EKA/14.04.11/10:33)
POSITION is a reserved word (Select another field name)
Field name MANDT can be provided in this system. Please do not use.
Field name SID can be provided in this system. Please do not use.
Field name TABNAME can be provided in this system. Please do not use.
Field name FIELDNAME can be provided in this system. Please do not use.
Field name AS4LOCAL can be provided in this system. Please do not use.
Field name AS4VERS can be provided in this system. Please do not use.
Field name POSITION can be provided in this system. Please do not use.
Index /1FB/MD___M8001X-01 is not in the customer namespace
Table /1FB/MD___M8001X must be created in the database
Check on table /1FB/MD___M8001X resulted in errors
how to solve this problem...??
Thanks & Regards
Eka SumargoHi MST Support
Are there any other errors in SCC3. What kind of client copy you're performing SAP_ALL or CUST?
As per the logs in your post it seems that the table MD___M8001X does not exist in the database.You could try SE11 or SE14 to check the table.
Any other info would be really helpful.
Regards, -
Error in MSACCESS linking a table with XMLTYPE
hi all,
I've linked a table from Oracle 9i to MSACCESS 2000 in windows 2000; this table has an XMLTYPE field, which is maped like OLE Object in Access;
when I try to edit the table (not the xmltype field, any field...) I get an error:
MSACCESS has generated errors and will be shutdown by windows. You must restart the program.
An error register will be created
anybody knows?
thanxNothing. Forms does not support this datatype.
Frank -
Error while importing a table with BLOB column
Hi,
I am having a table with BLOB column. When I export such a table it gets exported correctly, but when I import the same in different schema having different tablespace it throws error
IMP-00017: following statement failed with ORACLE error 959:
"CREATE TABLE "CMM_PARTY_DOC" ("PDOC_DOC_ID" VARCHAR2(10), "PDOC_PTY_ID" VAR"
"CHAR2(10), "PDOC_DOCDTL_ID" VARCHAR2(10), "PDOC_DOC_DESC" VARCHAR2(100), "P"
"DOC_DOC_DTL_DESC" VARCHAR2(100), "PDOC_RCVD_YN" VARCHAR2(1), "PDOC_UPLOAD_D"
"ATA" BLOB, "PDOC_UPD_USER" VARCHAR2(10), "PDOC_UPD_DATE" DATE, "PDOC_CRE_US"
"ER" VARCHAR2(10) NOT NULL ENABLE, "PDOC_CRE_DATE" DATE NOT NULL ENABLE) PC"
"TFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS"
" 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TS_AGIMSAPPOLOLIVE030"
"4" LOGGING NOCOMPRESS LOB ("PDOC_UPLOAD_DATA") STORE AS (TABLESPACE "TS_AG"
"IMSAPPOLOLIVE0304" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10 NOCACHE L"
"OGGING STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEF"
"AULT))"
IMP-00003: ORACLE error 959 encountered
ORA-00959: tablespace 'TS_AGIMSAPPOLOLIVE0304' does not exist
I used the import command as follows :
imp <user/pwd@conn> file=<dmpfile.dmp> fromuser=<fromuser> touser=<touser> log=<logfile.log>
What can I do so that this table gets imported correctly?
Also tell me "whether the BLOB is stored in different tablespace than the default tablespace of the user?"
Thanks in advance.Hello,
U can either
1) create a tablespace with the same name in destination where you are trying to import.
2) get the ddl of the table, modify the tablespace name to reflect the existing tablespace name in destination and run the ddl in the destination database, and run your import command with option ignore=y--> which will ignore all the create errors.
Regards,
Vinay -
An error when edit a table with ObjectViewer
when I try to set a value to NULL with ObjectViewer,its data_type is number,the developer said:
UPDATE "TT"."ADDRESS" SET USER_NO= WHERE ROWID = 'AAAOMXAAFAACH3GAAq' AND ORA_ROWSCN = '4563636967634'
One error saving changes to table "TT"."ADDRESS":
Row 118: ORA-00932: inconsistent datatypes: expected NUMBER got DATE,
if the data_type is varchar2,it works:
UPDATE "TT"."ADDRESS" SET NAME= WHERE ROWID = 'AAAOMXAAFAACH3GAe' AND ORA_ROWSCN = '4563636967631'
Commit Successful
I have no idea what's going on...Sorry, this got broken while fixing Re: Bug in 1.5.1 Deleting number value in data grid
I'll let you know on how soon the fix could be delivered.
-Raghu
Edited by: RaghvendraSaboo on Mar 31, 2009 12:43 PM -
ORA-00942 error on truncating a table with a XML Index
Oracle Version: 11.2.0.1.0
When truncate command fails with error "ORA-00942: table or view does not exist" when run against a table with an XML Index defined
SQL> CREATE TABLE XML_TEST
2 (
3 ID INTEGER,
4 TESTXML SYS.XMLTYPE
5 );
Table created.
SQL> truncate table XML_TEST;
Table truncated.
SQL> CREATE INDEX xmlindex ON XML_TEST(TESTXML)
2 indextype IS xdb.xmlindex
3 parameters ('PATH TABLE MY_PATH_TABLE');
Index created.
SQL> truncate table XML_TEST;
truncate table XML_TEST
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> Drop Index xmlindex;
Index dropped.
SQL> truncate table XML_TEST;
Table truncated.No, I don't think that explanation is correct. I don't think it has to do with user privs. besides, we don't
adjust rowids on an import -- we recreate the index, just like a b-tree index import would.
This should be working. It's most likely a bug in our (i.e. Text) import code -- SYS.XMLTYPE is a little
strange because under the covers it's actually a function-based index.
I will test it out and file a bug if I can reproduce the behavior on solaris. -
Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..
Dear friends,
I am attempting write a dymanic Select Statement (with joins).
And the sleect query looks like this..
SELECT (LT_SEL_LIST)
INTO CORRESPONDING FIELDS OF
TABLE <DYN_TABLE>
FROM (LT_FROM_LIST)
WHERE (LT_WHERE3).
Here the into table is a dynamically created internal table..
which is created by ...this
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING
IT_FIELDCATALOG = IT_OUTPUT2[]
IMPORTING
EP_TABLE = DY_TABLE.
the it_output2 contains the the fieldcatlog information of dynamically given fields :-
like:-
TABNAME
FIELDNAME
DATATYPE
LENG
INTTYPE
ROLLNAME
DECIMALS
REFTABLE
REFFIELD
i mean the internal table is constructed with reference to all the bove metadata.
Problem:- This query run fine with all the fields Except AMOUNT AND QUANTITY fields....
When the selection list contain VBAK-NETWR or MSEG-MENGE..It throws a runtime error.
"The data read during a SLECT access couldnt be inserted into the target field,either conversion is not supported for
the target field's type or the target field is too short."
after this I even tried to construct the dynamic table with CFILEDNAME and QFIELDNAME in the Fieldcatalog.
so now my fieldcatlog looks like this:---
LOOP AT IT_DD03L..
IF IT_DD03L-DATATYPE = 'CURR'.
TABLEFIELD-CFIELDNAME = IT_DD03L-FIELDNAME .
ENDIF.
IF IT_FIELDCAT3-DATATYPE = 'QUAN'.
TABLEFIELD-QFIELDNAME = IT_DD03L-FIELDNAME .
ENDIF.
TABLEFIELD-TABNAME = IT_DD03L-TABNAME.
TABLEFIELD-FIELDNAME = IT_DD03L-FIELDNAME.
TABLEFIELD-DATATYPE = IT_DD03L-DATATYPE.
TABLEFIELD-INTLEN = IT_DD03L-LENG.
TABLEFIELD-INTTYPE = IT_DD03L-INTTYPE .
TABLEFIELD-ROLLNAME = IT_DD03L-ROLLNAME.
TABLEFIELD-DECIMALS = IT_DD03L-DECIMALS.
TABLEFIELD-REF_TABLE = IT_DD03L-REFTABLE.
TABLEFIELD-REF_FIELD = IT_DD03L-REFFIELD.
APPEND TABLEFIELD.
CLEAR TABLEFIELD.
ENDLOOP.
Note:- this is a test code so ignore performance issues...
Please help me with some code ...to avoid the Runtime erorr.
Thanks,
jeevan.Hi Jeevan,
Why are moving only few fields from DD03L table to your field catalog? Why don't you use move-corresponding? The following code works for me in ECC6.0.
data: it_dd03l type table of dd03l initial size 0,
ls_dd03l type dd03l,
lt_fldcat TYPE lvc_t_fcat,
ls_fldcat TYPE lvc_s_fcat,
ls_where(72) TYPE c,
lt_where LIKE TABLE OF ls_where,
lt_fld LIKE TABLE OF ls_where,
lt_data_dy TYPE REF TO data.
field-symbols: <ft_data> TYPE STANDARD TABLE.
select * into table it_dd03l from dd03l
where tabname = 'VBAK'
and ( fieldname = 'VBELN' or fieldname = 'NETWR' ).
check sy-subrc eq 0.
loop at it_dd03l into ls_dd03l.
move-corresponding ls_dd03l to ls_fldcat.
append ls_fldcat to lt_fldcat.
move ls_dd03l-fieldname to ls_where.
append ls_where to lt_fld.
if ls_dd03l-fieldname = 'VBELN'.
clear ls_where.
concatenate ls_dd03l-fieldname ' <> ''''' into ls_where.
append ls_where to lt_where.
endif.
endloop.
check not lt_fldcat is initial.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = lt_fldcat
IMPORTING
ep_table = lt_data_dy
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2.
IF sy-subrc <> 0.
RAISE no_configuration_data.
ENDIF.
ASSIGN lt_data_dy->* TO <ft_data>.
check sy-subrc eq 0.
select (lt_fld) from VBAK into corresponding fields of table
<ft_data>
where (lt_where).
Thanks
Bala -
Query Builder - How to create a link between tables with many fields?
I have many fields in my tables. When the query builder loads the tables, the tables are expanded to accomodate all the fields. Suppose I want to link Table A's Customer ID (the first field in Table A) wiith Table B's Customer ID (the last field in Table B). How can I do that if the last field in Table B are not visible in the screen?
Currently, I create a link in Table A's customer with a random field in Table B. Then I edit the link to create a proper condition. Is there a more efficient way to do this?
Thanks.
Edited by: woro2006 on Apr 19, 2011 9:40 AMHi woro2006 -
Easiest way is to grab Table A's title bar & drag Table A down the page until the columns you want to link are visible.
FYI, there is an outstanding bug
Bug 10215339: 30EA1: MISSING THE 2.1 RIGHT CLICK OPTIONS ON DATA FIELDS TO CREATE A LINK
to add a context menu on the field for this. That is, Link {context field} to > {other data sources} > {fields from that source}
It is being considered for 3.1, but I have no idea where it will end up in the priority queue.
Brian Jeffries
SQL Developer Team
P.S.: Arghh, Unfortunately, I just tried it and the diagram does not auto scroll while you drag, so there is some guess work/repositioning the view involved.
Logged Bug 12380154 - QUERY BUILDER DIAGRAM DOES NOT AUTO SCROLL WHEN DRAGGING TABLE -
Linking user table with system table
Hello, I'm trying to link a user table with IC table in order to asign many sales person to a customer.
I've created a new button in the IC form. When clicked a new form is opened to asign sales person to the IC. Now I need to retrieve the records assigned to this IC. How can I do that???
Regards.
Angel.Hi Angel,
I would put a matrix in the new form where you could see/asign/delete the sales person.
Have a look at this post where you can find a great code from Sebastian Danober to fill a matrix from a recordset.
Another option could be to modify the existing IC form and add a new folder with a matrix where you can manage the sales person.
Check this other post with code for adding folder to an existing form.
Regards,
Ibai Peñ -
Error while accessing BSAD Table with dunning date
Hi ,
I developed a report for FI module accessing BSAD table with default customer ranges and for specific dunning dates - It ran for a very long time and timed out - (I know this is due to huge volume of data) -
Is there any way to access BSAD table easily with Dunning dates (Other than creating Index on it) ???
Or any standard function module available ??
Regards
Rajesh.Hi
Try the below tables for the dunning data details:
MHND Dunning Data
MHNDO Dunning data version before the next change
MHNK Dunning data (account entries)
MHNKA Version administration of dunning changes
MHNKO Dunning data (acct entries) version before the next chang
SKS -
How to link TCJ_Documents table with BKPF table
Dear all,
i am new ABAPer, i need to join TCJ_Documents table with BKPF table.
but, i can not find the relationship between this two tables.
so, please help !
thanks !Hi....
There is a company code (BUKRS) in both tables.
Also Fiscal year(GJAHR)...
What is the problem with that?
Sample code...
data: begin of itab occurs 0,
bukrs type bukrs,
cjnr type cjnr,
belnr type belnr_d,
end of itab.
start-of-selection.
select p~bukrs p~belnr q~comp_code from bkpf as p
inner join tcj_documents as q
on p~bukrs = q~comp_code
into table itab.
loop at itab.
write:/ itab-bukrs.
endloop.
Thanks,
Naveen.i -
Linking One table with more then one tablespace
Hi,
Can anybody help to link one table to more then one tablespace?
Thanks in advance.If the table is not partitionned you cannot store a table in different tablespaces. If the table is partitionned you can store each partition in a different tablespace. Example from 10.2 Data Warehousing Guide:
CREATE TABLE sales_composite
(salesman_id NUMBER(5),
salesman_name VARCHAR2(30),
sales_amount NUMBER(10),
sales_date DATE)
PARTITION BY RANGE(sales_date)
SUBPARTITION BY HASH(salesman_id)
SUBPARTITION TEMPLATE(
SUBPARTITION sp1 TABLESPACE ts1,
SUBPARTITION sp2 TABLESPACE ts2,
SUBPARTITION sp3 TABLESPACE ts3,
SUBPARTITION sp4 TABLESPACE ts4)
(PARTITION sales_jan2000 VALUES LESS THAN(TO_DATE('02/01/2000','MM/DD/YYYY'))
PARTITION sales_feb2000 VALUES LESS THAN(TO_DATE('03/01/2000','MM/DD/YYYY'))
PARTITION sales_mar2000 VALUES LESS THAN(TO_DATE('04/01/2000','MM/DD/YYYY'))
PARTITION sales_apr2000 VALUES LESS THAN(TO_DATE('05/01/2000','MM/DD/YYYY'))
PARTITION sales_may2000 VALUES LESS THAN(TO_DATE('06/01/2000','MM/DD/YYYY')));Edited by: P. Forstmann on 13 févr. 2010 09:08 -
OraOLEDB.Oracle generates error when retreiving a table with anydata col
Hi,
I use OraOLEDB.Oracle to connect from VB6 to oracle, and ADODB recordsets.
I have a procedure that returns a table (using a cursor), the table has a column of type sys.anydata.
I get this error: ROW-00004: Invalid column datatype
I have to mention that it works excelent for anything that does not contain sys.anydata.
I use Oracle 9.2.
Thanks in advance,
pesqI tried your solution, but it didn't work. I get an error (incorrect column number):
Caused by: java.sql.SQLException: Niepoprawny indeks kolumny
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInternal(OracleCallableStatement.java:121)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:283)
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:363)
at (...).Row$1.createCallableStatement(Row.java:82)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:836)
... 69 more
The code is following:
String query = "BEGIN insert into movement (doc_number) values ('abc') returning id into :?; END;";
OracleCallableStatement cs = (OracleCallableStatement) c.prepareCall(query);
cs.registerOutParameter(1, OracleTypes.NUMBER);
cs.execute();
LOG.debug("result:"+ cs.getInt(1));
I used Oracle database 10.2.0.1 with jdbc thin driver ojdbc14.jar. Could you point out your configuration?
Regards,
Rafal Rusin
www.mimuw.edu.pl/~rrusin -
MS SQL Server 2014: Error inserting into Temp table with index and identity field
In this thread, I mentioned a problem with SQL Server 2014:
SQL Server 2014: Bug with IDENTITY INSERT ON
The question was answered, it is a bug. To keep you informed on this issue, I open this discussion.
Problem:
The code below works perfectly fine on MS SQL Server 2008 R2 and MS SQL Server 2012, but gives an error every second time the proc is executed on MS SQL Server 2014. If I do not define any index on the temp table, the problem disappears. Defining the index
after the insert, does not help.
SET NOCOUNT ON
GO
IF EXISTS (SELECT 1 FROM sys.procedures WHERE name = 'usp_Test') DROP PROC dbo.usp_Test;
GO
CREATE PROC dbo.usp_Test AS
BEGIN
SET NOCOUNT ON
CREATE TABLE #Source(ID integer NOT NULL);
INSERT INTO #Source VALUES (1), (2), (3);
CREATE TABLE #Dest (ID integer IDENTITY(1,1) NOT NULL);
CREATE INDEX #IDX_Dest ON #Dest (ID);
PRINT 'Check if the insert might cause an identity crisis';
SELECT 'Source' AS SourceTable, * FROM #Source;
SELECT 'Destination' AS DestTable, * FROM #Dest;
SET IDENTITY_INSERT #Dest ON;
PRINT 'Do the insert';
INSERT INTO #Dest (ID) SELECT ID FROM #Source;
PRINT 'Insert ready';
SET IDENTITY_INSERT #Dest OFF;
SELECT * FROM #Dest;
DROP TABLE #Source;
DROP TABLE #Dest;
END;
GO
PRINT 'First execution of the proc, everything OK';
EXEC dbo.usp_Test;
PRINT '';
PRINT 'Second execution of the proc, the insert fails.';
PRINT 'Removing the index #IDX_Dest causes the error to disappear.';
EXEC dbo.usp_Test;
GO
DROP PROC dbo.usp_Test;
GOThere is some progress. Communication from a former Microsoft employee tells us this:
Shivendra Vishal
Engineer at Microsoft
I am no longer with MS, and I do not have code access, however from the public symbols, I could make out following:
sqlmin!SetidentI2I4+0x1f3:
000007fe`f4d865d3 488b10 mov rdx,qword ptr [rax] ds:00000000`00000000=????????????????
ExceptionAddress: 000007fef4d865d3 (sqlmin!SetidentI2I4+0x00000000000001f3)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000000
Parameter[1]: 0000000000000000
Attempt to read from address 0000000000000000
This is a read AV and from registers it is clear that we were trying to move the value of location pointed by qword of register rax which is not valid:
rax=0000000000000000 rbx=0000000000000038 rcx=0000000000001030
rdx=0000000000000006 rsi=00000001f55def98 rdi=00000000106fd070
rip=000007fef4d865d3 rsp=00000000106fcf40 rbp=00000000106fcfe9
r8=0000000000000000 r9=00000001f55def60 r10=00000001f55defa0
r11=00000000106fcd20 r12=0000000000000000 r13=0000000000000002
r14=00000001f49c3860 r15=00000001f58c0040
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
The stack is:
# Child-SP RetAddr Call Site
00 00000000`106fcf40 000007fe`f30c1437 sqlmin!SetidentI2I4+0x1f3
01 00000000`106fd050 000007fe`f474e7ce sqlTsEs!CEsExec::GeneralEval4+0xe7
02 00000000`106fd120 000007fe`f470e6ef sqlmin!CQScanUpdateNew::GetRow+0x43d
03 00000000`106fd1d0 000007fe`f08ff517 sqlmin!CQueryScan::GetRow+0x81
04 00000000`106fd200 000007fe`f091cebe sqllang!CXStmtQuery::ErsqExecuteQuery+0x36d
05 00000000`106fd390 000007fe`f091ccb9 sqllang!CXStmtDML::XretDMLExecute+0x2ee
06 00000000`106fd480 000007fe`f08fa058 sqllang!CXStmtDML::XretExecute+0xad
07 00000000`106fd4b0 000007fe`f08fb66b sqllang!CMsqlExecContext::ExecuteStmts<1,1>+0x427
08 00000000`106fd5f0 000007fe`f08fac2e sqllang!CMsqlExecContext::FExecute+0xa33
09 00000000`106fd7e0 000007fe`f152cfaa sqllang!CSQLSource::Execute+0x86c
0a 00000000`106fd9b0 000007fe`f152c9e8 sqllang!CStmtExecProc::XretLocalExec+0x25a
0b 00000000`106fda30 000007fe`f152a1d8 sqllang!CStmtExecProc::XretExecExecute+0x4e8
0c 00000000`106fe1e0 000007fe`f08fa058 sqllang!CXStmtExecProc::XretExecute+0x38
0d 00000000`106fe220 000007fe`f08fb66b sqllang!CMsqlExecContext::ExecuteStmts<1,1>+0x427
0e 00000000`106fe360 000007fe`f08fac2e sqllang!CMsqlExecContext::FExecute+0xa33
0f 00000000`106fe550 000007fe`f0902267 sqllang!CSQLSource::Execute+0x86c
10 00000000`106fe720 000007fe`f0909087 sqllang!process_request+0xa57
11 00000000`106feee0 000007fe`f2bf49d0 sqllang!process_commands+0x4a3
12 00000000`106ff200 000007fe`f2bf47b4 sqldk!SOS_Task::Param::Execute+0x21e
13 00000000`106ff800 000007fe`f2bf45b6 sqldk!SOS_Scheduler::RunTask+0xa8
14 00000000`106ff870 000007fe`f2c136ff sqldk!SOS_Scheduler::ProcessTasks+0x279
15 00000000`106ff8f0 000007fe`f2c138f0 sqldk!SchedulerManager::WorkerEntryPoint+0x24c
16 00000000`106ff990 000007fe`f2c13246 sqldk!SystemThread::RunWorker+0x8f
17 00000000`106ff9c0 000007fe`f2c13558 sqldk!SystemThreadDispatcher::ProcessWorker+0x3ab
18 00000000`106ffa70 00000000`775d59ed sqldk!SchedulerManager::ThreadEntryPoint+0x226
19 00000000`106ffb10 00000000`7780c541 kernel32!BaseThreadInitThunk+0xd
1a 00000000`106ffb40 00000000`00000000 ntdll!RtlUserThreadStart+0x21
Unassembling the function:
000007fe`f4d8658e 4c8b10 mov r10,qword ptr [rax]
000007fe`f4d86591 4533e4 xor r12d,r12d
000007fe`f4d86594 410fb7d5 movzx edx,r13w
000007fe`f4d86598 4533c9 xor r9d,r9d
000007fe`f4d8659b 4533c0 xor r8d,r8d
000007fe`f4d8659e 488bc8 mov rcx,rax
000007fe`f4d865a1 4489642420 mov dword ptr [rsp+20h],r12d
000007fe`f4d865a6 41ff5230 call qword ptr [r10+30h]
000007fe`f4d865aa 8b5597 mov edx,dword ptr [rbp-69h]
000007fe`f4d865ad 4c8b10 mov r10,qword ptr [rax]
000007fe`f4d865b0 4489642438 mov dword ptr [rsp+38h],r12d
000007fe`f4d865b5 4489642430 mov dword ptr [rsp+30h],r12d
000007fe`f4d865ba 458d442401 lea r8d,[r12+1]
000007fe`f4d865bf 4533c9 xor r9d,r9d
000007fe`f4d865c2 488bc8 mov rcx,rax
000007fe`f4d865c5 c644242801 mov byte ptr [rsp+28h],1
000007fe`f4d865ca 4488642420 mov byte ptr [rsp+20h],r12b
000007fe`f4d865cf 41ff5250 call qword ptr [r10+50h]
000007fe`f4d865d3 488b10 mov rdx,qword ptr [rax] <=================== AV happened over here
000007fe`f4d865d6 488bc8 mov rcx,rax
000007fe`f4d865d9 4c8bf0 mov r14,rax
000007fe`f4d865dc ff5268 call qword ptr [rdx+68h]
000007fe`f4d865df 488d55e7 lea rdx,[rbp-19h]
000007fe`f4d865e3 4c8b00 mov r8,qword ptr [rax]
000007fe`f4d865e6 488bc8 mov rcx,rax
000007fe`f4d865e9 41ff5010 call qword ptr [r8+10h]
000007fe`f4d865ed f6450a04 test byte ptr [rbp+0Ah],4
I remember few issues with scan2ident function, I am not sure if they have fixed it however it appears that this is intoduced to SQL 2014 and we need help from MS to get this resolved as it needs code analysis.
It is not getting simulated for other versions of SQL apart from SQL 2014.
Also to add, interestingly, the value of rax is not visibly changed and it was successfully passed on to rcx, which has a valid value, so something should have changed the value of rax inside call to function using call qword ptr [r10+50h], and looking at this
it appears that it might be a list of functions and we are going at particular offset [50h]. So, bottom line is that the call to function qword ptr [r10+50h], should be changing something in rax, and debugging/analyzing this code might give us some more idea.
Maybe you are looking for
-
Date Field validation in APEX 4.0
Hi, I am using APEX 4.0 for developing my application. I have an SEARCH region in which I have an DATE item with format MM/DD/YYYY. When I enter the date with any junk characters like 'XXXXXXX' then it throws me an validation as "Invalid Date Format"
-
ERROR while calling BAPI_MATERIAL_SAVEDATA
Hi Guys, i'm trying to create Manufacturer part number for a material by using BAPI_MATERIAL_SAVEDATA. In my return i'm getting the error as "<b>Manufacturer part number management not set for your firm's own material</b>" I have created the material
-
HELP...My Sound just stopped working!
OMG What did I do? I didn't do anything. All of a sudden I noticed it stopped when I went to play a game. I have Toshiba Satellite A505-S6973. But not 15 min earlier it was working. What can I do? It's not on mute and the FN is not on mute. I
-
How to update my firefox in linux redhat el5
I am using linux redhat el5. In my system firefox has already installed but it was older version and i ean t to upgarde my browser.But the file is not in .rpm package so i have problem to install it. In my firefox there is no option of upgrading. kin
-
[Deployment] Error in dependencies
Hi, created the Jabber-adapter from XI-Programming book of SAP Press. Now I tried to deployed it on J2EE server, but one dependency is wrong: [code] [sdm] Deploying on server:SOPERAPCK:50118 file:C:\xiAdapter\eclipseProjekte\JabberAdapter\$build\arch