Tuesday, December 21, 2010
01 | How do I create Boxes in SAPscript? | ||||||||||||||||||||||||||||||||
You can create Boxes in the SAPscript using the BOX command specifying the x,y co-ordinates and the width and the height
BOX XPOS '0' CM YPOS '0.5' CM WIDTH '9.2' CM HEIGHT '3.5' CM FRAME 8 TW
| |||||||||||||||||||||||||||||||||
02 | How can I create a Shaded box? | ||||||||||||||||||||||||||||||||
*/: * POSITION XORIGIN '2' CM YORIGIN '7.5' CM /: BOX WIDTH '18' CM HEIGHT '1.25' CM INTENSITY 15 This will create a box with the given height and width and shading it with 15% intensity.(Need to provide X,Y positions also ). | |||||||||||||||||||||||||||||||||
03 | How to Use the New-Window Command? | ||||||||||||||||||||||||||||||||
You can use the NEW-WINDOW command to call the other main window explicitly in the form, even if the current main window is not full. We can create upto 99 Main Windows. This Main windows are generally used to create labels or to write Addresses.Need to write this in the Main window. /: NEW-WINDOW | |||||||||||||||||||||||||||||||||
04 | How do I set tabs between the fields in display? | ||||||||||||||||||||||||||||||||
In the Paragraph Format tab, create a new paragraph format. In the "Tabs" Tab, enter the tab position and the alignment for the fields. | |||||||||||||||||||||||||||||||||
05 | How do I create standard texts for the SAPscripts? | ||||||||||||||||||||||||||||||||
You can create standard texts using the transaction SO10. Then to insert these standard texts in the SAPscript choose the menu, Insert->Text->Standard and choose the standard text that you want to choose. Alternatively, you can display standard texts in your SAPscripts using the command: INCLUDE ZSTEXT OBJECT TEXT ID ST LANGUAGE EN
| |||||||||||||||||||||||||||||||||
06 | How can I debug my SAPscript? | ||||||||||||||||||||||||||||||||
Go to the transaction SE71. Enter the form name. Choose the menu Utilities->Activate Debugger to enable debugging. | |||||||||||||||||||||||||||||||||
07 | I have created a SAPscript in language DE. Now I need to translate it to EN. How could I do this? | ||||||||||||||||||||||||||||||||
Open your SAPscript in transaction SE71. In the Header screen, in the Language Attributes Option, choose Translate to... Option to translate to other languages. If any text modules or texts have to be translated within the SAPscript, then it can be done using SE63 transaction. | |||||||||||||||||||||||||||||||||
08 | How can I Word Wrap the text being displayed in SAPscript? | ||||||||||||||||||||||||||||||||
Use the Function Module RKD_WORD_WRAP to wrap the text and use this for output. | |||||||||||||||||||||||||||||||||
09 | How can I display barcodes in SAPscripts? | ||||||||||||||||||||||||||||||||
Create a character format in the SAPscript. Choose the Bar Code for the character format. And finally to display barcodes, in the command enter:
| |||||||||||||||||||||||||||||||||
10 | How can I print logos in SAPscripts? | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
11 | How can I copy SAPscripts from one client to another? | ||||||||||||||||||||||||||||||||
In the transaction SE71, enter the Form name and choose the menu, Utilities->Copy from client to copy SAPscripts from one client to another. Use RSTXSCRP to import/export SAPscripts. | |||||||||||||||||||||||||||||||||
12 | How can I trigger new page in SAPscripts? | ||||||||||||||||||||||||||||||||
Use the command NEW-PAGE to trigger a new page in SAPscript. /:NEW-PAGE You can explicitly trigger a page not in sequence by specifying the name pf page with the command NEW-PAGE /: NEW-PAGE | |||||||||||||||||||||||||||||||||
13 | How can I prevent page-break in the message that is to be displayed? | ||||||||||||||||||||||||||||||||
Enclose the text that you want to prevent page-break in PROTECT... ENDPROTECT SAPscript will ensure that each line of this text is printed together on the same page. Ie.If SAPscript finds that the text cannot be printed on that page completely a implicit page break occurs and the text is printed on the next page
/: PROTECT * Text * Within * The same page /: ENDPROTECT
| |||||||||||||||||||||||||||||||||
14 | How can I set the position of the leading sign to left/right? | ||||||||||||||||||||||||||||||||
You can use the SET SIGN command to output the leading sign at the left or right.
/: SET SIGN LEFT /: SET SIGN RIGHT
| |||||||||||||||||||||||||||||||||
15 | What are the various text formatting options in SAPscript? | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
16 | Which are frequently Used System Variables in SAPscript? | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
17 | What are the different types of windows in SAPscripts? | ||||||||||||||||||||||||||||||||
Windows are defined in the Layout sets which define the position and the text to displayed. The different types of windows are:
| |||||||||||||||||||||||||||||||||
18 | How can I format the date being displayed in the SAPscript? | ||||||||||||||||||||||||||||||||
The date fields in SAPscripts can be formatted using the SET DATE MASK control command. Eg.: /: SET DATE MASK = 'MMMM DD, YY' This displays the date as : September 26, 07 The following are the codes that can be used in the date mask:
| |||||||||||||||||||||||||||||||||
19 | How can I format the time in the SAPscript? | ||||||||||||||||||||||||||||||||
Similar to SET DATE MASK for date fields we can use SET TIME MASK for formatting time fields. Eg.: /: SET TIME MASK = 'HH hrs MM min SS sec' This displays the time as : 11 hrs 43 min 37 sec' The following are the codes that can be used in the time mask:
| |||||||||||||||||||||||||||||||||
20 | How can I apply shading for the BOXes in SAPscript? | ||||||||||||||||||||||||||||||||
Use the addition INTENSITY in the BOX command to apply gray shading to the boxes. Eg: BOX XPOS '0' CM YPOS '0.5' CM FRAME 8 TW INTENSITY 10 | |||||||||||||||||||||||||||||||||
21 | What is the difference between the SAPscript texts, 'Customer &KNA1-KUNNR&' and '&Customer KNA1-KUNNR&'? | ||||||||||||||||||||||||||||||||
In the first case of 'Customer : &KNA1-KUNNR&', the text 'Customer : ' is displayed regardless of the variable KNA1-KUNNR even if it is having Initial value. In the second case of '&Customer : KNA1-KUNNR&', The text 'Customer :' and KNA1-KUNNR is displayed only when the variable KNA1-KUNNR has non-initial values. | |||||||||||||||||||||||||||||||||
22 | How can I change the page size of the layout? | ||||||||||||||||||||||||||||||||
In the SAPscript, Goto -> Header -> Basic Settings Here you could configure the page settings and their orientation. | |||||||||||||||||||||||||||||||||
23 | How can I set the header and footer in the main window? | ||||||||||||||||||||||||||||||||
The TOP...ENDTOP and BOTTOM...ENDBOTTOM commands are used to set the header and footer texts in the main window respectively. These texts will be displayed on the start and end of every new page in the output. To disable these texts enclose empty commands between the commands. Eg.: /: TOP /: ENDTOP | |||||||||||||||||||||||||||||||||
24 | What the conditional statements used in SAPscripts? | ||||||||||||||||||||||||||||||||
The following conditional statements are used in SAPscripts:
| |||||||||||||||||||||||||||||||||
25 | What is the use of the POSITION and SIZE command in SAPscripts? | ||||||||||||||||||||||||||||||||
The POSITION command is used to x, y coordinate position which is used by the BOX command. The offset from the current window positions are specified which could be either positive or negative. /: POSITION XORIGIN YORIGIN WINDOW PAGE Eg.: /: POSITION XORIGIN '2' CM YORIGIN '-1.5' CM Similarly the SIZE command sets the width and height parameters. /: SIZE WIDTH HEIGHT WINDOW PAGE Eg.: /: SIZE WIDTH 10 TW HEIGHT 10 TW | |||||||||||||||||||||||||||||||||
26 | How to find the Driver Program for the given SAPscript? | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
27 | How can I get the landscape format in SAPscript? | ||||||||||||||||||||||||||||||||
In the form go to basic settings--> you can find a landscape option --> click on it and at the bottom. You can find the page option enter the page name for which you want to assign ladscape format. | |||||||||||||||||||||||||||||||||
28 | How many MAIN windows are allowed for SAPscript? | ||||||||||||||||||||||||||||||||
SAPscript allows only one MAIN window. Each Page can consists up to 99 windows. Each main window is assigned a consecutive identifying number (0..98). This is mainly used for label printing or address printing. | |||||||||||||||||||||||||||||||||
29 | Can you create a SAPscript without a main window? | ||||||||||||||||||||||||||||||||
we can not create a SAPscript without a main window. | |||||||||||||||||||||||||||||||||
30 | Where can you find all the SAPscript form names and print program names? | ||||||||||||||||||||||||||||||||
Table TNAPR . | |||||||||||||||||||||||||||||||||
31 | How to assign own form to a standard print program? | ||||||||||||||||||||||||||||||||
Using NACE Transaction. | |||||||||||||||||||||||||||||||||
32 | How to add extra functionality to a standard print program with out touching the print program? | ||||||||||||||||||||||||||||||||
Using Subroutines. | |||||||||||||||||||||||||||||||||
33 | How to upload logos in SAPscripts? | ||||||||||||||||||||||||||||||||
We can use SE78 or program RSTXLDMC from where you can upload the images on to the SAPscripts. | |||||||||||||||||||||||||||||||||
34 | How to convert a sapscript to Smart Form? | ||||||||||||||||||||||||||||||||
Goto Smart FormS,Goto Menu path Utilities -> Migration -> Import SAPscript Form. | |||||||||||||||||||||||||||||||||
35 | How to Mass migrate of SAPscripts to Smart Forms? | ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
36 | How to debug a SAPscript? | ||||||||||||||||||||||||||||||||
1. In SE71 Transaction, Goto Menu path Utilities ---> Activate Debugger. 2. Using standard program RSTXDBUG. | |||||||||||||||||||||||||||||||||
37 | How to Import/Export SAPscripts? | ||||||||||||||||||||||||||||||||
Using program RSTXSCRP. | |||||||||||||||||||||||||||||||||
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.