Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Runtime Errors CALL_FUNCTION_CONFLICT_LENG in abap program

Dear All,

I am working in SF . for which i am creating a ABAP program. when i execute this program then generate error:

*****************************************

Runtime Errors CALL_FUNCTION_CONFLICT_LENG

Exception CX_SY_DYN_CALL_ILLEGAL_TYPE

Date and Time 16.05.2011 10:01:32

Short text

Type conflict when calling a function module (field length).

What happened?

Error in the ABAP Application Program

The current ABAP program "ZMM_MAT_DOC_PRINT had to be terminated because it ha

come across a statement that unfortunately cannot be executed.

A function module was called incorrectly.

**********************************************

"my code :"

******************************************************************************

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZMAT_DOC_PRINT'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

  • IMPORTING

  • FM_NAME =

  • EXCEPTIONS

  • NO_FORM = 1

  • NO_FUNCTION_MODULE = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

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

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

ENDIF.

CALL FUNCTION '/1BCDWB/SF00000190'

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

USER_SETTINGS = 'X'

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

  • MAKTX =

  • MATNR =

  • MENGE =

  • MBLNR =

  • EBELN =

  • MEINS =

  • WERKS =

  • NAME1 =

TABLES

t_mseg = t_mseg

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

  • OTHERS = 5

.

IF sy-subrc <> 0.

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

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

ENDIF.

***************************************************************************************************

Plz guide me to solve this problem.............

Former Member
Former Member replied

Catch the importing parameter FM_NAME of FM SSF_...

then call this FM through this variable.

Hope your problm will b resolved.

Thanks.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question