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: 

BDC / Form-Endform in a Proxy Method.

former_member202771
Contributor
0 Kudos

Hi Experts,

I have a requirement, wherein I need to do a BDC recording in a Proxy method.

FORM-ENDFORM cannot be used inside a METHOD-ENDMETHOD.

Can you please guide me on how modularization and re usability can be achieved in a proxy method.

Thanks,

Anil 

5 REPLIES 5

former_member215542
Active Participant
0 Kudos

I would suggest that you create an FM for the BDC recording and then call that FM under your proxy method.

Additional advantage of this approach is that it would make way for better error handling

0 Kudos

Hi Pulkit,

Good idea.

I will try this one and let you know how it is working.
Also can you let me know if I can use an include program in the proxy?
When I try to use this, It is not allowing since there is no main program.

Thanks,

Anil

0 Kudos

You cannot use an include program in a proxy method, because it is basically a method of a class.

However, you can create a separate program and then call routine of the program in the proxy method using perform <routine_name> in program <program_name> [parameter list] if found.

KiranJ
Active Participant
0 Kudos

Hi,

    Try to call the BDC using methods in the class,

for reference use below:

http://scn.sap.com/community/abap/blog/2013/10/11/bdc-program-with-ooabap

rajucd81
Participant
0 Kudos

Hi Anil,

The same kind of issue i faced long back and written all BDC code in OO-ABAP. the same I wrote in a blog, pls check the blog which was refered by Kiran Jasti.

Thanks

Raju C D