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

Dump while saving ALV output

Former Member
0 Likes
1,509

Hi All,

I have developed an ALV report by OOPS method. After displaying the report when I want save as local file, it dumps. Anyone received this type of dump.

Dump decription:

The current statement requires a character-type data object.

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

Please help.

Regards,

Jeetu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,209

Hello,

First of all, have you written your own code to save data into a local file. If yes, then In your code, have you anywhere used STRLEN statement. If yes, then please check that the variable passed in the STRLEN statement should be of a character/string type and not of any other type.

Hope this helps.

Regards,

Himanshu

9 REPLIES 9
Read only

Former Member
0 Likes
1,210

Hello,

First of all, have you written your own code to save data into a local file. If yes, then In your code, have you anywhere used STRLEN statement. If yes, then please check that the variable passed in the STRLEN statement should be of a character/string type and not of any other type.

Hope this helps.

Regards,

Himanshu

Read only

0 Likes
1,209

Hi,

I have not written any custom code for file saving. I want this to be done by standard method.

In the application toolbar there any many option comes for ALV automaticaally like ascending, descending etc.

Regards,

Jeetu

Read only

0 Likes
1,209

Hi,

Make sure the fields which are there in your final internal table are passed correctly to the fieldcatalog..Please cross check.

Regards,

Nagaraj

Read only

0 Likes
1,209

Hi,

I checked as per suggestion. But still the issue not reolved.

Read only

0 Likes
1,209

Hi,

Check this link ..Might be useful.

Regards,

Nagaraj

Read only

0 Likes
1,209

Hi,

In my report there are three amount field are being displayed. Is there anything separate i need to include in field catalog for these fields. Becasue I tried with fcat-inttype = 'P' for thse amount fields I am still getting the dump. But now the dump has been changed.

Runtime Errors GETWA_NOT_ASSIGNED

Field symbol has not yet been assigned.

Error analysis

You attempted to access an unassigned field symbol

(data segment 116).

This error may occur if

- You address a typed field symbol before it has been set with

ASSIGN

- You address a field symbol that pointed to the line of an

internal table that was deleted

- You address a field symbol that was previously reset using

UNASSIGN or that pointed to a local field that no

longer exists

- You address a global function interface, although the

respective function module is not active - that is, is

not in the list of active calls. The list of active calls

can be taken from this short dump.

Read only

0 Likes
1,209

Hi All,

Dump issue was resolved becasue I supplied inttype = 'P' for all the amount field.

But now I have different dump. I have alltogether 25 fields to be displayed.

If I do not include the 25 field then I do not get dump but the momnet I include 25th field I am getting the dump.

CLEAR lwa_fcat.

lwa_fcat-col_pos = 25.

lwa_fcat-fieldname = 'MWSKE'.

lwa_fcat-coltext = 'Tax Code'.

lwa_fcat-ref_table = 'GI_OUTPUT'.

APPEND lwa_fcat TO p_lit_fcat.

It is quite strange. any thought?

Regards,

Jeetu

Read only

0 Likes
1,209

Hi,

I think you are not passing tabname in the field catalog..Please try this and see.assuming GI_OUTPUT is your final internal table you are using for ALV display. also make sure this field is there in your final internal table.



CLEAR lwa_fcat.
lwa_fcat-col_pos = 25.
lwa_fact-tabname = 'GI_OUTPUT'
lwa_fcat-fieldname = 'MWSKE'.
lwa_fcat-coltext = 'Tax Code'.
APPEND lwa_fcat TO p_lit_fcat.

Regards,

Nagaraj

Read only

Former Member
0 Likes
1,209

Hi Jeetu,

probably this might be one reason,

check your final itab which you are passing to ALV function module.

make sure all the field names are correct , bcoz some time O may be typed as zero and vice versa,

so ensure every field name is correct while declaring them.

Regards,

Aby