Truncate Characteristic data
Hello Experts,
I have Social Security Number in a infoobject. On BEX report, I would like to display only the last 4 digits of SSN. How do I do that please?
Regards,
-Sonny
Hi,
In transfer rules you can do coding to truncate and display only last 4 digits of social security.
you can use offsets... suppose for 9 length filed id FIELD, YOU CAN WRITE LIKE FIELD+0(4).
out of 9 charecters, which charecters you need?
ex: field = 000000000 if you need last 4 then field+0(4).
If you dont mention any offset, then it will only pick the first 4 char's by default (truncating the length).
Hope it helps.
Regards,
Mona
Similar Messages
-
Report on characteristic "date"
Hi all,
I need to report on characteristic "date" not only characteristic "period/year" in report painter in CO-PA costing based.
How can I do that?
Thanks for any help!
HuyenTTStill waiting for any idea for that issue!
-
System error while accessing characteristic data
Hi Experts,
While copying the Settings for process management from plant 1 to plant 2, for the step "process instruction categories", I am facing an error as below:
System error while accessing characteristic data
Message no. 0C002
Diagnosis
An internal error occurred while accessing the characteristic data. The characteristic cannot be used.
Procedure
Contact your system administrator.
I am using the transaction O20C.
Can some one please through some light on this?
PraveenHi AP,
Thanks for the reply.
I have already checked that note, I didnt find any solution from that.
And I am on ECC 6.0 EHP5.
Praveen -
System automatically truncating the data
hi Friends,
i am using jdeveloper 11.1.1.6.0.
i have created field called price it's length is Number(22,12) . whenever user is giving more than 22 digits system is truncating the 22 digit to fractional number.
ex:user input: 1234567980123456789012
system showing: 1.234567980123 .
is there any solution for the above problem.Hi Johon,
1. Change in your vo query to fetch the price column once more time like price1
2. Change the type from number to string
I think my adf concept are good.
The idea behind this approach is that he has already tried your intelligent suggestion but not working.
I have already faced this problem and solved the same using the technique I shared over this forum.
Please read this to know why system automatically truncating the data
3.1 n-bit Unsigned Integers section
n Minimum Maximum
8 0 (2^8)-1 (=255)
16 0 (2^16)-1 (=65,535)
32 0 (2^32)-1 (=4,294,967,295) (9+ digits)
64 0 (2^64)-1 (=18,446,744,073,709,551,615) (19+ digits)
and your trying to save 22 digits.How it is possible?
Got it?
http://www.ntu.edu.sg/home/ehchua/programming/java/DataRepresentation.html
Edited by: 812903 on Mar 21, 2013 11:32 PM
Edited by: 812903 on Mar 21, 2013 11:43 PM -
Re-intregrate characteristic data in BPS
Hi,
I have a question about integration data in BPS
in my model, on first step, a manual planning layout is filled with some characteristic date (such as description and texts) and a ratio (amount) and save the data
on the second step, i want to create a layout where each line can be validated by modifying a characteristic to a value
it looks like that once the data is saved, it is not possible anymore to modify the characteristic value in the manual planning
do someone has encountered the same issue ?
thanks in advance,
regards,
Chea-LieChea-Lie,
Your request can be done but only in a Web interface because it allows line selection and executing a function over a single line.
In a web interface you can do the following thing:
You can have i.e. 20 entries with 20 cost centers and 20 amounts. A user can click any row in this layout and execute the function validate.
The function will copy the cost center to the same cost center and characteristic "OK" as you said. We can also delete the amount at the same cost center and characteristic validate = "#".
In the layout component you will need to use the component "Row/Cell selection".
This could also be done with excel by filtering variables but not by selecting a row of your layout.
Hope it helps,
Alberto Sabate -
The AppleWorks Spreadsheet just started giving me the message "attempting to paste cells off the document bounds. Truncate the data to fit?". What settings should I look at to continue the page vertically?
Go to Format > Document... & set the number of rows and/or columns you need then paste.
-
Displaying Material Characteristic data in MD04
Hi there,
I have a requirement to display Material Characteristic information in the "Additional Data" tab for a given material in transaction MD04. (Screen 100 of Function Group M61K in se80)
What is the best approach to doing this? Can this be configured (without programming), or if not, is it possible to use a BADI such as
MD_ADD_COL_EZPS to achieve this? (from looking in forum, this appears to be an option)
Will I need to modify the screen? - hoping to achieve this without modification...
Any responses are appreciated.
Thanks,
David.Explore the methods ACTIVATE_ADD_COLUMNS and FILL_ADD_COLUMNS of this BADI.
Example: This code adds a button on tool bar of MD04 and when clicked populates delivery column
Method - ACTIVATE_ADD_COLUMNS
button1_ez = "DELIVERY".
ez1_mode = '2'.
Method - FILL_ADD_COLUMNS
Populate the column
DATA: lv_column1 TYPE mdez-usex1,
lv_ebeln TYPE ekbe-ebeln,
lv_ebelp TYPE ekbe-ebelp.
Get Delivery Doc# for corresponding PO/STO
lv_ebeln = ie3mdpslx-delnr.
lv_ebelp = ie3mdpslx-delps.
SELECT SINGLE belnr
FROM ekbe
INTO lv_column1
WHERE ebeln = ie3mdpslx-delnr
AND ebelp = ie3mdpslx-delps.
IF sy-subrc EQ 0.
MOVE lv_column1 TO emdezx_usex1.
ENDIF.
Thanks,
SKJ -
Truncating arabic data/text when deployed on 10gAS, where as Eng is Ok
DETAILS:
When I run a report using report builder everything is fine. But when I deploy that same report on Application server & when I run from browser, the arabic data in the report is getting truncated ! where as English text/data is ok.
To solved this problem I have to expand each text / item in report builder. But why with arabic only? And how the report is working fine when run using Report Builder? For some reports even after expanding still gets truncated while deployed on Application server.
I think the FIX is around PDF. when report is deployed on AS, then output is generated in PDF & then above problem is encountered. Where as executed in Report Builder, output is generated in previewer which is fine.
please help
Edited by: Mubeen on Mar 18, 2009 2:56 AMI have experiecnce with this problem... and unfortunatly ther's not solution.
Some trigger (like when-mouse-enter or when-mouse-live) don't work with form deployed on web. I suppose that these triggers are not supported in deployd on web because the "client" browser shuld be constantly comunicate with the runtime engine. -
How to Display Time-Dependent Characteristic Data In Query
Hi Experts,
I have encountered a problem. I want to use Time-Dependent Chart. And want to display different value according characteristc's valid from time. For Example,
The Characteristic 0COSTCENTER has the navigation attribute 0COMPANY, The data as:
0COSTCENTER Valid from Valid To 0COMPANY
BW2305 20070101 20070430 A
BW2305 20070501 99991231 B
I want the report can display as :
0COSTCENTER Valid from Valid To 0COMPANY AMOUNT
BW2305 20070101 20070430 A 1000
BW2305 20070501 99991231 B 2000
But when I set the query's key date 20070420, the report display as:
0COSTCENTER Valid from Valid To 0COMPANY AMOUNT
BW2305 20070101 20070430 A 1000
BW2305 20070501 99991231 A 2000
when I set the query's key date 20070520, the report display as:
0COSTCENTER Valid from Valid To 0COMPANY AMOUNT
BW2305 20070101 20070430 B 1000
BW2305 20070501 99991231 B 2000
Can anybody tell me how I can get report expected.
Thanks in advance.
SFHi,
1) Add the characterstics 0COSTCENTER ,0DATETO,DATEFROM and 0COMPANY to the cube.
2) And also add these 4 IOs to the Communication structures which has update rules with the concern cube.
3) I hope , you already have 0COSTCENTER in the Commnication structure and mapping for that infoobject at both Update rules and Transfer rules.
4) Leave to the Blank(no mapping) mappings for the IOs 0DATETO,DATEFROM and 0COMPANY in the Transfer rules.But make 1:1 mapping in the Update rules for these 2 infoobjects.
5) Write the below code in the strt routine of the Update rules:
TYPES: BEGIN OF type4.
include structure like /BI0/QCOSTCENTER.
TYPES END OF type4.
DATA:
ITAB4 TYPE STANDARD TABLE OF TYPE4
WITH HEADER LINE
WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
SELECT * FROM /BI0/QCOSTCENTER INTO CORRESPONDING FIELDS
OF TABLE ITAB4
WHERE OBJVERS = 'A'.
loop at DATA_PACKAGE.
READ TABLE ITAB4 WITH KEY COSTCENTER = DATA_PACKAGE-MATERIAL
DATETO LE DATA_PACKAGE-PSTNG_DATE
DATEFROM GE DATA_PACKAGE-PSTNG_DATE.
IF SY-SUBRC EQ 0.
DATA_PACKAGE-DATETO = ITAB4-DATETO.
DATA_PACKAGE-DATEFROM = ITAB4-DATEFROM.
DATA_PACKAGE-COMP_CODE = ITAB4-COMP_CODE.
ENDIF.
Modify DATA_PACKAGE.
endloop.
ABORT = 0.
Here I assumed you have Posting date in the Communication structure and used to map to Fiscalperiod of the cube.
6) Do the Master data upload to Cost center and active the master data of it always before uploading the data to cube.
7) Do the uploading to cube from Sratch.
With rgds,
Anil Kumar Sharma .P
Message was edited by:
Anil Kumar Sharma -
Recordset truncating field data
Hi
I'm using a recordset to return a field within a particular table which contains a large amount of text, which I need to output to a text file. Currently I am just using the recordset to output the field and then set the text file to contain this value, however the recordset object seems to be truncating to text to around 32000 characters (32KB).
I've had a look around the forum and did see that someone thought this was a problem with the DI and that the recordset object cannot return text greater than 32000 characters.
Is this so? And if so are there any workarounds using the DI or would I have to use an object such OLEDB?
Thanks
SteveHi Steven,
You could use an OLEDB connection to read the data. The only issue with this is that you can't pass the database connection properties from the DI API to your OLEDB connection so you'd have to store them somewhere in the database or in an external data store (eg config file or registry) and preferably in an encrypted format.
There are workarounds for getting past the 32K limit. You can use the Substring command as part of your query to split the ntext data in to smaller strings which won't be truncated by the Recordset object. You can then recombine them afterwards.
eg
SELECT
substring(U_MyField, 1, 4000) as Sub1,
substring(U_MyField, 4001, 4000) as Sub2,
substring(U_MyField, 8001, 4000) as Sub3
--- etc etc
FROM [@MYTABLE]
Note that the substring command has a max length limit of 4000 characters.
If you want to get clever you can query the field to find out the maximum length in your field:
select max(datalength(U_MyField)) / 2 from [@MYTABLE]
Note you have to divide by 2 to get the character length as datalength returns the number of bytes and it's 2 bytes per character in an ntext field.
Once you know the max length you can dynamically create your query so it will always have enough substrings to retrieve all the data.
Hope that makes sense.
Kind Regards,
Owen -
Hi
I have a situation whereby I send UCS2 encoding to database via JDBC and when it is stored in database the encoding gets truncated.
Eg.
send as => 0928, 092f, 0940
store as => 00, 28, 00, 2f, 00, 40
Seems like JDBC has truncated my UTF-16 data to UTF-8?
Can anyone help?!
Thanks alot!Hi,
This is the output:
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_CHARACTERSET UTF8
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
19 rows selected
When I do a select asciistr(utf32_col) from table_a; this is what I get.
ASCIISTR(DESCRIPTION) --------------------------------------------------------------------------------------------------------------------------
*>\00A0(5@($. 8G5> G ,>0G .G >(>0@, ?( K\00A0* *(G .G(B .G !>2 G (> 2>- > 8$G 9Hd
But the characters are unreadable. When I use Select DUMP to check the characters encoding, this is what i get:
Typ=1 Len=12 CharacterSet=UTF8: 0,28,0,2e,0,38,0,4d,0,24,0,47
In fact, I was sending this "न";"म";"स";"्";"त";"े". So it appears to me that the higher bytes get truncated. Can you help to explain? Thanks. -
my DB version
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
i truncated some tables , i closed the session . i opend new session and wanted to get the data back to the table
please share your idea's
thanks in advance
RajTruncate resets the High Water Mark of a table.
This means 'gone is gone is gone'
You can get it back by
a flashback the table. This requires you have flashback enabled
b import the table from an export
c perform Tablespace Point in Time Recovery for the affected tablespace.
If you can't do all three, you are busted.
Sybrand Bakker
Senior Oracle DBA -
XMLNode is truncating the data
Hello Everyone,
I am using the below logic to print the data from the XMLNode.
XMLNode xmlNode = (XMLNode) am.invokeMethod("getEmpDataXML");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlNode.print(outputStream);
System.out.println(outputStream.toString())
In the output, one of the columns data should be
"COMPENSATORY TIME/MANDATORY PD CREDIT" but its printing it as "COMPENSATORY TIME/MANDATORY PD C"
The last 4 letters are truncated. I don't know why its happening. Any advice would be really great.
getEmpDataXML method contains the following code:
public XMLNode getEmpDataXML()
OAViewObject vo = (OAViewObject)findViewObject("AbcVO");
XMLNode xmlNode = (XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
return xmlNode;
ThanksCheck the VO attribute length in VO wizard in Jdev. Increasing the varchar length should fix the issue.
--Mukul -
Equipment search based on Class and Characteristic data
Hello Experts,
We are looking for some inputs on how to get index created on Class and Characterstics for Equipments.
We are using Embedded Search , TREX Version 7.10.44.00, Changelist 323327 (710_REL), InstallationType ESH along with ECC 6.0/Ehp4.
We can't see any standard template available in our cockpit(ESH_COCKPIT) for Class and Characteristic but we can see a template on Equipment(EQUI).
We have the following software components available : EA-HRGXX, ESH_COMMON_OBJECTS and SAP_APPL however class and characteristic are missing.
We tried to import it but unavailable in the import queue. Hence it seems we need to create it manually.
Question:
Is it available in some patch or something from where we can import it? We assume these should be definitely available somewhere since these are standards templates.
From where we can get the technical details if we want to create these manually?
How to configure the index to get the relevant field data from ECC-->TREX for these new indexes(Class/Characteristic) created?
What extra coding required to do this? Where we can find the details on how to program and run this?
Any other related info around this will be really helpful.
Many Thanks
Sanjayhi,
the standard templates are only delivered with EHP5 and NW 7.2 as part of the standard delivery.
cheers,
Om -
Leading Zeroes Truncation when data export to excel
Hi,
We have an issue when exporting from front end GUI to excel.
The leading zeroes of a value get truncated in the excel sheet
Ex:003 to 3
We are currently using GUI_DOWNLOAD.
is there any fix to resolve the formatting issue?
ThanksDear Friend,
I tried by expanding the column in Excel, but still the last digist is missing.
Regards,
Mark K
Maybe you are looking for
-
Many times before I have entered the website www.charlestaylor.co.uk Although this site can be accessed by others I get a busy or unavailable message. I can access any other site. Bob
-
Software that is missing and a easy guide for new use
Somtimes, when we have a mp3, it just has the file name as information. So when we upload a whole bunch of mp3 files sorted for {0} until 999, or A until Z. Now when I want to upload it i fireup the zen micromanger explorer thingie, I create a new ma
-
Linking to Images and Changing the Cursor in Dreamweaver CS4
Suppose I have a link to a jpg that opens up in a new window. Right now, when I hover my mouse over the link, there is no difference in the cursor as it would appear elsewhere on the page (that is, it still appears as a white arrow, instead of a whit
-
Our system consists of ABAP and java stack. There are two server processes running on the system. We have a web application that is deployed. We want to lock an object in the init method of the servlet. We are using logicallocking to do that. We w
-
Double messages in Mail.
Hmm- this is a new one by me. I'm running 10.5.6 on a 1.8GHz PowerPC G5. After a few weeks of weirdness on my Mac, and doing multiple re-installs of the System, I've finally gotten things worked out. To make a really long story short: bad RAM. Over t