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: 

Getting an exception while dealing with a new BADI

Former Member
0 Kudos

Hi,

I am stuck with one problem while executing an enhancement of a new BADI type <b>/rpm/fin_cap_plan</b>.

I call my own function 'Z_RPM_CLOG_FIN' from a method of this enhancement.

Inside Z_RPM_CLOG_FIN imake another call as

CALL FUNCTION 'Z_FIN_TAB_WRITE_DOCUMENT'
  EXPORTING
    OBJECTID                = func_param-I_objectid
    TCODE                   = func_param-I_tcode.....

Here 'Z_FIN_TAB_WRITE_DOCUMENT' is a function we obtained after running SCDO transaction for 2 financial tables.

Now in debug mode when control to Z_FIN_TAB_WRITE_DOCUMENT it goes ito some other method and catches some exception 'parameter missing' and I don't know from where this exception came into scene. As per my understanding if we call a function control should go into that function.

And this was really happening when I created an implementation of a classic BADI.

Can someone help me out at this point ?

3 REPLIES 3

sunilachyut
Contributor
0 Kudos

Did you try something like this:

CALL FUNCTION 'Z_FIN_TAB_WRITE_DOCUMENT'

EXPORTING

OBJECTID = func_param-I_objectid

TCODE = func_param-I_tcode.....

EXCEPTIONS

OTHERS = 99.

if sy-subrc ne 0.

endif.

hith

Sunil Achyut

0 Kudos

Hi Sunil,

This function doesn't throw any exception to its calling function. All handling is done within this method itself as it has been directly generated by SCDO transaction. I

Infact this is not the issue. Problem is that control doesn't go inside the method at all.

0 Kudos

is it during debugging ? if a function module is called in update task or on commit, control doesn't do inside FM during debugging ....hope thishelps....