Hello Carlos,
Do a checkpoint on parameter p_layout before passing the layout information to the ALV display function module.
IF p_layout IS INITIAL.
CLEAR layout parameter passed to the ALV display function module.
ENDIF.
*** Function module or class to display ALV.
Regards,
TP