on 10-09-2007 2:54 PM
Hi,
I have a field test in alv output.This program always runs in back ground.
lets say i have one record in internal table
and ITAB-TEST = 'ABCDEFGHIJKLMN'.
wa_fieldcat-outputlen = 10.
In the spool i should only see ABCDEFGHIJ. But for some reason i see entire thing ABCDEFGHIJKLMN
Is there a way to reduce the output length of the field in back groundfor ALV out put
Thanks
Hi,
This length (10 ) you r setting in foreground I mean for display purpose.
But if you run in background it will show whole content of the field.
You can restrict that while putting the data into internal table.
hope this will help.
Reard points if helpful.
-Umesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
design field catalog acooridng to mode of execution....
if sy-batch = 'X'. "background
*--fieldcatalog1
wa_fieldcat-outputlen = 5. " adjust length accordingly
else.
*--fieldcatlog2
wa_fieldcat-outputlen = 10.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ITAB-tEST = 'ABCDEFGHIJKLMN'.
clear wa_fieldcat.
wa_fieldcat-fieldname = 'TEST'.
wa_fieldcat-seltext_l = 'TEST'.
wa_fieldcat-seltext_m = 'TEST'.
wa_fieldcat-seltext_s = 'TEST'.
wa_fieldcat-reptext_ddic = 'TEST'.
wa_fieldcat-ddictxt = 'L'.
wa_fieldcat-col_pos = 7.
if sy-batch eq 'X'.
wa_fieldcat-outputlen = 10.
wa_fieldcat-intlen = 10.
wa_fieldcat-ddic_outputlen = 10.
else.
wa_fieldcat-outputlen = 20.
wa_fieldcat-intlen = 20.
wa_fieldcat-ddic_outputlen = 20.
ENDIF.
append wa_fieldcat to fieldcat.
mu o/p in back ground is ABCDEFGHIJKLMN even though it should be ABCDEFGHIJ
Let me know
Thanks
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.