• Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

E9.0 Amend existing SO line to recreate F4074

johnd

Active Member
Hi folks,
I've been tasked with creating a simple find browse form that can alter SO lines with Row Exits.
One of the things is I may change the ITM, due to CITM etc, but then i get the Advanced Price and update that too.

Accountants have noticed the F4074 is then out of synch. I can't update F4074 directly as the prices maybe many and also different (although my BSNF call to get the Adv Prc is the total of these)

Anyone know how to call F4211 Edit Line correctly in order to cal the F4074? As I delete them, but just only recreate the one F4074.
Is it a setting in the version of P4210 maybe?

Thanks

John
 

Larry_Jones

Legendary Poster
Hi folks,
I've been tasked with creating a simple find browse form that can alter SO lines with Row Exits.
One of the things is I may change the ITM, due to CITM etc, but then i get the Advanced Price and update that too.

Accountants have noticed the F4074 is then out of synch. I can't update F4074 directly as the prices maybe many and also different (although my BSNF call to get the Adv Prc is the total of these)

Anyone know how to call F4211 Edit Line correctly in order to cal the F4074? As I delete them, but just only recreate the one F4074.
Is it a setting in the version of P4210 maybe?

Thanks

John
“Simple “.
That’s funny. Good luck John
 

BOster

Legendary Poster
First off, you can't change ITM on a sales order line. You have to cancel the line and create a new one if you want a new item number. Your best bet would be to mimic this in P42101, capture the debug logs and reverse engineer what to pass to F4211FSEditLine, F4211FSEditLinePreProcess, F4211FSEndDoc as well as any other functions including the functions to change the price history in the event the user changed the price.
 

johnd

Active Member
Thanks lads, I've got it working. You are right, F4211 Edit Line can't do this, but a simple table I/O update and then call the 3 BSFNs to perform the extra tasks seems to do the trick.
It appears certain version of P4210 will not recreate the F4074 anyway, but I am not sure which PO drives it

You can't ITM on P4210 either, but for some reason it's what they want me to code :)
 

BOster

Legendary Poster
It may appear to do the trick on the surface but table I/O on F4211, especially changing the item number, is not a good idea. You may get lucky and item A and B are IDENTICAL in every conceivable way other than the actual item number - then it might work. Otherwise you may have GL issues when the order line is invoiced, you may have transportation issues, you may have related order issues (PO/WO), etc.
 

johnd

Active Member
It may appear to do the trick on the surface but table I/O on F4211, especially changing the item number, is not a good idea. You may get lucky and item A and B are IDENTICAL in every conceivable way other than the actual item number - then it might work. Otherwise you may have GL issues when the order line is invoiced, you may have transportation issues, you may have related order issues (PO/WO), etc.
Strangely enough dude, ....."Otherwise you may have GL issues when the order line is invoiced" that is precisely why I've been asked to change it.
They changed the ITM and it was wrong due to the prices on F4074 etc.

Whatever I've done, it's working as they want anyway, but I agree
 
Top