ALV Outputlen discrepancy
Hi,
I have a problem with the download and printing of an ALV, I have a field in my output table which is 10 chars long (holds the material number). It displays in the grid correctly but if I export it or print it, I only get the first 9 characters.
I used the ALV consistency check (shift + double right mouse click ), this showed that the outputlen field for this column was only 9 characters. Therefore I changed the build of the fieldcat to have an outputlen for this column of 10 characters. Unfortunately this made no difference. The consistency check still shows 9 chars for the output len. I am using REUSE_ALV_GRID_DISPLAY. It's probably something so obvious that I can't see it anywhere, can anyone help.
Many thanks
Steve
Hi,
I have a problem with the download and printing of an ALV, I have a field in my output table which is 10 chars long (holds the material number). It displays in the grid correctly but if I export it or print it, I only get the first 9 characters.
I used the ALV consistency check (shift + double right mouse click ), this showed that the outputlen field for this column was only 9 characters. Therefore I changed the build of the fieldcat to have an outputlen for this column of 10 characters. Unfortunately this made no difference. The consistency check still shows 9 chars for the output len. I am using REUSE_ALV_GRID_DISPLAY. It's probably something so obvious that I can't see it anywhere, can anyone help.
Many thanks
Steve
Hi Steve. If i'm right there are 3 fields in field catalog to set column width:
SELTEXT_L , SELTEXT_S and SELTEXT_M .
If you set SELTEXT_S , then it is short, try to do like this example.
clear Wcat.
...
* WCAT-SELTEXT_L = Txt.
* WCAT-SELTEXT_S = Txt.
WCAT-SELTEXT_M = Txt.
Hi Steve,
I have the exact same problem. I'm using a field to display the material number, I defined it in the field catalog with an output lenght of 18. When the report is displayed on the screen everything is ok, but when I do a print preview, print or save as local file the last character in the material field is lost. The same thing happens to another field, the one I'm using for the customer number. Every other field is O.K.
Did you ever get to solve this?
Those anyone else know what might be happening?
thanks in advace,
CANTU.
Hi Cantu,
I added the following code to resolve this problem in my example:-
ls_fieldcat-ref_fieldname = 'PLNBEZ'.
ls_fieldcat-ref_tabname = 'AFKO'.
This worked for me, hope it helps you, apologies for the delay in responding.
Regards
Steve