‎2009 Jun 04 5:54 AM
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,,
‎2009 Jun 04 6:05 AM
Hi,
Please check in the Z-Program whether unicode checks are active in the attributes.
Regards,
Ankur Parab
‎2009 Jun 04 6:05 AM
Hi,
Please check in the Z-Program whether unicode checks are active in the attributes.
Regards,
Ankur Parab
‎2009 Jun 04 6:14 AM
‎2009 Jun 04 6:15 AM
‎2009 Jun 04 6:17 AM
try giving ' ' instead of '' . I mean a space should be there in between quotes.
Edited by: vijetasap on Jun 4, 2009 7:17 AM
‎2009 Jun 04 6:18 AM
i disable the unicode check active still it lands into dump....
‎2009 Jun 04 6:24 AM
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...
‎2009 Jun 04 6:47 AM
What does the dump say? Can you share the fragment of code shown in the dump?
matt
‎2009 Jun 04 6:58 AM
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...