2007 Mar 15 7:26 PM
HI,
IN THE ALV GRID OUT I AM HAVING ONE FIELD CALLED EKET-WEMNG
WHEN I EXECUTE THE REPORT I AM GETTING SOME VALUE FOR THIS FIELD BUT THIS FIELD NEEDS TO BE BLANK IN THE OUT PUT
HOW TO DO THIS
CAN ANYONE GUIDE ME PLZ
SIRI
2007 Mar 15 7:50 PM
First, make the "X" uppercase, if it still doesn't work, try adding this line as well.
fieldcatalog-fieldname = 'WEMNG'.
fieldcatalog-seltext_m = 'QTY RECEIVED'.
fieldcatalog-col_pos = 15 .
fieldcatalog-no_zero = 'X'.
fieldcatalog-datatype = 'QUAN'. "< -
This line
fieldcatalog-REF_TABNAME = 'EKET'.
fieldcatalog-REF_FIELDNAME = 'WEMNG'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
Regards
RIch Heilman
First, make the "X" uppercase, if it still doesn't work, try adding this line as well.
fieldcatalog-fieldname = 'WEMNG'.
fieldcatalog-seltext_m = 'QTY RECEIVED'.
fieldcatalog-col_pos = 15 .
fieldcatalog-no_zero = 'X'.
fieldcatalog-datatype = 'QUAN'. "< -
This line
fieldcatalog-REF_TABNAME = 'EKET'.
fieldcatalog-REF_FIELDNAME = 'WEMNG'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
Regards
RIch Heilman
2007 Mar 15 7:33 PM
2007 Mar 15 7:39 PM
no rich
i did the same even though it is showing me the same
0.0000
how to delete that value i have to put that filed blank
2007 Mar 15 7:44 PM
2007 Mar 15 7:47 PM
ya definetly rich...
here is the int table declaration...
Types: begin of t_ekko,
ebeln type ekko-ebeln,
aedat type ekko-aedat,
ekgrp type ekko-ekgrp,
ekorg type ekko-ekorg,
lifnr type ekko-lifnr,
ebelp type ekpo-ebelp,
menge type ekpo-menge,
meins type ekpo-meins,
matnr type ekpo-matnr,
lgort type mard-lgort,
idnlf type ekpo-idnlf,
TXZ01 type ekpo-TXZ01,
lgpbe type mard-lgpbe,
LGOBE TYPE T001L-LGOBE,
MENGE1 TYPE EKES-MENGE,
<b>wemng type eket-wemng,</b>
end of t_ekKo.
and field catalog for that field is here
fieldcatalog-fieldname = 'WEMNG'.
fieldcatalog-seltext_m = 'QTY RECEIVED'.
fieldcatalog-col_pos = 15 .
fieldcatalog-no_zero = 'x'.
fieldcatalog-REF_TABNAME = 'EKET'.
fieldcatalog-REF_FIELDNAME = 'WEMNG'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
I am getting in the out put 0.000
Thanks alot for your time Rich...
2007 Mar 15 7:47 PM
hi sri
i think we can use this code for ur problem
declare :
data: wa_fieldcat type slis_fieldcat_alv.
read table vt_fieldcat into WA_fieldcat with key fieldname =' '.
if sy-subrc = 0.
WA_fieldcat-reptext_ddic = ' '.
modify vt_fieldcat from WA_fieldcat index sy-tabix.
endif.
2007 Mar 15 7:50 PM
First, make the "X" uppercase, if it still doesn't work, try adding this line as well.
fieldcatalog-fieldname = 'WEMNG'.
fieldcatalog-seltext_m = 'QTY RECEIVED'.
fieldcatalog-col_pos = 15 .
fieldcatalog-no_zero = 'X'.
fieldcatalog-datatype = 'QUAN'. "< -
This line
fieldcatalog-REF_TABNAME = 'EKET'.
fieldcatalog-REF_FIELDNAME = 'WEMNG'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
Regards
RIch Heilman
2007 Mar 15 8:03 PM
solved the problem rich...
but for 0.0000 then it is giving me blank, for some records there r other values also like 5.000 those r not blank
how to do these also blank rich...
2007 Mar 15 8:06 PM
2007 Mar 15 8:16 PM
No rich
its is the same again.. I should not display any value in that field so that client can enter their value in that field so it should be blank not even with 0.
SIRI
2007 Mar 15 8:20 PM
2007 Mar 15 8:28 PM
internal table declare without header line rich
how to clear that value can shoot me a statement plz
2007 Mar 15 8:35 PM
2007 Mar 15 8:42 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |