Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded