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

Detecting rows marked at table control

Former Member
0 Likes
574

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

3 REPLIES 3
Read only

Former Member
0 Likes
514

Did you tried Implicit enhancement? From ECC 6.0 version we have Implicit and Explicit, try to find any implicit enhancment after choosing delete operation and write the code in that.

Read only

0 Likes
514

Hello, I don't know what does Implicit Enhancement mean.

I will try to find out about it.

Thanks,

Lilian.

Read only

0 Likes
514

We are working with R/3 Enterprise version.