Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem with fieldcat

Former Member
0 Likes
619

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

it_fieldcat = alv_fldcat

TABLES

t_outtab = <dyn_table>.

in alv_fldcat i see the title all of it

and in the screen i se only part why?

6 REPLIES 6
Read only

Former Member
0 Likes
589

Please check the parameter <b>outputlen</b> for the fieldcat. the length specified there should be as long as the title

Read only

Former Member
0 Likes
589

There are headings of three different lengths that you can specify in the field catalog. Depending on the display width of the column, appropriate heading will be displayed.

the fields will be scrtext_m, scrtext_s and scrtext_l.

Regards,

Ravi

Read only

0 Likes
589

As Ravi explained, you can fill your column descriptions in the field catalog fields SCRTEXT_M, SCRTEXT_S, and SCRTEXT_L and then you can pick which one you want to show up in the ALV grid by setting DDICTXT field to 'L', 'M', or 'S'.

Read only

sridhar_k1
Active Contributor
0 Likes
589

Try settings->columns->optimize width, if it shows full title

Set Is_layout-colwidth_optimize to X.

Regards

Sridhar

Read only

Former Member
0 Likes
589

Hi liat,

since it is ALV GRID so that is not a problem , you can strech the columns ,use the expander in between the columns and stretch it.if you expand you can see full text.but it is not possible with alv list.in your case you can see the full text by expanding columns.

Regards

vijay

Read only

Former Member
0 Likes
589

HI

GOOD

CHECK WITH THE SYNTAX GIVEN HERE AND YOUR CODE

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

i_bypassing_buffer = 'X'

i_buffer_active = ' '

i_callback_program = ....

GO THROUGH THIS LINK

http://www.sap-img.com/abap/alv-grid.htm

&----


*& Report ZALV_GRID_SAMPLE *

*& *

&----


*& DISLAYS FIRST 10 RECORDS OF VBAK TABLE IN A GRID *

*& *

&----


REPORT ZALV_GRID_SAMPLE .

TABLES VBAK.

DATA it_vbak LIKE VBAK OCCURS 0 WITH HEADER LINE.

SELECT *FROM VBAK

INTO CORRESPONDING FIELDS OF TABLE it_vbak

UP TO 10 ROWS.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_STRUCTURE_NAME = 'VBAK'

I_GRID_TITLE = 'SALES ORDER INFO'

TABLES

T_OUTTAB = it_vbak

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2

.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

THANKS

MRUTYUN