0% found this document useful (0 votes)
44 views

Script and Smart

The document provides answers to various questions about Smartforms and SAP Scripts. Some key points covered include: - How to suppress the print preview in Smartforms by setting flags in a control parameter structure. - MEDRUCK is the standard SAP Script for purchase orders, and how to view its output and copy it to create a custom form. - Folders in Smartforms can be used to combine nodes into logical groups and for page protection. - The possible consequence of using the main window for all pages in a Smartform is that it will only display up to 3 pages of records. - Pre-printed Smartforms involve uploading a pre-printed form template and setting the output mode to print

Uploaded by

abap hana
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Script and Smart

The document provides answers to various questions about Smartforms and SAP Scripts. Some key points covered include: - How to suppress the print preview in Smartforms by setting flags in a control parameter structure. - MEDRUCK is the standard SAP Script for purchase orders, and how to view its output and copy it to create a custom form. - Folders in Smartforms can be used to combine nodes into logical groups and for page protection. - The possible consequence of using the main window for all pages in a Smartform is that it will only display up to 3 pages of records. - Pre-printed Smartforms involve uploading a pre-printed form template and setting the output mode to print

Uploaded by

abap hana
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

Script and Smartforms :

---------------------->>
https://www.mytectra.com/interview-question/sap-abap-smartforms-interview-
questions-and-answers/
https://www.allinterview.com/interview-questions/328/sapscript.html

1. how to Convert Smartform form to Different Langauge ?

2. How to supress the print preview in smartforms ?

--> Declare a structure of the type SSFCTRLOP , set no_dialog and preview to 'X'
and pass this structure to the CONTROL_PARAMETERS while calling
SmartForm FM.

data : wa_ctrl_param type SSFCTRLOP.


wa_ctrl_param-no_dialog = 'X'.
wa_ctrl_param-preview = 'X'.

call function gv_fname


EXPORTING

CONTROL_PARAMETERS = wa_ctrl_param

3. how to give page protection to smartforms ?

4. How to give page breaking to smartforms ?

5. In which t-code , you configure smartforms ?

NACE.
--> You will assign Form and Driver program to a output type through NACE T-CODE.
The assigned form name and driver programs can be viewed through table TNAPR
and NAST.

Pocedure :
--> 1) Go to NACE transaction

2) Select an Application (V1-Sales , V2-Shipping , V3-Billing)

3) Click on Output type Button

4) Comes to Change Mode

5) Click on New Entries button

6) Specify Output type,Form name and driver Program and Save it.

6.shall we do all the SAP module tcode configuration in NACE tcode ?

7. how to find for a standard transaction , a script or smartforms is used ?

--> Scirpts or Smartforms from Standard T-Codes are usually linked to

1. Output Types --- NACE for SD/MM.


2. Correspond Settings in SPRO for FI (Define form names for correspondence
print (Company Code,Driver program,Corresponde Type,Form name)).

The form column is associated with script form and pdf column is associated
with SmartForm.

--> In NACE , it only covers output that's using condition techniques. E.g. SD, MM
will be there, but QM or PP are using a different technique.
functional consultant - they configure the output type and they should know the
program/form name.

8.How to debug script and smartforms ?

9. How can we attached multiple form into single driver program for standard tcode
in sap ?

--> place a condition inside your dirver program.


Ex: IF SY-TCODE = 'ME21N'

CALL SF1

IF SY-TCODE = 'ME22N'

CALL SF2

10.what are the technique to convert sap script to smartforms ?

11.what is MEDRUCK ,Explain it ?

--> MEDRUCK is the standard SAP Script for Purchase Order.

--> To see the output of medruck go to T-code ME9F give the purchase order number
and
execute select one of the value and click on the Disply messges on the
application tool bar,
You will find the standard Script output form of medruck for the given Purchase
Order number.

--> ex: Go to SE71,

on menu bar u find Utilities -> copy from Client. click on it u ll find new
screen showing

Form name :

Source Clinet :

Target Form :

give Form name as use defined form name EX: ZFORM1

Source client as 000 and

Target form as MEDRUCK.

execute.

Now, the standard form MEDRUCK is copied to your form ZFORM1.


NOW, go to SE71 and give form name as ZFORM1 and do some changes to the form
such as adding logo any thing. save and Activate.

Now, you have done changes to the Form ZFORM1 and u have to replace your form
with standard SAP Script.

Go to NACE tcode Transaction.

on Applications select EF for purchase order and click Output types button on
application tool bar.

now select NEU as output types dobule click on Processing Routines.

now click on Change option on application tool bar and on right side u find
MEDRUCK in form place replace MEDRUCK with ZFORM1 and SAVE.

now go to T-code ME9F give the purchase order number and execute and select one
option and click on display messges button .

you will find the changes that you have done in ZFORM1.
so we cant chage the standard Sap Scripts by copying the Standard Sap Scripts
we can chage and replace with our forms.

12.scenario:
if i use main window for all the pages in smartforms ,what will be the possible
consequence ?

https://www.google.co.in/search?
q=if+i+use+main+window+for+all+the+pages+in+smartforms+
%2Cwhat+will+be+the+possible+consequence+%3F&oq=
if+i+use+main+window+for+all+the+pages+in+smartforms+
%2Cwhat+will+be+the+possible+consequence+
%3F&aqs=chrome..69i57.1206j0j7&sourceid=chrome&ie=UTF-8

--> it will display up to 3 pages after that it will not show the records.

13.what is use of folder in smartforms ?

--> It just use to combine diferrent node into logical groups.

--> It can be used for page protection by checking the page protect check box. So
that every thing in folder will be printed on same page.

14.scenario:
Let say i have three table type in smartform table header,item ,footer , and i
want to give page protection to all this
how i will do that.

--> Make a folder , move all the nodes then check the page protection check box.

15.have you done pre printed smartforms ?

https://www.google.co.in/search?q=have+you+done+pre+printed+smartforms+
%3F&oq=have+you+done+pre+printed+smartforms+%3F&aqs=chrome..69i57.423j0j7
&sourceid=chrome&ie=UTF-8

--> Pre-printed stationary means, already a standard format of the form exists and
we need print data as per the columns, rows in the format of the form. This
form will be used as printing paper for smartform.

Steps :
------->
A) Upload the pre printed form in SAP as logo is uploaded in the smartform by
�SE78�.
B) Go to �SMARTFORMS� ->

Create smartform , then go to �Pages & windows� --> �page1�--> �Background


Picture� Tab
C) Select the pre printed form and select output mode as �Print Preview�
because we have pre printed stationary (as the printer paper).

�Blank� � It will display only smartform data.

�Print Preview� � It will display pre printed form uploaded along with
smartform data only in Print preview.

�Print Preview & Print� � It will display & Print pre printed form uploaded
with the smartform data both in Print preview & Print.

16.difference between smartforms and script ?


--> sap script is client dependent because it is executed through Text Elements and
Text Elements is client dependent
means if u made change in development client it will not replicate in testing
client you need to do SCC1 every time to replicate in testing client.

--> you need to capture the transport of development client(100) and in testing
client execute tcode SCC1 provide the source client,
Transport request, Including request subtask then start immediately then SAP
SCRIPT will copy from development client to Testing client.

--> sap smartforms is client independent because the system generated FM is client
indipendent if u made change in development client it will replicate in testing
client.
--> sap script can't be created without main window.
--> sap smart can be created without main window.
--> Sap Script cannot be excuted with out Print Program.
--> Sap Smartforms can be executed without print program by executing system
generated FM.

17. how to copy SAP Script form , Style and Standard Text from one client to
another client ?

In real-time scenario, we might have to develop a style, or a SAP Script form or a


standard text in sandbox and then move it to the development,
quality and production systems. During such instances, we can download those
objects from the sandbox system and then upload them in the appropriate systems.
This would help us in saving time doing it all again in the development system.

--> Execute Program RSTXSCRP.


--> Choose Form if you want to Download or Upload a SAP Script form Or
--> Choose Style if you want to Download or Upload a style Or
--> Choose Standard Text if you want to Download or Upload a standard text.
--> put the object name to upload/download.
--> To download, the mode should be EXPORT and To Upload, the mode should be
IMPORT. Execute it.
--> For a Standard Text you need to put in the Text ID and the Language to download
or upload.

How will you copy a Sapscript from one client to another client & from login
language to org language ?

--> if form is available in $TMP:

execute se71 in required client


menu bar--> utilities --> copy from client
provide form name,source client target form. and click on execute

IF FORM IS AVAILABLE IN YOUR OWN PACKAGE:

execute SCC1 --> provide source client --> Transport Request


and select the check box INCLUDING REQUEST SUB TASK --> click
on Start Immediately in application tool bar --> click on yes

18.can i use table in smartform without using internal table ?

--> Yes , we can use.


Reason is if you want to print Texts using a Table format , in that case ,
Looping an internal table is not needed, we can uncheck the check box.
The purpose of the check box is to avoid looping.

19.what are smartform events & its use ?

20.What is SPAD TCODE ?

--> SPAD is used for spool administration.

You can maintain printers, paper formats, page formats, etc.

use Tcode SPAD, For tray selection you need to configure through SPAD.

1) Goto Tcode SPAD

2) choose Output devices

3) Select your printer name in the list displayed

4) Double click / change button for your printer

5) Choose Tray info tab

6)Here yopu will get list of trays available and you can choose

21.How to Transport Text Elements and Include translations in a transport request ?

-->

22.How to find standard texts used in the smartform ?

--> find the system generated FM of the Smartform then find the string as " perform
%move using %textkey-name ".
It will provide you the list of all the standard texts used in the smartform.

23. How many secondary windows we can add to a smartforms ? (EY)

--> u can create only 1 main window in a smart form. however u can create as many
secondary windows as u want.

You might also like