Skip to Content
0
Sep 21, 2006 at 05:11 AM

Types of parameter and variable are inconsistent

154 Views

Hi,

In my BPS, I have developed a FOX where by from the FOX, I wrote a Call

Function.

Example:

********************************

DATA STR TYPE STRING.

CALL FUNCTION ZBWFM_SPLIT_TP_RC3PIC7

EXPORTING

I_RCG3 = RCG3

I_PIC7 = PIC7

I_VER = VERS

I_VTYPE = VTYP

I_BTYPE = BTYP

I_TP = TRPT

I_YR = FYEAR

I_STRPPER = STR

I_CAREA = CAREA

I_CACC = CACC

I_PPER = PPER

IMPORTING

E_TOTAL = TOTAL.

********************************

In my Function Module from tcode: SE37.

Under the IMPORT tabs I have assign I_STRPPER as TYPE STRING.

********************************

BPS's FOX is giving me an error status:

Types of parameter I_STRPPER (S) and variable

STR(C) are inconsistent

********************************

If I change the TYPE FOR I_STRPPER as TYPE TYPE_STRING_MIN0MAX4CONTENT.

Then BPS's FOX is ok. but when i execute it will have ABAP DUMP.

Appreciate if you can let me know what is the the Data type I should use?

Thank you.

/Jamie