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

Regarding Dump

Former Member
0 Likes
905

Hi experts,

please give me solution for following dump very urgently.

we have developed Zreport working properly.but when clicked on Print preview(CtrlshiftF10) giving

Dump

Error analysis

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

"P".

OBJECTS_NOT_CHARLIKE" "

SAPLKKBL" or "LKKBLF99"

GEN_FIELD_OUT2"

Regards

K.shohba

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
839

Hi Shobha,

Declare the variable obj of type c.

eg.

data : obj(20) type c.

Best regards,

Prashant

5 REPLIES 5
Read only

Former Member
0 Likes
840

Hi Shobha,

Declare the variable obj of type c.

eg.

data : obj(20) type c.

Best regards,

Prashant

Read only

0 Likes
839

Dear Prashant.

Thanks for helping

solved my problem.

regards,

K.shobha

Read only

Former Member
0 Likes
839

Hi shobha,

This is because the function STRLEN only works with character type data objects ( C, N, D, T) , here you are trying to find length of a object of type P, so declare a variable;

Data obj_chr(15) type c.

and before finding length transfer obj into obj char as;

Write obj to obj_char decimals 2.

Now use;

len = STRLEN( obj_char ).

This should work.

If u have any doubts revert back.

Regards

Karthik D

Read only

0 Likes
839

Dear Karthik D.

Thanks for helping

solved my problem.

regards,

K.shobha

Read only

Former Member
0 Likes
839

Yes Shoba,

Declar e that variable of char type....generally STRLEN command uses characters to define length...

Thanks

Cool