Functions in R00460 for Interface

Purpose of Document

This note is to explain business functions can be implemented through R00460 - Interoperability Generic Outbound Subsystem UBE.

This document is to explain possible issue you may face in dealing with a report R00460 - Interoperability Generic Outbound Subsystem UBE. Currently this report is made up of 2 sections as below,


This document is made up of,


Primary Key for tables related: Individual Table possibly give you better idea to get the purpose of each tables



1. B0000195 - F0046CreateProcessingLogRecords (F0046 Create Processing Log Records)

Parameter Name Data Item Data Type I/O Req Purpose
szUserId[11] EDUS JCHAR I Y * Primary Key. User ID for the user who edits any transaction which has interoperability interface
szBatchNumber[16] EDBT JCHAR I Y * Primary Key of F0046
szTransactionNumber[23] EDTN JCHAR I Y *
mnLineNumber EDLN MATH_NUMERIC I Y *
szTransactionType[9] TYTN JCHAR I Y *
szOrderType[3] DCTO JCHAR I Y *
szTransactionAction[3] TNAC JCHAR I Y
cErrorEncountered ERR1 JCHAR O
    1. I0000195_CheckIfF0046RecordsExist: If record does exist, exit from routine
      1. (when data do not reside from F00460) I0000195_CreateF0046Records
      2. Validate szTransactionAction through BSFN N0000179 - TNACConvertToActionCode (Transaction Action, Convert To Action Code) to get the 1st Character of Description 02 from UDC 00/TA - Transaction Action. For example, if szTransactionAction is 02 the first character of UDC 00/TA is 'A' which determines Add of data. Currently valid action codes are 'A - Add', 'D - Delete', 'I - Inquiry', 'C - Change', 'R - Replace' and 'U - Update'.
      3. While loop to read data from F0047 based on 1st 2 columns (F0047.TYTN and F0047.DCTO) to check existence of F0047 (and if any) to return F0047.SEQ, OBNM, VERS
    2. Insert data into F0046
    3. Call B0000194 - UpdateUneditedTransactionTableAs (Update Unedited Transaction Table As Processed)

2. B0000194 - UpdateUneditedTransactionTableAs (Update Unedited Transaction Table As Processed)

Parameter Name Data Item Data Type I/O Req Purpose
szTypeTransaction[9] TYTN JCHAR I Y Type Transaction (e.g., JDEWO)
szUserId[11] EDUS JCHAR I Y
szBatchNumber[16] EDBT JCHAR I Y
szTransactionNumber[23] EDTN JCHAR I Y
mnLineNumber EDLN MATH_NUMERIC I Y
cErrorEncountered ERR1 JCHAR O
1. Read F47002 and return F47002.FILE
sql> SELECT SVTYTN, SVDRIN, SVEDTY, SVFILE FROM PRODDTA.F47002 WHERE ( SVTYTN = 'JDEWO' AND SVDRIN = '2' ) ORDER BY SVEDTY ASC
2. Update InteropTable.EDSP = 'Y'
sql> UPDATE PRODDTA.F4801Z1 SET SYEDUS='SDONGMYE',SYEDBT='0',SYEDTN='125918',SYEDLN=2000.000000,SYEDSP='Y' WHERE ( SYEDUS = 'SDONGMYE' AND SYEDBT = '0' AND SYEDTN = '125918' AND SYEDLN = 2000.000000 )
: If F47002 does not have proper definition EDSP will be remained as unsuccessfully

3. B0000178 - InteroperabilityLaunchVendorUBE (Interoperability Launch Vendor-Specific UBE)

Parameter Name Data Item Data Type I/O Req Purpose
szVendorSpecificUBEName[11] OBNM JCHAR I F0046.OBNM which you have defined through P0047 (=F0047.OBNM)
szVersionToCall[11] VERS JCHAR I F0046.VERS (=F0047.VERS)
szEdiUserId[11] EDUS JCHAR I F0046.EDUS
szEdiBatchNumber[16] EDBT JCHAR I F0046.EDBT
szEdiTransactionNumber[23] EDTN JCHAR I F0046.EDTN
cExportModeFlatFile FFEM JCHAR N/A
cExportModeDatabase EDEM JCHAR N/A
cExportModeAPI EAEM JCHAR N/A
cUBEErrorCode ERRC JCHAR N/A
cErrorCode ERRC JCHAR N/A
mnEdiLineNumber EDLN MATH_NUMERIC I F0046.EDLN



Note:
1. All required fields must be passed in.
2. The Vendor-Specific UBE called by this business function must have the following Report Interconnect data structure.
The order of the parameters in the UBE data structure must be maintained as follows (though argument may be null):
EDI User ID(EDUS) (INPUT)
EDI Batch Number (EDBT) (INPUT)
EDI Transaction Number (EDTN) (INPUT)
Export Mode Flat File (FFEM) (INPUT)
Export Mode Database (EDEM) (INPUT)
Export Mode API (EAEM) (INPUT)
UBE Error Code (ERRC) (OUTPUT)





3'. B0000192 - CallVendorSpecificFunctionOut (Call Vendor-Specific Function - Outbound)

Parameter Name Data Item Data Type I/O Req Purpose
szFunctionName[51] FCNN JCHAR I Y F0047.FCNN
szFunctionLibrary[257] FCNL JCHAR I Y F0047.FCNL
szUserId[11] EDUS JCHAR I Y F0046.EDUS
szBatchNumber[16] EDBT JCHAR I Y F0046.EDBT
szTransactionNumber[23] EDTN JCHAR I Y F0046.EDTN
mnLineNumber EDLN MATH_NUMERIC I Y F0046.EDLN
szTransactionType[9] TYTN JCHAR I Y F0046.TYTN
szDocumentType[3] DCTO JCHAR I Y F0046.DCTO
mnSequenceNumber SEQ MATH_NUMERIC I Y F0046.SEQ
cErrorsEncountered ERR1 JCHAR O



Note: