Skip to Content
author's profile photo Former Member
Former Member

Detecting rows marked at table control

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 09:02 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.