Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Short dump!!!

Former Member
0 Likes
310

Hi Gurus,

I am working on an interface where I need to change the price of the material and for this I am usingh the function module..but while I am using it I am getting the follwoing short dump: <b>" Type conflict when calling a function module"</b>..

data: price type FIN_PRICE.

move '1.85' to price.

CALL FUNCTION 'CON_ACC_PRICE_UPLOAD'

EXPORTING

ID_WERKS = '1000'

ID_MATNR = 'b10'

  • ID_BATCH =

ID_FROMDAT = '20071026'

ID_TODAT = '99991231'

ID_PRICELABEL = 'AB'

ID_PRICE = price

ID_PRCBASE = 'EA'

EXCEPTIONS

ERROR_OCCURED = 1

INV_PRICE_NOT_ACCEPTED = 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.

else.

commit work.

ENDIF.

can you please help me to resolve this issue.

Thanks

Rajeev

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
288

Do not pass strings to funciton module. Declare respective variables with proper declarations (Like L_MATNR TYPE MARA-MATNR) and pass values to these variables.

Then pass these variables to fm. This should work.

ashish

1 REPLY 1
Read only

Former Member
0 Likes
289

Do not pass strings to funciton module. Declare respective variables with proper declarations (Like L_MATNR TYPE MARA-MATNR) and pass values to these variables.

Then pass these variables to fm. This should work.

ashish