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

error in background job

Hi,

When i run a report. It runs fine. but when i try to run it in backgroound, it throws this error."OBJECTS_NOT_CHARLIKE".

At the statment

"STRLEN( obj )..."

, only character-type data objects are supported at the argument

position "obj".

In this particular case, the operand "obj" has the non-charcter-type type

"I".

kindly help me out

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 Sep 22, 2008 at 11:30 AM

    Move obj in other variable which is of type c and pass this second variable to strlen function.

    DATA obj1(50).

    obj1 = obj.

    strlen (obj1).

    Regards,

    Aparna Gaikwad

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 11:35 AM

    Hi......

    After u have executed ur batch job..

    go to sm37 >>select ur job using checkbox>>enter 'JDBG' in transaction box and press enter

    now debugger will start ..initial it will go through system code..after after a while the debugger will reach to your code and den you can debug the remaining report....

    i am sure in debugg mode you can check for the values and can find a solution.

    regards

    vivek

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 11:35 AM

    Generally in ABAP when you are checking for string length the field should be of character type. As the field specified by you is not of char type it throws an error message...

    May be you can do this way...Declare a variable of type C. move the data to this variable and check the STRLEN of this field...

    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.