2007 Jan 04 4:58 AM
Hi,
When i'm executing the report in background it is displayed in a ALV list, problem is in some coloumns( mainly qty's) the first few digits are not being displayed .. Ex (*65000.) where it should be 3565000
gd_layout-colwidth_optimize = ''.
I want to fix the columns lengths. Some coloumns work fine. bt qty columns though written as fieldcatalog-outputlen = 25., only arnd 8 digits r displayed in report.. Any idea y???
Field catalog is written as follows.
fieldcatalog-fieldname = 'DMENGE'.
fieldcatalog-seltext_m = 'PO QTY'.
fieldcatalog-col_pos = 8.
fieldcatalog-outputlen = 25.
fieldcatalog-no_zero = 'X'.
fieldcatalog-edit = ''.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
Hi,
When i'm executing the report in background it is displayed in a ALV list, problem is in some coloumns( mainly qty's) the first few digits are not being displayed .. Ex (*65000.) where it should be 3565000
gd_layout-colwidth_optimize = ''.
I want to fix the columns lengths. Some coloumns work fine. bt qty columns though written as fieldcatalog-outputlen = 25., only arnd 8 digits r displayed in report.. Any idea y???
Field catalog is written as follows.
fieldcatalog-fieldname = 'DMENGE'.
fieldcatalog-seltext_m = 'PO QTY'.
fieldcatalog-col_pos = 8.
fieldcatalog-outputlen = 25.
fieldcatalog-no_zero = 'X'.
fieldcatalog-edit = ''.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
2007 Jan 04 5:02 AM
Might be the widht of the output format u r giving is too short,
Increase the width of the output format and execute, hope this may solve ur problem.
Regards,
Sujatha.
2007 Jan 04 5:03 AM
U mean the line size? thrs enough width coz theres even blank space displayed on da right hand corner of the report
2007 Jan 04 5:03 AM
Hi
Use the following code. This should solve the problem.
CONSTANTS: c_x TYPE c VALUE 'X'.
DATA: gs_layout TYPE slis_layout_alv.
FORM layout_build USING ls_layout TYPE slis_layout_alv.
ls_layout-colwidth_optimize = c_x.
ENDFORM. "layout_build
PERFORM layout_build USING gs_layout.
PLZ REWARD POINTS IF HELPFUL.
null
2007 Jan 04 5:03 AM
Hi,
In layout set this
I_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
Rgds,
Prakash
2007 Jan 04 5:07 AM
gd_layout-colwidth_optimize = ''.
I want to fix the coloumn length, so the statement given by u cnnot be used. If i use that in background last few columns are not been displayed.
2007 Jan 04 5:07 AM
Hi Keshini,
Just try to populate reference table name and reference field name.
Regards
Ashutosh
Reward points if helpful
2007 Jan 04 5:10 AM
Can u explain a bit more.. In my internal table for PO qty i have used,
dmenge LIKE mseg-menge, "Deliverd Quantity
Where exactly do u want me to specify the reference tables?
Thanks ..
Keshi
2007 Jan 04 5:10 AM
HI Keshini
Plz use the code I have given above (by Vijay V Kamath)...This will solve the problem.
Reward points if helpful
2007 Jan 04 5:27 AM
Hi Thanks for ur reply..
But the problem is since i'm running the report in back ground if i use the code given by u, last few coloumns of the report will nt be displayed.. I tried it out..
So.. I neeeeeeed to fix the coloumn lenght,, problem is for some it is nottaking the length given by outputlen command in field catalog..
Any help?
Thanks
2007 Jan 04 5:10 AM
Hi,
fieldcatalog-SCRTEXT_L = 'Purchase Order Quantity'.
I think the output is 6 digits b'coz the PO qty is 6 digits.
I am not sure.Just try this.
2007 Jan 04 5:16 AM
Thanks for the reply.. No this doesn't work as well. Tried it just now
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |