cancel
Showing results for 
Search instead for 
Did you mean: 

customer exit

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member205352
Active Contributor
0 Kudos

Check if WHEN OTHERS is used in your code.

If used put it to the end in the code also make sure you have used endcase statement.

Hope this helps.

Former Member
0 Kudos

Hi,

thank your fast reply . issue has been solved

Regards

sivaraju

Answers (0)