Skip to Content
0
May 09, 2008 at 02:02 PM

How to debug this BAdI?

136 Views

Hello

I am trying to debug a BAdi ( /POSDW/OUT_BW). The problem I have encountered is that the POS Analytics datasource extractors are set up not to allow a FULL update. So in RSA3 the default is "FULL". I have changed this is debug mode to "D", but I still can't debug it because the FM module checks for all update modes and errors it out.

Source code of /POSDW/LOUTPUT_BWU04

  • Check for supported update mode

CASE i_updmode.

WHEN 'F'.

MOVE '"Full Upload"' TO lv_msgv1.

CALL FUNCTION 'RSAL_LOG_WRITE'

EXPORTING

i_msgty = 'E'

i_msgid = 'R3'

i_msgno = '011'

i_msgv1 = lv_msgv1

i_msgv2 = ' '.

RAISE error_passed_to_mess_handler.

WHEN OTHERS.

MOVE '"When Others"' TO lv_msgv1.

CALL FUNCTION 'RSAL_LOG_WRITE'

EXPORTING

i_msgty = 'E'

i_msgid = 'R3'

i_msgno = '011'

i_msgv1 = 'When Others' "#EC NOTEXT

i_msgv2 = ' '.

RAISE error_passed_to_mess_handler.

ENDCASE.

ENDIF.

ENDFUNCTION.

I tried running it via an infopackage, but the hard coded breakpoint did not come up (makes sense, but I was trying all options)

Anybody have any idea how to actually debug this one?

Thanks

Edited by: José Burgman on May 9, 2008 4:03 PM