Application Development 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: 

Calling BDC in a method

Former Member
0 Kudos

hi

I need to call a BDC using a methods, please tell me how to progress on this

As of now it says that we cannot use performs in ABAP objects Methods.

Points for all helpful answers

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

If your method is a part of a global class, then yes you will have a problem. There are a couple ways around this. First, and probably the best/easiest, is to encapulate your BDC call in a function module. Then simply call the function module in your method. Another, and less attractive, is to put your BDC code in a callable report program, then your can simply SUBMIT the report in your method.

Regards,

Rich Heilman

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

If your method is a part of a global class, then yes you will have a problem. There are a couple ways around this. First, and probably the best/easiest, is to encapulate your BDC call in a function module. Then simply call the function module in your method. Another, and less attractive, is to put your BDC code in a callable report program, then your can simply SUBMIT the report in your method.

Regards,

Rich Heilman

0 Kudos

Thanks