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

CSAP_MAT_BOM_CREATE

Former Member
0 Likes
686

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

Regards

Rasheed

Edited by: Rasheed salman on Mar 31, 2009 10:58 AM

2 REPLIES 2
Read only

Former Member
0 Likes
469

Hi ,

Please refer the code given in function module documentation . I hope it will help you to slove this problen

regards

Deepak

Edited by: Deepak Kumar on Mar 31, 2009 11:55 AM

Read only

Former Member
0 Likes
469

Hi

Thank You for the inputs.

I resolved the issue myself