Sitemap

Amicuk Programming Answers

CL_ABAP_TYPEDESCR - DESCRIBE_BY_DATA  field length is doubled

-0001-11-30   Views:1

Advertisement

I have a custom program developed on Non Unicode system, that is using CL_ABAP_TYPEDESCR -> DESCRIBE_BY_DATA  to get field lengths of the fields in a structure. The code works perfectly file on Non Unicode system where it is developed, However when t

I have a custom program developed on Non Unicode system, that is using CL_ABAP_TYPEDESCR -> DESCRIBE_BY_DATA  to get field lengths of the fields in a structure. The code works perfectly file on Non Unicode system where it is developed, However when the same code is imported on a UNICODE system the field lengths of the fields in the same structure are exactly doubled. Anybody has any idea, why this may be happening?

The replay answer
Advertisement
> However when the same code is imported on a UNICODE system the field lengths of the fields in the same structure are exactly doubled. Anybody has any idea, why this may be happening?
Yes - because Unicode uses two bytes to represent ONE character.
Markus

Go to See the other 4 answers

CL_ABAP_TYPEDESCR - DESCRIBE_BY_DATA  field length is doubled

Category:DefaultRelease time:-0001-11-30Views:130

I have a custom program developed on Non Unicode system, that is using CL_ABAP_TYPEDESCR -> DESCRIBE_BY_DATA  to get field lengths of the fields in a structure. The code works perfectly file on Non Unicode system where it is developed, However when t[More]

Length report double

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have the code below and i am not sure why the length of the attribute are reported double Code: FIELD-SYMBOLS:     <fs_comp_wa> TYPE abap_compdescr. DATA: lr_desc_table    type ref to CL_ABAP_TYPEDESCR,         lr_desc_struc    type ref to cl_[More]

Field lengths in unicode system.

Category:DefaultRelease time:-0001-11-30Views:130

Hi gurus, I am creating a dynamic internal table. To get the structure of DDIC table at run time i use the following code to create field catalog: DATA : idetails TYPE abap_compdescr_tab,          xdetails TYPE abap_compdescr. DATA : xfc TYPE lvc_s_f[More]

Cl_abap_typedescr= describe_by_data( gt_table )

Category:DefaultRelease time:-0001-11-30Views:130

Afternoon all I am using cl_abap_typedescr=>describe_by_data( <gt_table> ) to retrieve the fieldlist of my dynamically created ALV fieldcatalog.  However, I have just switched to using some fields that are of type INT and now the method ignores t[More]

L_descr_ref ?=cl_abap_typedescr= describe_by_data( gt_tab ).

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have written the code as follows to get the components of the file uploaded.But it goes for dump at the statement written at subject line: And it says " However, the current content of the source variable does not fit into the target variable.&[More]

Dump at cl_abap_typedescr= describe_by_data

Category:DefaultRelease time:-0001-11-30Views:130

Hi , My code is as follows:   l_descr_ref ?= cl_abap_typedescr=>describe_by_data( gt_fldname ).   BREAK-POINT.   CLEAR : l_counter.   LOOP AT l_descr_ref->components[] ASSIGNING <lfs_comp_wa>.     l_counter = l_counter + 1.     ASSIGN COMPONEN[More]

Cl_abap_typedescr= describe_by_data

Category:DefaultRelease time:-0001-11-30Views:130

We've just upgraded from 4.6 to ECC 6.0 and found that the result from cl_abap_typedescr=>describe_by_data differs. In 4.6 the result in field ABSOLUTE_NAME referes to the definition in the main program. In 6.0 we get the definition from the type-poo[More]

Field length change in Web Dynpro Components iView

Category:DefaultRelease time:2015-10-11Views:130

Hi, We are using SAP MDM Web Dynpro Components - Configuration Manager (NW7.3) to develop the UI. One of the issue while disply field is, Though field maintained in MDM has only 2 charaters UI that displays a full-screen-width field. I would like to[More]

Changing field length of a standard field in standard table VBEP

Category:DefaultRelease time:2015-10-11Views:130

Hi, Please advice the possibility and the possible repercussions of changing field lengths in a standard table. Table in concern is VBEP. Thanks & Rgds, PradeepNo you cannot change the field length thanks G. LakshmipathiRead other 2 answers[More]

Type conflict when calling a function module (field length)

Category:DefaultRelease time:2015-10-11Views:130

Dear All,             I am getting this following error while executing:  Type conflict when calling a function module (field length) This is piece of coding i have writern in my action button. method SEARCH_MATERIAL .   data:         node_mat_input[More]

How to create an infotype with one of its field length eq 1000.??

Category:DefaultRelease time:2015-10-11Views:130

hi , i need to create a infotype where one of the field length is 1000 characters how do i achieve this. if i give more than 255 in the PS structure it will not allow. then how do i get a text field of 1000 chars in the screen ( which is an input fie[More]

Hot
We recently updated the metadata in HFM to use the Custom4 dimention. We are now trying to run reports from Workspace and get an error 5200 - error executing query. I have confirmed that the database connection in Workspace is ok. I am able to run th [More]
I need help! when I am importing my NEF Raw files from my D3300 camera into lightroom 5 and try to use the "copy as DNG" button I always get an error message saying that "saying the file is not recognized by the raw format support". Th [More]
Wondering how I can retrieve the book I was working on in Beta 4.  Working in Windows 7.  Had been able to move between modules okay, Library > Book > Develop, and back and forth and so on, and everything seemed to be working fine.  Had been able to [More]
Dear all, we are preparing for the pbnw certification. Our way is to deploy our existing web application on the J2EE engine and make it accessible via the portal, i.e. where are taking the certification scenarios J2EE-DEP and BP-EP. Up to now, my ide [More]
Hi MM gurus, Would request for some suggestions on cutover migration of inventory involved from one SAP system to other SAP system. Particularly for a Make to Order scenario where stock after production is linked to a specific Sales Order. What shoul [More]
I've ReWired audio into 4 aux objects and I want to record the audio into 4 tracks. I think I need to route everything into 4 audio channels. I've tried various configurations of input and and output settings, but so far nothing seems to work. I'd be [More]
I have some problems with a computer having Windows98. Does Instant Client work fine with this OS? If YES: how I can to set the Path and the TNS_ADMIN? (On Windows 2003, right-click "My Computer", click Properties, click the Advanced tab, click [More]
Everytime i try and sync the ipod or ipad it says that i don't have the required software for syncing. Therefore i should uninstall and reinstall itunes 64 bit. I have tried severall times but it won't work. I am very annoyed because it has never hap [More]
Hi, I have reached a situation where I have to create small pieces of xml (around 8k characters) within my java app. Right now I am using stringbuffer to create the xml which does not go against a dtd. This is working for now, since I do not have to [More]
i recently purchase Office 2007. I am able to convert Excel & PP directly from the tool bar except Word as Acrobat is not shown on Word tool bar. I then have to convert via Print. Also if I try to cenvert directly from My Document, an error window te [More]