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: 

CSAP_MAT_BOM_MAINTAIN explication

Former Member
0 Kudos

Hi,

Can you help me ?

I want to create and modify a BOM. So I use the function CSAP_MAT_BOM_MAINTAIN.

My problem is that I don't understand the meaning of these parameters.

CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'

EXPORTING

material = w_matnr

plant = w_plant

bom_usage = w_usage

alternative = w_alternative

valid_from = w_valid_from

change_no = w_change_no

revision_level = w_revision_level

i_stko = ti_stko_api01

fl_commit_and_wait = 'X'

    • FL_CAD = 'X'*

fl_new_item = 'X'

fl_complete = 'X'

IMPORTING

fl_warning = fl_warning

TABLES

t_stpo = ti_stpo_api03

  • T_DEP_DATA = TI_DEP_DATA

  • T_DEP_DESCR = TI_DEP_DESCR

  • T_DEP_ORDER = TI_DEP_ORDER

  • T_DEP_SOURCE = TI_DEP_SOURCE

  • T_DOC_LINK = TI_DOC_LINK

  • T_DMU_TMX = TI_DMU_TMX

  • T_DEP_DOC = TI_DEP_DOC

  • T_LTX_LINE = TI_LTX_LINE

  • T_STPU = TI_STPU

EXCEPTIONS

error = 1

OTHERS = 2.

Can you explain me what are the differents parameters of this fonction (with meaning) and are there other parameters ?

Thank you for your help.

Carine.

Edited by: Carine Formant on Oct 9, 2008 9:24 AM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

If you open the function with SE37 you will see a number of tabs (e.g. IMPORT, EXPORT). There you can find a short description of each variable. Normally these descriptions are good enough to give you an idea of the meaing of the parameter.

And if you're lucky there should be some Function Module Documentation as well.

4 REPLIES 4

Former Member
0 Kudos

If you open the function with SE37 you will see a number of tabs (e.g. IMPORT, EXPORT). There you can find a short description of each variable. Normally these descriptions are good enough to give you an idea of the meaing of the parameter.

And if you're lucky there should be some Function Module Documentation as well.

0 Kudos

These explications are insufficients because when I use this fonction, it returns

sy-subrc = 1 and I don't understand why.

0 Kudos
fl_warning = fl_warning

Check the contents of fl_warning. There should be some info regarding your error.

Also, check if the following system variables have a value:

SY-MSGID

SY-MSGNO

SY-MSGV1

SY-MSGV2

SY-MSGV3

SY-MSGV4

If these variables have value, start transaction SE91 and use SY-MSGID as message class.

0 Kudos

Thank you,

I found my differents problems.