Application Development and Automation 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: 
Read only

type mismatch!!

Former Member
0 Likes
644

Hi ,

I have a field 12:00 passed into string and then i need to pass this string to some bapi field which is having type as INT4 , if i try to assign to it some local variable of type INT4 it throws dump saying unable to interpret 12:00 as number...

Any pointer...?

Regards,

Gunjan

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
599

Get rid of the :


data: str type string.
data: int type i.

Translate str using ': '.
condense str no-gaps.


int = str.

Regards

RIch Heilman

Read only

Former Member
0 Likes
599

Hi,

This wud definately show the error because ':' is not a number. So you may take a char variable and then pack this variable to an int variable. This may help.

Can u make it clear what is this 12:00? Is it a fieldname, fieldvalue or wat?

Regards,

Harsha

Read only

Former Member
0 Likes
599

hi,,

data: str type string.

data: int type i.

Translate str using ' : '.

condense str no-gaps.

int = str.

if helpful reward some points.

with regards,

suresh babu aluri.

Read only

0 Likes
599

it doesn't seem to work..its just that i want to assign a string to INT4 variable...