Hello SDNers,
I need to convert ASCII table content into binary for which I have used the FM 'SCMS_TEXT_TO_BINARY'.
data : GT_SDOKCNTASCS type SDOKCNTASCS,
gt_binary type table of BAPICONTEN.
DESCRIBE TABLE let_sdokcntascs LINES lv_lines.
GT_SDOKCNTASCS [ ] = leT_SDOKCNTASCS [ ].
CALL FUNCTION 'SCMS_TEXT_TO_BINARY'
EXPORTING
first_line = 1
last_line = lv_lines
append_to_table = 'X'
TABLES
text_tab = GT_SDOKCNTASCS
binary_tab = gt_binary.
However when I check the output in my file i get some junk data. GT_SDOKCNTASCS gets converted to gt_binary however there is some special characters which get appended.
for example the contents in
GT_SDOKCNTASCS->line1 = hello
GT_SDOKCNTASCS->line2 = how are u
The output in binary comes as
hello
how are u 000000000000000000000000
00000000000000000000000000000000
000000000000000000000000000000000
Please suggest a solution.
Regards,
S Sarma
Edited by: S Sarma on Jun 2, 2008 2:35 PM