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

Table Control inside a TabsTrip

Former Member
0 Likes
642

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...!!

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
375

You need to use as: ITAB-SPFLI-SELECT_LINE instead of the SELECT_LINE.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
375

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.