Tuesday, 3 January 2012

Reading Text in SAPSCRIPT

If you only need to output the text, you don't need to used READ_TEXT like in an ABAP program,
just use the INCLUDE command in SAPScript.
It will read the text and output it to your form.


The Syntax is like this: 
/:  INCLUDE <text name> OBJECT <object> ID <id> LANGUAGE <language>
eg:
1. From standard text (SO10)






/: INCLUDE 'Z_TEST_TEXT' OBJECT 'TEXT' ID 'ST' LANGUAGE 'EN'
2. with paragraph declaration
/:  INCLUDE <text name> OBJECT <object> ID <id> LANGUAGE <language> NEW-PARAGRAPH <paragraph>
/: INCLUDE 'Z_TEST_TEXT' OBJECT 'TEXT' ID 'ST' LANGUAGE 'EN' NEW-PARAGRAPH 'DG'
3. From header text (eg. VA02 --> GoTo --> Header --> Texts --> Header )











/: INCLUDE '0100001299' OBJECT 'VBBK' ID '0001' LANGUAGE 'EN' 

2 comments: