Application Development 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: 

Regarding Dump

Former Member
0 Kudos

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

former_member223537
Active Contributor
0 Kudos

Hi Shobha,

Declare the variable obj of type c.

eg.

data : obj(20) type c.

Best regards,

Prashant

5 REPLIES 5

former_member223537
Active Contributor
0 Kudos

Hi Shobha,

Declare the variable obj of type c.

eg.

data : obj(20) type c.

Best regards,

Prashant

0 Kudos

Dear Prashant.

Thanks for helping

solved my problem.

regards,

K.shobha

Former Member
0 Kudos

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

0 Kudos

Dear Karthik D.

Thanks for helping

solved my problem.

regards,

K.shobha

Former Member
0 Kudos

Yes Shoba,

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

Thanks

Cool