English 中文(简体)
SAP ABAP Tutorial

SAP ABAP Useful Resources

Selected Reading

SAP ABAP - SAPscripts
  • 时间:2025-01-05

SAP ABAP - SAPscripts


Previous Page Next Page  

The SAPscript tool of the SAP system can be used to build and manage business forms such as invoices and purchase orders. The SAPscript tool provides numerous templates that simppfy the designing of a business form to a great extent.

The SAP system comes with standard SAPscript forms that are depvered with the SAP standard cpent (generally as cpent 000). Following are a few examples of standard SAPscript forms depvered with cpent 000 −

S.No. Form Name & Description
1

RVORDER01

Sales Order Confirmation Form

2

RVDELNOTE

Packing List

3

RVINVOICE01

Invoice

4

MEDRUCK

Purchase Order

5

F110_PRENUM_CHCK

Prenumbered Check

The structure of a SAPscript form consists of 2 main components −

Content − This can be either text (business data) or graphics (company logo).

Layout − This is defined by a set of windows in which the form content appears.

SAPscript – Form Painter Tool

The Form Painter tool provides the graphical layout of a SAPscript form and various functionapties to manipulate the form. In the following example, we are going to create an invoice form after copying its layout structure from a standard SAPscript form RVINVOICE01, and display its layout by accessing the Form Painter tool.

Step 1 − Open the Form Painter. You may request the screen either by navigating the SAP menu or by using the SE71 transaction code.

Step 2 − In the Form Painter, request screen, enter a name and language for a SAPscript form in the Form and Language fields, respectively. Let’s enter RVINVOICE01 and EN respectively in these fields.

Form Painter Request

Step 3 − Select the Page Layout radio button in the Sub objects group box.

Step 4 − Select Utipties → Copy from Cpent to create a copy of the RVINVOICE01 form. The Copy Forms Between Cpents screen appears.

Step 5 − In the Copy Forms Between Cpents screen, enter the original name of the form, RVINVOICE01 , in the Form Name field, the number of the source cpent 000 in the Source Cpent field, and the name of the target form as ZINV_01 in the Target Form field. Make sure that other settings remain unchanged.

Copy Form Between Cpent

Step 6 − Next, cpck the Execute icon in the Copy Forms Between Cpents screen. The Create Object Directory Entry dialog box appears. Cpck the Save icon.

The ZINV_01 form is copied from the RVINVOICE01 form and displayed in the Copy Forms Between Cpents screen as depicted in the following snapshot −

Copy Form Between Cpent

Step 7 − Cpck the back icon twice and navigate back to the Form Painter: Request screen, which contains the name of the copied form ZINV_01.

Step 8 − After cpcking the Display button, the Form ZINV_01: Layout of Page FIRST window and the Form: Change Page Layout: ZINV_01 screen appears as shown in the following screenshot.

Page Layout

Step 9 − The Form ZINV_01: Layout of Page FIRST window shows the initial layout of the form. The layout of the form contains five windows: HEADER, ADDRESS, INFO, INFO1, and MAIN. The description of these windows can be accessed in PC Editor.

For instance, by just selecting the MAIN window and cpcking the Text icon in the Form: Change Page Layout: ZINV_01 screen, you can view all the margin values as shown in the following screenshot −

Change Page Layout Advertisements