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

Printing reports

Former Member
0 Likes
1,622

Hi everyone,

I've been informed that i will be assigned a new program for printing reports...since i'm new to ABAP, i was asked to do some research on it while i wait for the spec doc to be delivered from the user...so i was looking around the forums...

From what i could gather, it would seem there are 2 approaches to it..smartforms and sapscript...

I was hoping you guys could explain to me what are they both about, the difference between them, the pros and cons of each, what is involved in those approaches...and basically, from where should i start?

Lastly, as a newbie to ABAP, which would you recommend to me use?

1 ACCEPTED SOLUTION
Read only

Former Member

Hi Bernard,

For Your first question, <b>Yes</b>, even the smartform naming convention should also start with Z or Y.

2.All the validations and the logic , we will write in the main program only. Though it may be a screen validation or data retrieval from tables . After working with this manipulation we will be passing the required information to the smartforms with the generated function module.

Apart from the program logic, we can also write necessary logic in smart forms using form routines, or with the program lines.

Once you star on working on this objects you will get to know.

Hope This Info Helps YOU.

<i>Reward Points If It Helps YOU.</i>

Regards,

Raghav

11 REPLIES 11
Read only

Former Member
0 Likes
1,531

Difference with SMARTFORMS vs. SapScript(SE71)

The Following are the differences :-

a) Multiple page formats are possible in smartforms which is not the case in SAPScripts

b) It is possible to have a smartform without a main window .

c) Labels cannot be created in smartforms.

d) Routines can be written in smartforms tool.

e) Smartforms generates a function module when activated.

You can use test program for Smartform :

http://sapgenie.com/abap/smartforms.htm

SAP SCRIPT :

http://www.sappoint.com/abap/ssintro.pdf

Read only

0 Likes
1,531

then in terms of complexity..which of these two approaches would require that i have extensive knowledge is ABAP before i could proceed to do anything?

Read only

0 Likes
1,531

Bernard,

Either it is SAP Scripts or SMART Forms the ABAP knowledge required will be the same.

Personally I will choose SMART Forms as it is more graphic nature while designing the output of the SMART form.

Regards,

Ravi

Read only

0 Likes
1,531

Hmmm...if that is the case, i'm considering to attempt Smartforms...however, could you provide some links to resources that is extensive and detailed on how do smartforms and how i should begin...i asked around with the other ABAPers in my department but none have done smartforms before, only sapscript...so i'm pretty much lost on where to begin...

Thanks in advance...

Read only

Former Member
Read only

Former Member
0 Likes
1,531

Hi Bernard,

My Best advise ,first go through the standard smarforms examples which sap is providing , analyze them , and practice as it is. If you can able to create a replica of them on your own then you will getting some good knowledge about smart forms and you can work on your.Standard exmples covers allmost all scenarios. Please find below a few smart forms with their print programs.

Hope This Info Helps YOU.

<i>Reward Points If It Helps YOU.</i>

Regards,

Raghav

Print Program		Smartform			Description

			SF_ACTIVITY_INVOICE            Example: Consulting invoice  
			SF_BC_TEST_PRINT               New form                       
SF_EXAMPLE_01      	SF_EXAMPLE_01                  Smart Forms Training Example   
SF_EXAMPLE_01_BACKUP  	SF_EXAMPLE_01_BACKUP           Smart Form Training Example 1  
SF_EXAMPLE_02 		SF_EXAMPLE_02                  Smart Form Training Example 2  
SF_EXAMPLE_02_BACKUP  	SF_EXAMPLE_02_BACKUP           Smart Form Training Example 2  
SF_EXAMPLE_03  		SF_EXAMPLE_03                  Smart Forms Training Example 3 
SF_EXAMPLE_03_BACKUP 	SF_EXAMPLE_03_BACKUP           Simplified Training Example    
			SF_LB_INVOICE                  Invoice                        
			SF_LB_INVOICE01                Invoice                        
			SF_LB_INVOICE_02               Invoice                        
			SF_LE_EXTENDED_PASS            Pass                           
			SF_LE_PASS_PER                 Visitor Pass                   
			SF_LE_PASS_TRA                 Pass                           
SF_TOTALS 		SF_SUBTOTALS                   Calculate/Display Subtotals    
SF_TOTALS 		SF_TOTALS                      Calculate/Display Grand Totals 
SF_XSF_DEMO2 		SF_WEBFORM_02                  XSF Output - Demo Example      
SF_XSF_DEMO3		SF_WEBFORM_03                  XSF Output - Demo Example      
SF_XSF_DEMO 		SF_XSF_DEMO1                   XSF Output - Demo Example      
			SF_ADRS_FOOTER                 New Text                      
			SF_ADRS_SENDER                 New text                      
			SF_XSF_DEMO_GREETINGS          Sincerely IDES                
			SF_XSF_DEMO_URL                URL Demo Text  

Read only

0 Likes
1,531

ok...thanks everyone...reading them now...

don't mind if i ask but when i create the form in SMARTFORMS, does it have to follow the usual Z~ or Y~ naming convention like normal programs?

And lets say that i need to create a screen that contains some selection criteria for the user to key in before the data is transfered to the forms, where do i write it? In the main program that is doing the main selection?

Read only

0 Likes
1,531

Hi Bernard,

For Your first question, <b>Yes</b>, even the smartform naming convention should also start with Z or Y.

2.All the validations and the logic , we will write in the main program only. Though it may be a screen validation or data retrieval from tables . After working with this manipulation we will be passing the required information to the smartforms with the generated function module.

Apart from the program logic, we can also write necessary logic in smart forms using form routines, or with the program lines.

Once you star on working on this objects you will get to know.

Hope This Info Helps YOU.

<i>Reward Points If It Helps YOU.</i>

Regards,

Raghav