Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

customer exit

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

Former Member
replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question