Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smart forms

Former Member
0 Likes
1,009

Hi,

Can somebody give the possible interview questions on sap SMART FORMS.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
974

Thejaswini,,

Interview questions means not so specific interviewer can ask any question based upon u r resume and u r way of answering any how i will list out some here

1. what r smartfomrs?

2. what is the differnece between the smartforms and scripts

3. how do u debug the smartforms?

4. how do u communicate the smartform with its print program

5. Give some examples of smartforms that u desinged previously

6. What r the major advantages of smartforms over scripts?

7. If you have given a smart form how do u find out the print program

8. How do u make the changes to the standard smartforms

9. Is it advisable to modify the standar print program of smartforms, if not then how will u do that?

10. Does smart forms r client independent?

11. What is a form painter?

12. how do u add a company logo in smartform?

I think its enough for u

~~Guduri

9 REPLIES 9
Read only

Former Member
0 Likes
975

Thejaswini,,

Interview questions means not so specific interviewer can ask any question based upon u r resume and u r way of answering any how i will list out some here

1. what r smartfomrs?

2. what is the differnece between the smartforms and scripts

3. how do u debug the smartforms?

4. how do u communicate the smartform with its print program

5. Give some examples of smartforms that u desinged previously

6. What r the major advantages of smartforms over scripts?

7. If you have given a smart form how do u find out the print program

8. How do u make the changes to the standard smartforms

9. Is it advisable to modify the standar print program of smartforms, if not then how will u do that?

10. Does smart forms r client independent?

11. What is a form painter?

12. how do u add a company logo in smartform?

I think its enough for u

~~Guduri

Read only

Former Member
0 Likes
974
Read only

Former Member
Read only

Former Member
0 Likes
974

Hi Thejaswini,

Smart forms Frequently Asked Questions

Forcing a page break within table loop

Create a loop around the table. Put a Command node before the table in the loop that forces a NEWPAGE on whatever condition you want. Then only loop through a subset of the internal table (based on the conditions in the Command node) of the elements in the Table node.

Font style and Font size

Goto Transaction SMARTSTYLES.

There you can create Paragraph formats etc just like in sapscript.

Then in your window under OUTPUT OPTIONS you include this SMARTSTYLE and use the Paragraph and character formats.

Line in Smartform

Either you can use a window that takes up the width of your page and only has a height of 1 mm.

Then you put a frame around it (in window output options).

Thus you have drawn a box but it looks like a line.

Or you can just draw "__" accross the page and play with the fonts so that it joins each UNDER_SCORE.

Difference between 'forminterface' and 'global definitions' in global settings of smart forms

The Difference is as follows.

To put it very simply:

Form Interface is where you declare what must be passed in and out of the smartform (in from the print program to the smartform and out from the smartform to the print program).

Global defs. is where you declare data to be used within the smartform on a global scope.

ie: anything you declare here can be used in any other node in the form.

Smartforms function module name

Once you have activated the smartform, go to the environment -> function module name. There you can get the name of funtion module name.

The key thing is the program that calls it. for instance, the invoice SMARTFORM LB_BIL_INVOICE is ran by the program RLB_INVOICE.

This program uses another FM to determine the name of the FM to use itself. The key thing is that when it calls this FM (using a variable to store the actual name), that the parameters match the paramters in your smartform.

Another thing to note is that the FM name will change wherever the SF is transported to.

So you need to use the FM to determine the name of the SF.

Here is the code that can be use to determine the internal name of the function module:

Code:

if sf_label(1) <> '/'. " need to resolve by name

move sf_label to externalname.

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = externalname

importing

fm_name = internalname

exceptions

no_form = 1

no_function_module = 2

others = 3.

if sy-subrc <> 0.

message 'e427'.

endif.

move internalname to sf_label.

endif.

It checks to see if the sf_label starts with a '/', which is how the internal names start. if it does, the name has already been converted. If not, it calls the FM and converts the name.

You would then CALL FUNCTION sf_label.

Also, check these links.

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf

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

Hope this resolves your query.

Reward all the helpful answers.

Regards

Read only

Former Member
0 Likes
974

Hi,

Can somebody give me the material for BAPI and BADi

Read only

Former Member
0 Likes
974

Hi, can somebody help me to upload a logo in a script(step by step)?????

Read only

0 Likes
974

hi,

Command in your Sapscript

/: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E

These are the steps to be followed for uploading graphics in R/3 system

1. First save the file as BMP

2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and

make it Zoom as 100% and save as *.TIFF

3. Open SE38 and execute program RSTXLDMC

4. Give your TIFF file path name

5. Select Bcol (for Color)

6. TEXT ID will be ZHEX-MACRO-*.

7. Inplace of * write your own logo name (ZCOMPANYLOGO)

8. Execute the program

9. Now Goto SE71 create your ZFORM

10. Create logo window

11. Goto text element of logo window

(or)In 4.6x

1. Goto SE71 Change the mode to GRAPHICAL

2. Choose the Graph Tabstrips

3. Now type in some name for the LOGO WINDOW

4. Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP

5. The code will be written automatically. You just need to drag and drop wherever you want

the graphics to be.

/: INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN

Mark the points if u find useful

~~Guduri

Read only