Skip to Content
0
Former Member
Jan 25, 2007 at 07:33 PM

Code help...Enhanced Fields not picking any values

21 Views

Hi all,

I have enhanced the datasource 0CO_PC_PCP_01. How ever the enhanced fields are not picking any values. Could some one take a look at my code and tell me if there are any errors in my code.

****************************************

DATA: KKBW_PCP1 LIKE KKBW_PCP1.

CASE I_DATASOURCE.

WHEN '0CO_PC_PCP_01'.

LOOP AT c_t_data into KKBW_PCP1.

CLEAR W_INDEX.

W_INDEX = SY-TABIX.

KKBW_PCP1-ZZHRKFT = MBEW-HRKFT.

KKBW_PCP1-ZZKOSGR = MBEW-KOSGR.

SELECT SINGLE hrkft kosgr

INTO (KKBW_PCP1-ZZHRKFT, KKBW_PCP1-ZZKOSGR)

FROM MBEW

WHERE matnr = KKBW_PCP1-MATNR

AND BWKEY = KKBW_PCP1-WERKS.

MODIFY c_t_data FROM KKBW_PCP1 INDEX W_INDEX.

ENDLOOP.

****************************************************

Thanks in Advance..

Regards,

S.P