‎2006 Sep 28 7:21 AM
How to get the text in Sap Script.. from the text written in MIRO Transaction.
Could you provide with code ...
Thanks in advance..
-Mohan.
‎2006 Sep 28 7:26 AM
Use the function module read_text by appropriately passing the text id, text object etc.
STORE THIS TEXT INTO VARIABLE AND PAAS THIS VARIABLE TO SAPSCRIPT FOR DISPLAY.
‎2006 Sep 28 7:36 AM
you can use INCLUDE in the LAYOUT.
<b>description :</b>
INCLUDE: Include other texts
Use INCLUDE to include the contents of another text into your text. The text to be included exists separately from yours and is only copied at the time of the output formatting. With INCLUDE, since the text is only read and inserted during the output formatting, the most current version of the required text is always available.
<b>Syntax:
/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]</b>
The name of the text to be inserted must be specified and can have up to 70 characters. If the text name contains blanks, put it in quotes as a literal. It can also be specified with a symbol. All further parameters of INCLUDE are optional. If these parameters are missing, SAPscript uses default values based on the respective call environment for them.
Regards
srikanth
‎2006 Sep 28 7:58 AM
I am trying with Include statement .. Still I get the Include name as numbers at runtime say 5000912006 / Object name as RBKP / ID as 0001.
How should I pass the same in Sap Script using Include statement...
‎2006 Sep 28 8:03 AM
hi,
you have to give like,
/: INCLUDE <b>&T024E-TXADR&</b> OBJECT <b>RBKP</b> ID <b>ADRS</b> LANGUAGE &EKKO-SPRAS&
<b>&T024E-TXADR&</b> : is your OBJECT NAME (here its 5000912006)
<b>ADRS</b> : give as 0001
you have to give <b>/:</b> in the first column of the TEXT EDITOR. its a CONTROL COMMAND of script.
Regards
srikanth
Message was edited by: Srikanth Kidambi
‎2006 Sep 28 8:34 AM
Hi ,
you have to use the Function Module Read_Text.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = w_thead-tdid
language = w_thead-tdspras
name = w_thead-tdname
object = w_thead-tdobject
TABLES
lines = it_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
in the above function module it_lines contains the text.
but to get the input paremeters
id
language
name
object
doule click on the text which you need to display in 'Miro' then you will get a text editor follow the menu path you will get all the details.
goto->header
JAFFER VALI SHAIK