Alias for the tables in the datesource block
HI,
Is it possible to give an alias to the tables who forms the query of the block, if there are more than one table.
Yes it is posible.
E.g.:
"Query Data Source Name" property - Emp e, dept d
"DML Data Target Name" property - Emp e
Similar Messages
-
How to use the TableSorter for two tables at the same view?
Hello,
I am using the TableSorter object in order to sort Dynpro tables.
Suppose I have two tables at the same view, is it possible to use it seperatly for both of them?
I assume that at the wdModifyView method I will need to catch the table that the user clicked on, yet I don't have an idea of how to do it...Hi Roy,
Constructor of TableSorter
public TableSorter(IWDTable table, IWDAction sortAction, Comparator[] comparators)
So, you have to create instance of TableSorter class for each table on the view.
best regards, Maksim Rashchynski. -
How to display name of the table and the description and the table type
Hi,
Can you people tell me how to display the name of the table and the description and the table type (View, structure, etc...) used in the program.
I want to display in a list.
Kind Regardsuse this program
TABLES : TSTC, tstct.
TABLES : DD03l, DD02l.
DATA : Program like sy-repid.
DATA : BEGIN OF I_FINAL OCCURS 0,
tabname LIKE dd02l-tabname,
TABCLASS LIKE dd02l-tabCLASS,
TEXT LIKE DD02T-DDTEXT,
END OF I_FINAL.
DATA : BEGIN of ITAB Occurs 0,
name like dd02l-tabname,
END OF ITAB.
DATA : TCD(100) TYPE C.
DATA : var1 LIKE dd02l-tabname.
DATA : DESC LIKE TSTCT-TTEXT.
selection-screen skip.
SELECTION-SCREEN : BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS : r1 RADIOBUTTON GROUP r DEFAULT 'X'.
Parameters : Tcode like sy-tcode.
selection-screen skip.
PARAMETERS : r2 RADIOBUTTON GROUP r.
Parameters : Prog like sy-repid.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-001.
select-options : Type for dd02l-tabclass .
SELECTION-SCREEN END OF BLOCK B1 .
at selection-screen.
if r1 = 'X' and Tcode is initial.
message e001(00) with 'Enter Transaction Code' .
elseif r2 = 'X' and Prog is initial.
message e001(00) with 'Enter Program Name' .
endif.
START-OF-SELECTION.
if r1 = 'X'.
Prog = ' '.
select single * from TSTC where tcode = tcode.
if sy-subrc = 0.
program = TSTC-PGMNA.
select single TTEXT from tstct into desc where tcode = tcode and SPRSL = 'E'.
else.
Write :/ 'Invalid Transaction Code'.
exit.
endif.
elseif r2 = 'X'.
Tcode = ' '.
program = Prog.
endif.
CALL FUNCTION 'GET_TABLES'
EXPORTING
PROGNAME = Program
TABLES
TABLES_TAB = itab.
if itab is initial.
skip.
skip.
skip.
skip.
skip.
WRITE :/40 'No Data Found' color 6 INTENSIFIED OFF.
ELSE.
PERFORM : categorize.
endif.
END-OF-SELECTION.
LOOP AT I_FINAL.
WRITE :/4 I_FINAL-tabname COLOR 2 INTENSIFIED OFF NO-GAP HOTSPOT ON, 35 I_FINAL-TABCLASS COLOR 2 INTENSIFIED OFF NO-GAP,
50 I_FINAL-TEXT COLOR 2 INTENSIFIED OFF NO-GAP.
ENDLOOP.
AT LINE-SELECTION.
TCD = SY-LISEL.
var1 = TCD+3(30).
set parameter id 'DTB' FIELD VAR1.
call transaction 'SE11' and skip first screen.
TOP-OF-PAGE.
WRITE :/45 'TABLE DETAILS RELATED TO THE TRANSACTION CODE' COLOR 7 .
WRITE :/2 'DATE : ' COLOR 1, SY-DATUM COLOR 1 INTENSIFIED OFF NO-GAP.
WRITE :/2 'TRANSACTION CODE : ' COLOR 1, Tcode COLOR 1 INTENSIFIED OFF NO-GAP.
WRITE :/2 'TCODE DESCRIPTION : ' COLOR 1, desc COLOR 1 INTENSIFIED OFF NO-GAP.
WRITE :/2 'PROGRAM NAME : ' COLOR 1, PROGRAM COLOR 1 INTENSIFIED OFF NO-GAP.
SKIP 1.
WRITE :/1(140) SY-ULINE.
WRITE :/4 'TABLE NAME' COLOR 5 INTENSIFIED OFF NO-GAP,35 'TABLE TYPE' COLOR 5 INTENSIFIED OFF NO-GAP,
55 'DESCRIPTION' COLOR 5 INTENSIFIED OFF NO-GAP.
WRITE :/1(140) SY-ULINE.
*& Form categorize
text
--> p1 text
<-- p2 text
FORM categorize .
SELECT dd02ltabname dd02ltabCLASS DD02T~DDTEXT
FROM dd02l INNER JOIN DD02T ON dd02ltabname = dd02Ttabname
INTO TABLE I_FINAL
FOR ALL ENTRIES IN itab
WHERE DD02L~TABNAME = ITAB-NAME AND TABCLASS IN TYPE AND DDLANGUAGE = 'E'.
if sy-subrc <> 0.
skip.
skip.
skip.
skip.
skip.
WRITE :/40 'No Data Found' color 6 INTENSIFIED OFF.
endif. -
Creating tables on SQL studio and viewing the table in the SAP system
i have just created a table using the SQL studio and wants to use it view it in the SAP system using the SAP logon. till now i have not found a way to create it therefore any help is much appreciated.
Hmm... you want to see tables via SAPLogon ??
Ok, let's assume you really want to access tables via ABAP instead.
For that you've two options:
1. Create the table in the ABAP dictonary (SE11) exactly like you created it in the database and activate the table.
After that you can access the table via SE16 or any ABAP as you like.
2. You don't create the table in the ABAP dictonary and use native SQL to access the data.
Neither of these options is meant to be the way to do it.
The correct way would be to design the whole table in the ABAP dictionary and create the table on the database from that.
regards,
Lars -
Hi there,
I recently had the following situation, where I changed the source of my CSV file in Power Query.
Once I had reloaded the file, it would then not load into Power Pivot. So I disabled the loading from Power Query into Power Pivot. I then enabled the loading to the Data Model. Which then successfully loaded the data into Power Pivot.
But once I went into Power Pivot, had a look, then saved the Excel file. Once saved I closed the Excel file. I then opened the Excel file again and all the sheets that interact with the Power Pivot data work fine.
But if I go and open Power Pivot I get the following error: Unable to load the tables in the Power Pivot Window – An Item with the Same Key has already been added.
This is what I get from the Call Stack
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(DataModelingColumn column, SynonymCollection synonyms)
at Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
at Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
at Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
at Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)
I would assume that the issue is with the synonyms and for some reason, when I disabled the loading of my data into the Power Pivot Model, it did not remove the associations to the actual table and synonyms.
If I renamed the table in Power Pivot it all works fine. So that was my work around. Fortunately I did have a copy of the Excel workbook before I made this change. So I could then go and add back in all the relevant data to my table.
Has anyone had this before and know how to fix it?
http://www.bidn.com/blogs/guavaqHi there
I can share the work book, if possible to send me an email address. As the workbook size is about 9Mb.
Thanks
Gilbert
http://www.bidn.com/blogs/guavaq -
How to make the lines of the table and the template same
Hello Abapers,
I have a requirement, I have made a table in which i have displayed all the values in it, and under that i have taken a template and diplayed the total of it but the lines drawn to the table and the template is different, the table line is dark and the line of the template is lite, how can i make the line of the template dark, i mean the same as the table line. i hope u understand my problem.can u please help me in solving my problem as the requirement is very urgent.
HOPE U UNDERSTAND MY PROBLEM
Thank u in advance .HI,
Adjust the line width option for template and table,its there under pattern. -
[CS3 JS]Get all the tables in the document
Hello All,
I want to return all of the tables in the document, including those in table cells. I am using this:
var aTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
but it doesn't get tables inside of tables. Is there an easy way to do this without checking each table cell? Thanks in advance.
Rick Quatro
585-659-8267Hi Robin and Dave,
Thanks for your replies. This seems to work fine regardless of the nexting level.
Rick
var oDocTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
if (oDocTables.length)
oDocTables = GetAllTables(oDocTables);
alert(oDocTables.length);
function GetAllTables(oTables)
for(var i=0; i < oTables.length; i++)
var oCells = oTables[i].cells;
for (var j=0; j < oCells.length; j++)
var oCellTables = oCells[j].tables.everyItem().getElements();
if (oCellTables.length)
oTables = oTables.concat(oCellTables);
return oTables; -
Getting an "unable to Load the tables in the power pivot window" error
Hello,
I have 2 worksheets in a excel file and would like to load both into a power pivot table. When I click the 'create linked table' in the pwer pivot ribbon, The powerpivot window open and looks like its about to load the data but then I get
a popup dialogue box with the following error:
Unable to load the tables in the powerpivot window
============================
Error Message:
============================
The given key was not present in the dictionary.
============================
Call Stack:
============================
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Microsoft.AnalysisServices.Modeler.SheetTabs.PopulateSheetList(String selKey)
at Microsoft.AnalysisServices.Modeler.SheetTabs.SetSelectedSheet(String key)
at Microsoft.AnalysisServices.Modeler.ClientWindow.RefreshClientWindow(String tableName)
============================
When I try again, there is a meesage saying the table is already linked but I dont see any data.
has Anyone seen this error before and know what to do?
Thanks,
NathanHi
I get first the same error as above but after I look into the details I see the following error message:
in translation the error message is: There is already a item with the same key added.
I can open the power pivot window in diagram view. And after I refresh the data in one of the tables I can open it in the table view. I have already searched for "!" signs in the calculations and searched for calculations with same name but that
is not the problem.
Also I can't open the synonym window. I think this has something to do with it because I've made changes in the synonyms.
============================
Foutbericht:
============================
Er is al een item met dezelfde sleutel toegevoegd.
============================
Aanroepstack:
============================
bij System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
bij Microsoft.AnalysisServices.Common.LinguisticModeling.SynonymModel.AddSynonymCollection(Tuple`2 measure, SynonymCollection synonyms)
bij Microsoft.AnalysisServices.Common.LinguisticModeling.LinguisticSchemaLoader.DeserializeSynonymModelFromSchema()
bij Microsoft.AnalysisServices.Common.SandboxEditor.LoadLinguisticDesignerState()
bij Microsoft.AnalysisServices.Common.SandboxEditor.set_Sandbox(DataModelingSandbox value)
bij Microsoft.AnalysisServices.XLHost.Modeler.ClientWindow.RefreshClientWindow(String tableName)
============================
Thanks,
Leo -
How to get the column names of the table into the Dashboard prompt
how to get the column names of the table into the Dashboard prompt
Thanks & Regards
Kishore PHey john,
My requirement is as follows
I have created a Rank for Total sales by Region wise i.e RANK(SUM(Dollars By Region)) in a pivot table.
My pivot table looks like this
COLUMN SELECTOR: TOTAL US , REGION , DISTRICT , MARKET
---------------------------------------------------- JAN 2009 FEB 2009 MAR 2009
RANK REGION DOLLARS DOLLARS DOLLARS DOLLARS
1 CENTRAL 10 20 30 40
2 SOUTHERN 10 30 30 70
3 EASTERN 20 20 20 60
4 WESTERN 10 20 30 40
When i select the District in column selector
Report has to display rank based on Total Sales by District. i.e
------------------------------------------------- JAN 2009 FEB 2009 MAR 2009
RANK DISTRICT DOLLARS DOLLARS DOLLARS DOLLARS
for this i need to change the fx of rank i.e RANK(SUM(Dollars By Region)) to RANK(SUM(Dollars By District)) and fx of Region i.e Markets.Region to Markets.District dynamically.
so , i need to capture column name of the value selected from the column selector and dynamically i need to update the fx 0f RANK & fx of region.
do you have any solution for this?
http://rapidshare.com/files/402337112/Presentation1.jpg.html
Thanks & Regards
Edited by: Kishore P on Jun 24, 2010 7:24 PM
Edited by: Kishore P on Jun 24, 2010 7:28 PM -
How to view the table at the application level
Dear All,
How to view the table in the Data Dictionary at the application level, If a table is created at the database level by using CREATE statement.
code/
create table zmard as select * from sapone.mard where 1 = 2
/code
I would like to view the table above, which is created at the Oracle database level in the Data Dictionary.
can anyone guess the solution.
Best wishes
MaheshHi
U should create a program using SQL native in order to select and show the data.
By SE11 or directly in the program u can define a structure like your table:
DATA: BEGIN OF W_ZMARD,
FIELD,
END OF W_ZMARD.
EXEC.
OPEN CURSO FOR SELECT * FROM ZMARD
ENDEXEC.
DO.
EXEC.
FETCH NEXT CURSOR INTO :W_ZMARD
ENDEXEC.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
WRITE: / W_ZMARD-FIELD,
ENDDO.
EXEC.
CLOSE CURSOR
ENDEXEC.
I don't know if it's possible to create a view in SE11, because it's needs a table just defined in SE11, u can create a new view ZMARD based on MARD but I don't believe it'll use your table.
Max -
To find particular value in all the tables in the db
Hi All
I need to find out all the tables, corresponding column name by querying a particular string that appears in any of the columns in the any of the tables in the db.
Please help me of this.
ThanksOh dear you want to look for a particular data in all the tables in the database and say this data is available in these tables in these columns. Oh boy thats going to cost you a lot. why do you want to do that. can you share with us why you want to do that.
Thanks,
Karthick. -
Fetch the data from the tables in the SQL 2005 server to sap R/3.
Hi Experts,
We need to fetch the data from the tables in the SQL 2005 server to sap R/3.
Please explain which will be the best approach to fetch the same and how to do it. Sample program can greatly help.
<< Please do not offer points >>
Regards,
Shobana K
Edited by: Rob Burbank on Sep 21, 2010 2:36 PMHi,
Try NATIVE SQL statements in your abap code otherwise you can try to establish jdbc connection from ABAP program.
search in SDN for samples!
Suresh -
Reading and Updating the table at the same time
Hi all
I need to read from a table to check whether a record exist in there or not, then if not add the record to the table (in the same dataflow). Is there any way to use a table as a source and as a target at the same time?
While I'm doing this procedure, I don't want to add a record that I had inserted before twice (I need to get the latest veriosn of the table when I'm working with that). For example, in the same process, when I check the table and the record was not there, I insert the record, I read the table again , if this time again I want to read the same record that I had inserted just before, does DS distingish that, or all records will be comitted based on the commit size which is by default 1000?
I can not change the commit size to 1 to tell DS to commit record by record, as I have turned on the transactional load and the commit size is disabled for me.
Do you have any experience about my problem?
Any help is greatly appreciated.You need two dataflows. A first that reads your source and inserts/updates the lookup table. And then you read your source again and use the now current lookup table.
Even if you would set the commit rate to 1 it would not help as there are so many buffers between the transforms. What you would require is that only one row is in the dataflow at any given time - and that would take ages. -
Can the tables in the datamodel be ditributed among 2 different databases
Hi,
Please let me know whether the tables in the datamodel be ditributed among 2 different databases (for example between DB2 & Oracle).
Thanks in advance!duffymo,
Can you help me I am new to this one. Where do I do the JTA connection. Infact, is it a JTA configuration or is any coding required to handle that two-phase commit.
would like to know more.
Thanks -
The performance of the tables in the PSAPSTABD is poor
Hi:
After I reorganized the tablepsace "PSAPSTABD" with datafile , I
found that the performance for visiting the tables in the PSAPSTABD is
very poor , and the tcode of maintaining the custom master data and
material master data is very slow. The tools for the reorganization is
SAPDBA 6.40 and the type of the reorganization is offline.Why? How can I solve it?
THANKS.
sap envirement: aix 5.3 + oracle 9.2.0.7 + sap r/3 46c sr2
sap kernel : 46d_ext
dbatools: I used dbatools 640 to overwrite the dbatools 620 and "sapdba" to reorg the tablepsace.Hy,
is not easy understand the problem by your analysys...
try to analyze a single trx that you consider very slow , and through st04(oracle session) let me know in which table the trx remains in hang or in waiting...then you should see the cost estimated for the query that is doing the trx. i mean that could be an index not correctly configured....
Could be also a problem of table statistic..did you regenerate the statistic after the reorg of tablespace?
let me know also database and tablespace dimension ...
Bye bye
Nick -
In the table AIINSTALLATIONS the customer numer is missed
Hi!
I've got a small question: in the table AIINSTALLATIONS the field installation number is tilled out but the customer numer field is empty.
Can you suggest me where I'm able to fix it?
Thanks in advanceSMSY_SETUP
Write Data Back into SLD *
Default CPU Load AC 85
Multiple SLD Servers <empty field>
Hide Progress Display <empty field>
SLD Host <server name>
Namespace in SLD sld/active
SLD Server Port 50200
SLD User j2ee_admin
AC CPU Load Warning Value 65
Generate Business Partners from OSS C
Generate Systems from OSS A
JOB LOG
Job started
Step 001 started (program AI_SC_REFRESH_READ_ONLY_DATA, variant , user ID USERSAP)
No destination for SAP customer number 733135
No destination for SAP customer number 755727
Identification Category SP0001 is Not Assigned to Any Identification Type
Identification Category SP0001 is Not Assigned to Any Identification Type
Business Partner 35 was created for customer 737370 with messages
No destination for SAP customer number 1025117
No installations flagged for system generation for customer 733135
No installations flagged for system generation for customer 755727
No installations flagged for system generation for customer 1025117
System headers will be generated in SMSY from SAP Support Portal
No new systems found in SAP Support Portal to generate in SMSY
The following error messages have been returned by SAP Support Portal:
User S0003352577 - "Maintain System Data" authorization not found for installation number 0020292124
User S0003352577 - "Maintain System Data" authorization not found for installation number 0020298240
User S0003352577 - "Maintain System Data" authorization not found for installation number 0020298240
User S0003352577 - "Maintain System Data" authorization not found for installation number 0020298240
User S0003352577 - "Maintain System Data" authorization not found for installation number 0020298241
User S0003352577 - "Maintain System Data" authorization not found for installation number 0020298241
User S0003352577 - "Maintain System Data" authorization not found for installation number 0020298242
Installation number 000INITIAL not found
The following error messages have been returned by SAP Support Portal:
No system ZZ1 found for installation number 0020277953
No system CN3 found for installation number 0020277955
License data collected (customer number: 0000737370)
Job finished
Maybe you are looking for
-
I have created a Indesign document of 1024 x 768 and exported it as a 72dpi PDF. The PDF is only to view on screen. My problem is that when I export the PDF it always opens more then 100%. So everything is slightly pixelated. To see everything in foc
-
AppleScript to check if application is open on host and networked Mac
Hello Hoping someone can help me with an AppleScript. Background: I'm running ChronoSync to bi-directionally sync iTunes and one-way mirror my Aperture libraries between a MacPro and an external drive attached to a MacBook Pro. ChronoSync has told me
-
SNMPv3 on Cisco 2960-S Switch to NCS
Can anyone point me to some good instructions on how to set up SNMPv3 on a Cisco Catalyst 2960-S switch in order to manage it with Cisco Prime NCS?
-
Itunes stops downloading when almost complete
Hi there, my friend has a dell laptop brand new not sure what model running windows 7. Whenever i attempt to download itunes the download reaches around 70-90% completion and then stops. I've tried IE, firefox and google chrome and all of them fail.
-
Start Up Issue - Question mark folder flashes, then computer boots.
This is more of an annoyance than anything as the issue has not stopped my computer from booting. I haven't been able to find anything about this in support forums or online. When I boot my macbook, the question mark folder thing flashes once, and th