07-14-2007 10:17 AM
Hello friends,
I have developed an ALV report and desplaying it using
'REUSE_ALV_GRID_DISPLAY, function module .While downloading the output list into excel format I am geeting an error "The current statement only supports character-type data objects.
Error Analysis-
In statement
"STRLEN( obj )..."
the argument "obj" can only take a character-type data object.
In this case, the operand "obj" has the non-character type "P".
I have set the import parameter i_save values as 'A'
But still not able to download and facing the same error.
Please help me out ....
Thanking you....
Regards,
Rajesh Akarte
Message was edited by:
Rajesh Akarte
07-16-2007 6:46 AM
Hi Rajesh,
What is happening is that the Program as per the logic written istrying to find out the length of the string by using STRLEN. But since the data passed is of type P, hence this dump.
What u can do is goto Transaction ST22 and see the dumps for today under ur ID. See the place where it is giving dump. There will be an arrow kind of thing which will be showing the location of error.
Regards,
Himanshu
07-16-2007 6:55 AM
HI Himanshu,
I have changed the datatype of type p as c in internal but still it is giving me the error.The error is in standard program while downloading the ALV o/p in excel.I am clicking on the local file button on application bar to download it into excel file.
Here i am sending the internal table declaration which I am using for display.
DATA:BEGIN OF t_displaytab OCCURS 0,
vbeln LIKE zsdldtable-vbeln,
posnr LIKE zsdldtable-posnr,
etenr LIKE zsdldtable-etenr,
edatu LIKE zsdldtable-edatu,
wmeng LIKE zsdldtable-wmeng,
scdate LIKE zsdldtable-scdate,
rfmng LIKE zsdldtable-rfmng,
bstdk LIKE zsdldtable-bstdk,
wordt LIKE zsdldtable-wordt,
dwsdt LIKE zsdldtable-dwsdt,
fcddt LIKE zsdldtable-fcddt,
scddt LIKE zsdldtable-scddt,
faddt LIKE zsdldtable-faddt,
drmdt LIKE zsdldtable-drmdt,
adamt LIKE zsdldtable-adamt,
ddwdt(4) TYPE c, "Difference between works order release date and drawing submission date
dsdadt(4) TYPE c, "Difference between drawing submission date and final drawing customer approval date
pterms(250) TYPE C,
END OF t_displaytab,
Regards,
Rajesh
07-16-2007 6:58 AM
Have u seen the short dump.
Cud u plz send me the lines of code where exactly the dump is being given. If possible, then just copy paste the code from ST22, where that arrow is given.
Regards,
Himanshu
07-16-2007 7:08 AM
Hi,
following is the dump code..Is there any problem due to date and currency fields..?
Error in ABAP application program.
The current ABAP program "SAPLKKBL " had to be terminated because one of the
statements could not be executed.
038350 endif.
038360 gs_out-hlplen = strlen( gs_out-hlpchar ).
038370 elseif gs_fc-tech_form = 11. "INS TECH
038380 * Min. Ausgabelänge für ein Datum ist immer 8
038390 if gs_fc-datatype = 'DATS'. "INS TECH
038400 gs_out-hlplen = 8. "INS TECH
038410 * Min. Ausgabelänge für eine Uhrzeit ist immer 6
038420 elseif gs_fc-datatype = 'TIMS'. "INS TECH
038430 gs_out-hlplen = 6. "INS TECH
038440 endif. "INS TECH
038450 elseif gs_fc-tech_form = 1 or gs_fc-tech_form = 90.
038460 * Überführung int. in ext. Format via Konvertierungsexit
038470 if not gs_fc-convexit is initial or "INS TECH
038480 not gs_fc-inttype ca 'CN'.
038490 * elseif not gs_fc-convexit is initial. "DEL TECH11
038500 write Y9CK034230