cancel
Showing results for 
Search instead for 
Did you mean: 

What is use of INCLUDE in command line statement?

Former Member
0 Kudos

Pls. explain following line. How this works and what is expected output for this line.

/: INCLUDE &VBDKA-ZTERM& OBJECT TEXT ID SDTP PARAGRAPH L

Thanks

Harshada

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

This will print the Standard text that you can normally see in So10 transaction for the Incoterms that come into the script at runtime. in the paragraph format L.

Regards,

Ravi

Former Member
0 Kudos

Thanks for the reply

But some terms are not cleared to me.

what is incoterm?

how output is updated at runtime?

former_member181962
Active Contributor
0 Kudos

OK Icoterms is a SD Module related term. Leave it.

Coming back to the Include syntax,

Check this link:

http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm

Regards,

Ravi

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi harshada,

incoterms are used in sd to determine the frieght charge. It is related to shipping.

Incoterms changes from country to country.

Regards...

Arun.

Former Member
0 Kudos

Thanks for the reply

Simha_
Employee
Employee
0 Kudos

Hi,

This includes are used to define the texts which are known as standatd text (Tx-SO10).

They can be included in the SAPScript instaed of writing everything in the script...For reusability....

Sameway we can also include logo's by using include statement...

Cheers,

SImha.

Former Member
0 Kudos

Hi

The command INCLUDE calls the standard text whose name is stored in the variable VBDKA-ZTERM.

In your case that statament are showing a std text for payment condition (ID SDTP), this kind of text is defined in the FI customizing.

Max

Former Member
0 Kudos

hi Harshada,

INCLUDE: Include other texts

With the command INCLUDE, you can 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 the INCLUDE command, you always get the most current version of the required text, since this is only read and inserted during the output formatting.

Syntax:

/: 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 a maximum of 70 characters. If the text name contains blanks, then you must put it in quotes as a literal. It can also be specified via a symbol. All further parameters of the INCLUDE command are optional. If they are missing, SAPscript uses default values for them which are based on the respective call environment.

Examples:

/: INCLUDE MYTEXT

The text MYTEXT is included in the language of the calling text.

/: INCLUDE MYTEXT LANGUAGE ‘E’ PARAGRAPH ‘A1’

The text with the name MYTEXT and the language E is included, regardless of in which language the calling text is created. The paragraph format A1 is valid as the standard paragraph for this call.

Optional specifications:

•LANGUAGE If a language is not specified, the language of the calling text or the layout set is set for the text to be included. If a language is specified, the text is always loaded in this language, regardless of the language of the calling text.

•PARAGRAPH The text to be included is formatted with the style allocated to it. With this parameter, the standard paragraph of this style can be redefined for the current call. All * paragraphs of the inserted text are then formatted with the paragraph specified here.

•NEW-PARAGRAPH The first line of the included text has this format flag, provided it is not a command or comment line. If the optional entry PARAGRAPH (see above) is empty, all * paragraphs of the included text are formatted with the paragraph np specified with

NEW-PARAGRAPH.

•OBJECT To specify a text completely, you must make further specifications regarding the text object. There are different rules and restrictions for this which depend on the object type of the calling text: All texts can be included in a layout set. If no object is entered here, TEXT is used (standard texts).With a documentation text (object DOKU), you can only include documentation texts. This object is assumed even if no object is specified in this environment. Only hypertext or documentation text can be included into a hypertext (object DSYS). If the OBJECT specification is missing, DSYS is set as a default value.

Only standard text (object TEXT), documentation text or hypertext can be included in any other type of text. The default object is TEXT if nothing is entered.

•ID The text ID, which allows further text types within an object, is a further part of the text key. If the ID is not entered, the default Include ID from table TTXID is used for the calling text. If the specification is not in this table, the text ID of the calling text is used.

The ID together with the object are now the basis of a further consistency check:

•All text IDs are allowed for a layout set.

•Only documentation texts with the text IDs TX (general texts), UO (authorization objects), and documentation texts which have the same text ID as the calling documentation text may be included in documentation texts.

•All DSYS texts may be included in DSYS texts, regardless of their ID. Documentation texts to be inserted may only have IDs TX and UO.

•Standard texts with all the allowed text IDs, DSYS texts with all IDs, and documentation texts with Ids TX and UO may be included in the other types of texts.

Regards,

Santosh

Message was edited by:

Santosh Kumar Patha

Former Member
0 Kudos

Thanks a lot for the reply

Where this object ID is maintained or saved?