2006 Jul 25 8:03 AM
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
2006 Jul 25 8:08 AM
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
2006 Jul 25 8:18 AM
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
2006 Jul 25 8:22 AM
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
2006 Jul 25 8:33 AM
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.
2006 Jul 25 8:11 AM
2006 Jul 25 8:33 AM
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
2006 Jul 25 8:53 AM
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