cancel
Showing results for 
Search instead for 
Did you mean: 

Output length for ALV becakground report

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi ,

Any suggestions on this

Thanks