Skip to Content
0
Former Member
May 29, 2008 at 09:52 AM

Display exception of function module on report

28 Views

I am trying to explode BOM using the function module given below.

Is it possible that i can display the exact exception that i get on screen.

call function 'CS_BOM_EXPLOSION'

exporting

datuv = li_datuv

mktls = 'X'

mehrs = 'X'

mmory = '1'

mtnrv = li_mtnrv

capid = 'PP01'

stlal = '1'

svwvo = 'X'

vrsvo = 'X'

werks = li_werks

importing

topmat = startmat "includes structure CSTMAT

tables

stbd = i_tbd "includes structure CSXDOC

stbe = i_tbe "includes structure CSXEQUI

stbk = i_tbk "includes structure CSXKLA

stbm = i_tbm "includes structure CSXMAT

stbp = i_tbp "includes structure CSXGEN

stbt = i_tbt "includes structure CSXTDL

exceptions

alt_not_found = 1

call_invalid = 2

missing_authorization = 3

no_bom_found = 4

no_plant_data = 5

no_suitable_bom_found = 6

object_not_found = 7

conversion_error = 8

others = 9.