|
Seeks a Commercial Purchase Agreement by its article info. |
|
|
VARIANT_BOOL SeekByArtcl ( enum eSeekMode eSeekMode, enum eComAgType eComAgType, VARIANT_BOOL bPriority, enum eArtKind eArtKind, BSTR bsArtNum, BSTR bsArtCat, enum eSupKind eSupKind, LONG lSupNum, DOUBLE dQuantity ) |
|
|
Key information | | | Key segment information | Segment Name | Type | Order | Collation | pComAgType | BYTE | Ascending | - | pPriority | VARIANT_BOOL | Descending | - | pArtKind | BYTE | Ascending | - | pArtNum | BSTR | Ascending | Hierarchy | pArtCat | BSTR | Ascending | Case insensitive | pSupKind | BYTE | Ascending | - | pSupNum | LONG (unsigned) | Ascending | - | pSupCat | BSTR | Ascending | Case insensitive | pQuantity | DOUBLE | Ascending | - |
| | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | eComAgType | [in] A value of the 'eComAgType' enumeration. | bPriority | [in] Does the commercial purchase agreement you want to seek have priority? |
|
Remarks
|
|
Commercial purchase agreements that have no priority are unique records. In this case you can use the value smEqual for the parameter eSeekMode.
Priority records can occur more than once for the same data, but for different periods. In this case it is not safe to use the value smEqual for the parameter eSeekMode. |
|
eArtKind | [in] A value of the 'eArtKind' enumeration. | bsArtNum | [in] The article number of the commercial purchase agreement you want to seek. | bsArtCat | [in] The article category of the commercial purchase agreement you want to seek. | eSupKind | [in] A value of the 'eSupKind' enumeration. | lSupNum | [in] The supplier number of the commercial purchase agreement you want to seek. | dQuantity | [in] The quantity for which you want to seek a commercial purchase agreement. | | Return value |
True if the record with the given properties was found, otherwise false. |
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Find the non-prior commercial purchase agreement of type discount for 100 pieces of the article with number 'ART_001'.
if (pComAp->SeekByArtcl (smEqual, caDiscount, VARIANT_FALSE, akNum, "ART_001", "", skAll, 0, 100.0))
// Process record data
|
|
|
C# |
|
// Find the non-prior commercial purchase agreement of type discount for 100 pieces of the article with number 'ART_001'.
if (oComAp.SeekByArtcl (eSeekMode.smEqual, eComAgType.caDiscount, false, eArtKind.akNum, "ART_001", "", eSupKind.skAll, 0, 100.0))
// Process record data
|
|
|
VBS |
|
' Find the non-prior commercial purchase agreement of type discount for 100 pieces of the article with number 'ART_001'.
If oComAp.SeekByArtcl(smEqual, caDiscount, False, akNum, "ART_001", "", skAll, 0, 100.0) Then
' Process record data
End If
|
|
|
VB.NET |
|
' Find the non-prior commercial purchase agreement of type discount for 100 pieces of the article with number 'ART_001'.
If oComAp.SeekByArtcl(eSeekMode.smEqual, eComAgType.caDiscount, False, eArtKind.akNum, "ART_001", "", eSupKind.skAll, 0, 100.0) Then
' Process record data
End If
|
|