Application Development and Automation 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: 
Read only

Encoding in abap!!

former_member224405
Participant
0 Likes
1,502

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
Read only

Former Member
0 Likes
1,370

Hi,

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

Regards,

Ankur Parab

8 REPLIES 8
Read only

Former Member
0 Likes
1,371

Hi,

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

Regards,

Ankur Parab

Read only

0 Likes
1,370

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

Read only

0 Likes
1,370

s....it is active..

Read only

0 Likes
1,370

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

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

Read only

0 Likes
1,370

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

Read only

0 Likes
1,370

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...

Read only

matt
Active Contributor
0 Likes
1,370

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

matt

Read only

0 Likes
1,370

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...