Hello,expert:
using FM CSAI_BOM_CREATE , I want to create equipment bom ,and all parameters I pass to as follows:
wa_csin-equnr = 'DL400012'.
wa_csin-stlan = '4'.
wa_csin-stlty = 'E'.
wa_csin-werks = '1300'.
wa_stkob-stlty = 'E'.
wa_stzub-stlty = 'E'.
wa_stpob-FAMAT = 'DL400015'.
wa_stpob-stlty = 'E'.
wa_stpob-postp = 'L'.
wa_stpob-posnr = '0010'.
wa_stpob-menge = 1.
wa_stpob-datuv = sy-datum.
APPEND wa_stpob TO tab_stpob.
CALL FUNCTION 'CSAI_BOM_CREATE'
EXPORTING
ecsin = wa_csin
estkob = wa_stkob
estzub = wa_stzub
FL_NO_CHANGE_DOC = ' '
FL_COMMIT_AND_WAIT = ' '
FL_NO_COMMIT_WORK = ' '
FL_ALE = ' '
fl_default_values = 'X'
IMPORTING
fl_warning = g_flwarning
astlnr = g_warn_stlnr
TABLES
t_stpob = tab_stpob
EXCEPTIONS
error = 1
OTHERS = 2.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
but there is an error ,please help me what's wrong?
thanks
best wishes!
Daniel