‎2009 Nov 05 8:28 AM
Hi
I am using CSAP_MAT_BOM_CREATE to create BOM i passing the following values
CALL FUNCTION 'CSAP_MAT_BOM_CREATE'
EXPORTING
material = lv_matnr
plant = lv_werks
bom_usage = lv_stlan
i_stko = wa_stko
TABLES
t_stpo = it_stpo
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.
To create the BOM.But I am getting error as 'data is in complete' AND i am getting sy-subrc value as 1.
Please give me inputs
‎2009 Nov 05 9:32 AM
maybe you are not filling all the mandatory fields you need.
Please, let we know how do you fill your structures, otherwise is almost impossibile help you.
The message is clear: you are missing some mandatory (for the FM) field.
‎2010 Aug 18 11:32 AM
Hi
you need to pass importing parameters also to FM.
like:
fl_warning =
bom_no =