07-16-2008 6:07 AM
Anyone explain me the following sap script statement
INCLUDE &RF140-TDNAME& OBJECT BKORM ID FIKO LANGUAGE &RF140-TDSPRAS&
07-16-2008 6:10 AM
this will implies you to get the Read Text functionality.
If see FM :Read Text u will find tdname, object, id and language and on the basis of this combination you can get the free text from SO, quotation etc...
&RF140-TDNAME&
OBJECT BKORM
ID FIKO
LANGUAGE &RF140-TDSPRAS&
Edited by: kinjal patel on Jul 16, 2008 7:10 AM
07-16-2008 6:10 AM
this will implies you to get the Read Text functionality.
If see FM :Read Text u will find tdname, object, id and language and on the basis of this combination you can get the free text from SO, quotation etc...
&RF140-TDNAME&
OBJECT BKORM
ID FIKO
LANGUAGE &RF140-TDSPRAS&
Edited by: kinjal patel on Jul 16, 2008 7:10 AM
07-16-2008 6:11 AM
Hi,
Check this link..It may be helpfull for u..
http://help.sap.com/saphelp_45b/helpdata/en/35/a47e68763e0392e10000009b38f9b7/content.htm
07-16-2008 6:11 AM
hi kumar,
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.
/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]
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,
Srilatha
07-16-2008 6:14 AM
This includes text maintained in Text ID
RF140-TDNAME is the text Id name
BKORM is the Object name
FIKO is the ID
RF140-TDSPRAS is the language
You can check text by passing these parameters to READ_TEXT function module.
07-16-2008 6:14 AM
In means including a dynamic standard text in the sapscript.
INCLUDE &RF140-TDNAME& OBJECT BKORM ID FIKO LANGUAGE &RF140-TDSPRAS&
&RF140-TDNAME& = variable name going to contain the text name
OBJECT = Object name of the text i.e. BKORM
ID = Object id of the text i.e. FIKO
&RF140-TDSPRAS& = variable name going to contain the text language
So based on the contents of &RF140-TDNAME& and &RF140-TDSPRAS& sap going to fetch the text dynamically.
Regards,
Joy.