I have developed a Smart Form for a packing list. The requirement is to have "REPRINT/DUPLICATE" printed on the upper right hand corner if the print for that particular delivery has already been taken.
The message control table NAST contains the information you seek. So one way to handle the requirement in a Smart Form is to add logic to the form' Initialization section, which queries this table with all relevant keys (e.g. your particular output type and document number) plus an output status indicator (VSTAT) = '1' (completed successfully). If such a record is found, this likely is a reprint. You could then set a global flag which is passed out of this section and added as a condition to the node which prints 'REPRINT/DUPLICATE'.
For the SAPscript version, see SAP program RVADDN01, form routine CHECK_REPEAT.
Dig deeper on SAPscript and Smart Forms
An SAP user is working with an SAPscript form to create the form development for an Invoice List, and wants to know if it's possible to migrate the ...continue reading
An SAP user is trying to align a barcode in the center of a defined window on an SAP Smart Form.continue reading
An SAP user is looking to fix an error with a packing slip print-out in an SAP Smart Form.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.