‎2007 Oct 19 4:58 PM
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
‎2007 Oct 19 5:03 PM
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
‎2007 Oct 19 5:03 PM
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