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

List Variant overrides User-Exit

Former Member
0 Likes
614

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

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
Read only

madhu_vadlamani
Active Contributor
0 Likes
568

HI Ivson,

Can you paste your code.

Regards,

Madhu.

Read only

0 Likes
568

&----


*& 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.

Read only

0 Likes
568

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

Thank you.