Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

user exit for co02

Former Member
0 Likes
400

i am writing an exit for co02 transaction and in that after we save ,i want to call tcode MB22 through program .For that i m writing the code in include like i m also using bdc in my program .

but it is showing error like "before start of selection the structure introduce by function shud be concluded by endfunction".

so could anyone please tell me how to rectify that error..

i am writing an exit for co02 transaction and in that after we save ,i want to call tcode MB22 through program .For that i m writing the code in include like i m also using bdc in my program .

but it is showing error like "before start of selection the structure introduce by function shud be concluded by endfunction".

so could anyone please tell me how to rectify that error..

1 REPLY 1
Read only

Former Member
0 Likes
375

If you are using enhancement then include file is between function...endfunction. So, you cannot use events in between otherwise it will create conflict.

Basically, you need to write your code without introducing more events. Please see document for guidelines.