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 scripts

Former Member
0 Likes
690

Hi

I am new to sap scripts and smart forms.

can u say the easy way how to create and use it?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
663

Ravi,

here i am giving u some simple links go through these links u will get the step by step procedures to do it

SAP Scripts

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

smartfroms......

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501...

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-001...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501...

Step by StepGood one):

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.h...

most imp link

http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html

If you find it useful mark the points

~~Guduri

6 REPLIES 6
Read only

Clemenss
Active Contributor
0 Likes
663

Ravi,

find an existing form similar to the one you want to create. Make a copy and start to modify.

If you want to create new forms from scratch, you might try PDF interactive forms.

Regards,

Clemens

Read only

Former Member
0 Likes
663

Hello,

There are a number of standard SAP Scripts provided by SAP . If the Sap Scripts provided by SAP dont suffice the requirement of the organization make a copy of the Sap Scripts using the transaction SE71 and make the necessary changes to fulfill the requirement. The same is applicable to Smartforms also . The transaction to create the Smart forms are SMARTFORMS.

Regards,

Sowmya.

Read only

Former Member
0 Likes
664

Ravi,

here i am giving u some simple links go through these links u will get the step by step procedures to do it

SAP Scripts

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

smartfroms......

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501...

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-001...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501...

Step by StepGood one):

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.h...

most imp link

http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html

If you find it useful mark the points

~~Guduri

Read only

Former Member
0 Likes
663

Hi Ravi,

Just i will tell u simple steps:

1) copy the existing script into your own script.

2) Enhance that according to your requirement.

3) Find out the driver program thorugh TNAPR table

4) Enhance the program according to your reuiqrement.

5) execute and test it.

Hope this helps you, reply for queries, Shall post you the updates.

Regards.

Kumar. .

Read only

Former Member
0 Likes
663

Hi Ravi,

Check this info.

SAP SCRIPTS.

Check this link which will have sample program

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

Check few more links on Scripts

http://www.henrikfrank.dk/abapuk.html

http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf

http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf

http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf

http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf

http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf

http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-sub...

http://sappoint.com/abap/

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

SmartForm Books :

http://www.sap-press.com/downloads/h955_preview.pdf

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

Smart forms

-


http://www.sap-img.com/smartforms/smartform-tutorial.htm

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501...

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-001...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501...

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

http://www.sap-press.com/downloads/h955_preview.pdf

http://www.ossincorp.com/Black_Box/Black_Box_2.htm

http://www.sap-img.com/smartforms/sap-smart-forms.htm

http://www.sap-img.com/smartforms/smartform-tutorial.htm

http://www.sapgenie.com/abap/smartforms.htm

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-001...

http://www.sapgenie.com/abap/smartforms_detail.htm

Hope this resolves your query.

Reward all the helpful answers.

Regards

Read only

Former Member
0 Likes
663

hi,

Make use of this.

SAP provides an object called SAPSCRIPT to generate documents which can contain logos, tables and other objects and which can look like pre-printed documents.

This article focuses on the design and use of Layout sets in ABAP programs to generate beautified output in SAP.

A layout set is a template designed in SAP to place the stream of data coming from a SAP program on different parts of a physical page. The designer needs to lay out the various elements that need to be printed on the page and store it as an object in the SAP system. An ABAP program will subsequently call this object to generate an instance of the template –thus generating an output document from the program.

Language

Language in which the data coming on to the layout set will be printed. Generally, this will be the language that has been set up as default in the SAP system

Header

Section to define the various attributes of the layout set on a global level. Changing these attributes will affect all the components of the layout set.

The various components of the header are explained below

Paragraphs

Used to define the start and end positions for the different texts and objects that need to be printed on the output document

Character Strings

Used to define the fonts and the formatting and printing styles for each and every character that needs to be printed on the output document. The start of the character string is indicated by

Pages

The designer needs to organise the template as a series of pages. When an actual output document is printed, it will refer to each page for putting the data coming from the ABAP program. The order of pages is also taken from the template i.e the layout set defined.

Windows

Various parts of the output document can be conveniently organised on the pages using windows. Thus the data stream coming from the ABAP program can be logically grouped into various parts and can be placed on different locations on a page

There are 2 main types of windows that can be used in a layout set:

MAIN - A layout set can have only one MAIN window which is created by default. This window can flow over multiple pages.

CONSTANT - A layout set can have any number of constant windows. A constant window can be used once per page

Text Elements

Any text that needs to be written on the output document should be placed within a text element. This includes constant text as well as variable data like internal table data coming from the ABAP program.

It is advisable to group logically related data within one text element.

The fields of various tables defined in the ABAP program will be included under these text elements. These fields are carriers of data. Every field should be included in a pair of & characters. (e.g. &aufk-aufnr&)

Page Windows

All the windows that form a page of the layout set.

Choose the window and click the Text Elements button to go to the Layout Set Editor. This consists of 2 parts

The small space on the left is for specifying the type of command, while the window adjacent to it is for writing the command or the text that needs to go under a text element.

The various types of commands

Command Purpose

  • Default paragraph

Blank Continuous text

= Extended Line

( Raw Line

/ Line Feed

/= Line feed and extended line

/( Line Feed and Raw Line

/: Command Line

/* Comment Line

/E Text Element

The BOX command draws a box as per the specifications. The x y co-ordinates are for the upper left corner relative to the values in the position command. POSITION command is used to set the x y co-ordinates with respect to the start position of the window.

SIZE command is used to specify the size of the box that we need to draw.

Varying these parameters also helps to draw a line instead of a box.

The best way to explain the various steps in designing a SAP script is to visualize the creation of a document. The entire process is explained as a series of steps.

Let us assume that we need to design the document Invoice.doc for the ABC Company Limited.

Understand the structure of the document that needs to be generated page by page.  

Find out the different pages that form the document.  

Decide the FIRST page of the document and the pages that are going to follow.  

Find out the various fonts and styles (bold, italics, etc) that are used in the document.  

Also try to group the data printed on the document into logical parts.  

Create all the character strings that have been used in the document  

Create all the paragraphs that have been used in the document  

Create all CONSTANT the windows that have been uniquely identified in the document  

Identify the MAIN window of the every page of the document  

Define the pages that form the parts of the document  

Assign the windows to each page  

Define the text elements within each window  

Use function module OPEN_FORM to open the layout set.  

Use function module WRITE_FORM to write the text elements in various windows  

Use function module CLOSE_FORM to close the layout set

Always remember to check and activate the layout set when any change is done to it, otherwise the change will not appear on the output document that is printed!!!

Regards,

Ramya.R