Skip to Content
avatar image
Former Member

BDC / Form-Endform in a Proxy Method.

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Ā 

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Dec 29, 2014 at 04:16 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 29, 2014 at 06:25 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 29, 2014 at 03:03 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.