cancel
Showing results for 
Search instead for 
Did you mean: 

type conflict when calling funct. module

Former Member
0 Kudos

hello frnds

i am getting a dump as type conflict when calling funct. module

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'Z_INVOICE_ROH'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = L_RS38L_FNAM

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3

.

IF SY-SUBRC <> 0.

MESSAGE E398(00) WITH 'no form exists '.

ELSE.

the program is getting a dump after this .....

CALL FUNCTION L_RS38L_FNAM

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

INV_NO = S_VBELN

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5

can anybody help wid this .. another thing is when i am executing the funct module without the driver prog . thn i am able to get the output correctly ..

thanks

rohit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

s_vbeln i think is a select-option and hence is a table structure and i think u need to export a single value hence the dump.

santhosh

Answers (3)

Answers (3)

Former Member
0 Kudos

hiii frnds leave it it has been solved .. the data wasnt declared properly in the smartform ..

thanks

Former Member
0 Kudos

well i have tried doing the above changes but stilld its gvng a dump ..

Former Member
0 Kudos

hi,

Paste the code here

guru

Former Member
0 Kudos

Hi Rohit,

Dont pass the form name directly to fuctional module.

Do as below.

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

DATA: lf_fm_name TYPE rs38l_fnam,

lf_formname TYPE tdsfname.

lf_formname = 'Z_INVOICE_ROH'.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = lf_formname

IMPORTING

FM_NAME = lf_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 lf_fm_name

EXPORTING

notifno = notifno

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.

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

Here lf_fm_name contains the latest functional module number at the time of execution.

Regards,

Guru

*mark helpful answers