cancel
Showing results for 
Search instead for 
Did you mean: 

Why do we use include in sap script text element

Former Member
0 Kudos

Hi SDNers,

Why do we use include statement or what does that stands for in an text element of a sap script.

Details with examples and explanation please

Thanks & Regards,

Ranjith N

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ranjith,

Please go through this.

  • &VBDPL-ARKTX&

/: INCLUDE &VBDPL-TDNAME& OBJECT VBBP ID 0001

If your include contains

= arflebarflegloop

and vbdpl-arktx contains 'myarticletext'.

Then the output document will contain a line:

myarticletext arflebarflegloop

If the include contains

  • arfelbarflegloop

then the output document will contain the lines:

myarticletext

arflebarflegloop

(Subject to whatever the prevailing paragraph format is - * means use current format).

Think about what would happen if instead of having an include, you hardcoded the text of the include in your sapscript.

I found this at http://www.sapfans.com/sapfans/forum/devel/messages/31158.html

Regards,

Sharat.

Answers (3)

Answers (3)

Former Member
0 Kudos

closed

Former Member
0 Kudos

Hi Ranjith,

INCLUDE Statement is To include a text into any text module, the user enters the INCLUDE control statement in the SAPscript editor. When formatting the text for print output, the system reads the text lines of the specified text and inserts them in the current text printout.

In each text, several INLCUDE statements can appear together with other text lines. In the SAPscript editor, you can see only the INCLUDE statement, not the lines of the text you include. With an INCLUDE statement, you always include all lines of the specified text. You can nest INCLUDE statements.

If you change a text, these changes effect all texts that include it. If you delete a text, a corresponding INCLUDE statement is without effect.

To change text lines of an included text, you must resolve the INCLUDE Expand Selected area statement. In the text editor, choose Edit INCLUDE. The system now copies the text lines into the current text and deletes the INCLUDE statement. Afterwards, there is no more link to the text originally specified in the INCLUDE statement. This means, that changes to the original text no longer effect the current text.

.

Regards

ranga

Former Member
0 Kudos

Hi,

The Include statement is used for printing standard texts and logos in a sapscript.

<<removed by moderator>>

Thanks

Nidhi