Posted: Fri Jul 17, 2009 4:35 pm Post subject: Название колонок в alv-grid
Здравствуйте!
Подскажите пожалуйста как можно расширить поле в alv-grid до ширины названия поля.
Пробовал таким образом:
Data: z_width1(20) Type C. CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'NUMDOC'.
ls_fieldcat-ref_fieldname = 'NUMDOC'.
ls_fieldcat-ref_tabname = 'NUMDOC'. ls_fieldcat-datatype = 'Z_WIDTH1'. ls_fieldcat-seltext_l = 'Номер документа'.
ls_fieldcat-seltext_m = 'Номер документа'.
ls_fieldcat-seltext_s = 'Номер документа'.
ls_fieldcat-reptext_ddic = 'Номер документа'. ls_fieldcat-outputlen = '20'. APPEND ls_fieldcat TO lt_fieldcat.
Age: 48 Joined: 25 Jan 2008 Posts: 580 Location: Москва
Posted: Sat Jul 18, 2009 1:15 pm Post subject:
1.Посмотите, не включена ли оптимизация столбцов в LAYOUT: поле CWIDTH_OPT = 'X'
2.Проверьте, нет ли среди вариантов ALV варианта по умолчанию. _________________ С уважением,
Удав.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.