‎2008 Dec 07 3:23 PM
Hi
I want to compare a BOM with 2 different valid dates.
CS14 is the online-transaction but I need a function
module or BAPI. Can you help me?
‎2008 Dec 07 6:49 PM
‎2008 Dec 07 5:23 PM
Hi Yossi,
This function module might be of help to your scenario.
sample code.
data:
lv_config like csap_mbom-matnr,
l_werks like vbap-werks,
v_datum type datuv_bi,
i_stpo like stpo_api02 occurs 0 with header line,
i_stko like stko_api02 occurs 0 with header line.
write sy-datum to v_datum dd/mm/yyyy.
call function 'CSAP_MAT_BOM_READ'
exporting
material = lv_config
plant = l_werks
bom_usage = '3'
valid_from = v_datum
valid_to = v_datum
tables
t_stpo = i_stpo
t_stko = i_stko
exceptions
error = 1
others = 2.
‎2008 Dec 07 6:49 PM
‎2008 Dec 08 12:44 PM
Hi
thanks for the replies, but the functions:
CS_BC_COMPARE_TWO_BOM_VARIANTS
API_DOCUMENT_COMPARE_BOM
not relavant for BOM compare,
function 'CSAP_MAT_BOM_READ' is a good starting point, but does any one know a function that works like CS14?