Skip to Content
0
Former Member
Feb 26, 2009 at 01:56 PM

Detecting rows marked at table control

60 Views

Hello Experts,

I need to display a message error when trying to delete operations in IW32.

For that purpose, I am validating the value of a field at user exit ZXBS1U01.

The problem is that I cant't know the rows I've marked in table control for deleting.

There is a table (LST), with the number of operations and a field FLG_MARK but this appears with an X (delete), after that user exit.

There is another structure ( RC27X ) with the index for deleting, but the problem is that it is not available for the last row at the user exit.

I tried to search for the table control, but I cant find it neither the rows I've marked at ZXBS1U01.

Can any one help me please ?

Thanks a lot,

Lilian.

CONSTANTS:

c_loea(4) VALUE 'LOEA',

c_valor(22) VALUE '(SAPLCOIH)CAUFVD-AUFNR',

c_valor4(25) VALUE '(SAPLCODT)LST[]',

c_valor5(25) VALUE '(SAPLCOVG)RC27X'.

FIELD-SYMBOLS:

<fs_valor> TYPE caufvd-aufnr,

<fs_valor4> TYPE STANDARD TABLE,

<fs_valor5> TYPE rc27x.

DATA BEGIN OF t_lst OCCURS 0.

INCLUDE STRUCTURE rclst.

DATA END OF t_lst.

IF sy-tcode = c_iw32 AND sy-ucomm = c_loea AND sy-dynnr = 3010.

ASSIGN (c_valor4) TO <fs_valor4>.

IF sy-subrc = 0.

t_lst[] = <fs_valor4>[].

ASSIGN (c_valor5) TO <fs_valor5>.

IF sy-subrc = 0 AND <fs_valor5>-index_act IS NOT INITIAL.

READ TABLE t_lst INDEX <fs_valor5>-index_act.

IF sy-subrc = 0.

  • validation *****