Saturday, June 25, 2011

SAPScript commands

Script Commands.
Defining a variable
DEFINE &CUST& = '00000021'.

Define and insert a standard text:
Standard texts is predefined texts that can be used in more than one form. Standard texts are can be created, changed and displayed using transaction SO10.

The text ID is used to classify texts.

To include a standard text in a form, use the INCLUDE command:

/: INCLUDE Z_BC460_EX4_HF OBJECT TEXT ID SDVD

When formatting the standard text the PARAGRAPH parameter is used. To center the text use:

/: INCLUDE Z_BC460_EX4_HF OBJECT TEXT ID SDVD LANGUAGE EN PARAGRAPH C.

Formatting addresses
The ADDRESS-ENDADDRESS command formats addresses according to the postal norms of the recipient's country, as defined in the

country parameter.

ADDRESS DELIVERY PARAGRAPH AD
NAME  &KNA1-NAME&
STREET  &KNA1-STRAS&
POSTCODE  &KNA1-PSTLZ&
CITY  &KNA1-ORT01&'
COUNTRY    &KNA1-LAND1&
FROMCOUNTRY     'DE'
ENDADDRESS



Read Full Document :: SAPScriptsCommand.Pdf

No comments:

Post a Comment