|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.americancoders.samples.build997
code template to build
class 997 Functional Acknowledgment
This Draft Standard for Trial Use contains the format and establishes
the data contents of the Functional Acknowledgment Transaction
Set (997) for use within the context of an Electronic Data Interchange
(EDI) environment. The transaction set can be used to define
the control structures for a set of acknowledgments to indicate
the results of the syntactical analysis of the electronically
encoded documents. The encoded documents are the transaction
sets, which are grouped in functional groups, used in defining
transactions for business data interchange. This standard does
not cover the semantic meaning of the information encoded in
the transaction sets.
| Field Summary | |
X12Envelope |
env
|
| Constructor Summary | |
build997(X12Envelope inEnv,
DocumentErrors inDErr)
constructor for class build997 |
|
| Method Summary | |
Loop |
buildLoopAndSegmenAK3forTableHeaderLoopAK2(Loop inLoop,
java.lang.String errID,
int errPos)
builds loop and segment AK3 that is part of the TableHeader LoopAK2 Data Segment Note used To report errors in a data segment and identify the location of the data segment |
Loop |
buildLoopAndSegmenAK3forTableHeaderLoopAK2(Loop inLoop,
java.lang.String errID,
int errPos,
java.lang.String errCode)
builds loop and segment AK3 that is part of the HeaderAK2 Data Segment Note used To report errors in a data segment and identify the location of the data segment |
Loop |
buildLoopTransactionSetResponseHeaderforTableHeader(Table inTable,
FunctionalGroup inFG,
DocumentErrors inDErr)
builds loop AK2 that is part of the TableHeader Transaction Set Response Header used |
Segment |
buildSegmentAK4forTableHeaderLoopAK2LoopAK3(Loop inLoop,
java.lang.Object inErrObject,
java.lang.String errCode,
java.lang.String errID)
builds segment AK4 that is part of the HeaderAK2AK3 Data Element Note used To report errors in a data element or composite data structure and identify the location of the data element |
Segment |
buildSegmentFunctionalGroupResponseHeaderforTableHeader(Table inTable,
FunctionalGroup inFG)
builds segment AK1 that is part of the TableHeader Functional Group Response Header used To start acknowledgment of a functional group |
Segment |
buildSegmentFunctionalGroupResponseTrailerforTableHeader(Table inTable,
FunctionalGroup inFG,
boolean inErr,
int acceptCnt)
builds segment AK9 that is part of the TableHeader |
Segment |
buildSegmentTransactionSetHeaderforTableHeader(Table inTable)
builds segment ST that is part of the TableHeader Transaction Set Header used To indicate the start of a transaction set and to assign a control number |
Segment |
buildSegmentTransactionSetResponseHeaderforLoopAK2(Loop inLoop,
TransactionSet inTS,
DocumentErrors inDErr)
builds segment AK2 that is part of the LoopAK2 Transaction Set Response Header used To start acknowledgment of a single transaction set |
void |
buildSegmentTransactionSetResponseTrailerforLoopAK2(Loop inLoop,
java.lang.String accRej,
java.lang.String code)
builds segment AK5 that is part of the HeaderAK2 Transaction Set Response Trailer used To acknowledge acceptance or rejection and report errors in a transaction set |
Segment |
buildSegmentTransactionSetTrailerforTableHeader(Table inTable)
builds segment SE that is part of the TableHeader Transaction Set Trailer used To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments) |
void |
checkLoop(Loop loopAK2forAK3,
Loop inLoop,
DocumentErrors inDErr)
works with loops looking to see if DocumentError object is pointing at any of its elements |
void |
checkSegment(Loop loopAK2forAK3,
Segment testSeg,
DocumentErrors inDErr)
works with individual segments looking to see if DocumentError object is pointing at it |
java.lang.String |
getNextControlNumber(java.lang.String what)
|
static void |
main(java.lang.String[] args)
the application main method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public X12Envelope env
| Constructor Detail |
public build997(X12Envelope inEnv,
DocumentErrors inDErr)
throws OBOEException
inEnv - an OBOE X12Document object that we are responding to with this 997inDErr - DocumentErrors object created when inEnv was created.
OBOEException - - most likely transactionset not found| Method Detail |
public Segment buildSegmentTransactionSetHeaderforTableHeader(Table inTable)
throws OBOEException
inTable - table containing this segment
OBOEException - - most likely segment not found
public Segment buildSegmentFunctionalGroupResponseHeaderforTableHeader(Table inTable,
FunctionalGroup inFG)
throws OBOEException
inTable - table containing this segmentinFG - functional group we are responding to
OBOEException - - most likely segment not found
public Loop buildLoopTransactionSetResponseHeaderforTableHeader(Table inTable,
FunctionalGroup inFG,
DocumentErrors inDErr)
throws OBOEException
inTable - table containing this segmentinFG - functional group containing transaction sets we're responding toinDErr - possible errors are contained in this.
OBOEException - - most likely segment not found
public Segment buildSegmentTransactionSetResponseHeaderforLoopAK2(Loop inLoop,
TransactionSet inTS,
DocumentErrors inDErr)
throws OBOEException
inLoop - loop containing this segment
OBOEException - - most likely segment not found
public void checkLoop(Loop loopAK2forAK3,
Loop inLoop,
DocumentErrors inDErr)
loopAK2forAK3 - loop to contain the reporting AK3inDErr - DocumentErrors object
public void checkSegment(Loop loopAK2forAK3,
Segment testSeg,
DocumentErrors inDErr)
loopAK2forAK3 - loop to contain the reporting AK3testSeg - segment we are testinginDErr - DocumentErrors object
public Loop buildLoopAndSegmenAK3forTableHeaderLoopAK2(Loop inLoop,
java.lang.String errID,
int errPos)
throws OBOEException
inLoop - loop containing this subsegment, the AK2 looperrID - segment ID in errorerrPos - int
OBOEException - -
most likely segment not found
public Loop buildLoopAndSegmenAK3forTableHeaderLoopAK2(Loop inLoop,
java.lang.String errID,
int errPos,
java.lang.String errCode)
throws OBOEException
inLoop - loop containing this subsegment, the AK2 looperrID - segment ID containing errorserrPos - interrCode - String value as reported by parser
OBOEException - - most likely segment not found
public Segment buildSegmentAK4forTableHeaderLoopAK2LoopAK3(Loop inLoop,
java.lang.Object inErrObject,
java.lang.String errCode,
java.lang.String errID)
throws OBOEException
inLoop - containing this subsegmentinErrObject - object causing the errorerrCode - 723 error codeerrID - field id in error
OBOEException - - most likely segment not found
public void buildSegmentTransactionSetResponseTrailerforLoopAK2(Loop inLoop,
java.lang.String accRej,
java.lang.String code)
throws OBOEException
inLoop - Loop that will hold the AK5 segment to be built, an AK2.accRej - - "A" or "R"code - - 718 code indicating type of error
OBOEException - - most likely segment not found
public Segment buildSegmentFunctionalGroupResponseTrailerforTableHeader(Table inTable,
FunctionalGroup inFG,
boolean inErr,
int acceptCnt)
throws OBOEException
inTable - table containing the AK9 segment to be builtinFG - functional group reporting on
OBOEException - - most likely segment not found
public Segment buildSegmentTransactionSetTrailerforTableHeader(Table inTable)
throws OBOEException
inTable - table containing this segment
OBOEException - - most likely segment not foundpublic java.lang.String getNextControlNumber(java.lang.String what)
public static void main(java.lang.String[] args)
|
Open Business Objects for EDI v3.5.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||