F4211 Begin Doc MBF

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])
 
The quickes way to find out is to put this in a "dummy" form. Put your
begin doc under a push button and hard code all of your parameter mappings.
When you run the form it will return the error of why it doesn't like one
of your mappings.

Daniel Skoy
[email protected]





AHyde
<ahyde@christies. To: [email protected]
com> cc:
Sent by: Subject: F4211 Begin Doc MBF
owner-jdeowdev@jd
elist.com


01/18/2002 03:55
AM
Please respond to
jdeowdev






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])
























--------------------------
Visit the forum to view this thread at:
http://www.jdelist.com/cgi-bin/wwwthreads/showflat.pl?Cat
=&Board=OWDEV&Number=26885
+ - - - - - - - - - - - - - - - - - - - - - - - -+
This is the JDEList One World® / XE Developers mailing list / forum.
Archives and information on how to SUBSCRIBE, and
UNSUBSCRIBE can be found on the JDEList Forum at
http://www.JDEList.com

JDEList is not affiliated with JDEdwards®

+ - - - - - - - - - - - - - - - - - - - - - - - -+






Daniel Skoy
XE, AS400 V 5.1, NT
 
You should not write (manually) to the F4201/F4211, you should use the BSFN's.
From your description, you are running F4211 Begin Doc, and then issuing a Table Insert into F4201. Running Begin Doc is fine, but the End Doc will write the F4201 for you.

Best to examine one of the following programs UBE R4210Z, P420111 (OK Button) or P4210 itself, to see what parameters are used and what values they are populated with.


However, if you are addinging new lines to an existing order, you do not need to call F4211 Beg Doc (you just need to call Editline and then End Doc).



Hope this helps,



Peter Hamilton
B7332 SP14, Windows NT, Unix
 
Thanks Daniel for the tip. It helped me today. Begin doc for me was failing and your idea to use in dummy application works wonders. Wow. Thanks again.
 
Back
Top