cancel
Showing results for 
Search instead for 
Did you mean: 

dump : data type mismatch

ranjna_sharma
Explorer
0 Kudos

hi,

i am gettingdump error while passing table it_fianl.what should be the data type for netpay if i am creating a table of type ty_final

for smartforms parameters .

TYPES : BEGIN OF ty_final , pernr TYPE persno,

name TYPE char50,

mode TYPE lgtxt,

bank_key TYPE bankl,

account_no TYPE bankn,

netpay TYPE p DECIMALS 2,

lgart TYPE lgart,

END OF ty_final.

data : it_final TYPE STANDARD TABLE OF ty_final,

wa_final TYPE ty_final.

FORM DOWNLOAD_FILE.

DATA: FM_NAME TYPE rs38l_fnam..

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZHR_PAYROLLBANKTRANSFER'

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

gv_month = gv_month

gv_year = gv_year

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

tables

lt_final = IT_FINAL.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can either give field PC207-BETRG or data element CHAR10.

Regards,

rumhat

Answers (4)

Answers (4)

brad_bohn
Active Contributor
0 Kudos

Follow Kris' advice, but this begs the question...what did you use in the smartform interface definition? You had to use a DDIC type to declare the interface table parameter so why wouldn't you use the exact same DDIC structure in your program definition as well?

Former Member
0 Kudos

All the fields in your internal table should be defined like the fields in the structure for LT_FINAL (defined in yoursmartform)...

Former Member
0 Kudos

Hi,

Declare it as a price field like:

netpay type ekpo-netpr.

Regards,

Saba

Former Member
0 Kudos

check table iit_final in smartform interface.

There must be some filed mismatch

Dhiraj