Application Development and Automation 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: 
Read only

problem in function module 'CSAP_MAT_BOM_CREATE'

Former Member
0 Likes
1,016

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

2 REPLIES 2
Read only

SimoneMilesi
Active Contributor
0 Likes
671

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.

Read only

Former Member
0 Likes
671

Hi

you need to pass importing parameters also to FM.

like:

fl_warning =

bom_no =