Skip to Content

How to evaluate log from CSAP_MAT_BOM_MAINTAIN ?

Hello,

I am trying to use the call function CSAP_MAT_BOM_MAINTAIN.

This is an extract from the example from the function-builder:

call function 'CSAP_MAT_BOM_MAINTAIN'

exporting

material = 'MAT100'

plant = '0001'

bom_usage = '1'

valid_from = '14.10.1996'

fl_bom_create = ' '

fl_new_item = ' '

i_stko = tstko

importing

fl_warning = flg_warning

o_stko = tstk2

tables

t_stpo = tstp3

exceptions

others = 1.

if sy-subrc eq 1.

  • Error occurred

  • Evaluate log

endif.

if flg_warning eq 'X'.

  • Warning occurred

  • Evaluate log

Endif.

Can anybody please explain me how I can evaluate the error- and warning-messages from CSAP_MAT_BOM_MAINTAIN?

Regards

Oliver Roell

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Aug 16, 2007 at 03:35 PM

    Hi I think you should be able to view the log in transaction SLG1.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 16, 2007 at 03:39 PM

    Also take a look at function CDESK_BOM_WIZARD which calls CSAP_MAT_BOM_MAINTAIN and then reads the logs using CALO_LOG_READ_MESSAGES.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 17, 2007 at 12:39 PM

    Thanks a lot, CALO_LOG_READ_MESSAGES does work.

    Add comment
    10|10000 characters needed characters exceeded