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
Bala
Hi 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
Similar Messages
-
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. -
Change Info Object Master/Text data in PROD to Time dependant
Hello Experts,
I have an Info Object used in ODS and Cube. Both ODS and Cube has data in it. The Info Object has Text data.
I need to change Info Object Text data as Time dependant.
What are best way to make this change? If I make change to Info Object, how it's going to effect Cube and ODS.
Please advise.
Thanks
Padma
Padma ReddyBhanu,
Yes I am selectiong the check box to make IO as time dependant.
May be I am over complicationg this. Here is my understanding, correct me if I am wrong.
The IO is used in cube. It belongs to Dimension1. This dimension table is nothing but dim id's and SID's. So the Dimension table is built based on the exist SID values.
When I make change to IO, the data and SID's will change. Doesn't it cause some data inconsistancy ? And also the IO text table will have multiple rows with the same data but with different validity periods.
As I said I may be thinking too foolish or technical.
Please advise.
Thanks
Padma -
Can we change the data type of a field based on the value of the field
HI Gurus,
My Requirement is as below -- Could you please guide me
in the Printable Adobe form -- for ex - as usual for dates fields in the Object Pallette the object type is a date/time field and for quantity/currency fields corresponding fields are taken
now in case the either the date, quantity or currency is initial in place of displaying 0.00 or empty date we need to display N/A (Not Applicable)
for this I would like to change the data type of the field
to put it simply --
we need to change the data type of date field from DATE&TIME to Char type to hold N/A or Quantity field to Char field to hold N/A
how can we realize this in SAP adobe forms
Thanks in Advace
Ramchander Rao.KHello Ramchander,
You cannot change the data type of the field at run time in Adobe forms because the type of field you choose at the time of design level is associated with the data type itself.
If you want to achieve your requirement, then your main idea should be to set the data type as CHARACTER itself while designing the field in the adobe form itself. CHAR field will comfortably hold the value of Calculation/amount field, Currency field, Amount, Date, Time HHMMSS, Unit Accuracy, Currency key, Floating point number, Numeric text, Client, Language and many other data types.
After designing the field as TEXT field in Adobe form you have two options.
Option 1:
Select the Date field initially as type TEXT field or CHAR field in Adobe forms.
Suppose the name of the field is TEXTFIELD1, then write the Javascript code on this field in Initialize event as below.
if ( this.rawvalue == null )
this.rawvalue = "N/A";
If the field is not blank, then it will show the date. Else it will show "N/A".
Option 2:
Select the Date field initially as type TEXT field or CHAR field in Adobe forms. Do the formatting part in ABAP itself. It will increase the performance. Avoid Javascript as much as possible.
Suppose you have a DATE variable l_dats of type DATS. Then take another variable l_date of type CHAR. Then write the below ABAP code.
MOVE l_dats TO l_date.
IF l_date IS INITIAL.
l_date = 'N/A'.
ENDIF.
Bind the l_date to the TEXT field in the form.
Even in this case, if the field is not blank, then it will show the date. Else it will show "N/A".
But I will suggest you to use Option 2 of keeping the AMOUNT, QUANTITY, DATE, TIME fields etc as CHAR or TEXT fields in Adobe form and do the required formatting in ABAP itself. -
Change the Data Type of a Standard Required Field
Hello Experts,
Need to know if is it possible to change the data type of a standard field. The field is marked as a required field.
For example: If a standard field is an Object Picker and I would like to change it to a string field. Is it possible? How can I do it?!
Many thanks,
Igor NakamuraHi Igor,
Since you cannot hide a required field, what you can do is move the standard required field to someplace less noticable (like the bottom of the page) and then use a validation script to set it to some benign value.
-Howie -
Activation error while changing the data type of a field of a table
hi friends,
i am facing one problem while changing a data type of a field of a table.
i just created one table(Yqm32) .i have assigned charcter data type to one field(ztotal_count) .now i want to change this charcter data type to numeric data type.
while changing to NUMC data type activation error is comming as below.
Table is not yet classified
Field ZTOTAL_COUNT: Type change
ALTER TABLE is not possible
Structure change at field level (convert table YQM32)
Check on table YQM32 resulted in errors
Table YQM32 could not be activated
(E- Structure change at field level (convert table YQM32)
plz suggest.i need to change the data type from char to numc.
Thanks & RegardsHi Pabitra......
From the SE11 change the table as u wanted and then from menubar select
UTILITIES--> DATABASE UTILITY
It will open database utility
there u select the Activate and adjust database button.
then the database table will get adjusted.
just try it once.........
Suresh...... -
I might be asking a really silly school boy question here and to some degree I hope I am but could somebody tell me if its possible to change the data type of a cluster element? Let me explain.
Here is a screen shot of my code:
I read back my test data as an array of strings which I convert to a cluster, bundle then send off on its merry way to do other stuff, however the first element in the cluster is actually a path. As you can see I currently unbundle all elements, change the first to a path then re-bundle with the correct data types. Whilst somewhat messy, this used to be acceptable as I only had two other strings in the cluster, however due to expansion I now look at it and think that there must be an easier, more elegant way to do this if I just want to change one element.
If this is the only way (or at least if no other simpler solution exists) then I could potentially keep the path a a string and do the conversion at the points that require it, however that would now require a bit of re-coding which I would like to avoid if possible.
Hopefully I'm just not thinking hard enough on this one.
Cheers for looking
Mitch
Solved!
Go to Solution.I have no idea what the rest of the code looks like and how much you can change so a few options:
1. Keep them all as strings, do the path conversion when you actually need the path. I'll show you the trick I use to convert arrays to nicely labelled clusters below.
2. Make the cluster an object, keep the data as a string array and the accessors deal with indexing and path conversion.
3. Make the cluster hierarchial, separate the path and have a second cluster which is all strings.
4. If you want you can jigger the string array and use some flatten and unflatten action.
The top of the snippet is one way to jigger the string array to get a path for the first element in a flat cluster (should wire seamlessly to the rest of your code). The lower code shows how I would convert a string array to a cluster so the labels are useful, same idea works for clusters which are given useless labels such as those from Array to Cluster. (Fixed sized clusters with brown wires are easier to handle, simply Type Cast to the cluster with the same types and appropriate labels).
Judging from your original post, you know when and how to Type Def the various clusters I show. -
Can Info Object be a Data Target
Hi Gurus
Can a Info Object be a data target. Would appreciate a explanation on this.
GSRHi S R G,
You can indicate an InfoObject of type characteristic as a data target / InfoProvider if it has attributes and/or texts. The data is then loaded into the master data tables using the update rules.
when we check the option "characteristic as infoprovider", it creates three tables, suppose InfoObject name is TTT then::
1. /BI0/MTTT - Master data Table
2. /BI0/PTTT - Master Data Table (Time Independent)
3. /BI0/XTTT - SID Table.
Data store in Master Data Table and when we delete the request data wo'nt delete, for that we have to drop the master data table in SE14 transaction.
http://help.sap.com/saphelp_nw04/helpdata/en/c4/b007720ae4c248b945bb16f24bba31/frameset.htm
Thanks -
Converting Info-Objects as a Data Targets.
Hi All,
I Converted some info objects as a Data targtes in my Dev box, I need to affect those changes in my QA box and Production box, So that i need to transport those changes, I saved the changes in one Trasport req in Dev,
So if i trasport the same req to QA box, is the only changes will affect or the complete info object will affect...
note: i have master data stored in all my objects in all environments....
I will assign points.Hi Bhanu,
Thanks for your earlier reply,
I saved my changes in a single TP req, in this req it shows all my info objects,
Iam thinking when i transport the req it should affect the info-object which it has been used in Cubes and ODSs..
So can you tell me in details plzz -
How to change the data type in the table ESLL for the field USERF2_NUM ?
Hello Friends,
I have a requirement in which one of the change is to convert the data type of the field 'USERF2_NUM' in the table 'ESLL' from 'QUAN' to 'CHAR'.
How do i do it if i have an access to change it..........i think i should also check the impact of the change if done.
Kindly tell me as my requirement starts with this small change.
Regards,
Rajesh KumarThanks for the reply Sowmya.
I would like to know 2 things.
1. Is it ok to change the data type of the field 'USERF2_NUM ' which is in the table ESLL. from quan to char.
2. The table ESLL already has entries. if we change the data type from QUAN to CHAR what is the effect on the existing entries of the table .
Kindly reply me back.
Thanks & Regards,
Rajesh Kumar -
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 -
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. -
Hi, i am using Sybase IQ 16.0
I have created a table, when I want to change one of the data type for a column for example from char to varchar, the list box is grey color and not allow me to change.
Right click table > Properties > Columns > Data Type
I have granted all permission for dba, but still not able to edit. (please see the attached file)
Any help?
Thanks.Hi Nelson.
You can not change the datatype of an existing column.
The doc reference is here: Altering Tables
"After you create a column, you cannot modify the column data type. To change a data type, drop the column and recreate it with the correct data type."
If you already have data in the column, you can try this:
create the new column with a slightly different name
copy the data in to the new column
drop the original column
rename the new column to the old column's name.
--Kirby -
Hi,
I know this is a stupid question, but I can't figure for the life of me
how to do it. I want to create a histogram, so I stick a waveform chart
onto my VI. Fine, now I found the Moving Histogram PtByPt.vi example
(ships with LabView 7). It creates a histogram and the data it sends to
it is a cluster. This is very convenient because you just wrap your XY
data up into a cluster and send it into the chart. Right now I can cut
and paste the chart from this example, but if I didn't have the example
I'd create a waveform chat, create my cluster with my xy data and pass
it in. However, LabView complains about bad data types, because the
default input data type is a 2D array of doubles. HOW DO I CHANGE THE
DATA TYPE THE CHART ACCEPTS? I've been through every menu and property
that I can think of, what's the secret? I've had this problem happen a
couple of times and usually gotten around it by right clicking my lead
and then picking to create something from a list and when it's created
it's created with the right data type. However, it doesn't have that
option in this situation. So what do I do? I've included a junk of my
code for you to see if you want.
Thanks for any help,
Chris
Attachments:
Coincidence_v1.vi 53 KBYou've got two different types of graphs. You have the XY graph wired to the cluster and you have a regular (not XY) graph. The regular graph does not accept the same type of input as the XY graph. It accepts a 1D x array, 2D array (multichannel) a waveform data type, an array of waveforms (multichannels), and a cluster that contists of a y array, x0, and dx (essentially a waveform data type)
-
The output of my mathscript node is not changing the data type ?
hi
iam attaching my .vi iam having problem that my math script function is not changing it data type in its output
iam uisng labview 2009
what reason it will be?/
thanks
Attachments:
mathfunct.zip 4 KBFirst off, there is a dedicated mathscript forum that might be better to get your problems answered. (I see if I can have this thread moved from the LabVIEW board, else you can re-post over there.)
I see the same problem that (1) the outputs have no datatype and (2) all datatypes are greyed out, so they cannot be selected manually. (The input is trivial, just wire something and it will adapt).
I am not a text programmer, but I suspect that there is something wrong or incompatible with your code. I have not looked at the statements. Is this copied from an existing matlab program, for example?
LabVIEW Champion . Do more with less code and in less time .
Maybe you are looking for
-
Questions on one of my first programs for school
I am taking an intro to Java class and I am in need of some help. I am not looking for anyone to do the work for me just to help me figure out what I am missing and get me back on track. Here is what the program is I am suppose to write: Write a Java
-
Help with updating plugin for raws on a mac please
Hi, I've got a mac on os 10.4.11 with 2 GB of memory. I had Elements 4.0 on it, but had to upgrade to the current release to get compatibility with my new camera and it's raw format. I installed Elements 8.0, and it worked fine but needed a plugin up
-
New york times comments on safari
Can't bring up the comments parts of articles on Safari.
-
Upgrading to iPhone OS 3.0 for iPod touch
Hi, I've read some of the forums about the Wi-Fi problems on iPod touches after upgrading to OS 3.0. I haven't upgraded my iPod touch (2g) yet, but I'm planning to. What is the likelihood that my Wi-Fi will fail? How would I be able to fix the proble
-
Cant get iTunes 11.1.0 update to open.
it says my version is current with 10.6.3, but I know its not. So I downloaded 11.1.0 but it wont open. SO now I cant sync my iPhine or iPad. Thanks