Regarding F data Type
Hi Expart ,
I am using a variable of type F (v_min). I don't want the decimals or Exponent .say Example v_min = 4.85.
i only need to display 4 not the decimals .if i use exponent 0 and decimals 0 then it become '5' .but i dont want 5 i need 4 .same thing happenning if i used i or p data type .
Please help me to get the correct value .
Thanks in advance
Raju
Hi,
Declare the variable as type F and use TRUNC function
Eg,
data: var type F value '4.85',
result type I.
result = TRUNC( var ).
write: result.
Similar Messages
-
Query regarding the data type for fetcing records from multiple ODS tables
hey guys;
i have a query regarding the data type for fetcing records from multiple ODS tables.
if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
can any one help with some suggestion.Hi Mudit,
One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
AS is used to rename the column name when data is being selected from your DB.
So, the query Select ename as empname from emptable will return the data with column name as empname.
Regards,
Bhavesh -
Regarding QUAN data type and Parameter id
Dear all
i have a doubt that is...im creating 3 fields LENGTH,BREADTH,THICKNESS for which i have used (LAENG,BRIET)but the data type QUAN is of length 13 characters, now im using theses fields in a screen and when i try to enter 3 digit value into these input fields i get the error ....Entry too long (enter in the format ~.__). and i replace it with 2 digit it will accept.
and one more.
each and every screen field value can be passed to the program only by PRAMAETER id statement or can u please suggest me the best possible way to pass the screen values to the program.Hi Naren
If you have to consider the commas and dots also in output lenght which is 17
10 digits
3 digits after decimal point
= 13 "Length
1 decimal point
3 commas
= 4
13 + 4 = 17 "Output Length
if you enter 1,234,567,890.123 OR 1234567890 it will except
But if you will enter 12345678901 it will not because ... it will not accept 11 digits... less then 11 digits it will except...
also if you pass the 10 digits then decimal point and then upto 3 digits afrter the decimal point then also it will accept...
Try to Debug the code and check the value of the parameter ID you are passing in screen...
Check for the above validation...
also check out the data type must match...
post your code as well here so we can give better suggestion on it...
Also there is no parameter ID for the Dataelement LAENG
For passing values to other report have a look on below thread..
Reg: SUBMIT WITH Free Selections
Also Search on SCN using SUBMIT and also have a look on ABAP help for SUBMIT statmetn for better idea...
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
Hi,
We use to capture the value of "Others" exceptions in an instance variable "exceptionHolder" of type "Any". Can anyone suggest how can we retrieve the contents of this instance variable(exceptionHolder) in a "String" instance variable.
Thanks,
AbhishekSure you tried this (suspect I'm not following you), but have you tried casting it?
myString = String(myExceptionVar)Dan -
Why is there a data type NUMC?
Hi ABAP masters,
working in database support for several years I've very often seen the problems that arise from the awkward data type NUMC.
A numeric type stored as characters.
What I always wondered is: what is this data type really good for?
The leading zero output display alone is hardly a valid reason to waste storage and complicate the usage of the data of that type.
I cannot imagine any use for this data type that wouldn't be better done by using integer types.
So, if you know what the reasoning behind this data type is, please let me know.
thanks and best regards,
LarsNUMC data type can be used to maintain positive numbers with leading Zeros
Most of SAP's important numbers like Sales Order numbers, Customer numbers, Delivery documents,
Material numbers, Sales Org, Division, Company Codes, Distribution Channel are CHARs only
But if their Data is containing only digits, SAP Transactions will automatically add Leading zeros for them and store in the database as Raw data.
If those SAP numbers contains at least one non-digit character, then leading zeros will not be added.
Example: if 54 is assigned to BUKRS it will be stored in DB as 0054
if 5A is assigned to BUKRS it will be stored in DB as 5A only
Leading zero concept is very useful for Date and Time calculations.
Month, Day, hours etc., must be declared as NUMC for better calculations
Example:
PARAMETERS p_year TYPE I. "instead of Integer we can use type N LENGTH 4 also here
DATA v_month TYPE N LENGTH 2.
DATA v_day TYPE N LENGTH 2.
DATA v_year TYPE N LENGTH 4. then calculations will be easy
DATA FDATE TYPE D.
v_year = p_year.
v_day = 1. "1st day of Month
DO 12 TIMES.
v_month = sy-index. "Leading zero will be added automatically
CONCATENATE v_year v_month v_day INTO FDATE.
WRITE / FDATE. "Every month 1st day of selected year
ENDDO.
Example: Customer number contains uneven digits. It should be converted to a 10 digit number
with "C" as 1st Character. Logic will be
PARAMETERS custno TYPE I.
DATA v1 TYPE N LENGTH 10.
DATA str_custno TYPE C LENGTH 11.
v1 = custno. "customer number will be converted to 10 digit number
CONCATENATE 'C' V1 INTO str_custno.
please correct me, if I am wrong
Thanks and Regards
Nagababu Tubati -
HEELLLLP with abstract data types(ie. interfaces)
Hello Java World,
I have a few questions regarding abstract data types(ADT) such as interfaces, etc.
1. Which of the following is allowed in Java ?
interface TA extends student, Employee
class teachAssist implements TA, Cloneable, Sortable{..}
2. ADTs cannot be instantiated only extended/implemented(coded)??
3. Can a interface implements/extend classe(s)?
4. Why is a Vector not an ADT? Is it because it contains implementations for its some of its methods?
Thanks for the help, in advance!!
RahimSHello Java World,
I have a few questions regarding abstract data
types(ADT) such as interfaces, etc.
1. Which of the following is allowed in Java ?
interface TA extends student, Employee
{...}Allowed (if student and Employee are also Interfaces).
class teachAssist implements TA, Cloneable,
Sortable{..}Allowed.
>
2. ADTs cannot be instantiated only
extended/implemented(coded)??True.
3. Can a interface implements/extend classe(s)?No. An interface simply defines a skeleton...says what methods are present in classes that implement it...therefore an interface cannot 'implement' anything. It may however extend other Interfaces.
4. Why is a Vector not an ADT? Is it because it
contains implementations for its some of its methods?A Vector is not an ADT because it is fully implemented (it contains implementations for ALL of its methods).
>
>
Thanks for the help, in advance!!
RahimS -
Hi,
Can somebody give me details regarding predefined data types in ABAP and equivalent Character types ?
For example :
F2 type p can be equivalent to F2(20) type c
F2 CURR17 = F2(?) TYPE c
ThanksHi,
Predefined : it is used to specify the types of individual field whose lenghts are fixed.
numeric(I,F,P)
Charcter(C,D,N,T)
Hexadecimal type(X)
Predefined Elementary type with variable length (String for char String,XString for byte String)
ACCP Posting period YYYYMM
CHAR Character string
CLNT Client
CUKY Currency key, referenced by CURR fields
CURR Currency field, stored as DEC
DATS Date field (YYYYMMDD) stored as char(8)
DEC Counter or amount field with comma and sign
FLTP Floating point number, accurate to 8 bytes
INT1 1-byte integer, integer number <= 255
INT2 2-byte integer, only for length field before LCHR or LRAW
INT4 4-byte integer, integer number with sign
LANG Language key
LCHR Long character string, requires preceding INT2 field
LRAW Long byte string, requires preceding INT2 field
NUMC Character string with only digits
PREC Precision of a QUAN field
QUAN Quantity field, points to a unit field with format UNIT
RAW Uninterpreted sequence of bytes
RAWSTRING Byte String of Variable Length
SSTRING Short Character String of Variable Length
STRING Character String of Variable Length
TIMS Time field (hhmmss), stored as char(6)
VARC Long character string, no longer supported from Rel. 3.0
UNIT Unit key for QUAN fields
Pls chk this links;
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fcc358411d1829f0000e829fbfe/content.htm
Hope this helps,
Regards
CSM Reddy -
Hi,
I want to get some clarification regarding the Data Type Evaluation Order (DTEO) for a Planning application.
In the EPMA Administrator's guide it says that the DTEO defines the order of precedence when at the intersection of two members of two dimensions have separate data types. I have a specific case and couldn't find any details regarding that in the documentation.
If I take two dimensions A and B. For one particular member of A I choose percent as the data type and the other members are all unspecified. For dimension B all members have data type currency.
In the evaluation order I specify A first followed by B. So when the percent member of A will intersect with any member of B, the data type should be percent because of the evaluation order.
However, the other members are unspecified. In case of intersection of those members of A with any member of B, which data type will take precedence - Unspecified from A or Currency from B (remember that A is higher in the order but in this case the data type is unspecified)?
ShehzadIf you've specified dimension A above dimension B in the evaluation order, then dimension A will <em>always </em>take precedence over dimension B, even when the data type of the particular dimension A member is "Unspecified." In that case, the member data will be displayed on forms without any of the formatting characteristics specified for currency, non-currency, or percentages on the <em>Other Options</em> tab of the form definition.
You should be able to prove or disprove this by constructing a simple form that reflects the scenario in question. -
Hi,
I know this is a very silly thing to ask.
But i got a doubt regarding the data types.
look at this:
<b>tables: zap.</b> " this is a custom table
in this custom table "zap" the field "price" is defined like this:
<b>field</b>| <b>field type</b>| <b>data type</b>| <b>length</b>| <b>dec. point</b>|
price| zap_price| dec | 11 | 6
now in the program there is a field declared like this:
<b>data: zap like zap-price.</b>
now my doubt is:
for the field <b>zap-price</b> is the value can be like this?
a) 46578.654876
or
b) 4687.645478
which one is correct.
Please let me know.
thnx for the help.,Hi,
You a) point is right & so is point b).
Your definition means..
the total length of the field is 11,out of which a max of 6 places for decimals & ofcourse 1 will be assigned to the sign(- or +).
Message was edited by: Phani Kiran Nudurupati -
Regarding Header And Footer in Data type Creation
Hi All,
Can Any One Please Send me One Screen Shot Developed with Header And Footer in the Data type Creation
I want to Know How to Create And where to create that in DT Creation
And Why Do we need Both of these in DT Creation
Regards
VamsiHi,
Will u Please send One Screen With These Details, So that I Can Uderstand More
ID : [email protected]
Please send
Regards
Vamsi -
Regarding creation of data type from an excel sheet
hi experts,
I am to create a data type which has 2000 fields. details about data type is in excel sheet.
Is there any way i can convert this excel sheet to xsd and impot it in XI
or there is any other way to do it fast.
Or i will have create it manually one by one element.
thanks
JaideepHi,
By default the occurences in the DTD will be Only One Occurrence.
In the DTD you have to delclare the occurences as below and then convert to XSD using XML spy.
Declaring Only One Occurrence of an Element
Declaring Only One Occurrence of an Element
<!ELEMENT element-name (child-name)>Example:<!ELEMENT note (message)>
The example above declares that the child element "message" must occur once, and only once inside the "note" element.
Declaring Minimum One Occurrence of an Element (put + sign after the message)
<!ELEMENT element-name (child-name+)>Example:<!ELEMENT note (message+)>
The + sign in the example above declares that the child element "message" must occur one or more times inside the "note" element.
Declaring Zero or More Occurrences of an Element (put * sign after the message)
<!ELEMENT element-name (child-name)>Example:<!ELEMENT note (message)>
The * sign in the example above declares that the child element "message" can occur zero or more times inside the "note" element.
Declaring Zero or One Occurrences of an Element (put ? sign after the message)
<!ELEMENT element-name (child-name?)>Example:<!ELEMENT note (message?)>
The ? sign in the example above declares that the child element "message" can occur zero or one time inside the "note" element.
http://www.w3schools.com/DTD/dtd_elements.asp
Regards,
Krishnaraju
Edited by: v r krishnaraju mudunuri on Feb 20, 2009 1:24 AM
Edited by: v r krishnaraju mudunuri on Feb 20, 2009 1:25 AM -
hi all,
i need some information regarding date types infotype 41.
i need to print date types in sequential manner like dar01 dar02 dar03 like upto 12 date types.
can you please suggest me how should i print them.
thanks,
madhavi.Hi,
Steps to create a HR Infotype:
1) Go to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the 'Employee Infotype' radio button.
4) Select the 'PS Structure Infotype'.
5) Click on Create... A separate table maintenance window appears...
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on 'All' push button. It takes a few moments.
10) Click on 'Technical Characteristics'. Infotype list screen appears
11) Click on 'Change'(pencil) button
12) Select your Infotype and click on 'Detail' (magnifying glass) button
13) Give 'T591A' as subtype table
14) Give 'T591S' as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on 'Infotype Characteristics' ... Infotype list screen appears
18) Click on 'Change' (pencil) button
19) Click on 'New Entries'
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirement...
25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select 'Layout Editor' and click 'Change'.
27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Don't forget to 'Activate at every level)
Subtype Creation :
Transaction PM01 Goto Subtype Characteristics. Click on Append and then subtype. Enter the name and description of subtype on screen.
Then goto technical Characteristics and maintain the details of subtype there. I.e name of subtype i.e. component name defined in PSnnnn. Subtype table is T591A.
Subty.text tab is T591S and time const tab is T591A.
See:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
HR related site:
http://www.sapdevelopment.co.uk/hr/hrhome.htm
Enhancement of Infotype
Check the following
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
Infotype Enhancement overview screen
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
with regards,
Hema SUndara. -
Regarding data type related to roman no
hi ,
i have created a z table named as zstudent. In that i hve one field name as zstandard which should contain only roman numbers from I TO X (1ST TO 10 TH ) class .hw can i do this .wen i creating entries on that table it should restrict to only roman numbers.is there any data type related to roman numbers
thanks in advance
Nandini.p
points will be rewarded if useful.Why don't you simply maintain a regular integer or even a numeric value in your internal table and then output the appropriate Roman numeral using CASE...ENDCASE when you need to use it?
Or if you don't have that many, then create a series of constants and use those.
Regards
Kurt -
Regarding Changing the Namespace And Data Type in XSD File
Hi All,
I am Doing File -
IDOC Interface.
I have XSD File For File Sysyetm and IDOC For ECC.
In XSD File I Have Different Name Space And Data Type ,
I Created the Data Type as Same as the XSD File Data type
I Have Namespaces Are Different,
So,I Changed the Namespace in the XSD File with the New Namespace Which I created in IR.
I Changed in Two Places Like this
<b><xsd:schema targetNamespace="http://Sample1.com/xi/file;" xmlns="http://Sample1.com/xi/file;"</b>
But it is giving Error lik this
<b>Cannot load schema with the target namespace http://xxx.com/xi/xx/vamsi/100 to namespace http://Sample1.com/xi/file;</b>
Regards
VamsiHi Vasanth,
Thats what I am Asking
I want to Import XSD File in Data Type
Before I Import the XSD File into Data type I changed the Namespace in the XSD to My Namespace Which is in IR. And I Created the Data Type Name in IR Which I Have in XSD FIle .
So I Am Getting this Error
Please Let me Know Wat to do
Regards
Vamsi -
Problem regarding change of data type x to data type c
Hi,
Is there any way to change the data type x to data type c.
w_end_record TYPE x,
SPLIT i_data_file AT c_delimiter INTO i_ekko-rtype
i_ekko-ebeln
i_ekko-bsart
i_ekko-lifnr
i_ekko-loekz
w_end_record.
macro_append_internal_table i_ekko.
When I do syntax check in ECC6.0 it's showing the error "w_end_record" must be Character type(C,N,D,T).The error is due to Unicode.
I was using the class CL_ABAP_CHAR_UTILITIES but I am not able to find out appropriate attributes for it. Can anybody tell me the solution to resolve the problem.
Is there any other to solve the problem.
Thanks & Regards
PrabhatHi,
Try following this peice of code.
TYPES: BEGIN OF TAB_TYPE,
TEXT(10) TYPE C,
XTEXT(160) TYPE X,
END OF TAB_TYPE.
DATA: TAB TYPE STANDARD TABLE OF TAB_TYPE,
WA_TAB TYPE TAB_TYPE.
CONVERT TEXT TAB-TEXT INTO SORTABLE CODE TAB-XTEXT.
Hope it works.
Thanks,
Sandeep.
Maybe you are looking for
-
I recently upgraded to Verizon Fios Quantum high speed internet and was given an ActionTec router. I sucessfully installed all and connected wth my Apple TV. Although it worked initially it no longer does. Something appears to be blocking the Homes
-
F110 - each item in each payment document for the same vendor
Hi Guru, When i use F110 to do auto payment run for one vendor, each item is paid by each payment document although the document currency is the same, do you know why it appear like this, by right, all the vendor open items should be paid in one paym
-
Sorry to bother anyone ... i have spent almost 3 weeks trying to debug the problem... My B+ Tree can compile but can't run as it throw invalid Null pointer Exception .. I suspected the error is in the split (int order ) method in the BTreeNode class
-
Need help linking spry tabbed panel from external page
Could use some help. I need to link to a specific spry tabbed panel on page "A" from a link on page "B" I have tried several "solutions" on the web and had no luck. When I add the code needed at the bottom of the code where you initiate the instan
-
Lightroom 3 DNG profiles for K5
I tried to find DNG profiles for my new K5 on the net, but I failed. Are there any available or do I have to wait for the next Lightroom update? Up to now I can only choose "embedded".