Skip to Content
0
Former Member
Jul 24, 2008 at 02:38 AM

Problem with abap enhancement

14 Views

Hi experts

I have and enhancement for 0MAT_SALES_ATTR. I am trying to select one single row from table A901, based on the max value for field DATBI.

Can somebody tell me what's wrong with my code, or an other way for getting the result inttended.

select MAX( DATBI ) KNUMH into (fecha, v_cvecond)

from A901

where MATNR eq wa_mat-matnr and

VKORG eq wa_mat-vkorg and

PLTYP eq 'XA' and

DATBI eq fecha

GROUP BY DATBI KNUMH.

Thanks!