Application Development 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: 

Runtime error while executing 'CUSTOMER_CLEARING' function module

Former Member
0 Kudos

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

4 REPLIES 4

Sm1tje
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member387317
Active Contributor
0 Kudos

Hi Puja Das,

A	Display all screens
E	Display errors only
N	No display

These 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