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 Layout error

Former Member
0 Likes
498

Hi,

I have standard report KSB2, and added some fields, these fields are not displayed on the report and giving short dump when tried to select them ( Change Layout Button)

I am using

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = c_field_structure

i_client_never_display = 'X'

CHANGING

ct_fieldcat = ct_default_fieldcat.

Short dump:

a termination with a short dump was

triggered on purpose by the key word MESSAGE (type X).

"MESSAGE_TYPE_X"

"SAPLSLVC " or "LSLVCF01 "

"LINE_OUT_NEW_2"

The termination occurred in the ABAP/4 program "SAPLSLVC " in

"LINE_OUT_NEW_2".

The main program was "Zxxx_CO_xxx ".

The termination occurred in line 923

of the source code of program "LSLVCF01 " (when calling the editor 9230).

Thanks

jog

2 REPLIES 2
Read only

anversha_s
Active Contributor
0 Likes
438

hi jog,

  • Building a fieldcatalog based on a dictionary structure/table

  • This Method requires you to create a dictionary *structure via

  • SE11 and pass that in the 'I_STRUCTURE_NAME' parameter.

  • In the below code i created a structure EKKO. in that *structure it containing only the fields you require.

*For Function module ALV (report)

DATA: it_fieldcat TYPE slis_t_fieldcat_alv,

wa_fieldcat LIKE LINE OF it_fieldcat.

CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = 'EKKO'

CHANGING

ct_fieldcat = it_fieldcat

EXCEPTIONS

inconsistent_interface = 1

program_error = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

kindly note that 'EKKO' is in capital letters and quotes

for any clarifiaction pls mail me.

pls reward points, if this helped u.

regards,

anversha.

anversha.shahul@wipro.com

Read only

Former Member
0 Likes
438

Message type 'X' is 'ABORT WITH SHORT DUMP'.

The behaviour is on the expected lines. Change the message class. to W or E.