Scripts
SAP
Scripts (from 1992)
SAP Script is word processing tool which is used to generate business documents like invoice, sales order. SAP scripts are Clint Specific/Clint Dependent{When ever an sap script is generated it is internally stored as texts. All texts are client dependent } and
also Language Specific.
In form we have two types.
1. Header:
a. Administrative data: It contains package name, client no, username, Language.
b. Basic settings: It contains page format, orientation, first page, default paragraph.
2. Pages:
In form we have two types.
- Print program.
- Form painter.
To design a form we have 3 techniques.
Components of sap script.- Sap scripts [From initial].
- Smart forms[Version 4.6C].
- Adobe forms [Version ECC].
1. Header:
a. Administrative data: It contains package name, client no, username, Language.
b. Basic settings: It contains page format, orientation, first page, default paragraph.
2. Pages:
- SAP scripts are group of pages.
- Page is group of windows.
- We can create 99 pages only.
- For every page we need to specify next page.
3.Window:
- A window contain some information to display on script.
- Without window we can’t display any data, logs in scripts.
- Window is an area to display any text/table data in page; we must define at least one window for each form.
- One form may have multiple pages and multiple windows.
SAP Script windows we have four types they are:
MAIN (Main window): To display Internal Table Data.
CONST (Constant window): To display Constant
Data/Constant Output.
VAR (Variable window): To display Varying
Data/Changing Data.
GRPH (Graphical
window): To display Log’s/Images.
NOTE: When we create
Form & Page by default the Main will created.
TIP: In one page we
can place 99 main windows. The name of windows starts from 00 to 98. We can also use conditions like IF, CASE etc...
Can we create a layout without main window?
NO, As it is thedefault window in the layout.
4. Page windows:
Symbols in sap script
1. System symbol:
Symbols defined by the system.
e.g. &DATE&
&YEAR&
&DAY&
&PAGE&.
2. Standard symbols:
Symbols which are declared in standard place (or) Standard symbols & their values are defined in the table TTSTG.
e.g. &DSM& "dear sir
3. Program Symbol:
Driver program symbols e.g. &wa_kna1-kunnr&.
4. Text symbols: Text symbols are symbols are defined in the layout itself.
e.g. DEFINE& V_AMOUNT& = '_'.
Two types of logo.
1. BMP[Bitmap] Clent independent
2. Tiffmap Client[text] system.
Logos should be converted into
1.Graphic as stored on document server.
2. Text
How to upload the logos in sap to display in script:
SE 78
Tiff logos not permitted after{6.0}
Standard text:
Go to SO10.
Go to main window->Clic on insert->Text->Standard.
How to debug the SAP script?
Goto se71->Give form name, Goto utility->C lick on 'activate debugger' press enter & go to program & execute.
Standard Programs:
RSTXLDMAC: to upload logos we have sap standard program.
RSTXSCRP: to download sap script forms into local pc.
RSTXFDEL: to delete form database.
RSTXTRAN: to transport standard text form one system to another system.
RSTXDEBUG: Activate/Inactivate [debugger]
RSTXFCPY: Copy form B/W clients.
RSTXFCOM: Comparison of two forms
RSTXR3TR: Transport program for sap script transport objects.
RSTXPDFT4: Convert sapscript spools request to pdf.
SAP Script Transactions:
SE71- Form painter
SE72- Styles
SE78- [Logo's sap script]
SO10- Standard text
SE63- Language Translation in Layout.
Q.What is the table name that will contain all the script form names? Print program names?
A. TNAPR
Q.How to read the data maintained in standard text in abap program?
A. Call FM READ_FM.
Q. What is the conditional statements used in sap script?
A. IF ELSE ENDIF.
CASE ENDCASE.
Note: We can't use any looping statements in sap script layout.
Q. How can i copy from client to another?
A. Utilities->Copy from client to copy sap script from one client to another.
Q. How to convert a sap script to smart form?
A. Utilities->migrate scipts to smartforms.
Q. Explain the text element in sap script?
A. By passing element name along with window name in write_form of driver program.
All the text elements start with /E.
Q. What is the sub routine pool in sap script? When it is used?
A. It is one of the program types. Which contains only the definations of the subroutines.
It is used to write the subroutine to fetch additional data to print it on the layout when the additional data has to be printed without changing the standard driver program.
Can we create a layout without main window?
NO, As it is thedefault window in the layout.
4. Page windows:
- Windows is assigned to particular page are called page windows.
- Tabs are represented by ,,{2 commas}.
- We can always print the data on page windows only. But not on windows & pages.
5. Paragraph format:
To provide the format of
the data to be printed, such as spacing, alignment, font, size.
6. Character format:
Used by a group of
character inside a paragraph is called a character format.
7. Layout:
It is a place where we
design the page with windows.
2. Bottom-Endbottom:
3. Protect-Endprotect:
4. New-Page:
5. Address-Endaddress:
Control Commands:
1. Top-Endtop:
It is used to print text
on top of all the main windows on the same page.
2. Bottom-Endbottom:
To print the same text
at the bottom of all the main windows on the same page.
3. Protect-Endprotect:
When the text that is be
printed on one without any break in between then we use protect &
endprotect.
4. New-Page:
To jump to the required
page directly without processing the current page completely.
5. Address-Endaddress:
To the post-convention
of the receipt country defined in the country defined in the country parameter.
All Function modules are used in SAP Script.
1. Open_form:
It opens form for printing (or) to open a form for execution by loading it into memory.
2. Start_form:
It is used to call another sao script into current SAP Script {Nested script}
3. Write_form:
To write some information on the sap script from using text element.
4. Close form:
To close form which is opend by open form.
5. End_form:
To end form which is started by start form.
All Function modules are used in SAP Script.
1. Open_form:
It opens form for printing (or) to open a form for execution by loading it into memory.
2. Start_form:
It is used to call another sao script into current SAP Script {Nested script}
3. Write_form:
To write some information on the sap script from using text element.
4. Close form:
To close form which is opend by open form.
5. End_form:
To end form which is started by start form.
Symbols in sap script
1. System symbol:
Symbols defined by the system.
e.g. &DATE&
&YEAR&
&DAY&
&PAGE&.
2. Standard symbols:
Symbols which are declared in standard place (or) Standard symbols & their values are defined in the table TTSTG.
e.g. &DSM& "dear sir
3. Program Symbol:
Driver program symbols e.g. &wa_kna1-kunnr&.
4. Text symbols: Text symbols are symbols are defined in the layout itself.
e.g. DEFINE& V_AMOUNT& = '_'.
Two types of logo.
1. BMP[Bitmap] Clent independent
2. Tiffmap Client[text] system.
Logos should be converted into
1.Graphic as stored on document server.
2. Text
How to upload the logos in sap to display in script:
SE 78
Tiff logos not permitted after{6.0}
Standard text:
Go to SO10.
Go to main window->Clic on insert->Text->Standard.
How to debug the SAP script?
Goto se71->Give form name, Goto utility->C lick on 'activate debugger' press enter & go to program & execute.
Standard Programs:
RSTXLDMAC: to upload logos we have sap standard program.
RSTXSCRP: to download sap script forms into local pc.
RSTXFDEL: to delete form database.
RSTXTRAN: to transport standard text form one system to another system.
RSTXDEBUG: Activate/Inactivate [debugger]
RSTXFCPY: Copy form B/W clients.
RSTXFCOM: Comparison of two forms
RSTXR3TR: Transport program for sap script transport objects.
RSTXPDFT4: Convert sapscript spools request to pdf.
SAP Script Transactions:
SE71- Form painter
SE72- Styles
SE78- [Logo's sap script]
SO10- Standard text
SE63- Language Translation in Layout.
Q.What is the table name that will contain all the script form names? Print program names?
A. TNAPR
Q.How to read the data maintained in standard text in abap program?
A. Call FM READ_FM.
Q. What is the conditional statements used in sap script?
A. IF ELSE ENDIF.
CASE ENDCASE.
Note: We can't use any looping statements in sap script layout.
Q. How can i copy from client to another?
A. Utilities->Copy from client to copy sap script from one client to another.
Q. How to convert a sap script to smart form?
A. Utilities->migrate scipts to smartforms.
Q. Explain the text element in sap script?
A. By passing element name along with window name in write_form of driver program.
All the text elements start with /E.
Q. What is the sub routine pool in sap script? When it is used?
A. It is one of the program types. Which contains only the definations of the subroutines.
It is used to write the subroutine to fetch additional data to print it on the layout when the additional data has to be printed without changing the standard driver program.
Q.Differences between Reports & Scripts?
Reports:
We can’t size, logs, styles in reports.
Defined information.
Reports printing data as per the customer requirements
Report is for internal purpose i.e. to analyze the current
status.
Scripts:
We can design font, logos, style per the requirement.
Overview information.
Sap script is text processing system.
It is used to print the business documents such as order
purchase order, offer letter.
For external purpose to print & transfer the business
documents.
No comments:
Post a Comment