How to get related table on Account Inquiry Drilldown
Hi,
I want to create customize table for trial balance report. So, I need drilldown detail query or related table to create these report. Please, explain how to relate table to display data on Drilldown account inquiry? I'm very happy if you can show me query script.
Regards,
Adhit
Hi Octavio,
Thx for your answer. I think that's not full related table. I want to view drilldown detail not only account trial balances.
How about this table below :
gl.gl_code_combinations gl,
gl.gl_import_references gir,
gl.gl_je_batches gjb,
gl.gl_je_headers gjh,
gl.gl_je_lines gjl,
gl.gl_je_sources_tl gjs,
xla.xla_ae_headers xah,
xla.xla_ae_lines xal,
xla.xla_distribution_links xdl,
inv.mtl_transaction_accounts mta,
inv.mtl_material_transactions mtt,
po.po_headers_all pha,
po.po_distributions_all phd,
PO.RCV_TRANSACTIONS prt,
PO.RCV_RECEIVING_SUB_LEDGER rrsl
how to join all above tables rightly? Because it comes to complex problems.
Edited by: adhit_976743 on Dec 13, 2012 6:21 PM
Similar Messages
-
How to get Invoice Document from Accounting Document
Hi Experts,
How to get Invoice Document from Accounting Document. Can you suggest some tables.
Regards,
Mohanhi,
in vf02 or vf03.
go to document flow
select an accounting document - double click it.
GOTO header you will find reference field there & it is nothing but billing document.
in FB03 also you can findout the same if you know an accounting document.
tables which they store are BKPF & BSEG
balajia -
How to get the table of value field? and can we expand the technical limits
Dear
I have created value field in COPA with KEA6. And now, I need the table which the value fields are saved. Yet, I have tried a lot to find it and get failure? Can any guy help me? Please tell me how to get the table of a value field.
And another question is that, can we extend the technical limits for the number of value field for ECC6.0?
We have a note for R.4.x Please see below:
OSS note 160892
You can display the length of a data record using Transaction KEA0 ('Maintain Operating Concern'). After you have navigated to the 'Characteristics Screen' or to the 'Value field Screen' choose menu path 'Extras -> Technical Limits'.
The maximum displayed here under 'Length in bytes on the DB' is the maximum length permitted by the Dictionary. The reserve required for the release upgrade must be subtracted from this value.
To increase the allowed number of the value fields, increase the value that is assigned to field ikcge-bas_max_cnt (FORM init_ikcge_ke USING fm_subrc, approx. line 165) in Include FKCGNF20. It specifies the number of the possible value fields. The corresponding part of the source code is attached to the note as a correction.
David Sun
Regards!how to extend the limit of value numbers? please see the original question.
-
How to get internal table from SAP Data Provider C#
Hello.
ABAP:
DATA: lt_t001 TYPE TABLE OF t001.
DATA: url(1000) TYPE c.
SELECT * INTO TABLE lt_t001 FROM t001.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'APPLICATION'
subtype = 'X-R3TABLE'
TABLES
data = lt_t001
CHANGING
url = url
EXCEPTIONS
OTHERS = 4.
C#:
using SAPDataProvider;
using SAPTableFactoryCtrl;
public void SetDataFromUrl(string url)
SAPDataProviderClass p = new SAPDataProviderClass();
p.SetDataFromURL("APPLICATION", "X-R3TABLE", url);
ISapDPR3Table tbl = p.GetDataAsR3Table("APPLICATION", "X-R3TABLE");
SAPTableFactoryClass tf = new SAPTableFactoryClass();
Table tb = (Table)tf.NewTable();
tb.ISAPrfcITab = tbl.DataTable; // Exception !!!!!!
How to get internal table from SAP Data Provider ?Hi Sergey,
I'm trying to do the same, have you found a solution to solved it?
thanks for your help.
Regards.
Jonathan -
How to get pivot table by using dates
Hi,
How to get pivot table by using dates in column.
Below is the sample table and its value is given.
create table sample1
Order_DATE DATE,
order_CODE NUMBER,
Order_COUNT NUMBER
Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('30-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),1,232);
Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('30-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),2,935);
Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('30-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),3,43);
Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('30-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),4,5713);
Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('30-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),5,11346);
Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('29-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),1,368);
Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('29-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),2,1380);
Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('29-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),3,133);
Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('29-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),4,7109);
Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('29-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),5,14336);
select * from sample1;So how to get the data like below.
order_date
order_code 30-sep-12 29-sep-12
1 232 368
2 935 1380
3 43 133
4 5713 7109
5 11345 14336Using the extra data I inserted in my previous reply:select ORDER_CODE,
SUM(DECODE(extract (month from ORDER_DATE),1,ORDER_COUNT,0)) JAN,
SUM(DECODE(extract (month from ORDER_DATE),2,ORDER_COUNT,0)) FEB,
SUM(DECODE(extract (month from ORDER_DATE),3,ORDER_COUNT,0)) MAR,
SUM(DECODE(extract (month from ORDER_DATE),4,ORDER_COUNT,0)) APR,
SUM(DECODE(extract (month from ORDER_DATE),5,ORDER_COUNT,0)) MAY,
SUM(DECODE(extract (month from ORDER_DATE),6,ORDER_COUNT,0)) JUN,
SUM(DECODE(extract (month from ORDER_DATE),7,ORDER_COUNT,0)) JUL,
SUM(DECODE(extract (month from ORDER_DATE),8,ORDER_COUNT,0)) AUG,
SUM(DECODE(extract (month from ORDER_DATE),9,ORDER_COUNT,0)) SEP,
SUM(DECODE(extract (month from ORDER_DATE),10,ORDER_COUNT,0)) OCT,
SUM(DECODE(extract (month from ORDER_DATE),11,ORDER_COUNT,0)) NOV,
SUM(DECODE(extract (month from ORDER_DATE),12,ORDER_COUNT,0)) DEC
from SAMPLE1
where trunc(order_date, 'YY') = trunc(sysdate, 'YY')
group by order_code
order by order_code;
ORDER_CODE JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC
1 0 0 0 0 0 0 0 0 600 600 0 0
2 0 0 0 0 0 0 0 0 2315 2315 0 0
3 0 0 0 0 0 0 0 0 176 176 0 0
4 0 0 0 0 0 0 0 0 12822 12822 0 0
5 0 0 0 0 0 0 0 0 25682 25682 0 0Now a bit of explanation.
1) Whenever you pivot rows to columns, no matter what version of Oracle and no matter what method you use, you have to decide in advance how many columns you are going to have and what the names of the columns are. This is a requirement of the SQL standard.
2) I use the WHERE clause to get just the data for this year
3) With EXTRACT, I get just the month without the year.
4) Using DECODE, I put every month's data into the correct column
5) Once I do all that, I can just GROUP BY order_code while SUMming all the data for each month. -
How to get the table with no. of records after filter in webdynpro
Dear Gurus,
How to get the table with no. of records after filter in webdynpro?
Thanks in advance.
SankarHello Sankar,
Please explain your requirement clearly so that we can help you easily.
To get the table records from your context node use method get_static_attributes_table()
data lo_nd_mynode type ref to if_wd_context_node.
data lt_atrributes_table type wd_this->elements_mynode.
lo_nd_mynode = wd_context->get_child_node( name = wd_this->wdctx_mynode ).
lo_nd_mynode->get_static_attributes_table( importing table = lt_atrributes_table ).
Note: You should have already defined your context node as a Dictionary Structure.
BR,
RAM -
How to get nested table meta data
how to get nested table column name, column type and column size
by using java. i need code for this.
please help me.The Follopwing program does display the the details of table. Hope you get the solution
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.Statement;
public class Main {
public static void main(String[] args) throws Exception {
Connection conn = getOracleConnection();
System.out.println("Got Connection.");
Statement st = conn.createStatement();
st = conn.createStatement();
ResultSet rs = st.executeQuery("SELECT * FROM SCHEDULE_SET");
ResultSetMetaData rsMetaData = rs.getMetaData();
int numberOfColumns = rsMetaData.getColumnCount();
System.out.println("resultSet MetaData column Count=" + numberOfColumns);
for (int i = 1; i <= numberOfColumns; i++) {
System.out.println("column MetaData ");
System.out.println("column number " + i);
// indicates the designated column's normal maximum width in
// characters
System.out.println(rsMetaData.getColumnDisplaySize(i));
// gets the designated column's suggested title
// for use in printouts and displays.
System.out.println(rsMetaData.getColumnLabel(i));
// get the designated column's name.
System.out.println(rsMetaData.getColumnName(i));
// get the designated column's SQL type.
System.out.println(rsMetaData.getColumnType(i));
// get the designated column's SQL type name.
System.out.println(rsMetaData.getColumnTypeName(i));
// get the designated column's class name.
System.out.println(rsMetaData.getColumnClassName(i));
// get the designated column's table name.
System.out.println(rsMetaData.getTableName(i));
// get the designated column's number of decimal digits.
System.out.println(rsMetaData.getPrecision(i));
// gets the designated column's number of
// digits to right of the decimal point.
System.out.println(rsMetaData.getScale(i));
// indicates whether the designated column is
// automatically numbered, thus read-only.
System.out.println(rsMetaData.isAutoIncrement(i));
// indicates whether the designated column is a cash value.
System.out.println(rsMetaData.isCurrency(i));
// indicates whether a write on the designated
// column will succeed.
System.out.println(rsMetaData.isWritable(i));
// indicates whether a write on the designated
// column will definitely succeed.
System.out.println(rsMetaData.isDefinitelyWritable(i));
// indicates the nullability of values
// in the designated column.
System.out.println(rsMetaData.isNullable(i));
// Indicates whether the designated column
// is definitely not writable.
System.out.println(rsMetaData.isReadOnly(i));
// Indicates whether a column's case matters
// in the designated column.
System.out.println(rsMetaData.isCaseSensitive(i));
// Indicates whether a column's case matters
// in the designated column.
System.out.println(rsMetaData.isSearchable(i));
// indicates whether values in the designated
// column are signed numbers.
System.out.println(rsMetaData.isSigned(i));
// Gets the designated column's table's catalog name.
System.out.println(rsMetaData.getCatalogName(i));
// Gets the designated column's table's schema name.
System.out.println(rsMetaData.getSchemaName(i));
st.close();
conn.close();
public static Connection getOracleConnection() throws Exception {
String driver = "oracle.jdbc.driver.OracleDriver";
String url = "jdbc:oracle:thin:@son15644:1521:CXPqa1";
String username = "ess4qa2";
String password = "ess4qa2pw";
Class.forName(driver); // load Oracle driver
Connection conn = DriverManager.getConnection(url, username, password);
return conn;
} -
How to get updated table values from objectlistdataproviders
how to get updated table values from objectlistdataproviders
Hi,
Here is a sample code
start-of-selection.
*Select the data you need into an internal table
loop at it_mara into wa_mara.
data that needs to be displayed in the output list
write:/ box as checkbox,
wa_mara-matnr under text-001,
wa_mara-maktx under text-002,
wa_mara-lgort under text-003.
Hide the data that needs to moved to internal table
hide:wa_mara-matnr, wa_mara-maktx, wa_mara-lgort.
endloop.
clear wa_mara.
end-of-selection.
lines = sy-linno.
at line-selection.
clear:it_matnr.
do lines times.
check sy-index > 1.
box = space.
read line sy-index field value box.
if box = 'X'.
*data selected using check box is moved to internal table
append wa_mara to it_matnr.
endif.
enddo.
Regards,
Jisha. -
How to find Related Tables for the Tcode given.
How to find Related Tables for the Tcode given. (master data)
Thanks in advance.Hi Sridhar,
Welcome to SDN.
The tables for a given transaction can be seen in the transaction SE80.
First goto SE93.
Give ur Tcode and find the program name.
Now goto SE80. select program in the first dropdown and give the program name in the second box. U can find the list of tables used.
One more way is : use ST05.
and One more is using FM 'get_tables'
Thanks,
Shailaja
Edited by: Shailaja on Jul 11, 2008 12:33 PM -
How to get the table of cost elements data?
Dear friends,
I want ot get the Chart_of_Accounts, Cost_Element, Short_Text into an internal table, but how can I find the related tables in SAP system?
Thanks a lot!Hi,
The table for cost element is CSKA.
Alternately you can use the bapi BAPI_COSTELEM_GETDETAIL for getting the details also.
Regards,
Ankur Parab -
How to get related entities in lightswitch RIA domain service?
I have set up my DomainService and here is the data structure(one CombinedStadium may
have many CombindeEcoStatus)
public class CombinedStadium
[Key]
public int SiteId { get; set; }
[Include]
[Association("Stadium_EcoStatus", "SiteId", "StadiumId")]
public IQueryable<CombindeEcoStatus> EcoStatus { get; set; }
public class CombindeEcoStatus
private CombinedStadium _combinedStadium;
[Key]
public int EcoId { get; set; }
public int Year {get;set;}
public int StadiumId { get; set; }
[Include]
[Association("Stadium_EcoStatus", "StadiumId", "SiteId", IsForeignKey = true)]
public virtual CombinedStadium Stadium
get { return this._combinedStadium; }
set
this._combinedStadium = value;
if (value == null)
this.StadiumId = value.SiteId;
the query is
[Query(IsDefault = true)]
public IQueryable<CombinedStadium> GetAllStadiums()
var stadiumsQuery = from stadium in this.Context.StadiumSet
select new
SiteId = stadium.Id
return stadiumsQuery;
When I consume this RIA service in my lightswitch app as datasource,and the result looks as same as the Original lightswitch Data Source.
Question:When I query the "CombinedStadium" in HTML client. I can't use the "expand" keyword to get the "EcoStatus" Items which belong to the selected
"CombinedStadium" items.the query code is below:
//streetIds, openIds are query parameters
//streetIds is parameter for query the "CombinedStadiumItem" table
//openIds is parameter for query the "CombindeEcoStatusItem" table
myapp.activeDataWorkspace
.WCF_RIA_ServiceData
.CombindedStadiumQuery(streetIds, openIds)
.expand('EcoStatus')
.execute()
.then(function(proItems) {
var test = proItems.results;
addPin2Map(test);
loadStadiumInfoGrid(test);
the browser throw "error 501".
So I query the "CombinedStadiumItem" table alone.the code is below:
//streetIds, openIds are query parameters
//streetIds is parameter for query the "CombinedStadiumItem" table
//openIds is parameter for query the "CombindeEcoStatusItem" table
myapp.activeDataWorkspace
.WCF_RIA_ServiceData
.CombindedStadiumQuery(streetIds,openIds)
.execute()
.then(function(proItems) {
var test = proItems.results;
addPin2Map(test);
loadStadiumInfoGrid(test);
myapp.activeDataWorkspace
.WCF_RIA_ServiceData
.RiaEcostatusQuery(streetIds,openIds)
.execute()
.then(function(proItems) {
var test = proItems;
and the query code in server :
partial void CombindedStadiumQuery_PreprocessQuery(string streetPara, string openPara, ref IQueryable < CombinedStadiumItem > query) {
var street = ParseParaStr(streetPara);
if (street != null) {
query = query.Where(e => street.Contains(e.Street));
var open = ParseParaStr(openPara);
if (open != null) {
//when I try to access "EcoStatus" property in "CombindedStadiumItem" table,it throws error
query = query.Where(e => e.EcoStatus.Any(eco => open.Contains(eco.OpenStatus)));
//when I try to access "Stadium" property in "CombindedEcoStatusItem" table,it throws error
partial void RiaEcostatusQuery_PreprocessQuery(string streetPara, string openPara, ref IQueryable < CombindeEcoStatusItem > query) {
var street = ParseParaStr(streetPara);
if (street != null) {
//when I try to access "Stadium" property in "CombindedEcoStatusItem" table,it throws error
query = query.Where(e => street.Contains(e.Stadium.Street));
var open = ParseParaStr(openPara);
if (open != null) {
query = query.Where(e => e.EcoStatus.Any(eco => open.Contains(eco.OpenStatus)));
Now, I can not get "CombindedEcoStatusItem" that related selected "CombindedStadiumItem" respectively.
How can I get related entities when I use lightswitch RIA service in HTML Client query?
Thanks!!!How to write to the event log is not a WPF topic. Please ask C# questions in the C# forum:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
There is an example of how to the event log using C# code available here:
https://support.microsoft.com/en-us/kb/307024?wa=wsignin1.0
This sample code should work:
string sSource;
string sLog;
string sEvent;
sSource = "My application name";
sLog = "Application";
sEvent = "Log initialization";
if (!System.Diagnostics.EventLog.SourceExists(sSource))
System.Diagnostics.EventLog.CreateEventSource(sSource, sLog);
System.Diagnostics.EventLog.WriteEntry(sSource, sEvent);
System.Diagnostics.EventLog.WriteEntry(sSource, sEvent,
System.Diagnostics.EventLogEntryType.Warning, 234);
The event will get added to Event Viewer->Windows Logs->Application.
Please remember to close your threads by marking helpful posts as answer and then start a new thread in the appropriate forum if you have a new question. And please don't ask several questions in the same thread. -
I cant seem to be able to change the secutity questions on my minor daughters itunes account. I set the account up but I do not remember adding the security questions and they do not make sense to me. It says that the alternate account it would be sent to is@ me.com but I can not figure our how to get to it to retreive the email to reset the questions. My daughters account may have recently been hacked so I am trying to change all passwords. I changed the itunes account and added another email but I still can not change security questions in case I ever need them.
<Email Edited by Host>We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple - I've asked the hosts to remove your email address from your post (it's not a good idea to post personal info on any public forum).
The reset link on an account will only show if there is a rescue email address on it, alternate email addresses are different and not used for resetting them. If she has a rescue email address on her account then steps 1 to 5 half-way down this page will give you a reset link on the account : http://support.apple.com/kb/HT5312
Navigate to appleid.apple.com using your web browser.
Click "Manage your account"
When prompted, sign in using your Apple ID and password.
Click Password & Security
You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
If she doesn't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset (and if you don't already have a rescue email address) you can then use steps 1 to 7 half-way down the HT5312 link above to add a rescue email address for potential future use -
How to get the table name of a field in a result set
hi!
i have a simple sql query as
select tbl_customerRegistration.*, tbl_customerAddress.address from tbl_customerRegistration, tbl_customerAddress where tbl_customerAddress.customer_id = tbl_customerRegistration.customer_ID
this query executes well and gets data from the database when i get ResultsetMetaData from my result set (having result of above query) i am able to get the field name as
ResultSetMetaData rsmd = rs.getMetaData();//rs is result set
String columnName = rsmd.getColumnName(1);
here i get columnName = "Customer_id"
but when i try to get the tabel name from meta data as
String tableName = rsmd.getTableName(1); i get empty string in table name....
i want to get the table name of the respective field here as it is very important to my logic.....
how can i do that.....
please help me in that regard as it is very urgent
thanks in advance
sajjad ahmed paracha
you may also see the discussion on following link
http://forum.java.sun.com/thread.jspa?threadID=610200&tstart=0So far as I'm aware, you can't get metadata information about the underlying tables in a query from Oracle and/or the Oracle drivers. I suspect, in fact, that the driver would have to have its own SQL parser to get this sort of information.
I'm curious though-- how do you have application logic that depends on the name of the source table but not know in the application what table is involved? Could you do something "cheesy" like
SELECT 'tbl_customerRegistration' AS tbl1_name,
tbl_customerRegistration.*
...Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How to get the table strucuture for multiple table
I need to get the table structure for more than 40 table in a .txt file, is there any query to get this.
I know how to get it individually but would be good if I can get it in one go
Regards,You could write a procedure using DBMS_METADATA.GET_DDL + DBA|ALL|USER_TABLES
or
ask your DBA
or
get something like SQL Developer/PL/SQL Developer/TOAD... -
How to get the table Event action in the controller???
HI
Based on my requirement i have extended my controller,but i want to perform some validation like ,,,,
i have table in one region ,in which one column is having a Button (flex field) action with image,
i want to write the code in the controller according to the validation ,,,,but i am unable to find the event action in the main controller,
how to get the event action ?,,,,, of the item type as image
thanks in advance
KashIf not you can use image component with clientListener and serverListener to preform your requirement set clientListener click event and then inside clientListener java script method call the
serverListener then will execute serverListener method.
Maybe you are looking for
-
I need to use a table that has rows that are longer than the page, but they just disappear when I get to the bottom of the page. How can I get the text to wrap to the next page but stay in the same cell? The text has a lot of formatting, so I don't t
-
Question with using ssl of apache plug-in
hi all, I use redhat 6.0,apache 1.3.19, wls6.0sp1. how can I proxy a ssl request from apache to wls? can someone give example conf files(httpd.conf,weblogic.conf)? Thanks. Kent
-
I need to zip pdf files to email them to a PC user. The problem is file size is not reduced. I tried zipping them in Win 7 (which I use via Parallels 7) and sending them to the Finder to email. But lately nothing is reduced. I tried choosing the Red
-
Yep its unanimous Office general black grey themes suck. Just downloaded Office 365 and instead of trying to find any new features (which is what I usually look for first), the first thing I started looking for was how can I change this crappy lookin
-
IMac keeps asking to be restarted
My iMac keeps asking me to re-power up. After I do this, the screen comes back with the same request to re-power (restart) the computer. Any advise on simple trouble shooting I can do at home. Thanks.