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

Problem with ME_DEFINE_CALCTYPE

Former Member
0 Likes
1,248

Hello,

I implemented the badi ME_DEFINE_CALCTYPE in my implementation

ZME_DEFINE_CALCTYPE.

When I use me23n the method DEFINE_CALCTYPE is never run through.

I made a test report which works fine:

REPORT zwg_test_badi .

DATA: if TYPE REF TO if_ex_me_define_calctype,

wa_oekko TYPE ekko,

wa_nekko TYPE ekko,

wa_oekpo TYPE ekpo,

wa_nekpo TYPE ekpo,

wa_obekpo TYPE bekpo,

wa_nbekpo TYPE bekpo,

c_calctyp TYPE komv-ksteu.

CALL METHOD cl_exithandler=>get_instance

CHANGING

instance = if.

CALL METHOD if->define_calctype

EXPORTING

im_x_oekko = wa_oekko

im_x_nekko = wa_nekko

im_x_oekpo = wa_oekpo

im_x_nekpo = wa_nekpo

im_x_obekpo = wa_obekpo

im_x_nbekpo = wa_nbekpo

CHANGING

ch_x_lf_calctype = c_calctyp

.

What do I have to do to make this work?

thanks in advance

Werner

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
809

Hi,

Processing of the im_x_acc_ch parameter is incomplete in the ME_DEFINE_CALCTYPE BAdI. It is assigned by the calling position, but not forwarded, because it is no longer included in the interface implementation.

Refer OSS note:1022609.

<b>Rreward points</b>

Regards

Hello,

I implemented the badi ME_DEFINE_CALCTYPE in my implementation

ZME_DEFINE_CALCTYPE.

When I use me23n the method DEFINE_CALCTYPE is never run through.

I made a test report which works fine:

REPORT zwg_test_badi .

DATA: if TYPE REF TO if_ex_me_define_calctype,

wa_oekko TYPE ekko,

wa_nekko TYPE ekko,

wa_oekpo TYPE ekpo,

wa_nekpo TYPE ekpo,

wa_obekpo TYPE bekpo,

wa_nbekpo TYPE bekpo,

c_calctyp TYPE komv-ksteu.

CALL METHOD cl_exithandler=>get_instance

CHANGING

instance = if.

CALL METHOD if->define_calctype

EXPORTING

im_x_oekko = wa_oekko

im_x_nekko = wa_nekko

im_x_oekpo = wa_oekpo

im_x_nekpo = wa_nekpo

im_x_obekpo = wa_obekpo

im_x_nbekpo = wa_nbekpo

CHANGING

ch_x_lf_calctype = c_calctyp

.

What do I have to do to make this work?

thanks in advance

Werner

2 REPLIES 2
Read only

Former Member
0 Likes
810

Hi,

Processing of the im_x_acc_ch parameter is incomplete in the ME_DEFINE_CALCTYPE BAdI. It is assigned by the calling position, but not forwarded, because it is no longer included in the interface implementation.

Refer OSS note:1022609.

<b>Rreward points</b>

Regards

Read only

0 Likes
809

Hi Kiran,

re-generated the badi.Like discribed in the OSS note.

This didn't bring any success.

This might be due to our historical release 4.6B.

Still the implemented code is not run through at all.

br

Werner