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

Calling BDC in a method

Former Member
0 Likes
967

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
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
882

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
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
883

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

Read only

0 Likes
882

Thanks