Regarding dats field
when I raed the value from screen the date comes as say 04.05.2007.
but when i put the the same value it truncates to 8 since the work area field is of type dats and only 8 characters are accepted .
what should be the solution
should i take the work area field of length as 10 and declare as char,but i need to modify custom table with workarea values , in the cutsom table again the field is of tpe dats,
suggest something
If the Screen field from whic you are reading the date is a charater field, then you should use a conversion routine to convert the date to internal format. If the screen field is a date field, it will automatically convert the date to internal format.
To convert external date to inetrnal format:
DATA: date TYPE dats.
CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
EXPORTING
datum = '14.12.2008'
dtype = 'DATS'
IMPORTING
idate = date.
Similar Messages
-
Regarding PO Module Data Fields
Hi,
I am working in Reports for Purchasing module. I have issue to find the following data fields in the Purchasing responsibility front end.Could you please help me regarding this...
1. Bill to Phone
2. Bill to Fax
3. Ship to Phone
4. Ship to Fax
5. Shipment
Regards
PrabuHi Prabu,
Bill To and Ship To are Locations.
Query up your PO, note the values in the fields Bill To and Ship To.
Navigate to Purchasing Super User > Setup > Organizations > Locations
In the Name field query the Bill/Ship to you noted.
Click on the Address field
In there is Telephone and Fax fields.
Shipment:
Query your PO
Click on the "Shipments" button.
Gareth
http://garethroberts.blogspot.com -
Need Info Regarding REPOSRC - DATA field.
hi friends.
i am doing some changes in my existing program, in which i m clearing the entry of Data field of the table REPOSRC.
This part is based on the some authorization check. now when this part is getting executed, i am unable to see my actual
code in SE38. can anyone help me out, how can i revert it back ?
thanks.If you modified that table, the content is gone.... If you have the program in another instance, QA/Test or Production, you can go there and download, the upload into your development system. Or one could have the instance restored to the backup prior to the table modification.
I cannot imagine why you would forcibly modify this table? What is the goal of doing this? Hiding code?
Edited by: BreakPoint on Apr 18, 2011 2:32 PM -
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 -
DTP can Not extract data of date field from PSA to Target DSO
Hi everyone.
I enhanced several fields in datasource "2LIS_12_VCITM". that is date field "BLDAT" and another date type fields.
The data of date type fields are extracted very well from datasource to PSA.
But only field "BLDAT" among them are NOT extracted from PSA to target DSO.
Another date type fields is good. but only "BLDAT" field is empty.
I added "BLDAT" later than another date fields.
Is that the reason??
I don't know why.
Let me know the solution. pls~~~~Hi,
Try deleting and recreating the DTP and loading again.
This solution refers to note 925941 and should be solved in SPS10.
Best regards,
Olav -
Working days between two date fields and Changing Factory Calendar
Hi,
I have to calculate working days between two date fields excluding the weekends and public holidays for Switzerland.
I have written the routine using factory calender and its working fine except for two problems now:
1. If any one of the date field is empty then teh rsult should be zero.
2. And the below code is working from 1996 but my cleints wants it to work for years before 1996 as well.
I also tried to change the Start date in SCAL for factory calendar but it says enter values between 1995 to 2020.
I am new to ABAP. Please help me how i can achieve these for below code.
DATA: IT_HOLIDAYS type TABLE OF ISCAL_DAY,
IS_HOLIDAYS TYPE ISCAL_DAY.
DATA: T_DATE TYPE SY-DATUM,
P_DATE TYPE SY-DATUM.
DATA : X_DATE(4) TYPE C.
DATA: CNT TYPE I.
REFRESH : IT_HOLIDAYS.
CLEAR : IT_HOLIDAYS.
T_DATE = SOURCE_FIELDS-/BIC/ZCCCHP812.
P_DATE = SOURCE_FIELDS-/BIC/ZCCCHP810.
CALL FUNCTION 'HOLIDAY_GET'
EXPORTING
HOLIDAY_CALENDAR = 'CH'
FACTORY_CALENDAR = 'CH'
DATE_FROM = P_DATE
DATE_TO = T_DATE
TABLES
HOLIDAYS = IT_HOLIDAYS
EXCEPTIONS
FACTORY_CALENDAR_NOT_FOUND = 1
HOLIDAY_CALENDAR_NOT_FOUND = 2
DATE_HAS_INVALID_FORMAT = 3
DATE_INCONSISTENCY = 4
OTHERS = 5.
DESCRIBE TABLE IT_HOLIDAYS LINES CNT.
X_DATE = T_DATE - P_DATE - CNT.
RESULT = X_DATE.
Please help
Regards
Zabina
Edited by: Syed786 on Nov 2, 2011 9:15 AMHi Zabina,
Try this function module 'DURATION_DETERMINE'.
Give the factory calendar and unit as DAY
With regards,
Rajesh -
Hi
I want to reset the Date field of the form.
I hava a search cirtaria in that i have the folling fields
1. Indent No
2. Start Date and End Date:
when i select Indent No: the Start and End Date should be null;
When i select Start Date and End Date the Indent No Should be null.
When i first select Start Date and End Date select search the data displaying between dates
one again i select Indent No the Start date and End date will be like that only
now i want to set Start data and end Date with null or Empty values.
and let me know what is the default value of the Date
regards
mmukeshHi Mukesh ,
To set date to null..
Date d = null;
wdcontext.<Element>.set<dateAttribute>(d);
Regards,
Sunitha -
How to add the date field in the dso and info cube
Hi all.
I am new to bi 7. in the earlier version v hav to button to add the date field. but in the bi 7 der is no option so can any body tell me how to add the date field in the data targets
Thanks & Regard
KKmy prob is solved
KK -
Regarding Additive Field In DSO
Hi Guys,
I have one field as summation in DSO. I made it additive while creating the transformation. Can any one tell me how it will add a summation when i do a delta update.
ThanksHi,
Transformation
Aggregation type:
Use
You use the aggregation type to control how a key figure or data field is updated to the InfoProvider.
Features
For InfoCubes:
Depending on the aggregation type you specified in key figure maintenance for this key figure, you have the options Summation, or Maximum or Minimum. If you choose one of these options, new values are updated to the InfoCube.
The aggregation type (summation, minimum & maximum) specifies how key figures are updated if the primary keys are the same. For new values, either the total, the minimum, or the maximum for these values is formed.
For InfoObjects:
Only the Overwrite option is available. With this option, new values are updated to the InfoObject.
For DataStore Objects:
Depending on the type of data and the DataSource, you have the options Summation, Minimum, Maximum or Overwrite. When you choose one of these options, new values are updated to the DataStore object.
For numerical data fields, the system uses characteristic 0RECORDMODE to propose an update type. If only the after-image is delivered, the system proposes Overwrite. However, it may be useful to change this: For example, the counter data field u201C# Changesu201D is filled with a constant 1, but still has to be updated (using addition), even though an after-image only is delivered.
The characteristic 0RECORDMODE is used to pass DataSource indicators (from SAP systems) to the update.
If you are not loading delta requests to the DataStore object, or are only loading from file DataSources, you do not need the characteristic 0RECORDMODE.
Summation:
Summation is possible if the DataSource is enabled for an additive delta. Summation is not supported for data types CHAR, DAT, TIMS, CUKY or UNIT.
Overwrite:
Overwrite is possible if the DataSource is delta enabled.
When the system updates data, it does so in the chronological order of the data packages and requests. It is your responsibility to ensure the logical order of the update. This means, for example, that orders must be requested before deliveries, otherwise incorrect results may be produced when you overwrite the data. When you update, requests have to be serialized.
Regards
Santosh -
Hello SAP Guru's!!!!
I have some doubt on maximum number of data fields in DSO. I gone through so many threads on SCN, but could not clarify my doubt.
The max no of key fields in DSO is -- 16
Max no of data fields in DSO is --749.
But i read in some of the scn documents a table can have maximum 256 columns .
DSO is also like a two dimensional table which can also have the same properties of a two dimensional table.
if the above statement of mine is correct.. the number of columns in a DSO is 256 columns = 16(primary key)+240 (data fields--non key fields)
but how come 749 data fields (max) will be there ? if it is so ... the max no of fields will be 749+16 = 765.
I need some clarification on this ....
Awaiting for your responses!!!!
regards,
vamshiHi Rajavamshi,
For DSO:
1. See for Standard DSO we have Key fields & Data Fields will be there
2. Key Fields will store only Characterisitc Info Objects, maximum no.of characteristic info object we can add here was 16
3. But in Data fields we can add both Characterstics & Keyfigure infoobjects, Max of 749 data fields we can add here.
4. Atleast one field should be there in either Key fields & Data fields.
For InfoCube :
1. Info cube structure will be having the 16 Dimensions and the Key Fields.
2. In that 16 Dimensions 13 User defined and the 3 pre defined dimensions.
3. One user defined Dimension will maximum can hold 248 Characteristics Info Object, not the Keyfigure Info Object here.
4. But the Key Fields here will store maximum will hold 233 Key Figure Info Object.
Thanks..!!
Regards,
Harish. K -
Infoset Join condition on Key feilds and data fields
Hi Guys,
I have a requirement to biuld the Info set with join conditon on two DSO's the info objects which i am using in the JOin condition are defined as data fieds in one DSO and defined as key fields in another DSO, is it possible to define join condition on key fields and data fields.
The two info objects are
0AC_DOC_NO
0ITEM_NUM
These two info objects are defined as data fields in DSO : 0LIV_DS1 Invocie verificaion
key fields in DSO: 0FIAP_0o3 FI AP Line Item
Please suggest me is it possible to define join the condtion on the data fields and key feilds.
Thanks
Best regards
SGHi
yes you can create join, you will get any issue in reporting level.
example: Say i want to create Info Set on 0MATERIAL and Sales DSO.
In 0MATERIAL Info Object it is key filed, but in my DSO 0MATERIAL is data field.Still we can create
Creation of join is dependent on fields common in your source objects.
check out the below document
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2f5aa43f-0c01-0010-a990-9641d3d4eef7?QuickLink=index&overridelayout=true
Regards,
Venkatesh
Edited by: Venkateswarlu Nandimandalam on Sep 27, 2011 2:26 AM -
Key Fields, Data Fields, Key Figures and Characteristis, Dimesions & Key Fi
Hi All,
Can any one please describe more about the below terms and with the Example....
Like when we identify which one is Key filelds and Data fileds, how to distingush creating new dimesions (Is it based on user reporting) Key figures in Dimestions...
DSO/ODS: Key fields, Data Fields
InfoCube: Dimensions, Key Figures
Infoobjects: Key figures, Characteritics
Regards,
PremHi,
Search through SDN for more information on these concepts,
Re: ods data fields or key fields?
Re: Key Fields and Data Fields in ODS
defining Key -field and data fields
Regards,
Mani -
Key fields and data fields in a DSO ??
i have a question regarding key fields and data fields in a Standard DSO...
i am using 2 datasources to build a open sales report 2LIS_11_VASTH and 2LIS_11_VASTI i am pulling in data from these 2 data sources to a DSO and i am wondering what infoobjects should be in the key fields and data fields .....does this reflect back to table VBUK and VBUP tables and does the key field in the DSO have to be the key fields in VBUK and VBUP tables ???? or what really should be included as key fields and data fields ????
please help....If you look at the various SD tables, VBELN and POSNR are commonly used as the document number and document line item.
For VBAP and VBUP, it's referring to the Sales Order Line Item with the columns VBELN and POSNR as the key for both tables. However, if you look at the LIPS table, which is the Delivery Line Item table, it too has VBELN and POSNR as the key. Likewise, the VTTP table, which is the Shipment Line Item table, also has VBELN and POSNR as the key.
While using RSOSFIELDMAP as a map is a fairly good "rule of thumb", it still needs to be used with a level of skepticism. -
Prerequsites for deciding Key fields and data fields
Hi
I would like to know the criteria to decide upon KEY fields and Data fields for an infoprovider.Hi,
What is a Key field in a Database and How should I choose one?
Keys are crucial to a table structure for many reasons, some of which are identified below:
They ensure that each record in a table is precisely identified.
They help establish and enforce various types of integrity.
They serve to establish table relationships.
Datafields may be Charecteristics and it may be keyfigures
Regards,
Marasa. -
Key Fields and Data Fields in ODS
Hi Guru's ,
Can u Explain what are Key Field's and Data Field's in ODS,and How they work.
Thanx in Advance.Hi Pradeep,
An ODS key fields forms a unique combination of chars according to which data in the ODS will be summed up. Data fields are additional fields, chars or key figures.
For example, you have the following key fields:
Doc No, Doc line item (item no in the doc) and you load the following data:
Doc# Item# Amount CALDAY
1234 1 100 26.09.2005
1234 1 150 27.09.2005
1234 2 300 27.09.2005
1235 1 400 27.09.2005
The first two rows with the same key fields (1234-1) will be aggregated and into ODS will go amount of 250.
What I said is true if for Amount key figure the Add option is set.
But if you set an Overwrite option, then the second record will overwrite the first one and only amount of 150 will go to ODS!
But if CALDAY is also a key field, then into ODS will go all records without any aggregation, because key fields combination is different for all records.
So, ODS key fields choice and KFs settings are very important for data aggregation in the ODS.
Best regards,
Eugene
Maybe you are looking for
-
Backup MaxDB 7.7.06.09 to Veritas Netbackup 6.5 fails
We want to backup MaxDB to Veritas Netbackup server. According documentation found about this topic the backup is configured by creating 3 files: bsi.env, initWDO.par (for backint for MaxDB) and initWDO.utl (for backint for Oracle). The contents of t
-
This isn't a case of iMovie 11 quitting unexpectedly. It won't even open. When I try to open it I get an error message that says " The previous attempt to open this movie failed Do you want to ignore it". I tried reinstalling the appilcation off of m
-
New hard drive won't install in my macbook pro 13"
Hi everyone I have recently been having problems with my mac book where I was constantly seeing the spinning beachball. I had wiped the hard drive and was still having this problem so took my mac book to a "genius" at my local mac store who told me
-
I can't open up links in my mail in my new iphone 5s. What can I do?
I can't open up links in my mail on my iPhone 5S. What can I do?
-
Hello, I'm using the Labwindows/CVI 2010 Full Development system, in a Windows 7 professional 64 bits computer. So, The analysis library is installed (see in the attached file), and the Option Analysis from the Customize library menu is selected. I'