Using F4311 Edit Line from w/in P4210/W4210A

Frosty the Coder

Legendary Poster
I'm trying to automagically update purchase orders created from sales order, direct ship lines.

I've looked at the parms that F4311 Edit Line uses, when being called from w/in F4211 Edit Line.

I'm having grief w/the "mnJobNumber" parm.

The debug logs shows ZEROES being passed on an ADD,
and a job number being returned after the bsfn completes.

It LOOKS LIKE that job number should be returned from the F4211 Edit Line
as the mnSODRelatedJobNumber going into VA frm_mnCreditJobNum_JOBS.
This doesn't (seem to be) returning the value in the parm.

Is there a diff bsfn, that would allow me to find the CACHE job number,
for the PO created by the direct ship item?

Any/all help is appreciated.

TIA

Gene
 
I am not an expert on F4311 Edit Line, but...

The mnJobNumber parm is an internal key that is used to identify all parts of a transaction (header and detail) in the work files or buffer.

If you pass in a zero, it will assign a job number for you and return that value, which you should use for the remainder of your calls (for that transaction) to F4211 Edit Line & F4211 End Document. Use a different mnJobNumber for the F4311 calls (it is a different transaction).

The F4211 Begin Document, F4211 Edit Line, F4211 End Document and corresponding F4311 functions could use some practical documentation, with examples of how to use them. If anyone knows where such information exists, it would be appreciated.
 
Back
Top