Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8491

Issue with Variable types.

$
0
0

Hello, this is regarding a virtual keyfigure program that I am trying to write but having many many issues.  I am trying to use 0DOC_DATE field in a function module '/SDF/CMO_DATETIME_DIFFERENCE' but getting some error like

 

"a field may have been assigned to the parameter DATE1 whose type is not compatible with"

 

If I declare my variable as CHAR, then I am able to assign the values to it but then i get this message.

 

If I declare my variable as SY-DATUM then I am not able to assign what is in 0DOC_DATE to the variable.

 

If I decare my variable as D then I am not able to assign what is in 0DOC_DATE to the variable.

 

so it seems only CHAR works when it is about assigning values but then function module wouldn't accept it.

 

Can someone tell me who has used this function modue how to resolve it?

 

Thanks.


Viewing all articles
Browse latest Browse all 8491

Trending Articles