Main Page | Modules | Files | Functions | Code Elements | Data Structures | Deprecated

PS Compare BOM View Revision
[User Exits]


Detailed Description

Basically, SMP_PS_list_bvr_diffs builds up a list of all occurrence data of both the supplied BVRs. This list is ordered by sequence number, and (within that) by item/rev tag. qty[0] holds the quantity of the occurrence in the first BVR, and qty[1] that for the second BVR. Each difference element represents the number of occurrences of a single item/rev in the BVRs.

Note that:

  1. If a difference element contains the same quantity value for both BVRs, this is an unchanged occurrence (i.e. each BVR has the same number of occurrences of this item/rev).
  2. If a difference element contains different quantities for each BVR, there have either been additional occurrences added to the second BVR compared to the first (qty[1] > qty[0]), or some occurrences have been removed from the second compared to the first (qty[1] < qty[0]).

Data Structures

Typedefs

Functions


Typedef Documentation


Function Documentation

USER_EXITS_API int SMP_PS_free_bvr_diffs ( SMP_PS_bvr_diff_p_t diffs  ) 

Free all memory allocated by SMP_PS_list_bvr_diffs for the given difference listing

Parameters:
diffs  (I) List of differences to free

USER_EXITS_API int SMP_PS_list_bvr_diffs ( tag_t  bvr_a,
tag_t  bvr_b,
int *  n_diffs,
SMP_PS_bvr_diff_p_t diffs 
)

Build up a list of differences between the two given BVR's

Parameters:
bvr_a  (I) First BVR to compare
bvr_b  (I) Second BVR to compare
n_diffs  (O) Number of differences returned
diffs  (OF) n_diffs List of differences

USER_EXITS_API int SMP_PS_mrp_print_bvr_diffs ( FILE *  f,
SMP_PS_bvr_diff_p_t  diffs 
)

Print given list of diffs to given file in MRP format

Parameters:
f  (I) File to which to list the diffs
diffs  (I) List of differences

USER_EXITS_API int SMP_PS_print_bvr_diffs ( FILE *  f,
SMP_PS_bvr_diff_p_t  diffs 
)

Print given list of diffs to given file

Parameters:
f  (I) File to which to list the diffs
diffs  (I) List of differences