Quantcast
Channel: SCN : Popular Discussions - ABAP和Java开发 (ABAP & Java Development)
Viewing all articles
Browse latest Browse all 4604

对动态内表生成的ALV 在屏幕上如何选择一行记录

$
0
0

请教各位:

 

FORM USER_COMMAND  USING R_UCOMM LIKE SY-UCOMM

                         RS_SELFIELD TYPE SLIS_SELFIELD.

  DATA: V_COUNT TYPE I.

  CLEAR:  V_COUNT,<dyn_wa>.

  LOOP AT <dyn_table> INTO <dyn_wa>. "WHERE <dyn_field> = 'X'.   u201C这里我应该怎样写来获得屏幕上选的是一行记录?

    V_COUNT = V_COUNT + 1.

  ENDLOOP.

 

  if not rs_selfield-tabindex eq 0 AND V_COUNT NE 0.

    IF R_UCOMM = '&CHANGE'.

      IF sy-subrc = 0.

        IF V_COUNT = 1.

          CALL SCREEN 100.

          perform dny_field_value_update.

          rs_selfield-refresh = 'X'.

        ENDIF.

      ENDIF.

    endif.

  endif.

ENDFORM.                    "USER_COMMAND

 

Edited by: andy1982999 on Apr 2, 2010 4:15 AM


Viewing all articles
Browse latest Browse all 4604

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>