2008 Sep 22 12:27 PM
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
2008 Sep 22 12:30 PM
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
2008 Sep 22 12:35 PM
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
2008 Sep 22 12:35 PM
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...