
If you want to adjust the width for Dynpros generated by the table maintenance generator, follow this guide.
You might want to provide a different source for the dynpro width, e. g. a customizing table or even a fixed value.
Code snippet for CREATE_DYNP_HEADER enhancement:
DATA lv_dynpro_gen_width(3) TYPE c.
" By default dynpros are limitted to a width of 83 characters.
" Modern screens are larger, so we can extend the max. width.
" The width is determined by user parameter Z_DYNPRO_GEN_WIDTH.
GET PARAMETER ID 'Z_DYNPRO_GEN_WIDTH' FIELD lv_dynpro_gen_width.
IF sy-subrc = 0.
p_header-columns = CONV #( lv_dynpro_gen_width ).
ENDIF.
Code snippet for CREATE_DYNP_CONT enhancement:
IF p_mode = '11'.
READ TABLE p_cont ASSIGNING <w_cont> WITH KEY
type = rpyty_dynp_ctype-table_control name = cont_name.
IF sy-subrc <> 0. rc = sy-subrc. EXIT. ENDIF.
DATA lv_dynpro_gen_width(3) TYPE c.
" By default dynpros are limitted to a width of 83 characters.
" Modern screens are larger, so we can extend the max. width.
" The width is determined by user parameter Z_DYNPRO_GEN_WIDTH.
GET PARAMETER ID 'Z_DYNPRO_GEN_WIDTH' FIELD lv_dynpro_gen_width.
IF sy-subrc = 0.
<w_cont>-length = CONV #( lv_dynpro_gen_width ).
ENDIF.
ENDIF.
Enjoy! Feedback is welcome.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
3 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |