When you print documents from the F1 help, function module 'display_text_exit_sy' is not dound. A runtime error occurs.
Or
When you print documents from the F1 help, message TD602 is issued: 'text object & is not available'. The text object that is not found is not specified.
The function module call 'print_text' in module pool LSHL2F15 in FORM routine 'OK-Code_F1_Anzeige' is incorrect.
SolutionCorrect the call as follows:
Insert the lines marked with "NEW.
Change the lines marked with "MODIFIED.
Start transaction SE38 and enter LSHL2F15 as program name.
Choose 'Change source code'.
Search Form routine 'OK-CODE_F1_ANZEIGE'.
Change the source code as follows:
FORM OK-CODE_F1_ANZEIGE.
DATA: BEGIN OF PRINTHEAD.
INCLUDE STRUCTURE THEAD.
DATA: END OF PRINTHEAD.
CASE SY-UCOMM.
WHEN 'DPRI'.
PRINTHEAD-TDLINESIZE = '72'.
PRINTHEAD-TDSPRAS = SY-LANGU.
PRINTHEAD-TDFORM = 'S_DOCU_PRINT'. "NEW
PRINTHEAD-TDID = 'DE'. "NEW
PRINTHEAD-TDOBJECT = 'DOKU'. "NEW
CALL FUNCTION 'PRINT_TEXT'
EXPORTING
* APPLICATION = 'SY' "MODIFIED
APPLICATION = 'TD'
DEVICE = 'PRINTER'
DIALOG = 'X'
HEADER = PRINTHEAD
TABLES
LINES = HELPLINES
EXCEPTIONS
CANCELED = 01
DEVICE = 02
FORM = 03
OPTIONS = 04
UNCLOSED = 05
UNKNOWN = 06.
IF SY-SUBRC EQ 0. "NEW
MESSAGE S750. "NEW
ENDIF. "NEW
Then choose the 'Check' function.
If the syntax check is successful, save the source code.
Start transaction SE38 again and enter SAPLSHL2 as program name.
Choose 'Program' -> 'Generate' from the menu.
No comments:
Post a Comment