cancel
Showing results for 
Search instead for 
Did you mean: 

sap script tutorial

milascon_daniel
Participant
0 Kudos

Hy,

if you have some links with tutorials about sap script, please do not hesitate to post it.

Thank you!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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

Administration Information

This shows the information about the layout set – details of the designer, details of changes occurring to the design, development class of the layout set and the language details for the layout set

Standard Attributes

Description - Brief description or title of the layout set

Default paragraph - The base paragraph that is globally applicable to the document. This can be overridden at lower level of the layout set by using other paragraphs

Tab Stop - The base tab-stop that is globally applicable to the document. These can be overridden at lower level of the layout set by using other tab stops

First Page - The start page of the layout set

Page Format

Orientation - The direction of printing the data on a page – P for portrait (vertical) and L for landscape (horizontal)

Lines per inch

Characters/inch

Font Attributes

Here the various attributes and the base font applicable to the document can be defined. This font setting can be overridden at a lower level using the character strings

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 <string name>, while the end 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

The graphical element (like company logo) should be in valid graphic file format like .bmp or .jpg

Use appropriate software to convert the above file into a .TIFF file

Use report RSTXLDMC to upload this file as a text module in SAP

Execute the above program from the ABAP /4 editor

Enter the location of the .TIFF file on the PC

Specify BMON or BCOL as the raster image type

The SAP system suggests a name for the file ( like ZHEX-MARCO-* ). The * indicates the type of file. For e.g. if the file contains a logo then the name can be ZHEX-MACRO-LOGO

The ID should be ‘ST’ and give the logon language

Running the program will convert this .TIFF file into a text element

Incorporate this converted logo in the appropriate window under the appropriate text element by giving

INCLUDE ZHEX-MACRO-LOGO OBJECT TEXT ID ST in the first line

-


The graphical element (like company logo) should be in valid graphic file format like .bmp or .jpg

Use appropriate software to convert the above file into a .TIFF file

Use report RSTXLDMC to upload this file as a text module in SAP

Execute the above program from the ABAP /4 editor

Enter the location of the .TIFF file on the PC

Specify BMON or BCOL as the raster image type

The SAP system suggests a name for the file ( like ZHEX-MARCO-* ). The * indicates the type of file. For e.g. if the file contains a logo then the name can be ZHEX-MACRO-LOGO

The ID should be ‘ST’ and give the logon language

Running the program will convert this .TIFF file into a text element

Incorporate this converted logo in the appropriate window under the appropriate text element by giving

INCLUDE ZHEX-MACRO-LOGO OBJECT TEXT ID ST in the first line

see links here u an find good example also.

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

http://www.sap-img.com/sapscripts/a-sample-sap-scripts-reports.htm

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

http://www.sap-img.com/sapscripts/create-scripts-of-your-own-using-standard-scripts.htm

http://www.sap-img.com/sapscripts/a-sample-sap-scripts-reports.htm

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

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

http://www.sap-img.com/sapscripts/faq-for-sap-scripts.htm

Regards,

KK

alex_pegorini
Explorer
0 Kudos

That is a very helpful post. Thk u

Answers (1)

Answers (1)

Former Member
0 Kudos

hi Dan,

i learned somany technical things from sap websites.some of those are i mentioned below

1.http://saptechnical.com/Tutorials/Smartforms/SFMain.htm

2.http://www.thespot4sap.com/Articles/SAPscript_example_layout%20set.asp

for compleate assistance

3.www.hypernews.org/HyperNews/get/computing/lang-list/97/2/1.html

this one is the one good learning material for scripts

4.http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/SAPSCRIPTS_tutorial.html

5.www.sapmaterial.com

reward me if useful.

your point is valuable for me.