I'm using a modified PO20 form for ProcessFlow PO approvals and my client didn't like the many steps required to add a comment to the PO (which I'm sending to the buyer to explain why their PO was being rejected). I am using the writeattach.exe CGI to add the comment from a Text Area on my form when the user clicks a "Add Comment" button.

if (id=="push11")
{
var vProd = portalWnd.oUserProfile.getAttribute("productline");
var vComm = lawForm.getFormValue("textarea1");
s = "/cgi-lawson/writeattach.exe?_OUT=XML&_PDL=" + vProd;
s += "&_FN=PURCHORDER&_IN=PCRSET1&K1=1";
s += "&K2=" + lawForm.getFormValue("text6");
s += "&K3=" + lawForm.getFormValue("text4");
s += "&K4=" + lawForm.getFormValue("text5");
s += "&_ATYP=C&_AUDT=O";
s +="&_USCH=none&_DATA=TRUE&_OPM=M&_ECODE=FALSE&_ANAM=Approval Comment";
s += "&_ATXT=" + vComm;
alert ("Your comments have been accepted.")
portalWnd.httpRequest(s);
}

The comment types (&_AUDT= ) are:
B – Purchase Order Bill To Address
D – Comment to Print on Delivery Ticket
E – Purchase Order Copy Comments and Errors
I – Comments to Print on Headers on Internal Documents
N – Invoice Comments
O – Purchase Order Header Display Only Comments
P – Comments to Print on Purchase Orders
Q – Comments Pertaining to Vendor Contacts
R – Comments to Print on Receiving Documents
T – Comments to Print on Purchase Orders as Trailer Comments
My current client is implementing 9.0 and I wanted to use some of my previous ProcessFlow solutions for them, but most of my files are 8.03 .flo files.

Lawson does have a program to convert 8.03 flow files to 9.0 but they won't tell you how to use this program unless you've gone through the migration to 9.0 technical training. I haven't taken this training so I had to find a resource who had and was willing to share information.

The following instructions are a variation of Lawson's instructions. You will use the DEV product line in the Perl command instead of the 8.03 product line that Lawson's instructions say to use since if you're implementing 9.0 you won't have an 8.03 product line. Also, you will have to take the .xml files created and re-upload them into Lawson via the ProcessFlow Designer.

Create a directory: mkdir $GENDIR/ug81/803flows and copy your .flo files into that directory.
Change to the migration directory: cd $GENDIR/ug81
Run the flow conversion script:Perl pflowtoxml.pl DEV dir $GENDIR/ug81/803flows >pflowtoxml.log 2>&1

After running, check the pflowtoxml.log file for any conversion errors and the location of the revised files.

This program will write your revised .xml flow files to the pfrepository directory but you will have to transfer them to your workstation and upload them via the ProcessFlow Designer (after making any needed changes) since you're not actually converting to 9.0 and the system won't recognize the flows unless you upload them this way.