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

BADI implementation class new method call

Former Member
0 Likes
418

Hi gurus,

I implement the BADI ARC_PM_QMEL_PREPROCESS with implementation ZARC_PM_QMEL_PREPROCESS.

In the class of implementation I add new method (named METODA) that I need to call (from external programm) before the method of interface class (in my case, the interface is IF_EX_ARC_PM_QMEL_PREPROCESS, with method PREPROCESS_CHECK ).

1.A working example:

-


DATA: LREF_ARC_NOTIFY_PREPROCESS TYPE REF TO ARC_PM_QMEL_PREPROCESS.

-


  • --> call method PREPROCESS_CHECK of this implementation

CALL BADI lref_arc_notify_preprocess->preprocess_check

EXPORTING

is_iviqmel = ls_selc

CHANGING

c_archive_flg = gv_archive_flg

ct_mess_table = lt_mess_table .

-


where the method preprocess_check is defined in interface class ( IF_EX_ARC_PM_QMEL_PREPROCESS)

2.A short dump example:

CALL BADI lref_arc_notify_preprocess->('METODA').

where the method is not defined in interface class IF_EX_ARC_PM_QMEL_PREPROCESS but is defined in implementation CLASS.

Can you help me with an idea of a way to call the method that I built it

1 REPLY 1
Read only

Former Member
0 Likes
320

I solve the problem