2008 Mar 20 4:38 AM
hi all,
plz let me know what is sapscript.
how to use it.give necessary documents so that i can understand it.
also plz give links,demo examples and simple sapscript devloped by u people.
2008 Mar 20 4:44 AM
2008 Mar 20 4:44 AM
Hi
Check this link,it will be helpful
http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
Reward Points
Regards
Shibin
2008 Mar 20 4:46 AM
Hi
Link for SAP Scripts (step by step procedure)
see the links
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
Regards
Kiran Sure
2008 Mar 20 4:47 AM
hai Sanjay,
SAP SCRIPT
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
scripts easy material
http://www.allsaplinks.com/sap_script_made_easy.html
Regards.
Eshwar.
2008 Mar 20 4:47 AM
Find below the Links for Step By Step SAP Script
http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
http://www.thespot4sap.com/articles/SAPscript_example_code.asp
http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
www.geocities.com/wardaguilar25/sapscript-tutorial.html
http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
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://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
Reward points..
2008 Mar 20 4:50 AM
sap scripts are sap provided tool to share information with business partners.
suppose if you buy some goods you will get invoice that is mannual written invoice.
here our requirement is small compare to such a big companies.
so SAP thought to provide the printed documents through SAP only.
and at the same time the SAP scripts are also supported for E-Mail.
so with these advantages scripts was developed.But now a days people are using SMART FORMS
and the new version of smart forms is Adobe forms.
Previously we have to download the script into PDF format.
now the adobe form it self generates the pdf format of script.
regards,
swami.
2008 Mar 20 8:44 AM
sapscript
Sample ABAP Code - How to Call PERFORM from SAPSCRIPT
/: PERFORM BIN_LOCATION IN PROGRAM Z_SAPSCRIPT_PERFORMS
/: USING &RESBD-MATNR&
/: USING &CAUFVD-IWERK&
/: USING &RESBD-LGORT&
/: CHANGING &MARD-LGPBE&
/: ENDPERFORM
-
REPORT z_sapscript_performs.
*----
SUBROUTINES FOR CALLING FROM SAPSCRIPTS
*----
AUTHOR: Sheila Titchener -
DATE: September 2005
*
*----
FORM bin_location TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
*----
get default bin location from MARD for this material/plant/storage *
location
*----
DATA: l_matnr TYPE matnr, "material
l_werks TYPE werks, "plant
l_lgort TYPE lgort, "storage location
l_lgpbe TYPE lgpbe. "bin location
Get first parameter in input table.
READ TABLE in_tab INDEX 1.
WRITE in_tab-value TO l_matnr .
Get second parameter in input table
READ TABLE in_tab INDEX 2.
MOVE in_tab-value TO l_werks.
Get third parameter in input table
READ TABLE in_tab INDEX 3.
MOVE in_tab-value TO l_lgort.
read bin location
SELECT SINGLE lgpbe INTO l_lgpbe FROM mard
WHERE matnr = l_matnr
AND werks = l_werks
AND lgort = l_lgort.
IF l_LGPBE IS INITIAL.
l_LGPBE = 'NONE'.
ENDIF.
read & update only parameter in output table
READ TABLE out_tab INDEX 1.
out_tab-value = l_lgpbe.
MODIFY out_tab INDEX 1.
ENDFORM.
follow the link below
http://www.sapmaterial.com/sap_scripts.html
regards,
vineela.