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

ALV help

Former Member
0 Likes
404

Hi all,

If i do not give the layout name in selection-screen . The report is giving dump.

Here I am giving the details .Conversion of type "SLIS_T_SPECIALCOL_ALV" to type "C" not supported.

Code:

data : lw_char(50).

field-symbols: <fs> type any.

ASSIGN COMPONENT SY-INDEX OF

STRUCTURE P_IT_ALV_DATA TO <LF

IF SY-SUBRC = 0.

IF SY-INDEX IN R_DISP.

LW_CHAR = <LFS>.----


Error here

CONCATENATE IT_DLFILE-TABLE LW_CHAR I

SEPARATED BY CL_ABAP_CHAR_UTILITIES=>

CONDENSE IT_DLFILE-TABLE NO-GAPS.

ENDIF.

ELSE.

regards,

Ram

Message was edited by:

Akshat

2 REPLIES 2
Read only

Former Member
0 Likes
369

IF SY-INDEX IN R_DISP.

IF <LFS> IS ASSIGNED. " Ins Goutham

LW_CHAR = <LFS>.----


Error here

CONCATENATE IT_DLFILE-TABLE LW_CHAR I

SEPARATED BY CL_ABAP_CHAR_UTILITIES=>

CONDENSE IT_DLFILE-TABLE NO-GAPS.

ENDIF.

ENDIF. "Ins Goutham

my changes are with pointer GOUTHAM. Try this and let me know if it works.

Regards,

Goutham.

Read only

Former Member
0 Likes
369

If it's not entered on the selection screen, then assign a default layout in the program.

Rob