Currency as key field
Hi All,
I wanted to know if a unit(currency in my case) is treated as key field in an ODS although it is not explicitly declared in key field area and is placed in data field.
Suppose for the same key field in ODS I have a key figure which has 300 Dollars as value and 200 Eur as another value.
Will this be treated as two separate records even if the Currency field is not included in key?
Thanks for ur help!
NewBie
Hi,
Any fields in the data field CANNOT be treated as a key field.
Thus the records will be overwritten.
-Vikram
Similar Messages
-
F4 help values for currency key field in table
Hi all,
I have added currency and currency key fields in my Z table. For the curreny key field, i have assigned the standard data element WAERS. I have implemented Table Maintenance Generator for my table. But the F4 help values for the currency key field is not appearing when i tried to maintain table entry.
Should i need to check the Foreign key check box for the field attribute? But this check box is in disable field in screen layout.
Could someone tell me how to solve this issue?Hi,
Make the check table of the currency field of your Ztable as TCURC,which is the master table of Currency.Inside the domain of the field you write the TCURC as a value table.and make foriegn key relationship with the TCURC table.
Regards,
Suvajit. -
Currency Field as a Key Field in Z Table
I am creating a z table in which i have to make a AMount field as a key field . But it is showing a warning while activating the table stating that "Key field AMTFR has num. type DEC: Buffering not possible, Transport restricted"
How can i clear this warning.
Thanks in advanceIn this design I suggest you add one more field to the table called SLAB Code., which will be the key. You can have it as CHAR data type of whatever length you want.
That way its easy to handle, because tomorrow if the slabs change, you are changing the values of the key fields, this way you can avoid that.
You can probably have composite key of Slab code and validity dates.
Regards,
Ravi
Note - Please mark all the helpful answers -
How to convert flat file to XMl without key field value
Hi experts,
I have a input CSV Flat file which has got one HEADER line and Multiple Detail records.
I do not have any key field value to convert this FLAT file to XML using normal file content conversion.
Is there any module or Bean which can be used to convert this Flat File to XML.
Or any other remedy to overcome this problrm.
Thanks in advance.
Regards
PradeepHi Saurabh,
Thanks for the reply.
Ur understanding is perfectly alright.Lets say my file is like below.
Account Number,Account Name,Currency,Unclear Balance,Account Balance010205000033,VAISHNAVI SALES CORPN,0.00,0.00,350000.00
010205000034,CHAKKA ENTERPRISES,0.00,-641350.47,8649.53
010205000035,SEHGAL TRADING COMPANY,338665.00,-220.00,461115.00
010205000036,SHUBH LAXMI AGENCIES,0.00,0.00,0.00
010205000037,EMPIRE AGENCIES,0.00,-245.11,0.00
010205000038,PIONEER AGENCIES,0.00,-696386.00,303614.00
I am not using the first line in the mappiing.
Are you saying that I need to ignore the first line while doing the conversion using Recordset OFFSET ?
Or do I need to make a single structure taking all the fields from header as well as details and while defining the structure I need to ignore the fields from header?
Please suggest. -
Error in collect statement(non-key fields must be numeric)...
Error in collect statement(non-key fields must be numeric)...
Hello Experts,
I created an internal table based from a ztable. The structure of the ztable is
as follows:
1. MANDT -> PRIMARY KEY
2. BUKRS -> PRIMARY KEY
3. TXK50 -> PRIMARY KEY
4. ANLKL -> PRIMARY KEY
5. KTANSW -> PRIMARY KEY
6. KOSTL -> PRIMARY KEY
Then the remainder of the fields(around 8 fields) are currency data types(ANBTR).
An error is showing saying 'You can only use the collect command in a table if all of its non-key
fields are numeric(type I,P or F).
I searched the forum and it said that non-keys must be numeric in order for the
collect command to work. But all of my primary keys are non-numeric.
Below is my declaration:
CLASS-DATA: gt_output_acq TYPE hashed TABLE OF zsd_output_acq
WITH UNIQUE KEY bukrs txk50 anlkl
ktansw kostl,
gt_output_ret LIKE gt_output_acq,
wa_output_gen LIKE LINE OF gt_output_acq,
gt_output_net TYPE HASHED TABLE OF zsd_output_net
WITH UNIQUE KEY bukrs txk50 anlkl
ktansw kostl,
wa_output_net LIKE LINE OF gt_output_net,
gt_sort_crit TYPE SORTED TABLE OF t_sort_crit
WITH NON-UNIQUE KEY bukrs kostl,
wa_sort_crit LIKE LINE OF gt_sort_crit.
FIELD-SYMBOLS: <fs_output_acq> LIKE LINE OF gt_output_acq,
<fs_output_ret> LIKE LINE OF gt_output_ret,
<fs_output_net> LIKE LINE OF gt_output_net.
COLLECT <fs_output_acq> INTO gt_output_acq. "Here is the errorHi Vijay,
Here it is:
CLASS-DATA: gt_output_acq TYPE hashed TABLE OF zsd_output_acq
WITH unique KEY bukrs txk50 anlkl
ktansw kostl,
gt_output_ret LIKE gt_output_acq,
wa_output_gen LIKE LINE OF gt_output_acq,
gt_output_net TYPE hashed TABLE OF zsd_output_net
WITH unique KEY bukrs txk50 anlkl
ktansw kostl,
wa_output_net LIKE LINE OF gt_output_net,
gt_sort_crit TYPE SORTED TABLE OF t_sort_crit
WITH NON-UNIQUE KEY bukrs kostl,
wa_sort_crit LIKE LINE OF gt_sort_crit. -
Currency Translation Key for Restricted Key Figure
Hello Everyone,
I created a Restricted Key Figure and want to assign a currency translation key and the field is greye out.
How do you assign a currency translation to a restricted key figure?
Thanks so much,
ColleenHi Colleen,
Did you first assign the Currency COnversion Key (box on left). Then the Target Currency box will be enabled.
Hope this helps... -
Help for search help and currency and quantity fields
hi,
please help me for creating search help and when the currency and quantity fields are used please expalin this with steps as i am a learner..
regards
raj.Hi Rachu,
Welcome To SDN
Help On Search Help
Go to se11
Select radio button Search help
click on create
and select elementary seacrh help
selection method---->tablename or viewname
press f1 in search help exit we will get a FM named as
F4IF_SHLP_EXIT_EXAMPLE.copy that FM from se37 in to Zprogram.we have a record_tab for copying the view by using this tab we can restrict the values from the view or table.this values are populate into another table .Then ,
come to se11
and in our seacrh help we will pass components of the search help
Source: https://forums.sdn.sap.com/click.jspa?searchID=14985345&messageID=5618016
Help On Currency and Quantity Fields:
Whenever you have to maintain fields for currencies and quantites u need to refer them to currency key and quantity key which also have to be present in the table.
If suppose you are creating a table for Employee. And suppose that fields would be like :
EMPID -
employee id
EMPNAME
employee name
DEPARTMENT --- department
SALARY -- salary ( Data Type u2013 CURR )
WEIGHT -
weight of the employee ( Data Type -- QUAN )
Now the fields SALARY AND WEIGHT fields should refer to currency and quantity keys. So you need to have two more fields like
CURRKEY --- Data Type ( Cuky )
Quantity --- Data Type ( Unit )
Now we have to attach the field Currkey to the field Salary
And the field Quantity to the field Weight
So when u create a table you can see a tab Currency / Quantity fields.
Here You can give the reference table and the reference field against the salary and weight fields.
Source: https://forums.sdn.sap.com/click.jspa?searchID=14985456&messageID=5692074 -
DSO - What key fields and data fields in dso
Hi experts,
I need to create a dso in between the cube and 2 data sources(2lis_11_vaitm, 2lis_12_vcscl) to stage the data. My question is: what key fields and data fields to choose for the dso? is there a standard dso to copy? please explain in detail the model to set up, whether to connect both the ds's to dso and then to cube or one ds to dso and the other to the cube. more details will help.Check this for standard DSO:
http://help.sap.com/saphelp_nw04/helpdata/en/43/fcdc387f34384f94c3227baf3837a8/content.htm
Thanks...
Shambhu -
Key Fields & Data Fields in DSO.
In Standard DSO, Maximum how many number of key fields and data fields we can enter in one DSO?
For e.g : In Cube Char - 248 KF - 233
In DSO Key Fields - ? Data Fields - ?
Regrards,
Nithi.Hi Nithi,
Since Key fields are decide by us we can add according to our requirement.
Key fields can only be 16 you cannot exceed this. but if you have more key fields, you can combine fields using a routine for a key field
Max Data Fields - 749 data fields can be added in a DSO.
Warm regards
Gokul -
No key field found for creation of DataSource - Classification Datasource
Hello,
While trying to create a clasiffication datasource based on 0PLANT_ATTR, when i assign a characteristic and push the DataSource button, i get the following message:
No key field found for creation of DataSource
Diagnosis
During generation of a classification or configuration DataSource, only those key fields for the object table (field "Obj.Tabelle") that are already present in the basis DataSource transferred to the extract structure. This is the case when none of the key fields of the object table were found in the structure of the basis DataSource.
System response
A DataSource cannot be created without key fields. The action was cancelled.
Procedure
Check whether you have selected the correct basis DataSource and object table. For more information, please see SAP Note 569849.
Do you know what can be the problem?
Thank you and regardsHi Alberto,
plants are a special case. The key which is used for the classification
of plants (object type BETR) is not the same as the key which is used in
datasource 0PLANT_ATTR.
BETR has key LOCNR (Site). That's a customer related to a plant. The
customer number will be extracted in field LOCNR.
0PLANT_ATTR extracts the plant in its key field WERKS.
Transaction CTBW and the generic extraction program for classifications
don't know the relationship between LOCNR and WERKS. So they cannot map
them.
I do recommend a solution which would add the mapping between
LOCNR and WERKS:
1. Create please the classification datasource as intended, but use
datasource 0RT_LOC_MGR_ATTR as basis datasource. It's the only
datasource of the content where LOCNR is a key field. So
0RT_LOC_MGR_ATTR is used as a dummy here, to allow transaction CTBW to
create the classification datasource. It's not necessary to extract
data with datasource 0RT_LOC_MGR_ATTR.
2. Extend please the extract structure of the created classification
datasource. Add please field WERKS using component type WERKS_D. Make
this field visible.
3. Fill field WERKS in the extractor user exit EXIT_SAPLRSAP_002. WERKS
can be read from table KNA1 by using the customer number extracted to
LOCNR to select on field KNA1-KUNNR.
4. Transaction CTBW_META on the BW system isn't able to append the
characteristics from the classification datasource to infosource
0PLANT, because the keys are different. So create please a new info
source with CTBW_META. This allows CTBW_META to create the info objects
for the characteristics used in the classification datasource.
5. Add please the characteristics used in the classification datasource
to infosource 0PLANT manually. You will find the info object names of
the characteristics by looking up the characteristic datasources which
are assigned to the classification datasource in transaction CTBW. From
these names you can derive the info object names:
1CL_A... -> C_A...
6. Disconnect the infosource which has been created with CTBW_META from
the classification datasource.
7. Connect please the classification datasource to infosource 0PLANT
Use following info object:
info object field
0PLANT WERKS
The info object names for the characteristics are explained in step 5.
8. Add an infopackage to infosource 0PLANT for the classification
datasource.
Now the extraction of classifications of sites should work.
Best regards,
Rolf
P.S. I saw the system messed it up and doesn't display any new and empty lines. Sorry, I hope you still can read it.
Edited by: Rolf Doersam on Mar 26, 2010 6:56 PM -
Creation of key field in a database table
Hi All,
As per my requirement, i have to add few new key fields in an existing table.
Now total number of key fields are 17, but while saving this is giving me an syntax error stating 'According to SAA standard key fields cannot be more that 16'.
I s there any other go? i can not reduce the number of key fields.
Regards,
Pankaj.
Edited by: Pankaj Bist on Sep 5, 2008 3:24 PMHi,
In the se11 transaction,In the menu bar o like this.
Utilites-->Database Utility and the Press the button Activate and Adjust Database.
Note:
Make sure that you total data in the table to be downloaded into ur system.
As ctivate and Adjust Database makes data to be deleted.
Regards,
Rama. -
Key Field missing in transformation
Hi
I am trying to use BI7.0 transformation (1-1 mapping basically) to send data from one DSO to another DSO
Source : DSO1
Key fields : Account ,Itemid, Position number
Target: DSO2
Key fields : Account ,Itemid, Position number
However when i create transformation i don't see "Itemid" in the source side in the transformation mapping. Rest of the two key fields are present.
Please help.
-AnuragHi, Anurag.
I just posted a question to the forum, because we are implementing the same architecture, and we are wondering how deltas will work with this
architecture. Are you using deltas?
The text of my recent post is below.
We are loading from R/3 into DSO1, and then from DSO1 into DSO2. The R/3 extractor that loads DSO1 is
delta-enabled. We are not sure, however, if a delta mechanism governs the load from DSO1 into DSO2. The
DTP says its extraction mode is delta, but does that mean, if a row in DSO1 changes, it will negate the key figures
on the original row and send a new row the way R/3 does?
For example, suppose the R/3 extractor sends us Row 1.
Row 1 has a key figure with a value of $100.
Row 1 gets changed in R/3, and the new value is $125.
The R/3 delta mechanism takes care of this by negating the key figure on the appropriate row and sending us a correcting
row. For example,
the R/3 extractor will send us:
Row 1 $100
Row 1 -100
Row 1 $125
So... the net value is correct, i.e. 100 - 100 + 125 = 125.
When we load from DSO1 into DSO2, however, do you know what rows will load into DSO2? Is BW "smart" enough to do this
type of negation?
Thanks! -
Hi All,
I want to know the functionality of the Key Field in the DSO.
I know based on the Key Fields(Primary Key) data is pulled to DSO, but please explain me the below scenario
E.g
I have 3 records in the Extractor( Generic) and i am pulling data to DSO - Full load.
Material Qty Date
100 20 1-Jan-2010
100 30 5-Jan-2010
100 10 10-Jan-2010
In DSO i have only one Key field called 0MAT_NM (Material Number), but i have 3 records in the Extractor , shown above.
Now my Question is
On what basis data will be pulled to DSO?
Whether latest date records will be pulled to DSO or let me know correct method? because i have got material no 100
but date and Qty is different (means one time it is taking Qty - 30 and date as 1st Jan 2010, other run it is taking differnet).
Please clear my doubt.
Regards,
Nithi.in your dso you can have one record per key. keyfigures will be in addition or overwrite option. if in "addition' the value will be the sum of all the values for a given key. in 'overwrite', you'll only keep the last record written to the dso; char are always in overwrite, so you'll keep the last record written to the dso
M. -
Key Field not to be seen in report
Hi,
I have a DSO and in that I have 1 key field and 20 data fields.
I was able to load the data successfully in the DSO. And I am creating a report based on this DSO.
But when I create a report, I was unable to view the key field in the report.
I went to the query designer and checked, I could not see that particular key field also in my query designer, I could only see the data fields.
Could someone please guide me in this regard???
Would definitely assign points for the solution...
Thanks & Regards.Hi,
I have checked the info object and it is BEx enabled.
I am not able to see another 2 characteristics as well in query designer while creating the query.
I can view two sections, i.e. Key Figures and Dimensions.
And I am creating a report on DSO not in a cube. -
Key field not available in report
Hi,
I have a DSO and in that I have 1 key field and 20 data fields.
I was able to load the data successfully in the DSO. And I am creating a report based on this DSO.
But when I create a report, I was unable to view the key field in the report.
I went to the query designer and checked, I could not see that particular key field also in my query designer, I could only see the data fields.
Could someone please guide me in this regard???
Would definitely assign points for the solution...
Thanks & Regards.Hi,
Please uncheck the Attribute only check box in the General tab of that Keyfield info Object.
If any info Object checked as Attribute only then those objects wont display in the Query Designer.
dont forget to give me the points..
thanks,
CK
Maybe you are looking for
-
HT4239 I inadvertently trashed safari for OS X 10.6.8; how do I download safari
I inadvertently trashed safari for OS X 10.6.8; how do I download safari for my Imac OS X 10.6.8 ?
-
What is the max RAM I can have installed?
I have a MBP 13" that is running extremely slow and the dang pinwheel of death shows up all the time. Can anyone tell me how much I can put in it? For that matter - what kind of RAM should I put in? Thanks for all help.
-
CM12 - Reporting all Application Dependencies
Dear all, we have CM12 with 2000 applications defined. Some of the applications have dependencies set. How to report all applications that have dependencies AND what those links are ? From the Console GUI it is possible to add the "References" attrib
-
Hi all, We have a standard third party processing configured in our business. As per the standard scenario, the incoming invoice from the vendor updates the billing quantity, so that the customer-billing document is only possible after entering the i
-
agendus app on my iphone 5 crashes after 3 weeks of reinstallation please advise or i want my money to be refunded? what is the procedure ? wishes dinesh