AHyde
Member
Hello,
I have written a customised UBE in which I am trying to insert records into the F4211 table using the master business functions Begin Doc, Edit Line and End Doc. I have plugged in the required parameters in my Begin Doc, but it does not work, and retyurns an error code of '2'.
Here are the parameters I'm passing:
Jobnumber -> 0
Action Code -> A
Process Edits -> 1
Computer ID -> my computer ID
Error Code <- 0
WriteToWF -> 2
ProgramID -> Customised Program
Version -> SL Versionname
Order Co -> Company number
Order No -> 0
Order Type -> SO
Business Unit -> MCU
Original Order No -> null
Original Order Co -> null
Original Order Ty -> null
Address No -> AN8
Ship To -> AN8
Order Date -> TRDJ
Customer PO -> VR01
Adjust Schedule -> null
Associated text -> null
Mode -> CRRM (F)
Currency Code -> blank
Exch Rate -> 0
Date Updated -> UPMJ (today)
User ID -> USER
Base Currency -> CRCD (calculated according to CO)
InvSalesOrderNo <-> 0
Source of data -> blank
ProcMode -> blank
TriangulationRateFrom -> '.' (hard coded)
TriangulationRateTo -> '.' (hard coded)
CurrConversion Method -> blank
RetrieveOrderNo -> 1
CommitInvEd -> null
Long AddressNoShipTo -> AN8
LongAddressNo -> AN8
Process Id <-> 0
Transaction ID <-> 0
Immediately following the Begin Doc, I have coded an insert into the F4201 header table. I could not code this before the Begin Doc as the Begin Doc generates the Order Number (DOCO) that is used in both the F4201 and F4211 records.
Does anyone have any ideas why the Begin Doc is failing?
Many Thanks
Amanda Hyde ([email protected])
I have written a customised UBE in which I am trying to insert records into the F4211 table using the master business functions Begin Doc, Edit Line and End Doc. I have plugged in the required parameters in my Begin Doc, but it does not work, and retyurns an error code of '2'.
Here are the parameters I'm passing:
Jobnumber -> 0
Action Code -> A
Process Edits -> 1
Computer ID -> my computer ID
Error Code <- 0
WriteToWF -> 2
ProgramID -> Customised Program
Version -> SL Versionname
Order Co -> Company number
Order No -> 0
Order Type -> SO
Business Unit -> MCU
Original Order No -> null
Original Order Co -> null
Original Order Ty -> null
Address No -> AN8
Ship To -> AN8
Order Date -> TRDJ
Customer PO -> VR01
Adjust Schedule -> null
Associated text -> null
Mode -> CRRM (F)
Currency Code -> blank
Exch Rate -> 0
Date Updated -> UPMJ (today)
User ID -> USER
Base Currency -> CRCD (calculated according to CO)
InvSalesOrderNo <-> 0
Source of data -> blank
ProcMode -> blank
TriangulationRateFrom -> '.' (hard coded)
TriangulationRateTo -> '.' (hard coded)
CurrConversion Method -> blank
RetrieveOrderNo -> 1
CommitInvEd -> null
Long AddressNoShipTo -> AN8
LongAddressNo -> AN8
Process Id <-> 0
Transaction ID <-> 0
Immediately following the Begin Doc, I have coded an insert into the F4201 header table. I could not code this before the Begin Doc as the Begin Doc generates the Order Number (DOCO) that is used in both the F4201 and F4211 records.
Does anyone have any ideas why the Begin Doc is failing?
Many Thanks
Amanda Hyde ([email protected])