Data type NUMC
Expets,
Ineed to create Info Object with numc[30,2]. can i take numc with lenght 32 or 33. does that be in a correct format.does Dot appear when i take numc.
because if i take it as a KF numc have lenght 8.
Thanks
Dear KV,
If you dont want you can hide the decimal places.
Double click on that Key Fig > Change > Additional Properties tab > Decimal Places = 0.
Observe the other options too.
You can hide the decimal values at the reporting level too.
Regards,
Ramkumar.
Similar Messages
-
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 -
Info Object: Change of Data Type (NUMC to CHAR)
We have a scenario wherein one of the Info objects is defined currently as NUMC. Due to the change in the Source system, the info object is now defined with data type as CHAR. The info object in consideration is the "Cost element".
As the current info object contains data, it will not be possible to change the data type from NUM to CHAR.
Is there any pre-defined way of doing this data type change without loss of data (in the info object as well as the info cube(s) where the info object is used)?
Regards
BalaHi Balakrishana,
Try this:
Insted of changing the definition of infoobject(NUMC to CHAR), why cant you change the data itself from CHAR to NUMC...?? If length is same.
You can write a simple routine in transfer rules and you can convert.
Hope it Helps
Srini -
Hi Expertts,
The datatype NUMC holding a value 00000 in R3 becomes
SPACE or NULL by the time it reaches to PSA. Is there
a way to prevent this from happening. I want the value
intact when and the same when it reaches the PSA up to
the cube.
Thanks for your reply.
Best regards,
Rosehi Rose,
try to use 'domain' in r/3 without 'convers. routine' = ALHPA if it's your customized extraction.
you can double click the field used in r/3 and then double click 'domain'.
or check if remove ALPHA from conversion routine in bw infoobject used to map to that field.
hope this helps. -
How to supress Zero in NUMC data type which contains some values as Char.
Hello Friends,
Some custom fields have been added in table BUT000 ,
out of which one field has data type as NUMC..
When i see some of the entries in the that field, it has values like '0000000000000000ENT'.
I want to supress Leading zeros of that.
i tried using
1 ) FM CONVERSION_EXIT_ALPHA_OUTPUT &
CONVERSION_EXIT_ALPHA_INPUT .
2 ) Also tried coding like this:
data:var1 type ZBU_00LV36AT, "this field has data type NUMC of length 40
var2(40) type N.
var1 ='00000000ENTRY'.
VAR2 = VAR1.
SHIFT VAR2 LEFT DELETING LEADING '0'.
Nothing works ...gives output as blank.
Is there any solution for it....
Any valuable asnwer will be rewarded...
Regards,
MayankHi Marcin,
I have tried i think problem it solved with your solution.
Let me try for some more cases if it works fine i will get back to forum.
Regards,
Mayank -
How to set focus on field having data type other than character(eg. NUMC)
Hello all,
I have developed one screen having table control inside. In table control suppose if numeric type field is blank(eg. Employee number of data type NUMC), system should throw error message and should put cursor focus on that perticular filed. In the same table control for fields of data type 'CHAR', I have done this using 'SET CURSOR FIELD' .
Please, suggest me how to set cursor focus on the fileds of data type other that character(eg. NUMC)Have you tried it? SET CURSOR FIELD ... works fine for type 'N' fields in a table control. The restriction is 'character-type' and 'flat'. Type 'N' (or NUMC-like) fields are both.
-
Truncate leasding zeros of NUmc data type
i want to download the value po item no which is of
length 10 of data type numc
number_int(10) type Numc in the data base.
in the output the value displayed for the line item
one is 0000000001
But i want to get only the value 1 . leading zeros should
be truncated.
I tried using condense and write to by using a temporaray
va_poitemno type char10.
its not working
Please suggest to do this .
How to do thatHi,
Either we can do it by Coding or using Function module:
DATA : i(10) TYPE n VALUE 0000000001.
SHIFT i LEFT DELETING LEADING '0'.
Or
DATA: matnr type mara-matnr value '000000000000000068',
lv_matnr type mara-matnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = matnr
IMPORTING
OUTPUT = lv_matnr
WRITE: lv_matnr.
This will surely work.
Plz reward if useful.
Thanks,
Dhanashri. -
Issue with Info Object Transport after changing Data Type
Hi Experts,
We have a DSO which is running past 5 years. And recently(3 days back) we added new fields into that DSO. Delta loaded for last three days and new info object (Say XXX) data populated into DSO.
Now the problem is, We identified that, info object data type is not correct. We used data type NUMC instead of CHAR.So Character information is missing for that field.
Example:
Data from ECC: ABC123
Data Loaded to DSO: 123 (Missed character ABC)
So we deleted data from DSO and changed the info object data type in Development system.
And also I have deleted only last three days delta records from DSO and transported my info object to Production. But its giving error as: Info object contains data in DSO".
But that info object field is empty in DSO. I have already deleted last three days delta.
Do I need to Delete all 5 years data from DSO to change the data type of recently added new info object ?
Please give me your solutions and ideas to solve this issue.
Thank you,
Best Regards,
SanthoshHi Raman,
Thank you for your answer.
When I changed the data type of info object in Dev, I deleted the content of DSO. And same thing transported to QA as well. Before importing changed info object, I just deleted the content of DSO from QA. So transport done successfully QA.
But in Production we have a history of past 5 years. So I cant delete all contents of DSO.
So just deleted only the delta request's which contains data for that info object(3 days back, we moved that info object(NUMC data type) to production,So last 3 days delta only loaded for that info object). And tried to transport it. But it was failed. I am sure we need to drop all data from DSO, if I am interested to go with same info object.
I have some comments on your first approach,
1. If we delete info objects from Dev DSO and transport to Production will give transport failure, Why because, my previous transports errors clearly saying that info object contains data in DSO . So it wont allow to remove that info object from DSO.
2.We are using same info object technical name in BO Data federator also. So if we change add new info objects again we need to make changes with BO as well. I am thinking this point as my last option if i cant find any other solution.
Thank you.
Best Regards. -
Problem with Characteristic of type NUMC
Hi,
I have a characteristic field with data type NUMC and length 6.
When I load data for that field as "1" it gets updated as 10000.
What might be the reason for the same?
How to solve it?I'm thinking there is a some conversion exit issue.
Try to have the Conversion check box checked in Transfer Rules, if that doesn't work Need to write a trasnfer routine in which you need to exclude the leading/trading zeros.
Hope this helps!
Thanks,
CP -
What data type do I use in MSA to handle CRM DEC data?
Dear Geeks,
We have a customer field 'ZZ_SUPPORT' on CRM (40 SP11) opportunities, which we flow
down to mobile sales. It previously carried a NUMC2 value (a number
from 1 - 99), and this worked fine... the data flowed fine in both
directions. The data element ZZ_SUPPORT used in CRM is based on a newly
created data domain called Z1_TO_99 and this was defined as data type NUMC
(2 characters), which we have changed to DEC (4 characters, and decimal
places 2, and screen display5). Having made this change and also
changed the screen layout in SE51, the field now looks good and takes
a value like '12.34' without error. We can also see the '12.34' value
being carried in the Opp_Write Bdoc in SMW01 classic segment. However, the BDoc does not migrate
successfully to Mobile - the ZZ_Support value is lost. In Mobile, I
have genereted the Tables associated with Opportunity_write, and also
the BDoc, and I have also changed the BOOPPORTUNITY / Y_Support field
(which carries the value) from NUMC2 to String5. I have also tried Long5, and currency4
because there is no data type "DEC" available in Mobile. When I send
opportunity messages up from Mobile to CRM, I see them going into SMQ2
and then they dissappear because the Function module cannot handle the
BDoc. What is the problem? Is it the function module? or the data type
used on Mobile - if so what should I use in the absense of "DEC"?
RichardSounds like a strange issue indeed. I would call Johnny Nobles.
Tx: Smoggen ?
Sorry, can't come up with better ideas.
Cheers,
Seb. -
SAP BW Time characteristics data type issue in BO OLAP Universe
Hi Ingo,
We have time characteristics in our SAP BW Queries, for example OCALMONTH with data type NUMC.
When we create OLAP Universe these objects are having Character as data type and not working properly when we use these objects as filters. The filter working on string instead of calender month.
If i try to change the data type in Universe we are not able to execute Web Intelligence queries due to Driver Not Capable error.
Appreciate you help.
Regards,
Ravi Kumar GarreHi,
Please find my linline answers:
- are you entering the value manually or did you select the value from a list of values ?
I am selecting the values from list.
- based on which item is the list of values ?
List of valules are coming from BI infoObject 0CALMONTH
- what about creating a variable for this in the underlying BW query ?
We have created a BI Variable, found that the Condition operator is Between and hence when execute the WebI query for this object there are two prompts one is for FROM value another is for TO value. If i give a value Dec, 2007 for FROM and leave TO as blank then i am getting data for all months instead of DEC 2007 onwards.
- did you trace the Web Intleligence part to see the details ?
I do not have authorization to login on server and find the trace. I will ask our BO Administrator for MDX log file.
Thanks & Regards,
Ravi Kumar Garre -
How to Change the data type of infoobject from NUMC to CHAR
Hi Experts,
I have created an infoobject with data type as NUMC, i used in DSO as a key figure and i have loaded data up to PSA.
Now i want to change the data type of this Info Object from NUMC to CHAR.
Can anyone suggest me the solution for this issue.
Regards,
Venu Gopal.KHi pavan/binu,
I have not loaded data into DSO i just added IO in Key fields and i started editing this IO then im facing error like
1.Master Data Table /BIC/PZCUSTOMER contains data: Characteristic ZCUSTOMER cannot be activated
2.SID Table /BIC/SZCUSTOMER contains data: Characteristic ZCUSTOMER cannot be activated
Im also unable to edit the P & S tables in SE14.
NOTE:I have data only in PSA and when im trying to load data to DSO Im facing these issues. -
Explain about Data Types INT1, INT2, INT3, INT4 & NUMC
could anyone explain about the data types and give examples.
INT1: 1-byte integer between 0 and 255. The length is set to 3 places for this data type.
INT2: 2-byte integer between -32767 and 32767. Fields of this type should only be used for length fields. These long fields are positioned immediately in front of a long field (type LCHR, LRAW). With INSERT or UPDATE on the long field, the database interface enters the length which was actually used in the length field. The length is set to 5 places for this data type.
INT4: 4-byte integer between -2147483647 bis 2147483647. The length is set to 10 places for this data type.
NUMC: Long character field in which only numbers can be entered. The length of this field is limited to a maximum of 255 places.
Check this:
http://help.sap.com/saphelp_nw70/helpdata/EN/cf/21f2e5446011d189700000e8322d00/frameset.htm
Thanks...
Shambhu -
Supressing 0 in NUMC data types
Hello,
I am trying to suppress leading zeros in a numc data type. I use the value in a BDC , and it then stores the leading zeros.
ThanksUSE FMs
CONVERSION_EXIT_ALPHA_INPUT OR
CONVERSION_EXIT_ALPHA_OUTPUT
to supress leading zeros.
Reward if useful
Narendra -
Info object as Data type as NUMC, master data doesnot store value as 0
Hello All,
I have an Info Object whose data type is NUMC.
It has only text Master Data.
Id and its description are the two fields of that Master data.
Now when below data is feeded in to that infoobject through transformation which has 1 to 1 mapping.
ID Description
0 Submiited
1 Approved
2 cancelled
The data gets uploaded in text table but.
0 ID values turns out to be " " blank.
Which is wrong.
Result in Text Master table:
ID Description
Submitted
1 Approved
2 Cancelled
if the ID is 0 it should be populated as 0 for "submitted"
No start routine our end routine is ther in the transformation.
Kinldy help me to solve this issue.
Points will be assignedHi,
When an InfoObject is created it'll have a blank record, in case of Numc it'll be as shown below:
ID Description
0 Blank
But this 0 gets displayed as blank as well.
When you post transaction/master data you can post it as
0 for Submitted
1 for...
2 for...
When you do reporting on this & if you only select text display only it'll display "Submitted", which is required. But if you display ID & text or only ID. It'll display # instead of 0.
See if you can replace this # with 0.
Mean while i'll be trying to get this solution. I'll post soon if i get the solution.
Regards,
Iliyas
Maybe you are looking for
-
How do I stop the cloud TV shows from showing on my phone?
How do I remove the cloud TV shows from showing on my phone running ios7.0.2? I download tv shows from my computer, but there are so many cloud TV shows cluttering my screen that it's hard to find the ones I downloaded. Why can't we delete these fr
-
My ipod doesn't update in itunes. When i try updating it, the message "Songs on the ipod (said ipod) cannot be updated because all of the playlists selected for updating no longer exist". When i try to manually manage the songs on my ipod, i put the
-
Invalid number error - with comma separated values
FUNCTION fn_check_value( p_ids_in IN VARCHAR2 RETURN NUMBER IS v_nCheckValue NUMBER; CURSOR vCur IS SELECT COUNT(*) FROM t1 WHERE col_id IN (p_ids_in); -- col_id is number field BEGIN OPEN vCur; FETCH vCur INTO v_nCheckValue; CLOSE vCur; Return v_nCh
-
Date Field Calendar Select F4 - F2 Not Working
Gosh this really seems like a simple question, but I can't seem to find an answer to it. I am sure somebody has run into this before: When populating a date field, you should be able to highlight the field, hit F4 to pull up the calendar and F2 will
-
Hello Friends, Iam working with sapscripts. I was created a text box in my selection screen if i enter my invoice no. and also i have to enter some remarks in that text box it has to come in the output.It is coming.But it has to save,because again i