Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

meaning of the following statement

Former Member
0 Kudos

Anyone explain me the following sap script statement

INCLUDE &RF140-TDNAME& OBJECT BKORM ID FIKO LANGUAGE &RF140-TDSPRAS&

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.