Data is Missing, or Field Contents or Includes are not Printed

In your printout, one of the following errors occurs:

  • Data is missing.

  • Field contents (data from program fields) is not printed.

  • Documents that you have inserted with the INCLUDE command are not printed.

  • Symbols are not resolved and printed.

Do the following to localize the error:

  • Can you display the data that is missing in the SAP spool system (transaction SP01, display spool request)?

If you can display such data, then the problem is in the printer setup, either in the SAP spool system or in your host PC or workstation. Otherwise, the problem is in the print program or form.

  • Do the fields in the print program get filled with the right values at the right time?

You can check this by running the print program in the ABAP debugger. Note that SAPscript can read fields only if they are declared with the ABAP TABLES statement.

  • Is the name of the print program passed to SAPscript correctly?

The name of the print program must be in the ITCPO-TDPROGRAM parameter (OPTIONS parameter) of the call to the OPEN_FORM function module in the print program. Otherwise SAPscript cannot "find" the data fields. The default is to search in the active main program.

  • If an INCLUDE document is missing, then have the parameters of the INCLUDE command been set correctly?

/: INCLUDE <name> OBJECT <object> ID <id> LANGUAGE <l>

Both the name of the text and the language are usually set with variables whose values are not known until runtime. Does the INCLUDE text actually exist in the current client in the language that is requested?

  • Is a text is not being printed and does the corresponding text element in the form consist only of an INCLUDE command or symbols?

Then you can test the text element by inserting a few literal characters as ‘hard text’ into the text element.

Activate the form and start the print run again. If the new characters are printed, then the print program calls the text element. The cause of the problem therefore lies in the INCLUDE parameters.

If the new characters are not printed, then either of the following errors is likely to have occurred:

  • The text element is not called from the print program. You can check for an error in the print program with the form debugger.

  • The form is used in a language variant other than that specified for the printout. This language to use is specified by the print program.