Application Development 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: 

List Variant overrides User-Exit

Former Member
0 Kudos
108

Hello,

I want to configure the output list of IW38, which uses an ALV Grid. Therefore I call the User Exit for ALVs IWOC0004.

After changing concrete variables (Layout, Fieldcat table), everything works fine. But when I use a Variant (field "Layout" at the end block of the Selection Screen), all user exit changes are gone (overriden by the variant).

What could I do to solve this?

Thank you,

Ivson

3 REPLIES 3

madhu_vadlamani
Active Contributor
0 Kudos
62

HI Ivson,

Can you paste your code.

Regards,

Madhu.

0 Kudos
62

&----


*& Include ZXCSVU09 *

&----


field-symbols <FWA_FIELDCAT> type SLIS_FIELDCAT_ALV.

if IS_PROGRAM eq 'RIAUFK20'.

read table IT_FIELDCAT assigning <FWA_FIELDCAT>

with key FIELDNAME = 'GSBER'.

if SY-SUBRC eq 0.

<FWA_FIELDCAT>-COL_POS = 1.

<FWA_FIELDCAT>-NO_OUT = ' '.

<FWA_FIELDCAT>-HOTSPOT = 'X'.

endif.

endif.

0 Kudos
62

I suppose that no variant should be used, in order to keep the changes.

Thank you.