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: 

How to evaluate log from CSAP_MAT_BOM_MAINTAIN ?

oliver_ried
Explorer
0 Kudos

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

3 REPLIES 3

former_member378318
Contributor
0 Kudos

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

former_member378318
Contributor
0 Kudos

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.

oliver_ried
Explorer
0 Kudos

Thanks a lot, CALO_LOG_READ_MESSAGES does work.