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 - BOM field update with blank value

Former Member
0 Kudos

Hi,

This is SAP inbound scenario, BOM change related data are comming from third party software & post in SAP vai IDOC.

When I use the function module CSAP_MAT_BOM_MAINTAIN to change value of fields then it works fine.

Suppose  the field COMP_SCRAP contain 1.00 value already after that we can easily change the value like 2.00


But

I have the an issue wherein I am trying to update a material BOM, and I pass a blank or zero value to

COMP_SCRAP  ( or AUSCH )

OP_SCRAP       ( or AVOAU )

OP_NET_IND    ( or NETAU)

in item and use function module CSAP_MAT_BOM_MAINTAIN  to the BOM update then fields are not updating with zero or blank values.

same issue on rest all fields.

I pass below values to T_STPO structure

ITEM_CATEG                                              L

ITEM_NO                                                     001

COMPONENT                                             9920

COMP_QTY                                                 300.000

COMP_UNIT                                               EA

FIXED_QTY                                        

ITEM_TEXT1                                              TEST

ITEM_TEXT2                                              TEST

COMP_SCRAP

OP_SCRAP

OP_NET_IND

ID_ITM_CTG                                              L

ID_ITEM_NO                                              0010

ID_COMP                                                    000000000000009920

****FM CALL

CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'

         EXPORTING

           material      = v_mat 

           plant         = v_werks

           bom_usage     = v_stlan

           alternative   = v_stlal

           valid_from    = date   

           i_stko        = tstk1

*         fl_commit_and_wait = 'X'

           fl_bom_create = ' '

           fl_new_item   = 'X'

*         fl_complete   = 'X'         

*         FL_DEFAULT_VALUES  = 'X'

         IMPORTING

           fl_warning    = api      "api_warning

           o_stko        = tstk2

         TABLES

           t_stpo        = tstp3

           t_stpu        = t_stpu

         EXCEPTIONS

           error         = 1

           OTHERS        = 2.




Guide me...

1 REPLY 1

sven_1978
Explorer
0 Kudos

This message was moderated.