Hi Question on Smart forms
Hi Experts,
I need to display sub totals at the end of page before triggering to new page .....i know how to display grand total by using calculation ., field name and target field name but i need to display at the end of every page ....
Thanks & Regards
Bhaskar Rao.M
Hi Bhaskar,
Please see below info.
<b>Summing a Program Symbol: SUMMING</b>
The SUMMING command is used for accumulating a total value for a program symbol. The command should be specified just once. Then, each time the specified program symbol is formatted, its current value is added into the total symbol. Several program symbols may all be added into a single total symbol.
Syntax:
/: SUMMING program_symbol INTO total_symbol
SAPscript cannot create the field for the total dynamically. The summing symbol used for totalling and the accompanying program symbol(s) must be declared with TABLES in the ABAP program. Otherwise, only zero is added. Declaring the symbol with the DATA statement is not sufficient (global data).
<b>Summing and Carrying Forward is Incorrect</b>
Assume that for a multiple-page invoice, you want to print the current total as carry forward amount or subtotal on the current page and on the subsequent page. However, the carry forward amount is incorrect or missing.
The following causes are possible:
You do not use program symbols with Dictionary reference for totalling.
You place the carry forward amount into the BOTTOM area. SAPscript processes the BOTTOM area at the beginning of a page; therefore it is not suited for carry forward amounts.
If you place the carry forwards amount into the TOP area of the main window on the subsequent page, the carry forward amount may be higher than it should be: This happens if the last part of text of the previous page does not fit onto the page, but the text is held together, for example, by a PROTECT command. In this case, a local text symbol must receive the carry forward amount.
You must place the carry forward amount on the current page into a window of type VAR. On the subsequent page, use a local text symbol to print the amount in the TOP area of the main window:
At the beginning of the form main text (before printing the first text element), define the amount variable and the total variable (both must be program symbols or Dictionary amount fields).
In the example below, we use the SUMMING command to determine that for each output of &SUMTAB-AMOUNT& the system automatically sums up the amount in the total variable &SUMTAB-TOTAL&. At the end of the page, &SUMTAB-TOTAL& contains the carry forward amount of the current page or the grand total, respectively.
In this example, we also define a local symbol &LASTPAGE& to print the grand total on the last page.
/: SUMMING &SUMTAB-AMOUNT& INTO &SUMTAB-TOTAL&
/: DEFINE &LASTPAGE& =
At the end of the form main text (when printing the last text element of the main window), set the local textsymbol &LASTPAGE& to a different value, such as X:
/: DEFINE &LASTPAGE& = X
To print the carry forward amount in the TOP area of the subsequent page including the pre-text 'Carry forward' and a tab, we use the local text symbol &CARRY. The corresponding text element is also defined in the main window:
/E CARRY
&Carry forward:,,CARRY&
(CALL FUNCTION WRITE_FORM EXPORTING ELEMENT = CARRY
TYPE = TOP)
Define the carry forward window on the current page as type VAR and position it at the end of the main window of the page. Print the carry forward amount there and define the local text symbol &CARRY& to print the amount again in the TOP area of the subsequent page. Use the local text symbol &LASTPAGE& to print the grand total on the last page. The carry forward window then contains the following text (define it as paragraph T1 with tab):
/: IF &LASTPAGE& = X
T1 <H>Grand total:,,&SUMTAB-TOTAL&</>
/: ELSE
T1 <H>Carry forward:,,&SUMTAB-TOTAL&</>
/: DEFINE &CARRY& = &SUMTAB-TOTAL&
/: ENDIF
Reward helpful answers.
Thanks,
Nagendra
Similar Messages
-
Hi Question Regarding Smart Forms
Hi Experts,
I am working on ECC 6.0 smartforms i created a template and maintained rows and columns in that template , for that template i craeted text elemnts my question is how to assign a particular text element to a row or column ......
i am waiting 4 ur reply....
with regards
Bhaskar Rao.MHi ,
Click on the text element got ot the tab output options
there in the bottom you will find a box named as Output Structure
there are two fields Line and Column .there you have to row or column.
Please reward if useful. -
Need to convert a SAP Script to Smart Form
Hello,
I need to convert a SAP script to a Smart form.
I am aware of converting it but have a question abt print program?
Can the print program which is currently attached to the SAP script supprot the Smart form?
Could some one let me know if i can use the same program or need to do some modifications in it?
Pointa rewareded if useful.
Thanks,
Krishnahi
t-code smartforms
utilities->migrate sapscript
check the link below it provides steps to convert sap scripts to smartforms
http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf
Check these threads.
Smartforms -> sapscript
Re: Convert SapScript to Smartforms ?
regards.
Kiran Sure -
Text element not gettin refreshed in smart form
Hi
Text element does not get refreshed in the smart form preview.
I have a selection screen on which i have a few selection parameters and three application
toolbar buttons. "Save" , "Preview" and "Print". At the end of selection screen I have a
button "text" which when clicked takes me to the text element editor(FM 'TEXT_EDIT' )
I have to enter a project number on the selection screen, enter all other details and
then click on the "Text" button. I would then change /edit some text etc and come back
to sel screen. Now i click on preview , the smart form shows up and the text gets dispalyed
with the modified text.
I am passing the text name by appending "sometext" + project number to the TEXT_EDIT
and while eiditing and as a parameter to the smart form. In the smart form i have given the variable in the "include text".
Now Herez the problem.
I am still in selection screen and clik on the "text" button and it takes me to the
text editor. Now i add more lines, save and come back. Now i clik on preview
button and it displays the old text data.
When i come out of the transaction and renter , clik on the preview it displays data
correctly. Now if i repeat the steps
1.edit text button , add a few lines
2.preview button, shows data as entered in step 1.
3.edit text button, add few more lines
4.preview button .. the text displays is from step 1 and not 3.
I am not sure if this is lot of info for anybody to write an answer straight away but
if u need more info i can provide. I can do a read_text in the smart form but its toooooo
much of a pain for the data i need to display. million adjustments to be taken care of.
What could be the problem ? I have given all the basic settings like save parameter
in edit_text fm , checked all the print preview options in sdn.
Here are my questions
1. Why is the text element not getting refreshed.
2. After a form is displayed for preview , will it store anywhere in the buffer ? if yes
is there any method to clear it ?Hi,
The problem is not with text elements, it might be your size of window which you are using to display the text elements. Check your window size and modify that accordingly.
Cheers,
Bujji -
How to get the PO no in the smart form and in the print program from ME23N
hello all,
I am new to smart form printing.I want to make a smartform along with print program that will show PO Details.It has to be created as an o/p type in ME23N. I have created an o/p type ZPO using NACE ..Can some one tell me how to get the PO number in the smart form and in the print program from ME23N ,so that I can then program the necessary calculations?plz help me with the code.Thanks in advance.
Subhabrata.Hello Everyone,
I am new to the forum and also to abap.
Excuse me if it is a basic question.
I am taking care of the output types.
This is 1st time SAP will be implemented .
For purchase order , I go to NACE ---EF----NEU---Processing routines
print output---SAPFM06P---ENTRY_NEU----MEDRUCK
FAX-----------SAPFM06P---ENTRY_NEU----MEDRUCK
EDI------------RANASTED--EDI_PROCESSING
DISTRIBUTION(ALE)---RANASTED---ALE_PROCESSING
Are the above settings fine ?
What are the standard programs for the PO outputs . I am looking for the smartforms and the driver program .
I searched and found that IN ECC 6 , we have to install OSS notes .
Gurus, please help me . Let me know what all oss notes be implemented and how to proceed from here .
Any help will be greatly appreciated ,
Monalisa -
How to print BAR CODE in SAP SMART FORMS
Hi,
I want to print inspection lot's BAR CODE in the smart form, but i dont know the way how to print this into the smartform.
if anyone have any idea, please suggest me how to print this as it is urgent for me to complete the object.
Thanks in advance.
Best Regards,
Abnish JainHello Abnish,
Welcome to SDN.
We are able to print barcodes from smartforms. Doing this way, we print barcodes on laser printers.
We are also printing from sap to zebra printers using two ways:
1. Download the data to an excel sheet, then creating a macro that opens the printer port and sending the commands to the printer through this "file". All this is done via vb script provided with excel)..
2. The second way is creating a vbscript (an ascii file from sap) with the printer commands and then runing it using ws_execute.
You need a barcode reader to read the barcodes, and this scanner acts like a keyboard, it sends the data scanned to the active field on screen. (which might be a notepad, word, excel or an input field or ... ).
From 4.6c on, you can use smartforms to print barcodes without buying any barcode.dll software nor hardware extention like Bardimm on any laser/inkjet printer (Please Note that I haven't mentioned Zebra printers here!). To do this, you have to create a smartstyle -> character format with the desired barcode font (defined within sap). Then in the smartform, create a window, put the field and associate it the character format. That's all (I mean, that's all we do at least :-). I think, you have to consider the barcode specifications before sending the barcode value to the smartform (Just an example, if you're using 3 of 9, the code should start and end with an asterisk - '*' -) We're printing an interleaved 2 out of 5 barcode in our invoices due to a legal requirement, and we did it this way.
3. If you have a barcode scanner, then you should not need reading the barcode into an ascii file to get the data read in an standard or custom screen field. You can read it directly to the field you want. (unless... you have complex data coded in the barcode - for example if you're using an ean-ucc 128 compliant code and you're sending several fields in a single code ... In this case, an interface is almost mandatory because you must interpret the data fields according to the ucc standard, split the code into several fields .... and .... pure programming logic ).
To put it clear: if you have to read, for example, a barcode that holds the legal number of an invoice using a barcode scanner and this number should be sent to migo-> bktxt then you don't need an interface. The scanner itself acts like a fast operator entering the characters using a keyboard and filling in the field.
We're reading barcodes in several places (when we finish each pallet, when we receive an invoice, and so on. Each case is a different screen. We arent using an ascii file to read these barcodes. Furthermore, we read the invoice legal number into migo bktxt field (Head Text).
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
Regards
Naren -
How to delete a line in smart forms
Hi all
i have data in my itab in following format
Month 1 2 3 4 5 6 7 total
nov a a a a a a a 7a
dec P A P P A p A 4p
3a
i have to print data from col month to 7 in main area of the table in smart forms but it shows the 3rd line as well(an empty extra line) . is there any way that i may be able to delete or truncate third line ? as i have to print total below some where.
Regards
AmmadHi Ammad
i have a solution to ur question.
well u only want to print a line in the smartform Main window table if u have data in the first field of ur internal table lets take name as T_FINAL.
So u want to print lines in Smartform if T_Final-Field1 (which for month) is not empty.
For this go to the Condition tab of the Line (ROW) inside ur MAIN AREA In TABLE which must be there in any window probably in the Main window.
Double click on the Line (ROW) in MAIN AREA, It will contain 2 tabs Output option and Condition.
Click On condition and write under FIELD NAME the field of ur internal table WA u r using in TABLE for eg T_Final-Field1 if its Internal table with header line or if u r using a separate Work area use the work area like WA_Final-FIELD1, then click on the Square button just in front of it to select an RELATIONAL OPERATOR , put there the RELATIONAL OPERATOR as "Not Equal to" and in the comparison value column write a space quoted with single quotation as ' '.
After u do this any line encountered with its first field of WA_FINAL i.e wa_final-field1as empty wont be printed.
This Reloves ur issue.
Regards,
Akash Rana -
How to add New field in SMART forms.
How to add new field in the SMART FORMS. Please know me the step.
Please help me soon.
Moderator message: Welcome to SCN!
Moderator message: please search for available information/documentation, do not use a priority higher than normal (no "soon", "ASAP", "earliest" etc.).
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
Edited by: Thomas Zloch on Jun 17, 2011 12:31 PMHow to add new field in the SMART FORMS. Please know me the step.
Please help me soon.
Moderator message: Welcome to SCN!
Moderator message: please search for available information/documentation, do not use a priority higher than normal (no "soon", "ASAP", "earliest" etc.).
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
Edited by: Thomas Zloch on Jun 17, 2011 12:31 PM -
Smart Form: Which Action triggered the form?
Hi all,
we are using a Smart Form that should show information depending on which action triggered it. The Smart From is called by one class that does some preparation logic (Parent CL_SF_PROCESSING_PPF, Method EXEC_SMART_FORM). This class is started by several actions.
I know I could have several classes, one per action. But in case of changes, I would have to change all classes.
Is there a way to determine in the class which action was used to call it?
Thanks for your help,
Timo
Message was edited by:
Timo Koch (rephrased question)Hi,
I'm facing the same issue, for the moment the best answer is to read the value of the GUID from PARAMETER values.
DATA: para TYPE tpara-paramid VALUE 'TRIGGERGUID'.
GET PARAMETER ID para FIELD wv_ppf_guid.
IF sy-subrc <> 0.
MESSAGE 'Parameter not found' TYPE 'I'.
ENDIF.
SELECT SINGLE * FROM ppfttrigg INTO ws_ppfttrigg
WHERE os_guid = wv_ppf_guid.
The problem is on creation mode, the guid is filled but the table is not, I'm trying to get info through class cl_manager_ppf but I haven't found yet ...
Regards,
Guillaume Mackowiak. -
Smart Form printing issue in repeate page
Hi,
We have one smartfforms printing some notification details in which Only one page layout is use and it is repeated again at one block Upper margin is 18.23 and Height is 9.60 CM on first page it is printing properly but on second page it is stating at Upper margin is 18.23 properly but not printing total height it is printing only two rows on second line.
how to solve it
the block is a interbal table and it is printing material and qty. of that table if material is more means there are more than 8 material then it is printing only upto 11 rows remaining rows it is not printing.
regards,
zafarHi zafar,
I searched SAP.COM for you:
[Smart Form Trace|http://help.sap.com/saphelp_nw70/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm]
Transaction Smart Form Trace, switch on, level 60 Fields. Process smartform. Analyze.
What is the remaining question?
Regards,
Clemens -
How to create a smart form using the purchase order
hi everybody............
i have created one purchase order, i want to print that PO using smartforms rather than scripts. how can i do it, can anyone help me out in solving the issue. i am using the version sap 4.7
Edited by: mhyderali on Aug 21, 2009 4:08 PMHi,
Before answer your question few things i would like to kno:
1. currently is there any script is printing while displaying output.
2. do u allready hae a smartform or you are going to develop a smartform.
3. if you dont have a smartform and there is a script attached then you can convert script into smartform and then you can change in the smart form accordingly.
4. after devloping a new smart form or converting script into smartform what you need to do is go to V/83 transaction give Output Type which is associated with script and Application area (for purchase order i.e. EF). then press ok screen will display here you can change the name of your form name under the form column.
6. if you dnt have the Output type then you need to create a output type for the purchase order.
Please let me know if you have still some question.
Thanks
Narendra -
I am facing a typical problem in rendering output from smart forms to pdf.
The program was working fine before , now after some patch application the output is not comming , it shows
" A Drawing Error Occured"
RegardsHi,
Thanks for the reply , but what i observerd is that when i reduce the graphic size the program works fine .
One more question i wanted to ask you, is there any specific size restriction for bitmap files that we use on the smartforms.
Regards
Sam -
How to print form into pdf format using smart forms in abap
please let me know how to print form into pdf format using smart forms in abap.
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on Mar 25, 2011 2:04 PMHi ,
refer this link
<removed by moderator>
Regards,
Dhina..
Moderator message: please do not reply to questions that violate forum rules.
Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM -
Can I include a logo into text module in smart forms
Hi,
I want to know whether I can include a logo into text module or not in smart forms.
Pls some one assist me.
Regards,
ChandraHi,
No you cannot attach a logo in Text Module because it can store only text, and your logo is stored in presentation server so it cannot be used aywhere else.I hope your question is answered.
Regards. -
How to add empty rows in table in smart form
how to add empty rows in table in smart form?
plz help me regarding this
send me ur queries to [email protected]You will need to add some extra rows to the internal table that your table is displaying. Use a program node to append additional rows with a key but no argument.
Alternaively a template may me more suitable for your requirement than a table.
Finally, please do not include you e-mail address in your question. Your question and the answers provided to it are for the benefit of everyone in the Community.
Regards,
Nick
Maybe you are looking for
-
"Command-i" which was so useful for selectively deleting messages from servers has disappeared in Maverick. I wonder if it has been replaced by something else or should I look into other mail applications.
-
My Macbook Pro is running slow after the Yosemite update.
I updated to Yosemite before Christmas, and now I have been experiencing an awfully slow internet, which is nearly inoperable, on my Macbook Pro 13 (early 2011). Granted my provider is Comcast, but my roommate, who has a Macbook Pro 17 (2011) is expe
-
Can't update Mac Adobe Acrobat 9.5.0
I downloaded AcroProUpd950_all.dmg. When it asked for the acrobat program to update the file was greyed out. How can I update this acrobat version?
-
How can I solve out of memory error on excell file in PL/SQL
Hi, I'm new on PL/SQL. One of the PL/SQL code which is created excell report got out of Memory error. The first reason of this error, excell file not supported more than 65536 data. So I change the excell file separeted sheets. So that the single she
-
Rtf template date or number format check
Hy all, when i use format-date or format-number function whith a bad parameter value, (not a date or a number), my report crashes. Is there an easy way to check date type and number type before using format-date or format-number function ? (like isda