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: 

Invoking a BDC from within a BADI method executing in an update task

Former Member
0 Kudos

To finish up the MIGO/QM interface we started sometime ago, we need to

invoke a BDC of transaction QA02 within the method

method IF_EX_INSPECTIONLOT_UPDATE~CREATE_IN_UPDATE.

of the BADI:

INSPECTION_LOT_UPDATE.

Should the BDC be tucked inside:

a) an function module that is called from the method ?

b) a program that is submitted from the method;

c) other?

Thanks for authoritative advice.

djh

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I would say a function module.

Regards,

Rich Heilman

6 REPLIES 6

former_member181923
Active Participant
0 Kudos

PS - I mean, of course, the method of the Z-class that implements the BADI, not the interface method itself.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I would say a function module.

Regards,

Rich Heilman

0 Kudos

I was going to say to use a custom class/method, but then realized that you may have a tough time with putting in the FORM routines for your BDC. I would say to encapsulate your BDC in a function module.

Regards,

Rich HEilman

0 Kudos

I would say either a function module call as a BACKGROUND TASK or a SUBMIT <Report> should meet your requirement. Since you are already inside an UPDATE TASK, your approach should be to isolate the two work processes..

~Suresh

ferry_lianto
Active Contributor
0 Kudos

Hi,

I would do in function module.

Check also FM ABAP4_CALL_TRANSACTION.

Regards,

Ferry Lianto

former_member181923
Active Participant
0 Kudos

Rich/Suresh/Ferry -

Thank you all very much for taking the time to reply.

Regards

djh