Hi Kali,
once you create a standard text in s010.
in se71 in u r program insert that text.
Go to Menu bar
Insert - > Text - > standard. Enter your text name here.
standard-text-doubt-in-sap-script
https://www.sdn.sap.com/irj/sdn/forumsearchhttps://standard-text-in-sap-script
Thanks
Vikranth Khimavath
Hi Kali,
in Reports you can use the text which ist created with SO10 like this:
REPORT ZGRO_TEST1.
*
DATA: BEGIN OF HEAD.
INCLUDE STRUCTURE THEAD.
DATA: END OF HEAD.
*
DATA: BEGIN OF LINE OCCURS 10.
INCLUDE STRUCTURE TLINE.
DATA: END OF LINE.
*
************************************************************************
START-OF-SELECTION.
*
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'ST' "the ID of the text
LANGUAGE = SY-LANGU
NAME = 'Z_MUSTER' "the name of the text
OBJECT = 'TEXT' "for Standarttext
IMPORTING
HEADER = HEAD
TABLES
LINES = LINE
EXCEPTIONS
NOT_FOUND = 01.
*
IF HEAD-TDTXTLINES > 0.
*
LOOP AT LINE.
WRITE: / LINE.
ENDLOOP.
*
ELSE.
WRITE: SY-SUBRC.
ENDIF.
*
END-OF-SELECTION.
*
In the structure HEAD you get more information of the text, look via
debugger in this field.
Hope it helps.
regards, Dieter
Add a comment