‎2009 Nov 18 1:06 PM
Hi Experts,
When I execute fm 'CUSTOMER_CLEARING', I get a run time error that says that there is a type mismatch with respect to
'I_MODE' parameter used. This dump occurs when there is a call to fm 'POSTING_INTERFACE_START' by this fm. I tried executing it with different values for 'I_MODE' ,such as 'A', 'S', 'E' etc but every time it gave a run time error.
Kindly suggest what might have gone wrong.
Thanks in advance,
Regards,
Puja
‎2009 Nov 18 1:22 PM
It means that the type you are using for I_MODE is not correct. But it strikes me as kind of odd, that this dump only occurs after the first function module is called.
Use the extended check to find out if there are any type mismatches for your parameters.
‎2009 Nov 18 1:22 PM
CALL FUNCTION 'POSTING_INTERFACE_START'
EXPORTING
I_CLIENT = SY-MANDT
I_FUNCTION = 'C' "Call Transaction
I_GROUP = XT_BSSPARA-MAPPE
I_MODE = I_MODE
I_HOLDDATE = XT_BSSPARA-HOLDD
I_KEEP = XT_BSSPARA-KEEPM
I_USER = XT_BSSPARA-USERN
EXCEPTIONS
CLIENT_INCORRECT = 01
FUNCTION_INVALID = 02
GROUP_NAME_MISSING = 03
MODE_INVALID = 04
UPDATE_INVALID = 05.
IF SY-SUBRC NE 0.
break ruettgers. "/ JWE P40K041774
MESSAGE A217(68). "/ JWE P40K041774
ENDIF.
i think it is happening because of field lenghth declaration, try to find it .
try like this
Edited by: kpsgoutam on Nov 18, 2009 2:23 PM
‎2009 Nov 18 1:27 PM
Hi
The fm CUSTOMER_CLEARING clears the custpmer open item by BDC program, so the I_MODE has to be equal to A (forground), N (background) or E (stop at the first error)
Max
‎2009 Nov 18 1:29 PM
Hi Puja Das,
A Display all screens
E Display errors only
N No displayThese are the values for I_MODE
Try to set it directly without declaring any varible
or declare the variable of type RFPDO-ALLGAZMD
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya