cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform DUMP|||

Former Member
0 Kudos

Hi all,

this is the error i am getting....

What happened?

Error in ABAP application program.

The current ABAP program "ZTEST_VKR" had to be terminated because one of the

statements could not be executed.

This is probably due to an error in the ABAP program.

A function module was called incorrectly.

sjhowing error at CALL FUNCTION fm_name.

REPORT ZTEST_VKR.

tables:mara.

select-options:s for mara-matnr.

data:begin of int_mara occurs 0,

matnr like mara-matnr,

mtart like mara-mtart,

end of int_mara.

data:fm_name type rs38l_fnam.

select matnr mtart from mara into table int_mara where matnr in s.

if sy-subrc = 0.

endif.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZTEST_VKR'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = 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 fm_name

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 =

TABLES

int_mara = int_mara

  • 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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi ,

could you remove the user settings = 'X'.

regards,

venkat.

Former Member
0 Kudos

venkat,

same prob afetr commenting that parameter user settings.

former_member184657
Active Contributor
0 Kudos

i guess in the...

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

u need to give the form name in single quotes.

check it out

pk

former_member184657
Active Contributor
0 Kudos

no sorry... my bad.

u already have it in single quotes...

ok lemme look into it.

pk

che_eky
Active Contributor
0 Kudos

Check that function 'SSF_FUNCTION_MODULE_NAME' is returning the correct value in FM_NAME.

Former Member
0 Kudos

yes its returning fine.

che_eky
Active Contributor
0 Kudos

Looks like the call to FM_NAME is incorrect. Make sure you are passing all mandatory parameters and check the data types match those expected FM_NAME.

Also use SE37 to check that function FM_NAME is active.

former_member184657
Active Contributor
0 Kudos

i dont think there are any issues with the driver pgm. it looks as neat as it can be.

as the person above sd, activate the SF and regenerate the call function.

the fault is not with the driver program.

also check if u are able to get the internal table values in ur smartform.

pk

Answers (0)