Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
CmoconvertirunINTEGERaCHAR?MUNDOSAP
MUNDOSAP>DESARROLLO>ProgramacinABAPIV
CmoconvertirunINTEGERaCHAR?
Home
Descargas
Registrar
FAQ
NombredeUsuario NombredeUsuarioRecordarme?
Contrasea
Miembros
Calendario
Buscar
TemasdeHoy
Ingresar
MarcarForosComoLedos
06/06/07,13:37:16
lhidalgo
JuniorMember
#1
FechadeIngreso:jul2006
Mensajes:4
CmoconvertirunINTEGERaCHAR?
holanecesitariaconvertirunnumeroenteroasucorrespondientecaracterascii.
ej:tengounavariableenteraconel45yloquieroconvertirasucorrespondientevalorAciiquees''(guiondelmedio)
probeconestecodigoperometiraunerroralcompilar.
"Thelengthof"X"inbytesmustbeamultipleofthesizeofaUnicode"
data:itypeivalue45.
data:xtypex.
fieldsymbols:<fc>typec.
moveitox.
assignxto<fc>castingtypec.
move<fc>toc.
writec.
06/06/07,13:49:36
ana_24
JuniorMember
#2
FechadeIngreso:ene2007
Mensajes:13
Hola!!
unavezencontreestoporlaredymeloguardeporsialgunavezlonecesitaba.Laverdadquenoloheprobado,peroporsitesirvedeayuda
FUNCTIONZ_CHARACTER_TO_ASCII_CODE.
*"
*"*"Interfaselocal
*"IMPORTING
*"REFERENCE(FI_CHARACTER)TYPEC
*"EXPORTING
*"REFERENCE(FE_ASCII_CODE_DEC)TYPEI
*"REFERENCE(FE_ASCII_CODE_HEX)TYPEC
*"
fieldsymbols<FS>typex.
*HavetouseCASTINGheretopurposelyforceSAPtoconvertthe
*charactertoanequivalentHEXvalue(usingASCIIchart).
*NotethatCASTINGfeatureisnotavailablepriorrelease4.6
assignfi_character(1)to<FS>casting.
*ThetypeofthedestinationfieldwillcauseSAPtodeterminewhich
*type(Decimal/Hexadecimal)ofASCIIcodeshouldbeconverted:
*X>IgivesDecvalue
*X>CgivesHexvalue
fe_ascii_code_dec=<FS>.
fe_ascii_code_hex=<FS>.
ENDFUNCTION.
07/06/07,18:06:31
lhidalgo
JuniorMember
#3
FechadeIngreso:jul2006
Mensajes:4
GraciasAna....modifiqueestalineadata:x(16)typex.ymefunciono
REPORTztest_alg.
DATA:varbartextin(18)TYPEc,
http://www.mundosap.com/foro/showthread.php?t=5822
1/3
21/4/2016
CmoconvertirunINTEGERaCHAR?MUNDOSAP
largoTYPEi.
varbartextin='34'.
*sacaespaciosenblanco
*SHIFTvarbartextinLEFTDELETINGLEADINGspace.
largo=varbartextin+0(2).
largo=largo+33.
data:c(16)typec.
data:itypei.
i=largo.
data:x(16)typex.
fieldsymbols:<fc>typec.
moveitox.
assignxto<fc>castingtypec.
move<fc>toc.
writec+15(1).
BREAKPOINT.
11/06/07,12:17:59
mcartamil
#4
FechadeIngreso:ago2006
Mensajes:12
JuniorMember
Paradechamuyarluissssssssssssssssss!!!!
22/10/09,16:48:53
titanium
#5
FechadeIngreso:feb2008
Mensajes:1
JuniorMember
nofunciona
esoosfuncionaverdaderamente???loestoyprobandoynofunciona...
23/10/09,09:30:24
Neo_25
Member
#6
FechadeIngreso:jun2009
Mensajes:51
Sfunciona:
Cdigo:
DATA:fi_characterTYPEcVALUE'A',"carcter
fe_ascii_code_decTYPEi,"ASCIIendecimal
fe_ascii_code_hexTYPEc."ASCIIenhexadecimal
FIELDSYMBOLS<fs>TYPEx.
ASSIGNfi_character(1)TO<fs>CASTING.
fe_ascii_code_dec=<fs>."obtenemoselASCIIendecimal
fe_ascii_code_hex=<fs>."obtenemoselASCIIenhexadecimal
WRITE:'Carcter:',fi_character.
WRITE:/'Endecimal:',fe_ascii_code_dec.
WRITE:/'Enhexadecimal:',fe_ascii_code_hex.
Saludos
06/09/10,19:23:47
ArielStaFe
SeniorMember
#7
FechadeIngreso:nov2007
Localizacin:SantaFeArgentina
Mensajes:292
ConvertirCHARaASCIIenECC60?
Estimados:
YotenaunafuncinZtalcualcomentaroneneste"Tema",yfuncionabaperfectoenVersion4.7
MigramosaECC60ydejdefuncionar.
Porejemplolaletra"A"quetieneelvalordecimal'65',conestanuevaversinlamismafuncinmedevuelveelvalordecimal'16.640'
Alguientieneelmismoproblema?,
Tienealgoquever"UNICODE"?..
o"CODEPAGE"?
yaquetuveotrotiposdeproblemastambiensimilares,cosasqueantesfuncionabanyahorano.(conlanuevaversion)
Ss
09/09/10,14:00:49
ArielStaFe
SeniorMember
#8
http://www.mundosap.com/foro/showthread.php?t=5822
FechadeIngreso:nov2007
Localizacin:SantaFeArgentina
Mensajes:292
2/3
21/4/2016
CmoconvertirunINTEGERaCHAR?MUNDOSAP
ProblemaenconvCHARaASCIIdecimalResuelto
Estimados:
Sigosinentenderporquedejdefuncionar,peroporsilesucedeaalguienmas,lamaneraqueloresolvestomarlaconversionenHexadecimaly
luegoconvertirladehexaaasciidecimal.
Ss
TemaAnterior|PrximoTema
Herramientas
BuscarenTema
BuscarenTema:
MostrarVersinImprimible
Ir
EnviarporCorreo
BsquedaAvanzada
Desplegado
ModeLineal
CambiaraModoHibrido
CambiaraModoHilado
ReglasdeMensajes
Tnopuedescrearnuevostemas
Tnopuedesrespondertemas
Tnopuedesadjuntararchivos
Tnopuedeseditartusmensajes
ElcdigovBestOn
LascaritasestnOn
Cdigo[IMG]estOn
CdigoHTMLestOff
SaltaraForo
ProgramacinABAPIV
Ir
HusosHorariossonGMT.Lahoraenestemomentoes19:03:35.
ContactarnosDESCARGASMANUALESSAPABAPIVArchivosTop
www.mundosap.com2006Spain
softwarecrm,crmondemand,softwarecallcenter,crmact,crmsolutions,crmgratis,crmweb
http://www.mundosap.com/foro/showthread.php?t=5822
3/3