Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Encoding in abap!!

former_member224405
Participant
0 Kudos

hi i have a z* program which reads a header line etc n create a po...in SAP...in line item i have a field called short description in which if i give ", as the entry the program land into dump....

i think i need to set the UTF format to default as it is UTF-8 now ..can any one let me know how to set this so that my program handles this description...of do i have to change the datatype of the field or any other solution plz let me know...

thanks,,

1 ACCEPTED SOLUTION

former_member555112
Active Contributor
0 Kudos

Hi,

Please check in the Z-Program whether unicode checks are active in the attributes.

Regards,

Ankur Parab

8 REPLIES 8

former_member555112
Active Contributor
0 Kudos

Hi,

Please check in the Z-Program whether unicode checks are active in the attributes.

Regards,

Ankur Parab

0 Kudos

can u let me know how shud i check this...

0 Kudos

s....it is active..

0 Kudos

try giving ' ' instead of '' . I mean a space should be there in between quotes.

Edited by: vijetasap on Jun 4, 2009 7:17 AM

0 Kudos

i disable the unicode check active still it lands into dump....

0 Kudos

i tried giving the same in other program it goes fine with the field papulating in sap as || and program does not land into dump ......but i dont know wat changes need to be done to apply the same...

0 Kudos

What does the dump say? Can you share the fragment of code shown in the dump?

matt

0 Kudos

The termination occurred in line 147 of the source code of the (Include)

program "LZAR_SSP_READ_FILEF03"

of the source code of program "LZAR_SSP_READ_FILEF03" (when calling the

editor 1470).

clear i_intern_value.

else.

IF i_string CS l_pipe.

l_stringlength = strlen( i_string ).

DO l_stringlength TIMES.

REPLACE ' ' WITH '""' INTO i_string.

IF sy-subrc NE 0.

EXIT.

ENDIF.

ENDDO.

ENDIF.

ASSIGN I_STRING(L_INT) TO <L_CELL>.

I_INTERN_VALUE = <L_CELL>.

endif.

L_INT = L_INT + 2.

I_SIC_INT = L_INT.

I_STRING = I_STRING+L_INT.

ELSEIF I_STRING CS C_ESC.

  • letzte Celle

L_INT = SY-FDPOS.

if l_int = 0.

clear i_intern_value.

else.

ASSIGN I_STRING(L_INT) TO <L_CELL>.

I_INTERN_VALUE = <L_CELL>.

endif.

L_INT = L_INT + 1.

I_SIC_INT = L_INT.

I_STRING = I_STRING+L_INT.

L_INT = STRLEN( I_STRING ).

IF L_INT > 0 . MESSAGE X001(KX) . ENDIF.

ELSE.

MESSAGE X001(KX) . "was ist mit csv-Format

ENDIF.

ENDIF.

thankss...