on 04-18-2013 8:49 AM
Hello,
how can I influence the with of the listed columns in the transaction LP24? Some of the values are longer than the column width and not shown completely.
best regards
Andreas
Hi Andreas,
it looks like the column with optimization truncates quantity fields which content length depend on a unit at runtime.
To get a workaround:
Create an implicit enhancement at end of this form and add code
CLEAR: XS_LAYOUT-COLWIDTH_OPTIMIZE
This disables CW optimize it and it looks fine then.
You can check it in debugger with your values by clearing this field before you code it.
Regards,
Matthias
*&---------------------------------------------------------------------*
*& Form SET_LAYOUT_ALV
*&---------------------------------------------------------------------*
* Subroutine to set the layout for ALV
*----------------------------------------------------------------------
* <--XS_LAYOUT
*----------------------------------------------------------------------*
FORM SET_LAYOUT_ALV CHANGING XS_LAYOUT TYPE SLIS_LAYOUT_ALV.
XS_LAYOUT-COLWIDTH_OPTIMIZE = GC_X.
XS_LAYOUT-COLTAB_FIELDNAME = GC_CELL_COLOR.
XS_LAYOUT-BOX_FIELDNAME = 'SELKZ'. "n_1417181
* !!!!!! Create enhancement here
ENDFORM. " SET_LAYOUT_ALV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
it's a new sap note available, now. Please see # 1865731
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
the note is good for LP24 but I would think it is a issue in ALV calculating the column width, because removing the QUANTITY attribute in LP24's fieldcatalog may influence the format of shown data which may bad for other users. So we will see if this note remains unchanged over time ...
Matthias
Cheers, I have read the answer from Matthias - so will give that a try - I posted my last question before that response but for some reason took 5 days to get moderator approved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would also like to know this - as it seems to only use the Base Unit of Measure and this means the numbers are so big they don't display. But this means that it looks like the Req. qty looks like is 000 - luckily as it is highlighted in red I know that means it does require replenishment.
So this is what my data looks like - so materials 300011, 300014 and 300016 require replenishment.
Stor. Bin Material Bin/TR qty Req. qty S BUn Msg.No.
300011 54000.000 *000.000 X EA
300013 182500.000 0.000 EA
300014 0.000 *000.000 X EA
300016 85500.000 *000.000 X EA
If I can't change the width of the columns is there anyway to display in a different unit of measure? WM for example.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.