cancel
Showing results for 
Search instead for 
Did you mean: 

need documents for learning SAP Scripts!

Former Member
0 Kudos

Hi All,

i want to learn SAP scripts and smart forms

can any one send me the documents relating to SAP scripts which will guide me to learn SAP scripts fastly and easily?

points will be rewarded fully!

Ravi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
Former Member
0 Kudos

Hi all,

I am also new to scripts, and searching for the tutorial on sap scripts.

I have created pages and windows. Now I need to know how can I create page windows.

Regards,

Mridul.

Answers (4)

Answers (4)

Former Member
0 Kudos

hi Ravi,

check the below links for both

Scripts

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

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

Smartforms

most imp link

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

Check these links.In this,I am explaining everything step-by-step.Kindly reward points by clikcing the star on the left of reply,if it is useful.

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...

Check these links also.

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

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

http://sap.niraj.tripod.com/id67.html

http://myweb.dal.ca/hchinni/sap/smartforms_home.htm

Step by StepGood one):

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

If you need further info shoot me a test mail to callnaveen@gmail.com

If u find it useful mark the points

Regards,

Naveen

Former Member
0 Kudos

HI,

Look at these links

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

For STEP by STEP, <a href="http://www.worldcatlibraries.org/wcpa/top3mset/aa37329acd9932fca19afeb4da09e526.html">Click here</a>

http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf

Former Member
0 Kudos

Hi

Check out the following link:

http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db74a494511d182b70000e829fbfe/frameset.htm

I strongly believe no other material is better than SAP help.

Regards

Surya.

Former Member
0 Kudos

SAP Script

Printing forms such as invoices, sales order etc.

Correspondence (e.g. letter to third party) in SAP applications

Documentation

Basic principles of layout set

Information from the program to the layout must flow through a Data Dictionary Object

Window MAIN controls the actual layout set flow. When the MAIN window is full, a new layout set page is started.

What important routines are essential to establish a connection between the program and the form?

OPEN_FORM, WRITE_FORM, CLOSE_FORM

What comprises a layout set?

Header, page, paragraph, character, windows, page-windows, documentation.

What are the commands used to...

go to a new page – NEW-PAGE

keep similar information together – PROTECT…..ENDPROTECT

As layout sets works with data dictionary objects, can we have variables in the form?

Yes, you can have variables declared in the form using the DEFINE command.

Why should we use ADDRESS….ENDADRESS command for address window?

SAP has its own standard routine to print the address based on the country of the address. It follows a set format for the address whether to print certain fields or not to print.

What are ELEMENTS?

They are predefined text components which are determined in the layout set definition. They can be accessed with one name.

Elements are related to the window in which they are defined.

Elements have to be called explicitly. You also have to specify the window.

Window MAIN is always the default.

How can we print graphics?

Convert graphic file (.TIF) to Standard Text and then call it from the layout set.

Program name Program function Author Date Added

Z_Sapscript_program_1

Version: SapScript program to display Document details.

REPORT Z_Sapscript_program_1.

TABLES: BSIK, LFA1.

PARAMETERS : ACCT_NO LIKE BSIK-HKONT DEFAULT '200501',

CMP_CODE LIKE BSIK-BUKRS DEFAULT '0001',

YEAR LIKE BSIK-GJAHR DEFAULT 1994.

DATA: SYM1(35),

SYM2(35),

SYM3(36).

DATA: BEGIN OF ITAB OCCURS 100,

NAME1 LIKE LFA1-NAME1,

AMOUNT LIKE BSIK-DMBTR,

LIFNR LIKE LFA1-LIFNR.

DATA: END OF ITAB.

START-OF-SELECTION.

SELECT * FROM BSIK WHERE HKONT = ACCT_NO "'0000200501'

AND GJAHR = YEAR "'1994'

AND BUKRS = CMP_CODE. "'0001'

MOVE-CORRESPONDING BSIK TO ITAB.

SELECT * FROM LFA1 WHERE LIFNR = BSIK-LIFNR.

MOVE-CORRESPONDING LFA1 TO ITAB.

APPEND ITAB.

ENDSELECT.

WRITE : / ITAB-AMOUNT , ITAB-NAME1.

ENDSELECT.

END-OF-SELECTION. "EXIT.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

APPLICATION = 'TX'

ARCHIVE_INDEX = ' '

ARCHIVE_PARAMS = ' '

DEVICE = 'SCREEN'

DIALOG = 'X'

FORM = 'ZAMVENTRAN'

LANGUAGE = SY-LANGU

OPTIONS = ' '

IMPORTING

LANGUAGE = SY-LANGU

EXCEPTIONS

CANCELED = 01

DEVICE = 02

FORM = 03

OPTIONS = 04

UNCLOSED = 05.

LOOP AT ITAB.

CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'

EXPORTING

NAME = '&SYM1&'

VALUE = ITAB-NAME1.

  • VALUE_LENGTH = E03.

CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'

EXPORTING

NAME = '&SYM2&'

VALUE = CMP_CODE.

CALL FUNCTION 'TEXT_SYMBOL_SETVALUE'

EXPORTING

NAME = '&SYM3&'

VALUE = YEAR.

CALL FUNCTION 'START_FORM'

EXPORTING

FORM = 'ZAMVENTRAN'

LANGUAGE = SY-LANGU

STARTPAGE = 'PAGE1'

IMPORTING

LANGUAGE = SY-LANGU

EXCEPTIONS

FORM = 01

FORMAT = 02

UNENDED = 03

UNOPENED = 04

UNUSED = 05.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

  • ELEMENT = 'T10'

  • TYPE = E03

WINDOW = 'MAIN'.

CALL FUNCTION 'CONTROL_FORM'

EXPORTING

COMMAND = 'NEW-PAGE'

EXCEPTIONS

UNOPENED = 01

UNSTARTED = 02.

CALL FUNCTION 'END_FORM'.

ENDLOOP.

CALL FUNCTION 'CLOSE_FORM'.

*******************8

Also check

http://www.ficoexpertonline.com/archive/Volume_04_(2005)/Issue_10_(November_and_December)/V4I10A2.cf...

Message was edited by:

Ramesh Babu Chirumamilla