cancel
Showing results for 
Search instead for 
Did you mean: 

urgent-scripts,smartforms

Former Member
0 Kudos

can anybody send some important DATA,FAQS,SOME IMPORTANT REAL TIME SCENARIOS THAT ARE ASKED IN INTERVIEWS REGARDING SCRIPTS,SMARTFORMS.its urgent please

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi

<b>What are Smart Forms?</b>

SAP’s new print form solution, SAP Smart Forms, is the successor of SAPscript. All newdevelopment of forms at SAP will be done using the Smart Form print solution. However,SAPScript will still be supported for those forms already created in SAPScript, and for customerswho have created their own forms in SAPScript.

SAP Smart Forms is a tool for the maintenance of forms on which application data from the SAPsystem can be output. Depending on the application, the number of forms to be printed can bevery high, and they might have to be printed in a short period of time, in a mass printing.

Examples of mass printing are monthly invoices sent by telecom companies or salary statements.The output of application data is placed into a dynamically expandable table where the size andlayout of the output table is determined by the number of records being retrieved.

<b>

What About SAPscript?</b>

Customers can use either SAPScript or Smart Forms as their forms solution. SAP recommends you use Smart Forms for new developments (from 4.6C), because these forms are much easier to edit when using the Smart Forms graphical tools. Also, further development is planned for theSmart Form print solution.

For example, the customer can use a preconfigured Smart Form for the Purchase Order, and a SAPscript form for the Production Order (if no suitable Smart Form is available), or create the Smart Form. While unnecessary, a user’s prior knowledge of SAPScript forms can accelerate their Smart Forms learning because some tools are used both by Smart Forms and SAPscript (for example,

font maintenance transaction SE73, SAPScript texts, and more).

<b>SAP SCRIPT</b>

To create a logo in SAP printouts just do the following

1. Save a Logo using Imaging, Paint shop Pro or Corel Draw as Tiff file.

2. Run program RSTXLDMC and enter the following parameters

Enter file name C:COMPLOGO.TIF

UOM CM

Line width for text 132

Text name ZHEX-MACRO-COMPLOGO

Text ID ST

Text language = E

Number of Tiff gray levels (2,4,9) 2

3. Then Create a new window 'COMP' with attributes;

Window COMP description Company Logo

Left margin 7.00 CH window width 10.00 CH

Upper margin LN window height 8.00 LN

Finally in the text element, mention

/: INCLUDE 'ZHEX-MACRO-COMPLOGO' OBJECT TEXT ID ST LANGUAGE 'E'.

Please note that if object name is not indicated as 'ZHEX...’ the logo may not be printed!

You will not be able to see the logo in a test print. The same will be printed in actual printout.

SMARTFORM

1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)

2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description

3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures

4) Select any picture and set its Resolution in DPI

5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo

6) Set any other parameters if required, save and activate.

7) If there is only 1 Window in the forms, set it as Main Window in general attributes.

😎 Use TCode SE78 to upload new pictures and logos.

before changing standard script you must migrate into user defined script. for that one follow these steps...

1)goto SE71. 2)provide name for SCRIPT( begin with Z)

3)select CREATE option.

4)press ENTER.

5)select FORM option(u find this option on top of the screen).

6)from that choose MIGRATE option.

7)then it will displays dialog screen with required field like FORM( provide standard form name) and LANGUAGE( here provide in which language form exisisting).

8)press ENTER. 9)select SAVE and ACTIVATE.

or

1) goto SE71

2) menu..UTILITIES -> COPY FROM CLIENT.

procedure to add fields.

1)goto SE71.

2)provide FORM( which you migrated).

3)slect PAGE WINDOWS.

4)select EDIT option.

5)select WINDOW required for adding a field.

6)select EDIT option.

7)from that choose ELEMENT( also called TEXT ELEMENTS)

8)goto------>EDITOR.

Here you enter field as per your needs.

      • i give sample code

AS modifying layout <>

/: if &ekko-lifnr& > 50000

/ plant id is 300

/: endif.

9)after completion of entering element goto BACK.

10)choose SAVE.

11)ACTIVATE. regards

procedure to uploading LOGO

follow these steps for uploading logo which is exisisting in bitmap format.

In the form painter, you can either include directly to the form using menu

Edit->Graphic->Create or using the INCLUDEstatement in a window.

To use an INCLUDE statement, goto into the window scripteditor and use menu Include->Graphic. The include can looklike this for a bitmap:

/: BITMAP MYLOGO OBJECT GRAPHICS ID BMAP TYPE BMON

in this statement MYLOGO is name of the logo.

BMON mean's logo exisiting in black&white format, we can also pass

BCOL means logo exisiting in color format.

Go to transaction OMFE. Tell me what you see there for the output type you are interested in. Let me take the standard output type NEU. The entry looks something like this.

NEU Purchase order 1 SAPFM06P ENTRY_NEU MEDRUCK.

The first one is your output type, next is its description, next is the medium, then the program, routine, and the form name.

You already copied the layout MEDRUCK to ZMEDRUCK. Now copy SAPFM06P to ZZSAPFM06P. Now ENTRY_NEU routine is in the include FM06PE02. You need to make your changes here to accommodate for the new field. So copy this include to ZZFM06PE02 and make your changes. Also, in ZZSAPFM06P, change the line where it says INCLUDE FM06PE02 to INCLUDE ZZFM06PE02.

Now in this routine ENTRY_NEU, there is a function module call ME_READ_PO_FOR_PRINTING which reads in the PO data from the tables. We need to copy this function module as well as this is where you will do your extra selections for the new fields. You will do the same with the other function call ME_PRINT_PO, if you need to change anything on the print.

after this to define output type...

NACE

You can track the form and the print program used for that form

NACE is used to create output type while creating the output type you will mention forms, and driver program.

that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.

so check in NAST, TNAPR table

http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm

EX--in simple terms..take a transaction say ME21N ( Purchase Order ), u can see a Print icon there. now when u click on this icon, it has to print the PO document. Now how does it do that? when u click Print, the control gets transffered to a print program, now which program gets triggered is decided by what program name u specify in NACE.

So in NACE>EF>Output Type>NEU>processing routine--> u can see some standard program already configured( maybe SAPFM06P n form MEDRUCK )..these are the programs n sapscript that gets executed wen u say "PRINT" in the transactrion...so u can customise the print program for customer changes over here by copying the standard program n form into a Z/Y one and replacing the program names in NACE.

<b><b>check this link</b></b>

Check link for more on SAP Scripts.

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

<b>differences between scripts an smartforms </b>

script is client dependent

smartform is client independent

less programing in smart form

multiple page format is possible in smart form

we can maintain background graphics in smartform

scripts doesnot generate any funtional module where as smart form generates.

multiple page format not allowed in scripts allowed in sf.

labelling is possible in scripts not possible in sf.

If u want step by step creation of script and SF then i can provide plz give me ur mail id

<b>refer these links</b>

http://help.sap.com/saphelp_erp2005vp/helpdata/en/9b/e3b0dcc2a711d3b558006094192fe3/frameset.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...

<b>

for Smartforms material</b>

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

<b>How to trace smartform</b>

http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF

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

http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

Reward all helpfull answers

Regards

Pavan

Former Member
0 Kudos

hi

just refer to the link below

http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g

<b>step by step procedures , documantataon with sreen shots</b> for all kind of material

regards

ravish

<b>plz dont forget to reward points if helpful</b>

Former Member
0 Kudos

Hi

Please check these links.

http://www.sap-img.com/abap/abap-interview-question.htm

http://www.sap-img.com/abap/answers-to-some-abap-interview-questions.htm

http://sap.ittoolbox.com/documents/document.asp?i=3240

http://www.techinterviews.com/?p=198

for Smartforms material

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

How to trace smartform

http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF

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

http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

check most imp link

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

step by step good ex link is....

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

SAPScripts

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

SAP SCRIPT FIELDS

http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm

scripts easy material

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

Debugging Document.

http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc

http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm

http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc

http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm

http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm

<b>Reward points for useful Answers</b>

Regards

Anji