Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP script

Former Member
0 Likes
1,116

Hi all,

I am studying ABAP. any one plz guide me

what is meant by SAP script ?

what are the uses ?

give some code examples.

by,

raghul

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
1,027

Hi Raghul,

SAP Script is used for form printing. Take an example of any bill. Suppose u went to some shopping mall and get the bill after purchasing all the items. If u see the bill some of the details will be constant for all the bills like LOGO, Mall address etc and some may vary from customer to customer like details of the items, prices and discounts etc. SAP script does all these functionality.

We will define a layout of the form to be printed. We will hard code the constant values like address and use variables for varying details like prices. Every script is associated with print program(Nothing but normal report) where we will call the script form from the print program. All the variables used in the script must be defined in the print program. The values of the variables will be populated in the print program and printed in the script.

We can't use variables of the print program directly in the script. Every variable should enclosed between the symbol &

eg: w_data should be used in script like &w_data&

Check the function modules OPEN_FORM-to open the form WRITE_FORM-To write the data from print program CLOSE_FORM-To close the form.

SE71 is the transaction code to create/change/display the script.

Thanks,

Vinod.

Edited by: Vinod Kumar Vemuru on Mar 23, 2008 11:09 AM

7 REPLIES 7
Read only

Former Member
0 Likes
1,027

Sap Script is basically the output what we generate from the SAP System.

Eg. Output in the form of Billing Document, Picking List, Sales order confirmation, & so on.

Check out the following links

SAP Scripts

https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311

https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391

https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653

https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402

http://www.sap-img.com/sapscripts.htm

http://sappoint.com/abap/

http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm

http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm

http://www.sap-basis-abap.com/sapabap01.htm

http://www.sap-img.com/sapscripts.htm

http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html

http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303

http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a

Other Links

http://www.virtuosollc.com/PDF/Get_Reporter.pdf

http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm

http://www.virtuosollc.com/PDF/Get_Reporter.pdf

http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm

drawing lins, boxes and shadings

http://help.sap.com/saphelp_46c/helpdata/en/d1/802ec5454211d189710000e8322d00/frameset.htm

http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp

http://www.allsaplinks.com/dialog_programming.html

http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm

http://www.allsaplinks.com/files/using_table_in_screen.pdf

http://www.geocities.com/ZSAPcHAT

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,028

Hi Raghul,

SAP Script is used for form printing. Take an example of any bill. Suppose u went to some shopping mall and get the bill after purchasing all the items. If u see the bill some of the details will be constant for all the bills like LOGO, Mall address etc and some may vary from customer to customer like details of the items, prices and discounts etc. SAP script does all these functionality.

We will define a layout of the form to be printed. We will hard code the constant values like address and use variables for varying details like prices. Every script is associated with print program(Nothing but normal report) where we will call the script form from the print program. All the variables used in the script must be defined in the print program. The values of the variables will be populated in the print program and printed in the script.

We can't use variables of the print program directly in the script. Every variable should enclosed between the symbol &

eg: w_data should be used in script like &w_data&

Check the function modules OPEN_FORM-to open the form WRITE_FORM-To write the data from print program CLOSE_FORM-To close the form.

SE71 is the transaction code to create/change/display the script.

Thanks,

Vinod.

Edited by: Vinod Kumar Vemuru on Mar 23, 2008 11:09 AM

Read only

Former Member
0 Likes
1,027

Hi Raghul,

SAP Scripts are nothing but one of the output docs.

Generally in business Scenario u need to send some data to any one.

U want the data should be un modified, before it is going to take a Printed form. In those situation we use scripts and smartforms tooo.

Read only

Former Member
0 Likes
1,027

Hi raghul,

SAP-Scripts are mainly used to design layout sets.

layout sets are uses to define and format the forms.

and forms are used to print sap programs.

i think u got general idea about scripts ,if you need more details you can read materials available in market,or type sap-scripts in google or sdn search,you will get more information,

thanks and regards,

srinivas.

Read only

Former Member
0 Likes
1,027

Hi,

scripts are the standard documents for each business transaction in a specific format.

We have to control data of a script from a print program. The print program and the standard script are attached in the table TNAPR. Using functions open_form, write_form, end_form we can control the scripts from the print program. To switch in between multiple scripts use start_forms in between open_form and close_form. The current form is ended by end_form before starting a new start_form.

There is so many to tell like this.

Reward.

Read only

Former Member
0 Likes
1,027

SAP script is the SAP System's own text-processing system

It looks and feels a lot like other leading text-processing systems

It is used to print preformatted text in preformatted forms

SAP script is tightly integrated into the SAP System

Eg

Accounting clerks create texts concerning materials, orders, customers, vendors, and so on. They usually know only the SAPscript editor.

Another user may be responsible for the print layout and will use the transactions for maintaining styles and forms.

A developer who integrates SAPscript into his own applications or who wants to create print output using forms, sees SAPscript from the programming interface view point.

SAP script comprises of five main components

An editor for entering and editing the lines of a text

Styles and layout sets for print layout. These are created independent of the individual texts using the corresponding maintenance transactions and are allocated to the texts later

The composer is a central output module. The SAP script composer is invisible to the outside

A programming interface that allows you to include SAP script components into your own application programs and to control the output of layout sets from within the programs

Several database tables for storing texts, styles and layout sets

Regards

Palak Behal