Skip to Content
0
Former Member
Oct 21, 2008 at 07:40 AM

customer exit

20 Views

HI Experts,

Aas per my requirement i wrote the code in enahancement .when i check the code iam getting this error . can any one suggest me on this issue.

data l_budat type budat.

DATA : i_w_data_ap like DTFIAP_1.

when '0FI_AP_6'.

loop at c_t_data into i_w_data_ap

SELECT SINGLE Budat INTO l_budat FROM BKPF

WHERE BUKRS EQ i_w_data_ap-BUKRS

AND GJAHR EQ i_w_data_ap-FISCPER+0(4).

i_w_data_ap-zbudat = l_budat.

modify c_t_data from i_w_data_ap.

clear l_budat.

endloop.

  • error message is *

"WHEN" is no longer allowed after "WHEN OTHERS".

Regards

sivaraju