EliatpobService

EliatpobService

EliatpobService.asmx

This web service has a method for ATP (available to promise) inquiry.

 

ATPInquiry

This method returns ATP information for an item.

Usage:

ATPInquiryResult = A.ATPInquiry(UserName, UserPassword, ITEM_NO, LOC_CODE, Source)

Parameters UserName and UserPassword are not used at this moment.

 

Input Parameter

Parameter

Length

Type

Upper

Detail

ITEM_NO

15

String

Y

Required.

LOC_CODE

2

String

Y

If this field is blank, this method will summarize quantities from all locations.

Source

1

String

Y

Must be “S,” “P,” “B,” “F,” or blank. If this field is blank, this method will include all sources.

 

ATPInquiryResult Structure

Property

Type

Detail

ReturnCode

Integer

Contains return code. Zero means OK; for other return codes, please see “ElievprcService Return Code” section.

ReturnMsg

String

This is description of return code. For example, if return code is zero, you can expect “OK” in this field.

ITEM_PRICE

Double

 

ITEM_QTY_ON_HAND

Double

 

ITEM_QTY_ALLOC

Double

 

ITEM_QTY_ON_ORDER

Double

 

ATPRecord

DataSet

This data set has a data table "ATPRecords" which contains up to 1000 records with the following columns:

IM_ATP_TRX_DATE (data type: Date)

CustVendNo (data type: String)

RefName (data type: String)

IM_ATP_REC_TYPE (data type: String)

OrderNo (data type: String)

IM_ATP_LOCATION (data type: String)

IM_ATP_QTY_OPEN (data type: Double)

 

Code Example

The following sample code will return ATP information for item number “049” in location “P.”

 

Dim Service As New webServicesatpob.EliatpobService

Dim Result As New webServicesatpob.ATPInquiryResult

Dim ITEM_NO As String = “049”

Dim LOC_CODE As String = “P”

Result = Service.ATPInquiry(“”, “”, ITEM_NO, LOC_CODE, “”)

If Result.ReturnCode = 0 Then

   lblResult.Text = “ATP location: ” + _

   Result.ATPRecord.Tables(0).Rows(0).Item("IM_ATP_LOCATION")

Else

  lblResult.Text = “Error”

   lblErrorCode.Text = Result.ReturnCode.ToString

End If

 

EliatpobService Return Code

0 = OK                               

1 = File Error                       

2 = Item No Missing                   

3 = Table Size Must be <= 1000       

4 = Item Not On File                 

5 = Location Not On File             

6 = Source Invalid (Space, S, B, P, F)

CLS




    • Related Articles

    • Change - Available to Promise by Item Report - Add Item Description 2

      Release Date: 6/24/16 IM --> Reports, --> Available to Promise reports, -->Print, --> report by Items Added item description 2 to report. Modified Program: IMATPRPT DLM
    • Elliott Web Service Requirements

      Release Date: 5/22/2017 Q - What are the requirements for running Elliott Web Service? A - Elliott Web Service is built on .NET and runs on Windows. It extends a vast amount of Elliott features to external applications. Some of these features may ...
    • Introduction to Available to Promise (ATP)

      Release Date - 6/12/17 What is ATP? ATP (Available to Promise) is an Elliott database that merges all future transactions like sales orders, purchase orders and production orders. It expands the simple quantity allocated and quantity on order ...
    • Explanation of ATP LP Type - Negative Sign (-) vs (*) Symbols

      Release Date: 5/17/17 Q - For the ATP (Available to Promise) processing screen, can you advise what the “ * “ (asterisk) symbol means next to the 792*? Also, why do some LPs have the ” - “ (negative sign) and some are blank. See sample screen below: ...
    • Blanket POs Not Displaying on Stock Status ATP Screen

      Release Date: 3/20/2019 Q - How can I get Blanket POs to display on the Stock Status ATP screen? You show it on the legend as code "PB" but it doesn’t appear on the screen. See sample screen below: We use the blanket PO for estimated dates for ...