implemented support for BatchConv SAP interface
This commit is contained in:
@ -486,6 +486,17 @@ AddTransaction:
|
||||
ParmList<7> = TransQty
|
||||
|
||||
TransRec = TransAction:@FM:ParmList
|
||||
|
||||
Case TransAction = 'BATCH_CONV'
|
||||
|
||||
ParmList = 1210 ; // Plant
|
||||
ParmList<2> = Parms[COL2()+1,@RM] ; // Material
|
||||
ParmList<3> = Parms[COL2()+1,@RM] ; // SAPBatchNo
|
||||
ParmList<4> = Parms[COL2()+1,@RM] ; // StoreLocFrom
|
||||
ParmList<5> = Parms[COL2()+1,@RM] ; // StoreLocTo
|
||||
ParmList<6> = Parms[COL2()+1,@RM] ; // BatchQty
|
||||
|
||||
TransRec = TransAction:@FM:ParmList
|
||||
|
||||
CASE 1
|
||||
|
||||
@ -946,6 +957,23 @@ SendOutbound:
|
||||
|
||||
GoSub SendRecord
|
||||
|
||||
CASE TransType EQ 'BATCH_CONV'
|
||||
|
||||
OutBoundDir = 'BatchConv'
|
||||
|
||||
Plant = Transaction[1,@FM]
|
||||
Material = Transaction[COL2()+1,@FM]
|
||||
SAPBatchNo = Transaction[COL2()+1,@FM]
|
||||
StoreLocFrom = Transaction[COL2()+1,@FM]
|
||||
StoreLocTo = Transaction[COL2()+1,@FM]
|
||||
TransQty = Transaction[COL2()+1,@FM]
|
||||
|
||||
OutRec = Plant:TAB$:Material:TAB$:SAPBatchNo:TAB$:StoreLocFrom:TAB$:StoreLocTo:TAB$:TransQty:CRLF$
|
||||
|
||||
RepoID = SAPBatchNo
|
||||
|
||||
GoSub SendRecord
|
||||
|
||||
CASE 1
|
||||
|
||||
END CASE
|
||||
@ -1242,4 +1270,3 @@ LogTrans:
|
||||
|
||||
RETURN
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user