Unicode: HEX 20 - how to replace?
Hi there,
in an old coding I found the variable that contains a value of type X. The value is '20'. Now I have to converto to unicode and I have to use a CHAR-like variable.
How can I change the coding so that I have the same value like Hex20 in the string/char?
Thanks a lot.
Kind regards
Markus
Take V_HEX = '20' in the below code for u r requirement
REPORT ZSRK_064 MESSAGE-ID ZMSG.
DATA: V_HEX(1) TYPE X,
V_CHAR(1) TYPE C.
V_HEX = '41'. "Hex41 = Ascii 65 ie, 4*16+1 = 65
PERFORM HEX_TO_CHAR_CONV USING V_HEX
CHANGING V_CHAR.
WRITE : / V_CHAR.
*& Form CHAR_TO_HEX_CONV
text
-->P_V_CHAR text
<--P_V_HEX text
FORM HEX_TO_CHAR_CONV USING CH TYPE X
CHANGING CH1 TYPE C.
FIELD-SYMBOLS : <FS_TR> TYPE X,
<FS_TR1> TYPE C.
ASSIGN CH TO <FS_TR>.
ASSIGN <FS_TR> TO <FS_TR1> CASTING.
CH1 = <FS_TR1>.
ENDFORM. " HEX_TO_CHAR_CONV
Similar Messages
-
I have purchased an iPhone app that requires a 'Unicode Hex Keyboard' on my iMac. I have a 'Unicode Keyboard' in the 'International' preferance pane but there is no 'Unicode Hex Keyboard'. The supplier of the app advises that I must install this hex keyboard. My installation CD informs me that all keyboards are loaded at install time however.
How might I go about installIng this keyboard?
Thanks in advance for your help.I have a 'Unicode Keyboard' in the 'International' preferance pane but there is no 'Unicode Hex Keyboard'.
That must be the right one. It's really not possible for this to be missing from system prefs/international/input menu. The icon has a little U+ on it I think.
It is certainly most unusual for anything to require it. Do they tell you what you are supposed to do with it? -
Setting Unicode Hex Input as default
Hey. I know most of the unicode character codes I use a lot by heart, such as U+2325 (⌥) and U+2318 (⌘). However, It's a pain to click on the input menu, and switch the input method to Unicode Hex Input overtime I open an application. Or worse, forgetting to, then ending up typing some bull like '™£¡•' instead of what I intended. How can I make my SYSTEM-WIDE 'default' or basic input method STAY at Unicode Hex Input? Or for that matter, anything other than U.S. Extended.
It seems to have suddenly fixed itself, after wondering about this for years, after that post. I'm starting to wonder if my Mac reads Apple Discussions...
-
ASCCI code or Hexa? How do I type them?
Hello
Sorry to be so dumb but as I want to create a local network between two computers the aid says I must give as security a code with 5 caracter ASCII or 10 hexa.
There : (sorry in french)
Tapez un mot de passe d’exactement 5 caractères ASCII ou de 10 chiffres hexadécimaux si vous choisissez « WEP 40 bits (meilleure compatibilité) » dans le menu local Sécurité.
I have a table of correspondance but how I enter thoses caracters. Do I have to type then as ASCII or normal?
Should I type GHI or 717273 in ASCCI or 474849 in Hexa?
Or maybe I use the Unicode Hex keyboard?
Sorry to ask so simple a question. And thanks for your answers
CathyThe idea password would be exactly 5 characters.
The reason for this is that WEP rules for turning a password into a WiFi key are different for Apple products vs Windows (and all ohter non-Apple) products. But it turns out that if you have exactly 5 characters in your password BOTH algorithms generate the same WiFi key.
That means if you mix Apple and non-Apple WiFi devices, an exactly 5 character password will work on ALL WiFi devices.
Mac OS X -> System Preferences -> Sharing -> Internet Sharing ONLY Uses WEP security. If you are using 40-bit WEP, then the password should be exactly 5 characters. If you are using 128-bit WEP, then you want exactly 13 characters. No more. No less. If you do this, you password will work for all WiFi devices.
If you are using a WiFi router to setup your network (hightly advised) then you have the option of using the better WPA or WPA2 WiFi security, which has consistant password to key conversions rules across all WiFi devices (Apple included). -
How to replace NULL values from main table
Dear all,
I like to remove the NULL values from a main table field. Or the question is how to replace any part of the string field in MDM repository main table field.
e.g. I have a middle name field partly the value is NULL in some hundreds of records, I like to replace NULL values with Space
any recommendation.
Regards,
NaeemHi Naeem,
You can try using Workflows for automatically replacing NULLs with any specific value.
What you can do is: Create a workflow and set trigger action as Record Import, Record Create and Record Update. So, that whenever any change will occur in the repository; that workflow will trigger.
Now create an assignment expression for replacing NULLs with any specific value and use that assignment expression in your workflow by using Assign Step in workflow.
For exiting records, you will have to replace NULLs manually using the process given by Preethi else you can export those records in an Excel spreadsheet which have NULLs and then replace all NULLs with any string value and then reimport those records in your MDM repository.
Hope this will solve your problem.
Regards,
Varun
Edited by: Varun Agarwal on Dec 2, 2008 3:12 PM -
How to replace obsolete download function module in ECC6.0?
Hi Experts,
How to replace obsolete download function module in ECC6.0?
Thanks,
Adi.Hi,
DOWNLOAD is obsolete FM in ECC 6. To get the same functionality , we need to use
CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG method (It provides the File selection feature)
and
GUI_DOWNLOAD function module.(It downloads the internal table from program to presentation server)
Please see the example below:
Example:
*CALL FUNCTION 'DOWNLOAD'
EXPORTING
FILENAME = p_filename
FILETYPE = DAT
TABLES
DATA_TAB = T_DOWNL
EXCEPTIONS
INVALID_FILESIZE = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
OTHERS = 6.
*End of deletion CH01-
Replacement Method for above code:
DATA: l_filename TYPE string,
l_filen TYPE string,
l_path TYPE string,
l_fullpath TYPE string,
l_usr_act TYPE I.
l_filename = P_filename.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
DEFAULT_FILE_NAME = l_filename
CHANGING
FILENAME = l_filen
PATH = l_path
FULLPATH = l_fullpath
USER_ACTION = l_usr_act
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4.
IF sy-subrc = 0
AND l_usr_act <>
CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = l_fullpath
FILETYPE = 'DAT'
TABLES
DATA_TAB = T_DOWNL
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22. -
How to replace double quotes with a single quote in a string ?
Hi All:
Can some one tell me how to replace double Quote (") in a string with a single quote (') ? I tried to use REPLACE function, but I couldn;t get it worked.
My example is SELECT REPLACE('STN. "A"', '"', ''') FROM Dual --This one throws an error
Thanks,
Dima.Whether it is maybe not the more comfortable way, I like the quoting capabitlity from 10g :
SQL> SELECT REPLACE('STN. "A"', '"', q'(')') FROM Dual;
REPLACE(
STN. 'A'{code}
Nicoals. -
How to replace multiple occurences of space in a string to a single space?
How to replace multiple occurences of space in a string to a single space?
Hi,
try this code.
data : string1(50) type c,
flag(1) type c,
dummy(50) type c,
i type i,
len type i.
string1 = 'HI READ THIS'.
len = strlen( string1 ).
do len times.
if string1+i(1) = ' '.
flag = 'X'.
else.
if flag = 'X'.
concatenate dummy string1+i(1) into dummy separated by space.
clear flag.
else.
concatenate dummy string1+i(1) into dummy.
endif.
endif.
i = i + 1.
enddo.
write : / string1.
write : / dummy. -
How to replace/remove/change font color of a character at in output
Hi all,
I am using rtf template to get the output of a report, however i have a condition for field "Narratives" where if field A contains 'X', I need to either get rid of the 'X', replace with '' or change the font of X to white.
Meaning if the output is : My Name is BavaniX
I need it to look like : My Name is Bavani
I use the BI Publisher desktop tool to create the placeholders. Highly appreciate if someone could advise me on how to replace with '' or change X to white font or remove the X using the BI desktop tool.
The placeholder right now looks like this <?(NARRATIVES)?>.
Thank you.if you want to replace also look at
How to remove underscore in xml tag
Re: How to remove underscore in xml tag
Edited by: AlexAnd on Aug 2, 2012 5:55 AM -
My iPad2 Apple logo (the blue box with a capital A) was deleted in error. I would like to know how to replace it or get it back. Thanks so much . . .
Do you mean the App Store app on your iPad ? If you do then it can't be deleted, but you might have hidden it via Settings > General > Restrictions > Installing Apps 'off' - if that is 'off' then turn it back 'on' and the app should show on one of your iPad's home screens again
-
Join us at 1:00pm Pacific time for a LIVE video tutorial of how to replace a video card and configure video settings! The video features HP experts who work with the products every day!
I am an HP employee.#test
-
Join us at 11:00am Pacific time for a LIVE video tutorial of how to replace a hard drive! The video features HP experts who work with the products every day!
I am an HP employee.#test
-
How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working 10g
Hi,
How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working in obiee10g version.
We have tried below methods
1) criteria tab and edit the ‘column properties’ associated with your fact measure. Choose the ‘Data Format’ tab, tick to override the default format and choose ‘Custom’.
It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
E.g. if you want zeros (0) instead of null then enter:
#,##0;-#,##0;0
2) in that formula columns we have put it below case condition also ,
Measure Column: Nom_amt --> edit formulas
CASE WHEN Nom_amt IS NULL THEN 0 ELSE Nom_amt END
3) we have uncheked IS NULL check box in the admin tool also
I tried above formats still it's not working for me..kindly help me on this..
thanks to do the needfull
Best Regards,
R.DevarasuHi,
Null value in database displaying as 0 in report, I need to keep value as in database, and I have one calculated row which is based on null values should also null in report.
but it showing 0 for null values also so, my calculated row showing wrong result.
my report is like
col1 col2
ABC 0
BCD 12
DEF -12 --this is calculated row.
I require result like:
col1 col2
ABC null
BCD 12
DEF null --this is calculated row.
Please let me know how I can achieve this.
Thanks,
Rahul -
How to Replace Null Value as 0 in an OBIEE11g Pivot Table?
Hi,
How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working in obiee10g version.
We have tried below methods
1) criteria tab and edit the ‘column properties’ associated with your fact measure. Choose the ‘Data Format’ tab, tick to override the default format and choose ‘Custom’.
It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
E.g. if you want zeros (0) instead of null then enter:
#,##0;-#,##0;0
2) in that formula columns we have put it below case condition also ,
Measure Column: Nom_amt --> edit formulas
CASE WHEN Nom_amt IS NULL THEN 0 ELSE Nom_amt END
3) we have uncheked IS NULL check box in the admin tool also
I tried above formats still it's not working for me..kindly help me on this..
thanks in advance...
Best Regards,
R.DevarasuHi Amith,
I have update your suggested one,but it's working few of the rows only..remainings rows some of cells still NULL only
Measure colmns is : Nom_SGD
IFNULL(Nom_SGD,0.00)
Movment : dynamic date calc by using $2-$1 oracle formula's
Actually i am doing below things only,
31/12/2011 31/03/2011 Movment
Country
India 100 -50 -150
Singapore 200 200
UK 1200 -1200
USA 0.00 0.00 0.00 (here changed null as 0)
Helpmeon this... -
How to replace null as 0 in obiee11g pivot table view?
Hi,
I am using obiee11g pivot table view,
I have tried so many views but it's not work. My oracle support team also tired but could not solve it
1.) used BIN method is that measure columns
2.) ifnull(column name,0)
3.) case condition:
Case when columns is NULL then 0 else column end
4) data formate override custom formate option
It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
E.g. if you want zeros (0) instead of null then enter:
#,##0;-#,##0;0
http://obieeelegant.blogspot.com/2011/06/how-to-replace-null-values-in-obiee.html
Note:
I don't want to show strike-rate and custom message in that blank cell. I want to show blank cell(null values) as 0 in the obiee11g pivot table view.
Obiee10g version is working fine only issues in obiee11g
Thanks in advance...
Thanks
DevaI tried this on 11.1.1.6.2 but I can't see good results.
I choose subject area A-Sample Sales and I choose:
T02 per Name Month on rows
P1 Product on columns
Measure : IFNULL("Simple Calculations"."17 Net Costs", 0)
Prompted Year 2008
On product Install and 2008/01 there isn't value...and I put Ifnull in my formula...
My problem is that I want to do a conditional format when Product = Install. So I have all column with background colour except Null values...so is not pretty...
If I add custom numeric format I can see 0 but not with background colour...
I add a picture:
http://imageshack.us/photo/my-images/600/tablegk.jpg/
Any help about it??
Is a bug on obiee??
Edited by: Alex1 on 04-sep-2012 4:28
Maybe you are looking for
-
Clear older open items which is posted
Hi We are trying to clear GR/IR open items, but the issue is GL Account earlier was not open item, and later it changed to open item. now the problem is earlier items which were posted is not getting clear as they are not showing as a red or open ite
-
How to create an applet in a jDesktopPane
hello i would like to create an applet (JApplet) in a desktop (JDesktopPane). i have to put the applet in a JInternalFrame so i can move and resize the window around. indeed i can have several applets in the JDesktopPane. it would be more powerfull t
-
Report on Account - Contact and Contact Team
Hi, We have a requirement to build a report on accounts with their contacts and the contact team for those contacts all in one report. The user should be able to filter the account on type or name. I can't find a correct subject area for this. Contac
-
Can anyone tell me the easiest way to load photos from "my photos" folder to Itunes? Or better yet, simply, whats the best way to download photo's from my PC to my Iphone 3gs? Any help is greatly appreciated!
-
Where did the margins go?- layout doc
When I open a blank layout doc the margins are there. (grey area when in layout view) When I save it and reopen it the margins are gone. I have to manually add margin lines. Margins work fine in Word Processing mode. Kurt