Data Is Missing, or Field Contents or Includes Have Not Been Printed
Procedure
This section describes how you can solve the following errors:
-
Data is missing
-
Field contents (data from program fields) have not been printed
-
Documents that you have inserted with the INCLUDE command have not been printed
-
Symbols have not been converted or printed
Do the following to localize the error:
-
Check whether you can display the missing data in the SAP spool system (transaction SP01, spool request screen).
If you can display this data, the problem is in the printer settings, either in the SAP spool system or in your host PC or workstation. Otherwise, the problem is in the print program or form.
-
Check whether the fields in the print program are filled with the correct values at the correct 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.
-
Make sure that the name of the print program has been 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. Otherwise, SAPscript cannot "find" the data fields. By default, the system searches in the active main program.
-
If an INCLUDE document is missing, check whether the parameters of the INCLUDE command been set correctly.
/: INCLUDE <name> OBJECT <object> ID <ID> LANGUAGE <s>
Both the text name and language are usually set with variables whose values are not known until runtime. Check whether the INCLUDE text actually exists in the current client in the required language.
-
If the text has not been printed, check whether the corresponding text element in the form consists only of an INCLUDE command or symbols.
If so, you can test the text element by entering a few characters into it.
Activate the form and start the print run again. If the new characters are printed, then the print program calls the text element. This means that the cause of the problem lies in the INCLUDE parameters.
If the new characters are not printed, then one of the following errors is likely to have occurred:
-
The text element is not called by the print program. Check the print program using the form debugger.
-
The form is used in a language variant other than that specified for the printout. The language to be used is specified by the print program.
-