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: 

Error in function Module

Former Member
0 Kudos
514

Hi abappers

I am trying to use the function module GET_DELIVERY_DATE in my program, due to a type mismatch in a function module called PDOT_DATE_CONVERT inside the former function module i am getting a run time error, ie, an "assign" statement inside the function module PDOT_DATE_CONVERT is causing this error.

field symbols: <field> type d.

assign field to <field>.

"field" is of a different data type.

In my program

I am using this statement.

data: t_p_ddat(10).

CALL FUNCTION 'GET_DELIVERY_DATE'

EXPORTING

ADDITIONAL_DAYS = 1

IMPORTING

DATE_1 = t_p_ddat

  • DATE_2 =

.

Can any body tell me how to work around this problem.

Regards

Naren

7 REPLIES 7

Former Member
0 Kudos
141

Hi Narendiran,

Check whether the Data TYpe of your Variable and the one in the Function Module are both the same. Type Mismatch Error Occurs only when the variable assigned to the one in the Function Module do not Match(are not the same). Check with the Debugger in the Runtime Error.

Cheers,

Prashanth

0 Kudos
141

Hi,

both options are not possible the Function modules used here are std function modules therefore i cannot change the type . givng the DATE_1 as YYYYMMDD is not possible, since it is imported into a local variable in my program.

Regards

Naren

0 Kudos
141

Hi manoj

i searched the notes with search criteria

PDOT_DATE_CONVERT and GET_DELIVERY_DATE, but nothing relevant was found, my guess is that their might be method with which i can do the same thing, can you help me out here.

Regards

Naren

0 Kudos
141

Hi Narendiran,

Even i am not able to get the notes .

last think u can do is create Z FM.

Not sure ;try to contact sap for the dump.

Former Member
0 Kudos
141

hi,

I think it is SAP Internal Error . Check for any Notes

Former Member
0 Kudos
141

The parameter DATE_1 and DATE_2 expect the value to be passed as a type of RM06E-EEIND.

Change this declaration and try:

data: t_p_ddat <b>TYPE RM06E-EEIND</b>.

Sudha

athavanraja
Active Contributor
0 Kudos
141

instead of

data: t_p_ddat(10).

use

data: t_p_ddat type RM06E-EEIND .

Regards

Raja

sorry about the double post, Sudha has already given the solution

Message was edited by: Durairaj Athavan Raja