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_BOM_ITEM_MAINTAIN clearing Custom Fields Issue For Numeric Data types

Former Member
0 Likes
482


I have added 2 custom fields in  STPO (1 character and 1 Numeric).

To reset the values in the table through program , I use the Function Module  CSAP_BOM_ITEM_MAINTAIN.

I use the reset sign "!"  for the character field and clears the value without any issue.

However for the Numeric fields , I cannot pass the  above sign  and passing "0' also doesn't over write the values.

Can anyone provide suggestion /ideas?

Thanks

Ram

1 REPLY 1
Read only

naimesh_patel
Active Contributor
0 Likes
393

For the numeric, you need to pass the 0. You can't escape from 0 for Numeric.

From Program /SAPMP/LCSAPF01, where numeric is reset to 0.


* data type CHAR

   ch_ismp_apicn-/sapmp/met_lrch  = c_data_reset.

   ch_ismp_apicn-/sapmp/max_fertl = c_data_reset.

   ch_ismp_apicn-/sapmp/fix_as_j  = c_data_reset.

   ch_ismp_apicn-/sapmp/fix_as_e  = c_data_reset.

   ch_ismp_apicn-/sapmp/fix_as_l  = c_data_reset.

   ch_ismp_apicn-/sapmp/rund_fakt = c_data_reset.

* data type NUMC

CLEAR: ch_ismp_apicn-/sapmp/abl_zahl.

Regards,

Naimesh Patel