How to convert vale of type x to type c ?
hi.
gurus.
i want convert the x value to c value if there any function modules or classes or any sample code plz send it. i tried a lot so ineed ur help.
bye
shabeer ahmed
Hi,
simple conversion,
DATA:
w_temp1 TYPE x value '00',
w_temp2(2) TYPE c VALUE '00'.
write:/ w_temp1 , w_temp2.
For unicode,
DATA:
w_temp1 TYPE x value '00',
w_temp2(2) TYPE c.
w_temp1 = w_temp2.
write:/ w_temp1 .
Check this FM,
NLS_STRING_CONVERT_TO_SYS - ( Hex to Char)
Regards
Adil
Similar Messages
-
How to convert an int variable into String type
hi everybody
i want to know how to convert an interger variable into string variable
i have to implement a code which goes like this
Chioce ch;
for(int i=0;i<32;i++)
// here i need a code to convert the int variable i into a string variable
ch.add(String variable);
how do i convert that int variable i into a String type variable??
can anyone help me?Different methods:
int a;
string s=a+"";or
String.valueOf(int) is the better option because Int.toString() generated an intermediate object to get the endresult
Ema -
How to convert English PSD document to Arabic type engine? help...
Right now we are making some English web files into Arabic.
We are using CS 6, and have enable the type engine and adjsuted all settings.
If I start a NEW document, I can copy and paste Arabic into Photoshop and it reads correctly.
However, if I copy and paste into a file made in English previously - even after setting it it to Middle-Eastern Features under Type menu, and changing type direction in the Paragraph menu...it doesn't paste in correctly (wrong character order)
Even if I make a new text box, with everything set, it still pastes in wrong.
However, if I first copy it into a new PSD document, with options set...it appears correctly, and then if I copy and paste that into the previously made English file, it shows up correctly.
Is there a way to "convert" a PSD document's recognized type engine besides having to use a "middle man" file as described above. I would really prefer to copy-paste from Word into the already exisiting English file without having to first copy-paste into a blank file. (Preferences are also set to Middle Eastern under Edit menu)
Thanks
EDIT: I figured out that if I draw a new box, it will paste in just fine. Would prefer to sue the text boxes that are there. I tried also "Reset Paragraph" and it seemed to sometimes, reorder things...however it also reordered the English that was sometimes mixed in.
Any thoughts?Hi
Refer this thread [Convert MS Word .doc to PDF;
Regards
Raj -
Introduction:
There is a date’s type field in the database. When using the field in the report, clients want to convert the field’s values based on own Time Zone to show the date field.
Workaround:
Currently, Reporting Services doesn’t provide the function that can get the Time Zone of a client machine. To work around the issue, you need to add a custom code in the report to convert Time Zone and create a parameter through which the client users can
select his/her Time Zone, and then pass the parameter value to the custom function. Please see the details as follows:
1. Click the Report, select Report Properties and add the custom code as the screenshot shown:
Custom code:
Shared Function FromUTC (ByVal d As Date, ByVal tz As String) As Date
Return (TimeZoneInfo.ConvertTimeBySystemTimeZoneId(d, TimeZoneInfo.Utc.Id, tz))
End Function
2. Create a parameter named TimeZone (you can name the parameter according to your requirement), select Available value and click Specify values.
Label
Value
China Standard Time
China Standard Time
Central European Time Zone Central European Time Zone
India Time Zone
India Time Zone
United States of America Time zones United States of America Time zones
3. Call the custom code and type the expression to convert the Time Zone as follows:
=Code.FromUTC(Fields!UTCDateFromDatabase.Value,Parameters!TimeZone.Value)
Note: If you use the expression “=Code.FromUTC(Fields!UTCDateFromDatabase.Value,TimeZone.CurrentTimeZone.StandardName)”, it cannot achieve the goal because TimeZone.CurrentTimeZone.StandardName gets the TimeZone of Report Server side rather than Client side.
More information:
TimeZone Class
http://msdn.microsoft.com/en-us/library/system.timezone(v=vs.110).aspx
Applies to
Microsoft SQL Server 2005
Microsoft SQL Server 2008
Microsoft SQL Server 2008 R2
Microsoft SQL Server 2012Hello,
Please read the answer provided by Kalman on the following thread:
http://social.technet.microsoft.com/Forums/es-ES/446df85a-7ad8-4891-8748-478a26350c5c/how-to-compare-tables-in-two-different-servers-while-one-of-the-server-name-has-a-?forum=transactsql
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
How to convert an internal table of char type to Raw (1022 char) format int
Hi All,
I am facing the problem while converting the character type internal table to Raw (1022 char) format internal table.
Example :
Source :
Internal table - Itab_send of type char132.
Target : ( Required )
Internal table - itab_receive of type SDOK_SDATX .
Note : SDOK_SDATX = Raw ( 1022 char )
Thank you,
PurshothPossible Solution : Move it to source character field to string and string to raw field.
try to find FM , go in se37 and *RAW *
RSAB_CONVERT_RAW_TO_CHAR convert raw to char.
Edited by: Harsh Bhalla on Dec 15, 2009 10:31 PM -
How to convert a char data field to type p or i
Thanks.
Chek out if this FM's in your system
CALL FUNCTION 'RRBA_CONVERT_PACKED_NUMBER'
EXPORTING
I_CHAR = L_QUANTITY
I_DECIMALS = RRSI_C_SID-NOT_EXIST
I_DECIMAL_MARK = '.'
I_DECIMAL_MARK_IN =
I_SIGN_PRSNT = ' '
IMPORTING
E_VALUE_CHAR =
E_VALUE_WRITE =
E_VALUE_FLOAT = E_VALUE_FLOAT
E_VALUE_PACKED =
E_TOO_MANY_DECIMALS =
EXCEPTIONS
TOO_BIG = 1
INPUT_NOT_LEGAL = 2
ILLEGAL_SIGN_PRSNT = 3
ILLEGAL_DECIMAL_MARK = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
santhosh -
How to convert Oracle data types to ABAP types.
Hi,
I have this oracle table table:
Type of col.
Char(6)
Number
Number
Number
Number
Date
I dont know how to convert column of number to abap types. I use exec sgl syntax and I try to insert value to abap structure. But structure <dyn_wa> is wrong.
EXEC SQL PERFORMING loop_output.
SELECT *
INTO :<dyn_wa>
FROM BIND_VAT_CB_SUM_VIEW@DTRTST1
ENDEXEC.
ENDFORM. "get_data
ThanksHI,
REPORT demo_native_sql.
DATA: BEGIN OF wa,
connid TYPE spfli-connid,
cityfrom TYPE spfli-cityfrom,
cityto TYPE spfli-cityto,
END OF wa.
DATA c1 TYPE spfli-carrid VALUE 'LH'.
EXEC SQL PERFORMING loop_output.
SELECT connid, cityfrom, cityto
INTO :wa
FROM spfli
WHERE carrid = :c1
ENDEXEC.
FORM loop_output.
WRITE: / wa-connid, wa-cityfrom, wa-cityto.
ENDFORM.
See the below SAP link for more info
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm
Thanks
Sudheer -
Convert type x to type c?
Is there a function to convert data from type x to type c?
Hi christophe,
did you check in [SDN|how to convert vale of type x to type c ?].
so that you will get an idea before posting.
Regards! -
How to convert an ascii file into dBase .dbf file type
Does any one out there know how to convert an ascii file(which is generated from PL/SQL script) into a .dbf (dBaseIII) file type? Thanks in advance.
I haven't worked with dBase for about 20 years, but I seem to recall it having an IMPORT command for that purpose. But maybe I'm wrong...
-
Urgent!!! How to convert received mail 'content type?
How to convert received mails 'content type from text/plain to multipart/*?
you cannot change the content type of a Message object which has been received. What you can do is create an instance of a MimeMessage class and set the content type as multipart and then add the received message as a bodypart to that message.
You can look at the javamail example codes as to how to create a new MimeMessage with multipart content.
anurag -
How to convert XY graph data to type "signal in" for measuremen​t functions
Hi all, i have a driver file that outputs the screen capture in XY graph format. I want to measure period using the measurement functions in the LabVIEW palette. Can someone tell me how to convert into this "signal in" type. The X (time) and Y (power) are all there but it creates an error when i wire together?
Please see my attached code.
Thanks,
Solved!
Go to Solution.
Attachments:
convert XY Graph to Signal In.vi 25 KBIts ok folks, i have found a solution. See attached FYI.
Attachments:
convert XY Graph to Signal In.vi 43 KB -
How to convert CHAR14 to TYPE P ?
Dear Experts,
due to a dump "CONVERSION_ERROR" I look for a way how to convert CHAR14 values (e.g. 70,12345678) to a target field TYPE P (e.g. 70,123) whereas the value than sould be rounded to exact value 70,125.
Does anyone know a workaround ?
Best regards,
PeterHi ,
use the Fm...
String to amount:
CALL FUNCTION 'HRCM_STRING_TO_AMOUNT_CONVERT'
EXPORTING
string = slam2
DECIMAL_SEPARATOR = '.'
* THOUSANDS_SEPARATOR =
WAERS = 'HUF'
IMPORTING
BETRG = b2
* EXCEPTIONS
* CONVERT_ERROR = 1
* OTHERS = 2
Prabhudas -
How to Convert OBJECT_TYPE to the Object Type Used for DBMS_METADATA?
How do you convert the object type in ALL_OBJECTS to the object type that DBMA_METADATA.GET_DDL expects?
Thanks,
Kurzmaybe one needs to find a mapping between sys.metaview$ and all_objects:
SQL> select type, xmltag, udt, viewname from sys.metaview$ where type like '%PACKAGE%'
TYPE XMLTAG UDT VIEWNAME
DE_S_PACKAGE
DE_S_COMP_PACKAGE
DE_S_COMP_PACKAGE2
DE_S_COMP_PACKAGE_SPEC
DE_S_PACKAGE_BODY1
DE_S_PACKAGE_BODY
SE_PACKAGE
SE_COMP_PACKAGE
SE_COMP_PACKAGE2
SE_COMP_PACKAGE_SPEC
SE_PACKAGE_BODY
PACKAGE PACKAGE_T KU$_PROC_T KU$_PKG_VIEW
PACKAGE PACKAGE_BODY_T KU$_PROC_T KU$_PKGBDY_VIEW
PACKAGE FULL_PACKAGE_T KU$_FULL_PKG_T KU$_FULL_PKG_VIEW
PACKAGE_SPEC PACKAGE_T KU$_PROC_T KU$_PKG_VIEW
PACKAGE_BODY PACKAGE_BODY_T KU$_EXP_PKG_BODY_T KU$_EXP_PKG_BODY_VIEW
ALTER_PACKAGE_SPEC ALTER_PACKAGE_SPEC_T KU$_ALTER_PROC_T KU$_ALTER_PKGSPC_VIEW
ALTER_PACKAGE_BODY ALTER_PACKAGE_BODY_T KU$_ALTER_PROC_T KU$_ALTER_PKGBDY_VIEW
18 rows selected. -
How to convert a certificate from byte[] typeback to its original type
Doing work about transfer Certificate through network using socket, after using
Certificate.getEncode() convert it into byte[] type, then send through network, but
at the receiver side, don't know how to convert the byte[] format back to the
Certificate? Or there is a better way to transfer Certificate as a file through
socket?If it is an X509 one:
Certificates are instantiated using a certificate factory. The following is an example of how to instantiate an X.509 certificate:
InputStream inStream = new FileInputStream("fileName-of-cert");
CertificateFactory cf = CertificateFactory.getInstance("X.509");
X509Certificate cert = (X509Certificate)cf.generateCertificate(inStream);
inStream.close(); -
How to convert high_value to date data type on dba_tab_partitions
I just want to query and get the max date available on the dba_tab_partitions for the high_value field.
high_value data type is LONG it has the value for Partition bound value expression.
For example on my partition table the expression is like TO_DATE(' 2012-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')
I just want to convert the high_value to date data type.we had the same problem and we used a function for that purpose. I am not going to share our function here but Tom has all the gear you need : )
http://asktom.oracle.com/pls/asktom/f?p=100:11:::::P11_QUESTION_ID:665224430110
Maybe you are looking for
-
How do I edit a table cell value in the same view?
This is probably just a clarification more than a question, but when looking at the iPhone->Settings->Mail,Contacts,Calenders view. If you select a mail account, you are taken to the account edit view where you can edit your account information. In t
-
Cant open my Raw from my NIKON D7000 in Photoshop and cant down load updates get error messages all the time have tried at least ten times and tried to get help from support but not succeeded. Very bad I think but what to do???? Ulf
-
Exporting pdf in Indesign that allows commenting & saving in Acrobat Reader
I have a feeling there isn't a way to do this but I thought I would ask in case there is. I was wondering if you can export a pdf in Indesign CS4 that someone who is using Acrobat Reader X can comment and then save. I know you can open the pdf in Acr
-
Loading a CSV file into a table as in dataworkshop
Data Workshop has a feature to load a CSV file and create a table based on it, similarly i want to create it in my application. i have gone through the forum http://forums.oracle.com/forums/thread.jspa?threadID=334988&start=60&tstart=0 but could not
-
Phone simply will not turn on.
I did a reboot because my FB wouldn't work. Held both buttins down until I saw the apple, and it never came back on. Any suggestions? I tried plugging it into my laptop to get to it through Itunes but it doesn't see my phone either. Thanks!