‎2010 Sep 29 9:05 AM
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
‎2010 Sep 29 9:16 AM
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
‎2010 Sep 29 9:16 AM
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
‎2010 Sep 29 9:48 AM
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
‎2010 Sep 29 10:04 AM
Hi,
Make sure the fields which are there in your final internal table are passed correctly to the fieldcatalog..Please cross check.
Regards,
Nagaraj
‎2010 Sep 29 10:14 AM
Hi,
I checked as per suggestion. But still the issue not reolved.
‎2010 Sep 29 10:18 AM
‎2010 Sep 29 11:07 AM
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.
‎2010 Sep 29 12:04 PM
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
‎2010 Sep 29 12:15 PM
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
‎2010 Sep 29 9:59 AM
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