Skip to Content
0
Former Member
Oct 25, 2010 at 04:33 PM

CALL FUNCTION 'SX_OBJECT_CONVERT_ALI_RAW' fields have changed since 46C

120 Views

We are implementing upgrade to mysap 700 from 46C

PROGRAMS USING function call to 'SX_OBJECT_CONVERT_ALI_RAW' fields have changed

we used to send tables directly and now we are sendin fields to be changed

i have tried to send the data but continue to have errors

700 version has this function with these paramaters

CALL FUNCTION 'SX_OBJECT_CONVERT_ALI_RAW'

EXPORTING

FORMAT_SRC = SOURCE_NAME

FORMAT_DST = OUT_NAME

ADDR_TYPE = 'FAX' " int or fax

DEVTYPE = DEVTYPE

  • FUNCPARA = 255

CHANGING

TRANSFER_BIN = LISTOBJECT

CONTENT_TXT = content_txt

CONTENT_BIN = content_bin

  • OBJHEAD =

LEN = OUTLEN

EXCEPTIONS

ERR_CONV_FAILED = 1

OTHERS = 2

changing

TRANSFER_BIN TYPE SX_BOOLEAN

CONTENT_TXT TYPE SOLI_TAB

CONTENT_BIN TYPE SOLIX_TAB

OBJHEAD TYPE SOLI_TAB O

LEN TYPE SO_OBJ_LEN

when ran we get an abap dump content_bin

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was

not caught in

procedure "GET_MEMORY_LIST" "(FORM)", nor was it propagated by a RAISING

clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

The call to the function module "SX_OBJECT_CONVERT_ALI_RAW" is incorrect:

The function module interface allows you to specify only

fields of a particular type under "CONTENT_BIN".

The field "CONTENT_BIN" specified here is a different

field type

.

it looks like i need to set <fs> pointer to the field but i am akwardly at this any help please will do well.

this is how we used to use the function

  • CALL FUNCTION 'SX_OBJECT_CONVERT_ALI_RAW '

  • EXPORTING

  • FORMAT_SRC = SOURCE_NAME

  • FORMAT_DST = OUT_NAME

  • DEVTYPE = DEVTYPE

  • FUNCPARA = FUNCP

  • LEN_IN = INLEN

  • IMPORTING

  • LEN_OUT = OUTLEN

  • TABLES

  • CONTENT_IN = LISTOBJECT

  • CONTENT_OUT = OBJTXT

  • EXCEPTIONS

  • ERR_CONV_FAILED = 1

  • OTHERS = 2.

*

*

*

  • IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

  • ENDIF.