Skip to Content
0
Former Member
Mar 31, 2005 at 11:27 AM

Converting to the data types

41 Views

Hi,

I'm calling a function:

CALL METHOD viewer->view_document_from_table

EXPORTING

type = type

subtype = subtype

size = 21786

show_inplace = inplace

CHANGING

document_table = mycontent_table

EXCEPTIONS

cntl_error = 1

not_initialized = 2

dp_error_general = 3

invalid_parameter = 4

dp_invalid_parameter = 5.

IF sy-subrc NE 0.

MESSAGE i009.

ENDIF.

the document table is in database table , in the right format ( hex ).

Mycontent is defined as

DATA: mycontent_table LIKE bapiconten OCCURS 1

how can I read the data from the database table and transfer it into mycontent?

I've tried varous ways , which have all so far failed.

thanks