Field values are blank in PO form after changes are made
I have created a Purchase Order form in SFP (Form Builder) using the MEDRUCK_PDF interface. After I create a purchase order in ME21N and click Print Preview, most of the fields populate. I have Item number, Material number, and Order Qty to name a few. Two new fields I have added, Order Number, KOMK-AUFNR, and Material Group, EKPO-MATKL, don't populate even at creation.
If I go back and make changes to the form in ME22N, when I click Print Preview, several of the fields that originally had values are now blank in the preview and also when the form is printed.
Is there a setting in SFP that needs to be set so the data will be retained after changes are made?
In the Include program FM06PE03, in the form adobe_entry_neu, there is code that checks if
nast-aende EQ space. It's a change message flag. If it is blank, meaning it's a newly created record, all the data will be shown in Print Preview. However, if it is checked, then the program checks NAST for the latest change to the document and only shows recently changed data.
I have no idea why anyone thinks this is a good idea.
So, to get around this rather odd "functionality", I put in an Enhancement point to clear this field,
nast-aende, every time.