Skip to Content
author's profile photo Former Member
Former Member

type mismatch!!

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2007 at 12:03 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 29, 2007 at 11:46 AM

    Get rid of the :

    data: str type string.
    data: int type i.
    
    Translate str using ': '.
    condense str no-gaps.
    
    
    int = str.
    

    Regards

    RIch Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2007 at 12:06 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.