sap abap interview questions part 3 _ smartforms _ sap interview questions and answers

10
6/8/2014 SAP ABAP Interview Questions Part 3 : Smartforms | SAP Interview Questions and Answers http://sap-interview-questions-and-answers.blogspot.com/2013/02/sap-abap-interview-questions-part-3.html 1/10 SAP ABAP Intervi 44 SAP Webdynpro 27 BDC Interview Q22 SAP ALE IDocs i 28 SAP Webdynpro 28 SAP Web Dynpro21 SAP ABAP Intervi 17 Welcome to yet another post on ABAP interview questions. Here I have complied a list of interview questions on Smartforms in SAP. This list is quite comprehensive. Hope you find it useful. Cheers !! Smartform is SAP's print form technology and is an alternative to SAP- Scripts. Whenever you activate a Smartform , a function module is generated for that Smartform. The program that calls this function module is called the Driver Program for Smartform. The T.code for Smartforms is SMARTFORMS. Unlike SAP-Scripts, Smartforms are client independent. Here we go: *An SAP R/3 system has 2 clients 800 & 810. You create an SAP Script Z_Script and a Smartform Z_Smartform in client 800. Will both Z_Script and Z_Smartform be available in client 810 as well? Client 200 will have just the Smartform Z_Smartform and not the SAP Script Z_Script. SAP-Script is client dependent whereas SMARTFORM is client independent. Many people don't understand what this is all about. The above answer should suffice. However, if you still do not understand this, find an SAP system where you have 2 clients. Create a dummy Smartform / script in one client and check whether they exist in the other client. *You have created a Smartform in DEV environment. Then you migrated the Smartform to PROD environment. Will the name of the function module be same in DEV and PROD? Once you transport the Smartform from DEV to PROD environment, a new function module name for the Smartform in generated in the PROD environment. For a particular Smartform , generated function module names are different in different systems.One can get the name of the SAP ABAP Interview Questions Part 3 : Smartforms Dynamic View s template. Pow ered by Blogger. Home ABAP Interview Questions Smartforms Sidebar SAP Interview Questi search

Upload: abdulshaik

Post on 07-Feb-2016

182 views

Category:

Documents


3 download

DESCRIPTION

SAP ABAP Smart forms Ques_A4

TRANSCRIPT

Page 1: SAP ABAP Interview Questions Part 3 _ Smartforms _ SAP Interview Questions and Answers

6/8/2014 SAP ABAP Interview Questions Part 3 : Smartforms | SAP Interview Questions and Answers

http://sap-interview-questions-and-answers.blogspot.com/2013/02/sap-abap-interview-questions-part-3.html 1/10

SAP ABAP Intervi… 44

SAP Webdynpro … 27

BDC Interview Q… 22

SAP ALE IDocs i… 28

SAP Webdynpro … 28

SAP Web Dynpro… 21

SAP ABAP Intervi… 17

Welcome to yet another post on ABAP interview questions. Here I have

complied a list of interview questions on Smartforms in SAP. This list is

quite comprehensive. Hope you find it useful. Cheers !!

Smartform is SAP's print form technology and is an alternative to SAP-

Scripts. Whenever you activate a Smartform , a function module is

generated for that Smartform. The program that calls this function

module is called the Driver Program for Smartform. The T.code for

Smartforms is SMARTFORMS.

Unlike SAP-Scripts, Smartforms are client independent.

Here we go:

*An SAP R/3 system has 2 clients 800 & 810. You create an SAP Script

Z_Script and a Smartform Z_Smartform in client 800. Will both Z_Script

and Z_Smartform be available in client 810 as well?

Client 200 will have just the Smartform Z_Smartform and not the SAP

Script Z_Script.

SAP-Script is client dependent whereas SMARTFORM is client

independent. Many people don't understand what this is all about. The

above answer should suffice. However, if you still do not understand

this, find an SAP system where you have 2 clients. Create a dummy

Smartform / script in one client and check whether they exist in the other

client.

*You have created a Smartform in DEV environment. Then you migrated

the Smartform to PROD environment. Will the name of the function

module be same in DEV and PROD?

Once you transport the Smartform from DEV to PROD environment, a

new function module name for the Smartform in generated in the PROD

environment. For a particular Smartform , generated function module

names are different in different systems.One can get the name of the

SAP ABAP Interview Questions Part 3 :Smartforms

Dynamic View s template. Pow ered by Blogger.

Home ABAP Interview Questions SmartformsSidebar

…SAP Interview Questi search

Page 2: SAP ABAP Interview Questions Part 3 _ Smartforms _ SAP Interview Questions and Answers

6/8/2014 SAP ABAP Interview Questions Part 3 : Smartforms | SAP Interview Questions and Answers

http://sap-interview-questions-and-answers.blogspot.com/2013/02/sap-abap-interview-questions-part-3.html 2/10

function module for Smartform by passing the Smartform name to FM

SSF_FUNCTION_MODULE_NAME.

Hence in the driver program for Smartform, it is common practice to use

FM SSF_FUNCTION_MODULE_NAME and then calling the Smartform

Function Module.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'Z_SMARTFORM'

IMPORTING

fm_name = lv_fm_name

CALL FUNCTION lv_fm_name

*How do you convert a Smartform Output to PDF output?

There is a tricky solution here.But let's keep that for the last. Let us first

discuss the conventional way of getting a PDF output for Smartform. For

that you need to keep in mind the following two function modules and

their importing/exporting parameters:

CONVERT_OTF

CONVERT_OTF_2_PDF

In the Driver program, import the parameter 'job_output_info' from the

Smartform FM and utilize that info in 'OTF' parameter of the two

aforementioned function modules.

Here is one more and probably the easiest way to see PDF output for a

Smartform.

Type PDF! in the command prompt and hit enter :).

[http://4.bp.blogspot.com/-pcp-

lNsBK9o/URkgC60WBDI/AAAAAAAAHOs/O8MS3EX-

S5k/s1600/PDF+Smartform.PNG]

Page 3: SAP ABAP Interview Questions Part 3 _ Smartforms _ SAP Interview Questions and Answers

6/8/2014 SAP ABAP Interview Questions Part 3 : Smartforms | SAP Interview Questions and Answers

http://sap-interview-questions-and-answers.blogspot.com/2013/02/sap-abap-interview-questions-part-3.html 3/10

[http://2.bp.blogspot.com/-

hAj0AXrlyP8/URlOCmuXdsI/AAAAAAAAHP8/fCC14tij4PQ/s1600/bar+2.PNG]

[http://2.bp.blogspot.com/-

hAj0AXrlyP8/URlOCmuXdsI/AAAAAAAAHP8/fCC14tij4PQ/s1600/bar+2.PNG]

To see the Smartform Print Preview output as list output,

Type SLIS in the command prompt and hit enter.

[http://1.bp.blogspot.com/-ACX41o-

7_JA/URkgC6jbJfI/AAAAAAAAHOo/i1uw_tsQ3WU/s1600/List+output+Smartfo

rm.PNG]

*How do you achieve Bar Code printing in Smartforms?

Step1: Use SE73 i.e. SAP-Script Font Maintenance and create a Bar code

say ZDEMO.

Step 2: For Smartform, create a character format C1 and use the recently

created Barcode ZDEMO.

[http://2.bp.blogspot.com/-

hAj0AXrlyP8/URlOCmuXdsI/AAAAAAAAHP8/fCC14tij4PQ/s1600/bar+2.PNG]

It can be finally used to print Barcode as:

Page 4: SAP ABAP Interview Questions Part 3 _ Smartforms _ SAP Interview Questions and Answers

6/8/2014 SAP ABAP Interview Questions Part 3 : Smartforms | SAP Interview Questions and Answers

http://sap-interview-questions-and-answers.blogspot.com/2013/02/sap-abap-interview-questions-part-3.html 4/10

[http://1.bp.blogspot.com/-MKWZU-

5IYA0/URlOCh6I1vI/AAAAAAAAHP4/NK6tRY3OF90/s1600/bar+3.PNG]

How do you add a Watermark Or a Background Image for Smartforms ?

If you go to the properties of a page in Smartform, you will find a tab for

Background Image.

Specify the source of the image you need here and it can be used as

background image / Watermark in Smartforms.

Graphics can be maintained using T.code SE78.

[http://1.bp.blogspot.com/-thGMIaZSYI0/URkesOg8-

GI/AAAAAAAAHOg/SAKeu1YG4UA/s1600/Background+Image+for+Smartfor

ms.PNG]

How will you print on both sided of a Smartform?

At the Page level in Smartforms, you can find something called as Print

Mode.

Set the Print mode to duplex to print on both sides of the Smartform.

Page 5: SAP ABAP Interview Questions Part 3 _ Smartforms _ SAP Interview Questions and Answers

6/8/2014 SAP ABAP Interview Questions Part 3 : Smartforms | SAP Interview Questions and Answers

http://sap-interview-questions-and-answers.blogspot.com/2013/02/sap-abap-interview-questions-part-3.html 5/10

[http://2.bp.blogspot.com/-PssxUNsXi3Q/URkb7E1l4LI/AAAAAAAAHOM/QW-

UHjVsYsQ/s1600/Smartform+Duplex+Mode.PNG]

What is the difference in a Table and a Template in Smartform?

A Template has fixed number of Rows and Columns whereas a Table can

have variable rows and columns i.e. you can have a internal table with

contents associated to a Table element but not to a Template.

You should use a template when the tabular output is fixed!

How do you achieve Page Protection in Smartform ?

While one can use the PROTECT ..... ENDPROTECT command for SAP-

Scripts, for Smartforms the Page-Protection checkbox can be used to

ensure page protection:

[http://3.bp.blogspot.com/-

Wm16wRM_iBg/URk_aS_JemI/AAAAAAAAHPc/htTOkhgfQOE/s1600/page+p

rotection+smartform.PNG]

Note: You have Page-protection property only for Text Elements in the

Main Window.

Can you move a Smartform from one SAP system to another without

using transports ?

Yes, this can be achieved using the Upload/Download feature for

Smartforms.

One can download the Smartform from one system and save it as an XML

file.

Once that is done, the XML file can be used to upload the Smartform in

another system.

[http://4.bp.blogspot.com/-8uMzBxcJ7r0/URk9j3q-

EUI/AAAAAAAAHPQ/narMeh3OJaQ/s1600/Download+Smartform.PNG]

Page 6: SAP ABAP Interview Questions Part 3 _ Smartforms _ SAP Interview Questions and Answers

6/8/2014 SAP ABAP Interview Questions Part 3 : Smartforms | SAP Interview Questions and Answers

http://sap-interview-questions-and-answers.blogspot.com/2013/02/sap-abap-interview-questions-part-3.html 6/10

Can you have a Smartform without a main window?

Yes, you can create a Smartform without a Main Window. But there is no

need to do anything of such sort.

Whenever you create a Smartform, a main window is created by default. I

can't think of a situation , where you will have a situation in which it is

mandatory for you to remove the Main Window. But still I have seen this

question in ABAP interviews. So I have put it here.

How do you find the name of the Function Module for a Smartform?

When is this function module created?

The function module for Smartform is created when the Smartform is

activated.

You can find the name of the Function Module for a Smartform by going

to

Environment --> Function Module Name.

What is a Copies Window?

What is a Final Window?

Final Window is called after all the other windows are called in a

Smartform.

How do you pass data to Smartforms from the driver program?

How do you Debug Smartforms ?

How would you go about printing a logo in a Smartform?

How do you print address number in Smartforms ?

How do you print Symbols and Icons in Smartforms?

What are Basic Nodes and Auxiliary Nodes ?

What is the use of Folder in Smartforms ?

And finally, if you find this stuff useful ; please consider giving a google

plus or share this article with your friends using the 3 buttons below.

Posted 12th February 2013 by Amby

Labels: ABAP Interview Questions

Page 7: SAP ABAP Interview Questions Part 3 _ Smartforms _ SAP Interview Questions and Answers

6/8/2014 SAP ABAP Interview Questions Part 3 : Smartforms | SAP Interview Questions and Answers

http://sap-interview-questions-and-answers.blogspot.com/2013/02/sap-abap-interview-questions-part-3.html 7/10

Replies

Reply

17 View comments

Rakesh April 18, 2013 at 10:30 PM

Hi Amby...Your blogs are awesome....great job buddy....we hopethere gona be a lot n lot of interview questions please try to postthe answers for incomplete questions....Thanks a lot....Cheers...Rakesh.....

Reply

Anonymous May 20, 2013 at 7:26 PM

Hi Amby........

Thank you so much for the listed questions these are veryhelpful.....

Reply

Arun Narayanan July 10, 2013 at 4:07 AM

Dear Ambi...

Thank you so much...I got selected only bcoz of your blog.Kindlyadd more questions and answers.You are just awesome.

I could not see the Part 2.Please provide the link.

Cheers,Arun.

Reply

Sarithashree Prasad June 3, 2014 at 9:23 AM

Thanks...great help to me.

Amby July 10, 2013 at 5:28 AM

Ah, is it ? I am glad that this stuff helped you get selected.Congratulations!!!

I wanted to write a lot of stuff. But I have left SAP for now. Part 2 was ALV ( which is a huge topic to prepare ) and part 4 wasScripts.Those 2 parts are still in my draft version. You have now given me areason to complete those ...

Page 8: SAP ABAP Interview Questions Part 3 _ Smartforms _ SAP Interview Questions and Answers

6/8/2014 SAP ABAP Interview Questions Part 3 : Smartforms | SAP Interview Questions and Answers

http://sap-interview-questions-and-answers.blogspot.com/2013/02/sap-abap-interview-questions-part-3.html 8/10

Stay tuned !

Reply

Mankeshwar Tripathi August 23, 2013 at 2:51 PM

A very helpful resource for the SAP Interview. The set of questionsare just what asked in the process. Get some more InterviewQuestions at SAP Interview Questions

Reply

anish mounish December 3, 2013 at 1:30 AM

Really nice one.......

http://skillgun.com

Reply

Lali December 5, 2013 at 3:42 AM

Hi Amby, your blog in very helpful. keep updating good work. Ipersonally liked one thing the most . all the answers are to thepoint.

cheers!!

Reply

hasilaa December 17, 2013 at 3:42 AM

Hi, really u r a friend in interview preparation..very very precise and start forward ..Thanks a lot.. really

Reply

Tafoor Tariq January 27, 2014 at 8:46 PM

Thanks liked it very much ,i really need that because i am about togive interview.

Reply

Anonymous January 30, 2014 at 3:36 PM

THANKYOU SO MUCH....itz really helpful

Reply

Page 9: SAP ABAP Interview Questions Part 3 _ Smartforms _ SAP Interview Questions and Answers

6/8/2014 SAP ABAP Interview Questions Part 3 : Smartforms | SAP Interview Questions and Answers

http://sap-interview-questions-and-answers.blogspot.com/2013/02/sap-abap-interview-questions-part-3.html 9/10

Rajesh Das February 18, 2014 at 10:52 AM

Great job done ,but if all questions have answer it will be muchbetter

Reply

yektek training February 25, 2014 at 9:13 PM

nice post thank you

Reply

Ramu February 28, 2014 at 8:08 AM

Thank you very much for sharing this type of articles.

Reply

Raju March 4, 2014 at 5:50 AM

Hi Amby.. Excellent collections.

Are you not posting the answers for the unanswered questions?Please do post them.

With Regards,Raju.http://help-sap.blogspot.in/

Reply

kiran June 6, 2014 at 12:21 PM

Hi all,Me, Kiran with 7 years of ABAP expJust randomly came here, thought of providing answers tounanswered questions. Amby, sorry for my intrusion into yourdomain.

What is the use of Folder in Smartforms ?If there is a requirement to print data in same page, SmartformsFolder control helps creating SAP Smartforms documents.

3. How do you Debug Smartforms ?http://www.kodyaz.com/articles/sap-how-to-debug-smartforms-debugging-smartform-sap-abap.aspx

Folder control is the key for page protection in Smartforms.

SAP Smartform Folder control has the Page Protection attribute forkeeping items in the same page.

2, How do you print address number in Smartforms ?

Page 10: SAP ABAP Interview Questions Part 3 _ Smartforms _ SAP Interview Questions and Answers

6/8/2014 SAP ABAP Interview Questions Part 3 : Smartforms | SAP Interview Questions and Answers

http://sap-interview-questions-and-answers.blogspot.com/2013/02/sap-abap-interview-questions-part-3.html 10/10

Enter your comment...

Comment as: Google Account

Publish

Preview

Create an address window and give the addr number i.e&g_myaddnum&

Reply

Syed Jawed June 7, 2014 at 9:28 AM

Hi,

Debugging smartforms can be done in two ways....1) Break-point2) activate you form and execute it, it takes you to function builder ,where you can debug through function module.

Reply