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

error in background job

Former Member
0 Likes
653

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

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

3 REPLIES 3
Read only

Former Member
0 Likes
569

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

Read only

Former Member
0 Likes
569

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

Read only

Former Member
0 Likes
569

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...