2009 Sep 30 7:42 PM
Helllo,
I have an ALV report on two different systems. However, in one system when you do a Print Preview the amount field is OK, but in the other, it is truncated with a leading asterisk '*'. I did a code compare and the program is the same between the two systems. What could be causing this problem?
Regards, Dean.
Helllo,
I have an ALV report on two different systems. However, in one system when you do a Print Preview the amount field is OK, but in the other, it is truncated with a leading asterisk '*'. I did a code compare and the program is the same between the two systems. What could be causing this problem?
Regards, Dean.
2009 Sep 30 7:45 PM
Could be a layout issue. Check out the fields in layout i mean compare in both systems
2009 Sep 30 8:02 PM
Good point..... However, the column next to it is defined the same with nearly the same value and it does not truncate that data....
inpcfa LIKE j_1ainfv24-j_1ainddva, "INPC fecha adquisición
inpcac LIKE j_1ainfv24-j_1ainddva, "INPC actual
Thank you for the reply.
2009 Sep 30 8:05 PM
check the printer with the basis guys.
by the way, how is the field catalog for those two fields?
2009 Sep 30 8:09 PM
In both systems, I do not have an Output Device defined in Defaults in Own Data.
2009 Sep 30 8:11 PM
2009 Sep 30 8:25 PM
are you using same printer and same logical printer setting in both system?
check the printers in SPAD tcode
2009 Sep 30 8:31 PM
Are you asking me to look at 'Display SAPPARAM'? If so, which setting? Other than that I have nothing defined in the initial screen of SPAD in both systems.
2009 Sep 30 8:33 PM
for a print preview you must be giving a printer name, right? check the settings on that printers in SPAD
ask basis guys to check
2009 Sep 30 8:36 PM
Nope.... this is the ALV Print Preview which produces an ABAP List version of the ALV Grid Report.
2009 Sep 30 8:00 PM
could also be the char code supported n both system,
can also be a printer issue,try changing the printer setting(or other printer) and check.
2009 Sep 30 8:06 PM
What do you mean by character code supported in both systems? Also, I forgot to mention that the truncation also happens when saving as spreadsheet to a file in the one system, but in the other it works fine.
Thank you for your reply.
2009 Sep 30 8:08 PM
will come to character code...
but can you please show the fieldcatalog for the fields in two systems?
2009 Sep 30 8:11 PM
This is the field catalog in both systems...
DATA: BEGIN OF it_alv_structure,
mandt LIKE anla-mandt, "Mandante
Company code
bukrs LIKE anla-bukrs, "Sociedad
Main asset number
anln1 LIKE anla-anln1, "Número de Activo
Asset sub-number
anln2 LIKE anla-anln2, "Subnumero
Asset class
anlkl LIKE anla-anlkl, "Clase
Asset description
txt50 LIKE anla-txt50, "Descripción
Fiscal year in which first acquisition was posted
zujhr LIKE anla-zujhr, "Año de capitalización
Period in which first acquisition was posted
zuper LIKE anla-zuper, "Mes de capitalización
Original acquisition value
urwrt LIKE anla-urwrt, "Valor de adquisición original
Non deductible part (Field used: Base insurable value)
vrsba LIKE anlv-vrsba, "Parte no deducible
Calculation: Deductible Acquisition Value
vadqded LIKE bseg-dmbtr, "Valor de adquisición deducible
Historic Acceler Tax Deprec 1995-97 (@ Manual insurable value)
vrsma LIKE anlv-vrsma, "Deprec aceler hist años 1995-97
Calculation: Remaining deductible value
vdedrem LIKE bseg-dmbtr, "Valor deducible remanente
Calculation: Older year of acquisition
anref LIKE anla-zujhr, "Año referencia deprec año cálc
Planned useful life in years
ndjar LIKE anlb-ndjar, "Vida útil prevista en años
Planned useful life in periods
ndper LIKE anlb-ndper, "Vida útil planificada en períod
Additional field. Calculation. Annual depreciation tax rate
adtxr(3) TYPE n, "Tasa d deducción anual por clase
DATA: INPC at acquisition date
inpcfa LIKE j_1ainfv24-j_1ainddva, "INPC fecha adquisición
DATA: INPC up to date
inpcac LIKE j_1ainfv24-j_1ainddva, "INPC actual
Calculation: Update factor
fact1 TYPE p DECIMALS 4,"Factor de actualización
Calculation: Cumulative Depreciation as of Dec 31,prior year ISR
dacisr LIKE bseg-dmbtr, "Deprec acum 31 dic año ant ISR
Calculation: Remaining asset value as of Dec 31, prior year ISR
vraaisr LIKE bseg-dmbtr, "Val reman 31 dic año ant ISR
Calculation: Annual Historic Depreciation ISR
dahisr LIKE bseg-dmbtr, "Depreciación anual histórica ISR
Calculation: Annual Updated Depreciation ISR
daaisr LIKE bseg-dmbtr, "Depreciación anual actualiz ISR
Accelerated depreciation Tax rate (used:Insurance policy number)
vsstx LIKE anlv-vsstx, "Tasa de depreciación acelerada
Calculation: Historic Accelerated Depreciation
dacehis LIKE bseg-dmbtr, "Depreciación acelerada hist
Calculation: Updated Accelerated Depreciation
daceact LIKE bseg-dmbtr, "Depreciación acelerada act
Calculation: Control data
dcontr LIKE bseg-dmbtr, "Dato de control
Calculation: Remaining asset value as of Dec 31, current yearISR
vracisr LIKE bseg-dmbtr, "Val reman 31 dic año cálc ISR
Calculation: INPC December current year
vinpcdic LIKE bseg-dmbtr, "INPC Diciembre año de cálculo
Calculation: Updating Factor
fact2 TYPE p DECIMALS 4,"Factor de actualización.
Calc: Updated remaining asset value Dec 31, current year ISR
vracaisr LIKE bseg-dmbtr, "Valor reman 31 de dic act ISR
Updated Remaining asset value as of Dec 31, prior year ISR
uravaaisr LIKE bseg-dmbtr, "Valor reman 31DicAnter Actualiz ISR
Historic Acceler Tax Deprec 2002+ (@Manual net worth tax value)
wrtma LIKE anla-wrtma, "Depreciac acelerada hist 2002+
Deactivation date
deakt LIKE anla-deakt, "Fe.descapitalización
Deactivation year
deaka LIKE anla-zujhr, "Año de baja
Deactivation month
deakm LIKE anla-zuper, "Mes de baja
Sale price (invoice)
price LIKE anep-anbtr, "Precio de venta (factura)
Calc: Gain
gainisr LIKE bseg-dmbtr, "Ganancia ISR
Calc: Loss
lossisr LIKE bseg-dmbtr, "Pérdida ISR
Text.
sgtxt LIKE bseg-sgtxt, "Texto de posición
Passed years between acquisition and deactivation
atransc LIKE anla-zujhr, "Años transcurridos Adquisic y baja
Immediate depreciation rate
depinm TYPE znat02, "Tasa de depreciación inmediata
END OF it_alv_structure.
2009 Sep 30 8:14 PM
2009 Sep 30 8:16 PM
Wouldn't let me edit.....
DATA: BEGIN OF it_alv_structure,
mandt LIKE anla-mandt,
bukrs LIKE anla-bukrs,
anln1 LIKE anla-anln1,
anln2 LIKE anla-anln2,
anlkl LIKE anla-anlkl,
txt50 LIKE anla-txt50,
zujhr LIKE anla-zujhr,
zuper LIKE anla-zuper,
urwrt LIKE anla-urwrt,
vrsba LIKE anlv-vrsba,
vadqded LIKE bseg-dmbtr,
vrsma LIKE anlv-vrsma,
vdedrem LIKE bseg-dmbtr,
anref LIKE anla-zujhr,
ndjar LIKE anlb-ndjar,
ndper LIKE anlb-ndper,
adtxr(3) TYPE n,
inpcfa LIKE j_1ainfv24-j_1ainddva,
inpcac LIKE j_1ainfv24-j_1ainddva,
fact1 TYPE p DECIMALS 4,
dacisr LIKE bseg-dmbtr,
vraaisr LIKE bseg-dmbtr,
dahisr LIKE bseg-dmbtr,
daaisr LIKE bseg-dmbtr,
vsstx LIKE anlv-vsstx,
dacehis LIKE bseg-dmbtr,
daceact LIKE bseg-dmbtr,
dcontr LIKE bseg-dmbtr,
vracisr LIKE bseg-dmbtr,
vinpcdic LIKE bseg-dmbtr,
fact2 TYPE p DECIMALS 4,
vracaisr LIKE bseg-dmbtr,
uravaaisr LIKE bseg-dmbtr,
wrtma LIKE anla-wrtma,
deakt LIKE anla-deakt,
deaka LIKE anla-zujhr,
deakm LIKE anla-zuper,
price LIKE anep-anbtr,
gainisr LIKE bseg-dmbtr,
lossisr LIKE bseg-dmbtr,
sgtxt LIKE bseg-sgtxt,
atransc LIKE anla-zujhr,
depinm TYPE znat02,
END OF it_alv_structure.
Edited by: Dean Hinson on Sep 30, 2009 9:18 PM
Edited by: Dean Hinson on Sep 30, 2009 9:21 PM
2009 Oct 01 6:38 PM
Seems to be a Basis Kernel issue. I am openeing an OSS Message to SAP.
2011 Jul 19 10:38 AM
Hi,
I have the same problem. I solved it by giving the value to ref_fieldname and ref_tabname of field catalog.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |