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

function for BOM compare

Former Member
0 Likes
1,002

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
713

CS_BC_COMPARE_TWO_BOM_VARIANTS

API_DOCUMENT_COMPARE_BOM

??

3 REPLIES 3
Read only

Former Member
0 Likes
713

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.

Read only

Former Member
0 Likes
714

CS_BC_COMPARE_TWO_BOM_VARIANTS

API_DOCUMENT_COMPARE_BOM

??

Read only

Former Member
0 Likes
713

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?