Tables of each field in extractor
Hi All,
This has been confusing me for quite sometime.How do we know the tables from which each field of our extractor is getting data from in ECC? Is there any tcode or way of doing it?
I was using ROOSOURCE and ROOSFIELD,but could not find any table name.
ANy help would be appreciated?
Neo
Message was edited by:
Neo Neo
Hi Neo,
See this excellent blog by Roberto (this has been referred to many times in the forum):
/people/sap.user72/blog/2005/09/05/sap-bw-and-business-content-datasources-in-pursuit-of-the-origins
Hope this helps...
Similar Messages
-
How can I get the number of distinct records that each field of a DB table has?
Hi everyone,
I would like to know how to get he number of distinct records that each field of a DB table has. When tracing a SQL statement either in ST12 or ST05, in the plan execution, if the sentence made useage of an index, then I can click in the index name and see this kind of information (no. of distinct values for each field of that index).
Can I do something like this but with the whole fields of a table?
What I have found until now is in Tx ST10; I search for whatever kind of table statistics and then use the function of "Analyze table" (which takes me to Tx DB05). In here, I can enter a table and up to 5 fields in order to get the information that I want.
Is there any other way to do this?
Regards,
David RezaHi David,
You can export the same to excel and sort as per requirement.
Sorry is that what you are looking for ?
Regards,
Deepanshu Sharma -
...but when I fill a table with merge fields, it ends up creating multiple entries for the same address, rather than one table full of each address. Please help.
Thanks!That is a quirk of Pagesthat it applies only one record per page.
There is a way around this:
http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=245&highlight=labels &mforum=iworktipsntrick
Peter -
Table names for fields from standard extractors
Hello Experts,
I want to know, if there is an easy way to find R/3 table names from extractor fields of standard data sources / extractors.
ROOSOURCE , RSOSFIELDMAP did not help.
ThanksHi
find your extract structure name from RSA6 or RSA5 and then go to SE11data type>give your extract structure name and click on 'where used list', then select 'programs'..
You can see the name of the extract programs written by sap.go to the program then you can find the tables and their fields...
Hope it helps up to some extent....
Thanks,
Teja -
Fill table using different statements for each field (newbie question)
Hi all, I'm about to fill table table1 (field1, field2, etc.) using different statements (and maybe variables) for each field.
My statements are too different to combine them into one query, but my example is simple:
statement 1:
SELECT ttt AS field1 FROM dual
statement 2:
SELECT yyy AS field2 FROM dual
Each statement returns one value. Maybe I need some variable for each value, so var_field1 = field1, var_field2 = field2, etc.
As a result I have to fill table table1 using my variables, so it must be some procedure.
I know I can do it using one statement below, but I have more than 100 queries, so they should be executed one by one.
with t1 as(
select (SELECT 'ttt' FROM dual) field1, (SELECT 'yyy' FROM dual) field2 from dual
select * from t1;
Could you please show me some example, how this procedure should be written?
Thanks ahead.This hasn't got anything to do with Oracle Reports, but here we go anyway. Your query can simply be:
with t1 as(
select 'ttt' field1, 'yyy' field2 from dual
select * from t1;
FIE FIE
ttt yyy
1 row selected.But maybe your example was an over simplification of your problem. -
To find the table fields with the description of each field
hi ,
Nearly for three hours am trying to find the fields along with its table its very hectic i am having a list of questions
1. Unit_Sales
- WBS Element
- Desc
- Units sqft
- Sold Month
- Unit Price
i searched a lot but i got only for the WBS element from prps tble for units i searched in vbap ( units of measure ) something related to the units of material i hav searched
2. Interest
Partner
Compcode(bukrs)
Text
Name
Name1
Characteristics
Transaction
Fin.Proj.
Payer/ee
Posted on
Pmnt Date
Flow
Base amount
PmntAmtPyC
Calc. from
Calc. to
Percent
DocumentNo
i need to know the fields for these descrHello Mahalakshmi,
Use DD04T table to fetch field name based on description.The below is the selection criteria
Thanks -
How to convert internal table with dynamic fields to XML
Dear all,
I met a problem like the following:
The aim is to transform the following parameter to XML
IT_FIELD stores the dynamic filed name of the internal table,with these fields, the dynamic internal can be created by cl_abap_tabledescr=>create(it_field)
IT_VALUE stores the value of the internal table dynamically created with dynamic fields.
For example
IT_FIELD =>
line1: FIELD1
line2: FIELD2
line3: FIELD3,
three lines in this internal table.
dynamically created internal table structure FIELD1 FIELD2 FIELD3
And IT_VALUE=>
1 2 3 (First line)
11 22 33
two lines of data.
Do you have any idea about how to transform the IT_VALUE to XML here? And also the transformed XML to the IT_VALUE.( we may need remember IT_FIELD here for later XML to IT_VALUE.)
Hope I describe the problem clearly.
Any inputs will be appreciated.
Edited by: Max Tang on Jan 12, 2009 3:46 PM
Edited by: Max Tang on Jan 12, 2009 4:14 PMHi,
you need to implement a bit of coding for that.
With the 'do varying' statement abap provides a loop over those fields. Within this loop you can build up a new internal table with one entry for each period and amount.
kind regards
Siggi
PS: I am not very familiar with CO, but I guess there will be a standard extractor for that. -
Add double quotes (") surrounding each field in GUI_DOWNLOAD
Experts,
Does anyone know if it is possible to add double quotes (") to all fields in .txt file using FM GUI_DOWNLOAD besides manually concatenate the quotes into each field before calling the FM?
For example, output need to be:
"0000123" "NAME1" " 200.00"
Any advice is greatly appreciated.
Best regards,
MinamiIf you are interested, here is a complete solution.
report zrich_0001.
data: it001 type table of t001.
data: xt001 type t001.
data: iflatf type table of string.
data: xflatf type string.
data: filename type string.
data: field_value type string.
field-symbols: <fs>.
* Selection Screen
selection-screen begin of block b1 with frame title text-002 .
parameters: p_file type localfile default
'C:Test.txt'.
selection-screen end of block b1.
start-of-selection.
select * into table it001 from t001.
loop at it001 into xt001.
do.
assign component sy-index of structure xt001 to <fs>.
if sy-subrc <> 0.
exit.
endif.
concatenate '"' <fs> '"' into field_value.
if sy-index = 1.
xflatf = field_value.
else.
concatenate xflatf field_value into xflatf separated by space.
endif.
enddo.
append xflatf to iflatf.
endloop.
filename = p_file.
call method cl_gui_frontend_services=>gui_download
exporting
filename = filename
filetype = 'ASC'
changing
data_tab = iflatf.
Regard,
Rich Heilman -
Need help for SQL SELECT query to fetch XML records from Oracle tables having CLOB field
Hello,
I have a scenario wherein i need to fetch records from several oracle tables having CLOB fields(which is holding XML) and then merge them logically to form a hierarchy XML. All these tables are related with PK-FK relationship. This XML hierarchy is having 'OP' as top-most root node and ‘DE’ as it’s bottom-most node with One-To-Many relationship. Hence, Each OP can have multiple GM, Each GM can have multiple DM and so on.
Table structures are mentioned below:
OP:
Name Null Type
OP_NBR NOT NULL NUMBER(4) (Primary Key)
OP_DESC VARCHAR2(50)
OP_PAYLOD_XML CLOB
GM:
Name Null Type
GM_NBR NOT NULL NUMBER(4) (Primary Key)
GM_DESC VARCHAR2(40)
OP_NBR NOT NULL NUMBER(4) (Foreign Key)
GM_PAYLOD_XML CLOB
DM:
Name Null Type
DM_NBR NOT NULL NUMBER(4) (Primary Key)
DM_DESC VARCHAR2(40)
GM_NBR NOT NULL NUMBER(4) (Foreign Key)
DM_PAYLOD_XML CLOB
DE:
Name Null Type
DE_NBR NOT NULL NUMBER(4) (Primary Key)
DE_DESC NOT NULL VARCHAR2(40)
DM_NBR NOT NULL NUMBER(4) (Foreign Key)
DE_PAYLOD_XML CLOB
+++++++++++++++++++++++++++++++++++++++++++++++++++++
SELECT
j.op_nbr||'||'||j.op_desc||'||'||j.op_paylod_xml AS op_paylod_xml,
i.gm_nbr||'||'||i.gm_desc||'||'||i.gm_paylod_xml AS gm_paylod_xml,
h.dm_nbr||'||'||h.dm_desc||'||'||h.dm_paylod_xml AS dm_paylod_xml,
g.de_nbr||'||'||g.de_desc||'||'||g.de_paylod_xml AS de_paylod_xml,
FROM
DE g, DM h, GM i, OP j
WHERE
h.dm_nbr = g.dm_nbr(+) and
i.gm_nbr = h.gm_nbr(+) and
j.op_nbr = i.op_nbr(+)
+++++++++++++++++++++++++++++++++++++++++++++++++++++
I am using above SQL select statement for fetching the XML records and this gives me all related xmls for each entity in a single record(OP, GM, DM. DE). Output of this SQL query is as below:
Current O/P:
<resultSet>
<Record1>
<OP_PAYLOD_XML1>
<GM_PAYLOD_XML1>
<DM_PAYLOD_XML1>
<DE_PAYLOD_XML1>
</Record1>
<Record2>
<OP_PAYLOD_XML2>
<GM_PAYLOD_XML2>
<DM_PAYLOD_XML2>
<DE_PAYLOD_XML2>
</Record2>
<RecordN>
<OP_PAYLOD_XMLN>
<GM_PAYLOD_XMLN>
<DM_PAYLOD_XMLN>
<DE_PAYLOD_XMLN>
</RecordN>
</resultSet>
Now i want to change my SQL query so that i get following output structure:
<resultSet>
<Record>
<OP_PAYLOD_XML1>
<GM_PAYLOD_XML1>
<GM_PAYLOD_XML2> .......
<GM_PAYLOD_XMLN>
<DM_PAYLOD_XML1>
<DM_PAYLOD_XML2> .......
<DM_PAYLOD_XMLN>
<DE_PAYLOD_XML1>
<DE_PAYLOD_XML2> .......
<DE_PAYLOD_XMLN>
</Record>
<Record>
<OP_PAYLOD_XML2>
<GM_PAYLOD_XML1'>
<GM_PAYLOD_XML2'> .......
<GM_PAYLOD_XMLN'>
<DM_PAYLOD_XML1'>
<DM_PAYLOD_XML2'> .......
<DM_PAYLOD_XMLN'>
<DE_PAYLOD_XML1'>
<DE_PAYLOD_XML2'> .......
<DE_PAYLOD_XMLN'>
</Record>
<resultSet>
Appreciate your help in this regard!Hi,
A few questions :
How's your first query supposed to give you an XML output like you show ?
Is there something you're not telling us?
What's the content of, for example, <OP_PAYLOD_XML1> ?
I don't think it's a good idea to embed the node level in the tag name, it would make much sense to expose that as an attribute.
What's the db version BTW? -
How can I know in which Tables are the fields stored
Hi,
In transaction FSE3 Display Financial Version
Statement Version, if I drilldown in details, I can
see Item No, Chart of Acc, From Accountm To Account D,
C.
when I do a F1 on the fields, I can see that it is a
structure. How can I know in which Tables are the
fields store?Hi Ankit,
There are no rules or guidelines for finding the table but i will share some of the tips used generally.........but i am not sure if we can do it for a tree structure..but try anyways....
Double click on the structure name seen on the F1 pop up window...
in the structure screen, try to analyse the field which is very important something like a key in that set of fields or do the same for the fields which we feel are more important,then click on the domain for that field....once in the domain..click on the "where used list for the domain" on the top...
it will display a pop up -> select only "table" and then press "Tick/OK"..A list will be displayed with the data element and table name ..from this we need to find out the right one we need either by going for text of the table or going through each and every one
It takes time but does the job.....
Regards
Byju -
Joining tables with "similar" field values
I have run into a situation where I want to join two tables on a field called U_LotusBox. In my main table the the feild can contain values like 1 or 2 or 3 or 1,2,3,4. That's 1 comma 2 comma 3 comma 4. My field in the second tables contains only single digit values, like 1 ,2, 3 up to 5.
When the two fields are identical I am able to retrieve data. But if my field in the main contains a value of 1,2,3 and my secondary table field value is 2 I get no data returned because the two fields are not identical.
Is it possible to have a join that is "fuzzy" meaning that if the main table field values contains the value of the secondary field value, 2 in my example would it be possible to return data?
Any thoughts would be appreciated.Ralph,
Here in high-level details is an SQL example of creating two tables (test1 and test2) with one column in each table (col_a and col_b, respectively) to show how a join on a substring of one column can be tied to a column of another table:
create table test1 (col_a char(5))
create table test2 (col_b char(1))
insert into test1 values ('1')
insert into test1 values ('1,2,3')
insert into test2 values ('1')
insert into test2 values ('2')
select col_a,test2_tbl1.col_b
from test1 inner join test2 as test2_tbl1 on col_a=test2_tbl1.col_b or
substring(col_a,1,1)=test2_tbl1.col_b or
substring(col_a,3,1)=test2_tbl1.col_b or
substring(col_a,5,1)=test2_tbl1.col_b
col_a col_b
~~~~~~~|~~~~~
1 1
1,2,3 1
1,2,3 2
thanks,
John -
Hi expert,
I need to view data from table ESSR, field SBNAMAN.
I found Just the extractor 2LIS_02_ITM with some field from table ESSR but these field are not the field SBNAMAN.
Two questions.
Do you know any extractor with this field? I can't found any.
Can I add this field (SBNAMAN) to extractr 2LIS_02_ITM ? how?
Thanks in advance.
MauricioHello Mauricio,
So far there's no standard extractor with this field.
While you can append MC02M_0ITM with SBNAMAN and populate it in cutomer exit, I do not recommend this, since the field won't be delta enabled.
I suggest you create customer extractor on ESSR table with AEDAT field for generic delta.
BR
Ondrej -
Table for Screen Field Properties
Hi Guys,
I have strange requirement.
Lets say i have designed 5 fields in the Dialog Program. 2 fields belongs to Group1,another 2 fields belongs to Group2 and 3rd field is belongs to group3.
Where can i find those values (I mean which table). I belive it should be Program,screen no and data type.
Note : Groups you can set in Attributes of the field in Dialog Program.
Thanks
PoornaSetting Screen Field Attributes
Every screen field has attributes that you set in the Screen Painter when you define the
screen. At runtime, you may want to change these attributes, depending on what
functions the user has requested in the previous screen. At runtime, attributes for each
screen field are stored in a memory table called SCREEN. You do not need to declare
this table in your program. The system maintains the table for you internally and updates
it with every screen change.
The memory table SCREEN contains the following fields:
Name Length Description
NAME 30 Name of the screen field
GROUP1 3 Field belongs to field group 1
GROUP2 3 Field belongs to field group 2
GROUP3 3 Field belongs to field group 3
GROUP4 3 Field belongs to field group 4
ACTIVE 1 Field is visible and ready for input
REQUIRED 1 Field input is mandatory
INPUT 1 Field is ready for input
OUTPUT 1 Field is for display only
INTENSIFIED 1 Field is highlighted
INVISIBLE 1 Field is suppressed
LENGTH 1 Field output length is reduced
DISPLAY_3D 1 Field is displayed with 3D frames
VALUE_HELP 1 Field is displayed with value help
To activate a field attribute, set its value to 1. To deactivate it, set it to 0. When you set
the ACTIVE attribute to 0, the system suppresses the field and turns off the ready for
input attribute. The user can neither see the field nor enter values into it.
Note
You can define values for each of these attributes in the Attribs. for 1 field section in
the field list of the Screen Painter. If you need more information about attribute
meanings, see BC ABAP/4 Workbench Tools.
Modifying the Screen SAP AG
Setting Screen Field Attributes
32u20134 May 1997
As an example of modifying the screen dynamically, start with transaction tz50
(development class SDWA).
The transaction consists of two screens. In the first screen the user can enter flight
identifiers and either request flight details (by pressing a Display pushbutton) or press the
Change pushbutton to change the data of screen 200.
The field attributes are now set dynamically, according to whether the Display button or
the Change button was selected. In both cases the same screen is now called, but with
different field attributes.
If the same attributes need to be changed for several fields at the same time, these fields
can be grouped together. For example, in order to change the fields in screen 200
dynamically, we assign these fields in the Screen Painter to the group MOD. You can
specify up to four modification groups for each field. The contents of the Groups field
are stored in the SCREEN table.
The changes to the attributes of the fields in this group can be implemented in a PBO
module:
SAP AG Modifying the Screen
Setting Screen Field Attributes
May 1997 32u20135
MODULE MODIFY_SCREEN OUTPUT.
CHECK MODE = CON_SHOW.
L0OP AT SCREEN.
CHECK SCREEN-GROUP1 = u2019MODu2019.
SCREEN-INPUT = u20190u2019.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE.
The memory table SCREEN contains each field of the current screen together with its
attributes.
The LOOP AT SCREEN statement puts this information in the header line of this system
table.
In this example taken from transaction tz50, if the user chooses Display then SCREENINPUT
is set to u20190u2019 and all fields belonging to the MOD group thus become display-only
fields.
Because attributes have been changed, the MODIFY SCREEN statement is used to write
the header line back to the table.
Modifying the Screen SAP AG
Changing Screen Field Attributes with the Function Field Selection -
I have a table with 74 numerical fields for a given date. The table looks something like
RecordDate Field1
Field2 Field3
.... Field74
I would like a line chart for each field with the value on the Y axis and date on the X axis. That part is easy enough.
The problem is that if I put 74 lines on the same chart it will be unintelligible. Unfortunately I think the best way to observe trends in the data over time is a line chart for each.
I know that I could manually add a separate chart for each one. However, I'd like to dynamically add a chart for each field. We may potentially add Field75 down the road, so avoiding reengineering the report each time is desirable. Is something
like this possible?
Thanks!Hi Mateoc15,
If I understand correctly, you want to specify a Chart Area for a Series in order to increase the readability of the chart.
In Reporting Services, the bar, polar, or shape series can only be combined with series of the same chart types in the same chart area. If you are using a Polar or Shape chart, you can consider using a separate chart data region for each field that you wish
to show.
For the details, please refer to the link:
Specify a Chart Area for a Series (Report Builder and SSRS)
Regards,
Heidi Duan
Heidi Duan
TechNet Community Support -
How to find table for structure field ???
Hi..
i need your expert help on this.
i am working on printing of terms of payment description. here there are explanation fields. it is coming from structure R052. and field name is TXT 02. here as per my understanding structure is coming from multiple tables so how i can find that from which table this field is coming??
thanks
h shahDear,
Well I cant say this is the solution for your issue, but have a look.
http://it.toolbox.com/wiki/index.php/Find_data_in_your_SAP_system_and_know_which_tables_do_what
DD02L - table properties
DD02T - table texts
DD03L - field properties
DD03T - field texts
How to find data related to a structure? With GREAT difficulty, but here are some ways (which will NOT work sometimes) to find specific fields if you know the structure's fieldname.
1) First, goto SE11, and enter your structure name. Goto the field that holds your data, and double-click on the element name. Once inside the element, do a where-used list for that element, searching tables only. Then go into each table, and see if you can find the one holding your data. There may sometimes be a huge number of tables displayed, but a lot of them will be empty.
2) Get the name of the program behind your transaction, goto SE80, and enter the program name. 99% of the time it will be part of a module-pool and bring up the pool. Goto the dictionary structures, and search each table there for the one holding your data.
3) Open a new session with transaction ST05, select SQL Trace, click on the Trace On button, and go back to your transaction (while leaving the session with ST05 open). Submit your transaction, and go back to the ST05 session. Click on the Trace Off button, then select the List Trace button. Continue with standard selections, and a BASIC TRACE LIST will appear. search thru the tables displayed under ObjectName.
and have a look at below.
You do know any transaction in which (related) data is used: 1) start the transaction 2) position the cursor on the field you want to have info about 3) press F1, then F9 4) now you see the technical information of the data element, such as table name and field name. 5) if the table mentioned is what you're looking for, you're done. It is also possible that the data element is in a structure and not in a table. Now you can either analyze the structure via trx SE11, or you can double click on the 'data element' field. In the next screen, use the 'Where used' button to find the tables in which this data element is used.
Additional tip: if you have found the table name, you can use trx SE36 to see the relationships of this table to other tables. You can use these relationships when defining queries, designing custom ABAP programs, etc. If you're lucky, one or more standard SAP logical database exist which contain the table you found in the previous steps. Proceed as follows: 1) start trx SE36 2) use the search help for the logical database name 3) enter the name of the table in the search help 4) press enter and, if you're lucky, you'll see a list of logical databases. Select one, press enter, select the radio button 'Structure' and press the view button. Now you'll see how this table is related to other tables.
And finally, I prefer, the simpliest way to contact the ABAP consultant for help.
Regards,
Syed Hussain.
Maybe you are looking for
-
Hi I am using version 3.6.15 with Windows 7, I would like to use another download program in place of Firefox's default option, how can I disable this in Firefox Many thanks Bruce Baxter
-
Printing problems with my HP Laser jet M 1217 nfw MFP
Hello We just changed internet providers and now the printer will not print with our laptops. We had no problems before and the 1217 is still the default printer. The laptops are connecting fine but when we try to print we get an "error " message M
-
'Mark for Translation' cannot be used in languages other then the primary
Hi there, I'm using webservices to update a picklist and when i try to insert a new value im getting the following error message: 'Mark for Translation' cannot be used in languages other then the primary.(SBL-ODS-50196). Can anyone give me an help on
-
Hey I was wondering about a few things with my new Micro... Is there any way to have the date and time show at the top when music is playing (like the IPod Mini)? Or is the only way to show the time is through the menu's? I had another question, but
-
I have recently purchased Toy Story 3 in HD for my Ipad 2 but cannot view it in full screen. Why is this ? Can anybody help