‎2008 Apr 30 3:10 PM
Gentlemen!! I'm trying to use the selection line of a table control created in a Subscreen inside of a tabstrip.
I'm using this code in the flow logic (PAI) inside the subscreen.
select_line = selection line of the table control
LOOP AT itab_spfli.
CHAIN.
FIELD:
select_line.
MODULE mod_linea ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
-
IMODULE mod_linea INPUT.
IF select_line = 'X'.
MOVE-CORRESPONDING itab_spfli TO wa_spfli.
MODIFY itab_spfli FROM wa_spfli.
ENDIF.
ENDMODULE.
But the problem is that select_line doesn't exists.
I named it in the table control.
I don't know if this problem is because I'm not using it at the right place.
regards,
Polaken...!!
‎2008 Apr 30 3:18 PM
You need to use as: ITAB-SPFLI-SELECT_LINE instead of the SELECT_LINE.
Regards,
Naimesh Patel
‎2008 Apr 30 3:33 PM
Hi,
To select a line in a table control, go to screen painter and in the table control attributes, check fields c/ col marc and fill wih a variable name, MARC for example.
In the include TOP you have to declare this variable:
data: marc.
In the internal table itab_spfli, insert the field MARC.
In the module mod_line:
IMODULE mod_linea INPUT.
move marc to itab_spfli-marc.
modify itab_spfli.
ENDIF.
ENDMODULE.